#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:09
jannauwe should take's the device's dma mask into account in apple_dart_finalize_domain(), I doubt we need more than 36-bit for most devices#asahi-dev · 2023-04-10 10:06
jannaudoes it work if you limit it to 36 instead of reading DART_T8110_PARAMS3_VA_WIDTH?#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 10:02
jannaudart-dcp0 has FOUR_LEVELS=0#asahi-dev · 2023-04-10 09:57
marcanyeah#asahi-dev · 2023-04-10 09:56
jannauI suspect the first level is the ttbr which is flat for dart-t8110#asahi-dev · 2023-04-10 09:55
jannauok, that should fail then too and probably explains the SError OI saw yesterday on the m2 pro mini#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
jannauthe dcp/disp0 handling in kboot.c isn't used 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:51
jannauis that the first dart you're looking at?#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 21:24
jannauwhy apple? "/arm-io/dart-dcp/mapper-dcp" vs. "/arm-io/dart-dcp0/mapper-dcp0" on the m2 pro. will there be a dcp1 on the VR headset, or on the m2 ultra for 10 displays#asahi-dev · 2023-04-09 18:43
kettenis_if you get pcie working, I can work on the asmedia usb stuff in u-boot ;)#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:57
ChaosPrincess[w]Can someone with a m1 mbp run this from m1n1 python shell and say if colors look correct https://github.com/WhatAmISupposedToPutHere/m1n1/blob/f4517bdaf72cb36ac8999903a5d85aecddd0ed28/proxyclient/experiments/touchbar_rainbow.py#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:48
kettenis_I also didn't intend to keep you from getting some sleep ;)#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