#
✕ nick:sven
#asahi-dev · 2021-10-08 18:01
svenhttps://f.svpe.de/52c10d8289feeacb904f544ede573549bb91ba8ee1b39d834266a4d00ba03d01_0001-iommu-dart-Reset-DART_STREAMS_ENABLE.patch not even compile tested :D
#asahi-dev · 2021-10-08 17:56
svenso for some reason something (iboot?) disabled streams 0,1 and 2 in the sio dart
#asahi-dev · 2021-10-08 17:56
svenlol
#asahi-dev · 2021-10-08 17:54
svenit looks like the sio dart starts with the first three streams disabled *sigh*
#asahi-dev · 2021-10-08 17:53
svencan you try write32(u.adt["/arm-io/dart-sio"].get_reg(0)[0] + 0xfc, 0xffff) before booting linux?
#asahi-dev · 2021-10-08 17:53
svenugh
#asahi-dev · 2021-10-08 17:51
svenunless not all streams are enabled after a fresh boot
#asahi-dev · 2021-10-08 17:51
svenhm... dart_initialize does self.regs.ENABLED_STREAMS.val = 0 and then later self.regs.ENABLED_STREAMS.val |= self.enabled_streams which my driver doesn't do
#asahi-dev · 2021-10-08 17:47
svenif it works again, do you do anything special when setting up the DART?
#asahi-dev · 2021-10-08 17:46
svenin the DART?
#asahi-dev · 2021-10-08 17:45
svendoesn't make much sense though :/
#asahi-dev · 2021-10-08 17:43
svenuhhh....
#asahi-dev · 2021-10-08 17:40
svenokay. so the aperture is also a lie for that dart :D
#asahi-dev · 2021-10-08 17:38
svenbut for other darts that was a lie
#asahi-dev · 2021-10-08 17:37
svenso apparently the aperture given in the ADT is 0x0021c000 with a size of 0xfbde4000
#asahi-dev · 2021-10-08 17:30
sven:(
#asahi-dev · 2021-10-08 17:28
svenpovik: maybe try just DART_BYPASS without DAPF_BYPASS for stream 15
#asahi-dev · 2021-10-08 17:28
svendepends on how povik wrote it. but i think he actually maps memory through dart
#asahi-dev · 2021-10-08 17:27
svensounds about right
#asahi-dev · 2021-10-08 17:27
svenDCP one is locked *sigh*
#asahi-dev · 2021-10-08 17:25
svenno idea
#asahi-dev · 2021-10-08 17:25
svenmaybe stream 15 is already correctly configured and gets messed up?
#asahi-dev · 2021-10-08 17:25
svenso the DART driver resets all streams i think
#asahi-dev · 2021-10-08 17:24
svenmaybe it goes through but triggers the interrupt which the poc ignores? but that would be very strange
#asahi-dev · 2021-10-08 17:22
sventhat's odd indeed
#asahi-dev · 2021-10-08 17:22
svenhappily accepts patches to make the DART driver support DAPF :>
#asahi-dev · 2021-10-08 17:21
svenprobably requires the DAPF to be setup then
#asahi-dev · 2021-10-08 17:20
sveni haven't done this before either :D
#asahi-dev · 2021-10-08 17:20
sveni guess
#asahi-dev · 2021-10-08 17:19
svenor maybe setting stream 15 to bypass is enough
#asahi-dev · 2021-10-08 17:18
svenmaybe
#asahi-dev · 2021-10-08 17:18
sveni guess macos configures that one at some point
#asahi-dev · 2021-10-08 17:18
sventhe sio dart which is used for the aes engine and apparently also audio
#asahi-dev · 2021-10-08 17:18
svenand you may or may not need to set the DART stream 15 to bypass mode
#asahi-dev · 2021-10-08 17:17
sven(or maybe sid instead of sid mask, don't remember)
#asahi-dev · 2021-10-08 17:17
svenbut IIRC it had fields like sid mask, some flags, start, end
#asahi-dev · 2021-10-08 17:17
svenlet's see if i can still find my notes
#asahi-dev · 2021-10-08 17:16
svenusual disclaimer: no idea if that ever worked, probably doesn't work anymore these days
#asahi-dev · 2021-10-08 17:16
svenah, yup
#asahi-dev · 2021-10-08 17:14
svenlet me find it again
#asahi-dev · 2021-10-08 17:14
svenuh... somewhere
#asahi-dev · 2021-10-08 17:14
sveni just haven't had any good reason to look into it
#asahi-dev · 2021-10-08 17:14
svenit seems to be very simple
#asahi-dev · 2021-10-08 17:14
svenyeah, exactly
#asahi-dev · 2021-10-08 17:13
svenbut... that's only a temporary solution
#asahi-dev · 2021-10-08 17:13
svenyou can switch the iommu to bypass mode if the audio hardware supports 64bit addresses
#asahi-dev · 2021-10-08 17:13
svenno idea :D
#asahi-dev · 2021-10-08 17:13
svenonly BYPASS_DAPF | BYPASS_DART works
#asahi-dev · 2021-10-08 17:12
svennope
#asahi-dev · 2021-10-08 17:11
sven(the other explanation is that you have the wrong streamid, but i kinda doubt that :-))

plus ›