#
✕ nick:sven
#asahi-dev · 2021-02-17 21:57
svenhm?
#asahi-dev · 2021-02-17 21:55
svenyeah
#asahi-dev · 2021-02-17 21:54
svenpage (143): 0423c000 ... 04240000 -> 00000009e0df8000 [0b11]
#asahi-dev · 2021-02-17 21:54
svenFB at: 0x9e0df8000
#asahi-dev · 2021-02-17 21:51
sventhese vaddrs also appear in the "fault address" status register if I disable that mapping
#asahi-dev · 2021-02-17 21:49
svenbut things get weird after the framebuffer ends
#asahi-dev · 2021-02-17 21:49
sventhe beginning makes sense I think. it's mapping the frame buffer starting from vaddr 0423c000
#asahi-dev · 2021-02-17 21:45
sventhat was after a clean reboot
#asahi-dev · 2021-02-17 21:45
svenno
#asahi-dev · 2021-02-17 21:30
svendevice 04 is this piodma thing
#asahi-dev · 2021-02-17 21:29
sventhe pagetables for disp0 from iboot
#asahi-dev · 2021-02-17 21:29
svenmodwizcode: https://files.svenpeter.dev/02ac2b93c4421bf45784972abc8c6272f08aecefe9067a167dd308f37db889d4-disp0-dart-mappings.txt those are left over from iboot
#asahi-dev · 2021-02-17 21:23
svenmapper-disp0 and mapper-disp0-piodma
#asahi-dev · 2021-02-17 21:23
sventhe index is somewhere in the device tree
#asahi-dev · 2021-02-17 21:22
sventhere's also #4 which I have no clue about
#asahi-dev · 2021-02-17 21:22
svendevice #0 is the framebuffer
#asahi-dev · 2021-02-17 21:22
svenoh, yes
#asahi-dev · 2021-02-17 21:22
svenand something else before that, but I haven't looked into that yet
#asahi-dev · 2021-02-17 21:21
sventhe one just before that contains some kind of pagetable cache starting at 0x2000
#asahi-dev · 2021-02-17 21:21
sventhat one that I dumped + another one just before that
#asahi-dev · 2021-02-17 21:21
svenyes, there are two blocks of registers
#asahi-dev · 2021-02-17 21:05
svenmaybe the display is doing something strange that breaks when bypass is enabeld
#asahi-dev · 2021-02-17 21:05
svenI think I'll need some device to be able to see the virtual address space
#asahi-dev · 2021-02-17 21:04
sventhe whole top_byte<<16 | 0x100 would fit though since I can only set 0xff1bdf and that lines up nicely
#asahi-dev · 2021-02-17 21:04
svenno :(
#asahi-dev · 2021-02-17 20:30
svenactually, no, it just doesn't like you if select a device that is disabled
#asahi-dev · 2021-02-17 20:29
sventhat kinda makes sense ;)
#asahi-dev · 2021-02-17 20:29
svenah... got it. looks like you need to write to that device selection register first
#asahi-dev · 2021-02-17 20:27
svenbut no idea what I've done before that to trigger that :/
#asahi-dev · 2021-02-17 20:27
svenwell, it used to set the busy bit even when I wrote 0 to it
#asahi-dev · 2021-02-17 20:09
svenhuh, now I can't reproduce that busy bit anymore.
#asahi-dev · 2021-02-17 19:59
sven4 per device, bit 31 indicates if they're active
#asahi-dev · 2021-02-17 19:59
sven0x200 - 0x300 are the pointers to the pagetables
#asahi-dev · 2021-02-17 19:59
sveneverything after 0x300 seems to be zero.
#asahi-dev · 2021-02-17 19:58
sven0180 - 01bc looks interesting as well. let's see if I can figure out what they do
#asahi-dev · 2021-02-17 19:57
sventhat's disp0 after a fresh reboot
#asahi-dev · 2021-02-17 19:57
svenmodwizcode: http://f.svpe.de/fc3a59dd5503abafc94fa5710fd442e2b69fd422619ffc056b8b7a45ca02e625_disp0-dart.txt
#asahi-dev · 2021-02-17 19:55
sventhere's 16 values for 16 devices in there that seem to contain more flags
#asahi-dev · 2021-02-17 19:55
sven0184: 0001000c
#asahi-dev · 2021-02-17 19:55
svenoh... I definitely need to take a closer look at that one range I forgot about again
#asahi-dev · 2021-02-17 19:52
svengreat minds think alike and yet fools seldom differ :P
#asahi-dev · 2021-02-17 19:52
sven;)
#asahi-dev · 2021-02-17 19:52
sven+ return self.request(self.P_WRITEREAD32, addr, data)
#asahi-dev · 2021-02-17 19:52
sven+ def writeread32(self, addr, data):
#asahi-dev · 2021-02-17 19:51
svenwhen I do str directly followed by ldr I do see it though
#asahi-dev · 2021-02-17 19:51
svenI always did write32(reg, something); read32(reg); from python. kinda obvious that I couldn't see that busy flag :)
#asahi-dev · 2021-02-17 19:50
svenyeah, that makes sense
#asahi-dev · 2021-02-17 19:49
svenI guess invalidate actually is somewhere in there then :-)
#asahi-dev · 2021-02-17 19:49
svenactually, writing anything to that register sets bit 0x4 for a short time
#asahi-dev · 2021-02-17 19:48
svenoh... interesting. writing zero to that register does set bit 0x4 for a brief moment though

plus ›