#
✕ nick:sven
#asahi-dev · 2021-02-19 19:56
svenlol
#asahi-dev · 2021-02-19 19:46
svendon't you have a second m1 Mac yet? :-P
#asahi-dev · 2021-02-19 19:46
svenmodwizcode: https://f.svpe.de/1bd70c7e2267842dfacc4e15d3d8adac047574eca270dce97c53d3b086ba0552_smmu_regs.txt
#asahi-dev · 2021-02-19 19:41
svensure, it's rather boring though
#asahi-dev · 2021-02-19 19:33
svenit's only present for disp0, dispext0 and ave in the device tree
#asahi-dev · 2021-02-19 19:29
sven:D
#asahi-dev · 2021-02-19 19:29
svenbut the SMMU names makes me suspicious this might be more than just a cache
#asahi-dev · 2021-02-19 19:29
svenit's a little bit weird. I originally though this is just some kind of cache or something, and it just might still be
#asahi-dev · 2021-02-19 19:28
sventhe page size still seems to be the same
#asahi-dev · 2021-02-19 19:27
svennow I wonder if there's a bit to disable the automatic filling of that table
#asahi-dev · 2021-02-19 19:24
svenyup, and if I memset32(0x0000000231302000, 0x809e0df8, 0x100) and set the buffer at 9e... to 0x88888888 the bar that appears is green
#asahi-dev · 2021-02-19 19:22
svenand the size controls, well, the size :-)
#asahi-dev · 2021-02-19 19:22
svenand depending on the size I chose in that memset a black contiguous area appears for a brief moment at different places
#asahi-dev · 2021-02-19 19:22
svenoh, and I set that one page to 0xffffffff to have a white screen
#asahi-dev · 2021-02-19 19:21
svenand then I've tried memset32(0x0000000231302000, 0, 0x20) and varied the size
#asahi-dev · 2021-02-19 19:21
svenI've mapped the whole frame buffer to a single page with DART
#asahi-dev · 2021-02-19 19:21
svenooookay.. I think the SMMU does some kind of scatter/gather DMA
#asahi-dev · 2021-02-19 18:56
svenbut it certainly doesn't line up with the smmu registers
#asahi-dev · 2021-02-19 18:56
svenhm... maybe DART was inspired by the arm smmu
#asahi-dev · 2021-02-19 18:52
svenare you talking about the SMMU or the DART range?
#asahi-dev · 2021-02-19 18:52
svenhuh, so maybe the arm secification just totally confused me
#asahi-dev · 2021-02-19 18:51
sventhe pagetables are very similar fwiw
#asahi-dev · 2021-02-19 18:51
svenwhich ones?
#asahi-dev · 2021-02-19 18:41
svenwe can pretty much ignore it for now anyway, I'm just curious :-)
#asahi-dev · 2021-02-19 18:40
svenhm, fair enough
#asahi-dev · 2021-02-19 18:40
svenusb e.g. doesn't have it
#asahi-dev · 2021-02-19 18:40
svenmaybe. it's not present for all DARTs in the device tree though
#asahi-dev · 2021-02-19 18:39
svenI can't even seem to change most registers in there fwiw
#asahi-dev · 2021-02-19 18:37
svenhttps://github.com/svenpeter42/m1n1/blob/dart-tests/proxyclient/dart_tests.py#L114 that's all I could figure out
#asahi-dev · 2021-02-19 18:37
svennot really
#asahi-dev · 2021-02-19 18:37
svenit seems to be closely coupled to the DART
#asahi-dev · 2021-02-19 18:37
svenI haven't found any evidence that this apple smmu even has pagetables
#asahi-dev · 2021-02-19 18:36
svenI'm quite sure it's not the arm standard thing
#asahi-dev · 2021-02-19 18:36
svenlet's call this one Apple SMMU then, heh
#asahi-dev · 2021-02-19 17:55
svenugh.. I guess there's no way around actually bringing up usb to play around with the device side
#asahi-dev · 2021-02-19 17:38
sven(assuming that ave actually means audio/video encoder, heh)
#asahi-dev · 2021-02-19 17:38
sventhe audio video encoder seems to have two of these DARTs and another SMMU according to the device tree
#asahi-dev · 2021-02-19 17:35
svenhm, nope. no change
#asahi-dev · 2021-02-19 17:31
svenhrm, though I wonder what happens if I enter DFU mode and then reboot
#asahi-dev · 2021-02-19 17:31
sventhey are power gated by the time we run. I can re-enable power/clocks and then there's some stuff left in the registers, but no valid pagetables as far as I can tell
#asahi-dev · 2021-02-19 17:29
svenpossibly
#asahi-dev · 2021-02-19 17:28
sven"DARTLLT" and "DARTBLK"
#asahi-dev · 2021-02-19 17:27
svenhow very strange. the disp0-dart seems to have two blocks: one DART and one thing the device tree calls SMMU. the usb dart otoh seems to have two blocks and both looks like DART.
#asahi-dev · 2021-02-18 07:37
svenmakes sense
#asahi-dev · 2021-02-18 07:06
sven(probably for retina displays)
#asahi-dev · 2021-02-18 07:06
sveniBoot also seems to map a constant length that's e.g. much larger than what it needs for full hd
#asahi-dev · 2021-02-18 07:05
svenyeah, it's always been the same between boots for me even when e.g. HDMI is disconnected
#asahi-dev · 2021-02-17 21:59
sven🤷‍♂️
#asahi-dev · 2021-02-17 21:57
svenmy m1 MacBook Air is just the UART adapter :P
#asahi-dev · 2021-02-17 21:57
svenMac mini

plus ›