#asahi-dev · 2023-04-10 11:18
marcanah yeah#asahi-dev · 2023-04-10 10:55
marcanpushed#asahi-dev · 2023-04-10 10:51
marcanthis looks like we aren't handling the fault clearing properly...#asahi-dev · 2023-04-10 10:51
marcan[ 5.730759] apple-dart 2a9808000.iommu: translation fault: status:0x90180000 stream:1 code:0x0 (unknown) at 0xfffffc040#asahi-dev · 2023-04-10 10:51
marcan[ 5.730756] apple_dart_t8110_irq: 12570 callbacks suppressed#asahi-dev · 2023-04-10 10:13
marcanmight as well implement this extra level though, for future-proofing#asahi-dev · 2023-04-10 10:12
marcanthough that might be an offset#asahi-dev · 2023-04-10 10:11
marcan TXM. IBM.[ b. 4] buf_size = 0x200000#asahi-dev · 2023-04-10 10:11
marcan TXM. IBM.[ 3. 8] buf_addr = 0x10000008000#asahi-dev · 2023-04-10 10:11
marcanprobably, but MTP is actually using funny addresses in macOS at least#asahi-dev · 2023-04-10 10:02
marcanbut the first problem is the dart code just gives up if ias is too large right now#asahi-dev · 2023-04-10 10:02
marcanit's probably optional if you don't need that much address space#asahi-dev · 2023-04-10 09:57
marcanyeah#asahi-dev · 2023-04-10 09:55
marcanI see three levels though, so that bit sure feels like a lie#asahi-dev · 2023-04-10 09:54
marcanno, I haven't enabled that yet#asahi-dev · 2023-04-10 09:54
marcanFOUR_LEVELS=1#asahi-dev · 2023-04-10 09:51
marcanand the only other thing using a DART is PCIe which is broken#asahi-dev · 2023-04-10 09:51
marcanall the DARTs are 42->42#asahi-dev · 2023-04-10 09:51
marcanit might be the first one that has to work, since dwc3 as far as I know knows how to fall back to bypass?#asahi-dev · 2023-04-10 09:50
marcanI mean I guess they have to...#asahi-dev · 2023-04-10 09:49
marcandoes that mean these DARTs have one more level?#asahi-dev · 2023-04-10 09:48
marcanohh wait. IAS is 42. I don't think we've ever seen that.#asahi-dev · 2023-04-10 09:44
marcanreally...#asahi-dev · 2023-04-10 09:44
marcanFailed to alloc io_pgtable_ops#asahi-dev · 2023-04-10 09:44
marcanwhy can't MTP allocate DMA memory... is something wrong with 42-bit t8110? :/#asahi-dev · 2023-04-09 18:31
marcanthen just DCP and GPU#asahi-dev · 2023-04-09 18:31
marcanwill try to do MTP tomorrow and see if I can work out PCIe, that should get us to non-edge-kernel feature parity#asahi-dev · 2023-04-09 18:31
marcancc axboe_ I think you were waiting for this bringup :p#asahi-dev · 2023-04-09 18:28
marcanre ActiveRegion I think I pulled that out of binary RE but I have no idea how it works#asahi-dev · 2023-04-09 18:28
marcanjannau: if you have a chance, mind reviewing the DCP stuff? I think m1n1 needs changes too etc.#asahi-dev · 2023-04-09 18:21
marcangood night :)#asahi-dev · 2023-04-09 18:21
marcanfixed the SError stuff, so now just need to fix pcie and add MTP and we're mostly there#asahi-dev · 2023-04-09 18:09
marcanpcie is kinda broken in m1n1 too, it SErrors for some reason (but not with the tracer?)#asahi-dev · 2023-04-09 18:09
marcanpushed the fix, nvme works#asahi-dev · 2023-04-09 17:56
marcanah, wasn't that hard, fixed it in linux#asahi-dev · 2023-04-09 17:54
marcanmeh, let's just have m1n1 clean up#asahi-dev · 2023-04-09 17:54
marcanah, but since linux tries to reset it anyway that doesn't work#asahi-dev · 2023-04-09 17:50
marcanthough we probably should make linux just do it the robust way anyway...#asahi-dev · 2023-04-09 17:50
marcanadding some stuff to m1n1 to shut it down if it's running#asahi-dev · 2023-04-09 17:50
marcanok, it's just that iBoot leaves it powered and Linux doesn't have the wakeup fallback thing m1n1 does.#asahi-dev · 2023-04-09 17:20
marcaninterestingly it works if m1n1 initializes nvme first#asahi-dev · 2023-04-09 16:51
marcanah ok, I screwed up the pmgr ranges and it was child PDs of that trying and failing to probe repeatedly#asahi-dev · 2023-04-09 16:48
marcaninb4 core linux genpd bug...#asahi-dev · 2023-04-09 16:48
marcanyeah but this is weird#asahi-dev · 2023-04-09 16:47
marcaneven linux thinks it's ane_sys, wat#asahi-dev · 2023-04-09 16:47
marcan[ 7.802556] apple-pmgr-pwrstate 28e080000.power-management:power-controller@260: PS ane_sys: pwrstate = 0x0: 0xf0000f0#asahi-dev · 2023-04-09 16:47
marcan[ 7.798483] apple-pmgr-pwrstate 28e080000.power-management:power-controller@260: PS ane_sys: pwrstate = 0xf: 0xf00000f#asahi-dev · 2023-04-09 16:46
marcanok, linux is poking the ANE_SYS power domain and this makes *no* sense. either I screwed up something major (but I can't find it) or there is something very wrong in linux genpd#asahi-dev · 2023-04-09 16:34
marcanyeah, I have a feeling#asahi-dev · 2023-04-09 16:33
marcanalso dwc3 superspeed works so there's that positive note :p