#asahi-dev · 2023-07-16 21:08
svengood to know! #asahi-dev · 2023-07-16 21:04
svenif our drivers aren’t broken we really shouldn’t try any DMA after that :D#asahi-dev · 2023-07-16 21:04
svenoh, right, there’s also the „this device disappeared“ callback #asahi-dev · 2023-07-16 20:46
svendetaching is essentially „attach new iommu domain“ isn’t it?#asahi-dev · 2023-07-16 20:05
svennice work :)#asahi-dev · 2023-07-16 20:04
svenI wish I could still do the „hack until 5am“ thing without regretting it for the next week or so :D#asahi-dev · 2023-07-16 18:00
svenbut didn’t xnu completely shut down atcphy when suspending? or do I remember that wrong?#asahi-dev · 2023-07-16 17:59
svensomeone*cough* just needs to make the hv survive the wake-up:p#asahi-dev · 2023-07-16 15:26
sveni'm trying to write down what we currently know while trying to turn my vague idea into something that resembles a device tree ;)#asahi-dev · 2023-07-16 15:26
svenokay, makes sense#asahi-dev · 2023-07-16 15:08
sven*it#asahi-dev · 2023-07-16 15:08
svenjannau: my memory's a bit fuzzy for the multi-die t600x, do you remember how the crossbar works there? was is a single crossbar for each die that can only route between the ports on that die and the dcpext on that die?#asahi-dev · 2023-07-16 14:18
sventhat should power the ports down #asahi-dev · 2023-07-16 14:17
svenI think you can just send that SSPS command to move the tipd chip to P0 or so#asahi-dev · 2023-07-16 13:14
sven*broken #asahi-dev · 2023-07-16 13:14
svenxhci suspend/resume is broke though as marcan noticed a while ago :/ #asahi-dev · 2023-07-16 13:13
svenkettenis: I never checked tbh, but unless we suspend the tipd chip they should stay powered I think #asahi-dev · 2023-07-15 19:33
svenyeah, it’s iboot #asahi-dev · 2023-07-15 18:12
svenah, bootargs after m1n1#asahi-dev · 2023-07-15 18:12
svenisn’t the memory layout something like (bootargs)(adt)(m1n1)(sepfw)?#asahi-dev · 2023-07-15 13:18
svenugh, I’m already running late. I’ll ping you later #asahi-dev · 2023-07-15 13:18
sven dunno if my vague idea is any better there :/#asahi-dev · 2023-07-15 13:16
svenso we’ll very likely need a phy node for that #asahi-dev · 2023-07-15 13:16
svenDpin is a real phy-like thing that needs some setup fwiw #asahi-dev · 2023-07-15 13:16
sven“this”? #asahi-dev · 2023-07-15 13:14
svenbut essentially for DP tunneling we’ll have a “dpin” phy that will also trigger the HPD notification #asahi-dev · 2023-07-15 13:12
svenif it works the way I expect it to I have some very vague idea, I’m about to head out but I can dump my thoughts later #asahi-dev · 2023-07-15 13:11
svenbut I think DP tunneling and ideally also multi output should work first because there might still be some nasty surprises lurking #asahi-dev · 2023-07-15 13:09
svenI also have some vague ideas about how to model this in the DT that we should also discuss at some point #asahi-dev · 2023-07-15 13:08
sventhe only reason the current one doesn’t have that because it was built for intel and the drm side can actually read the current state from somewhere #asahi-dev · 2023-07-15 13:08
svenwhat I definitely want to change is that oob hpd notification to include the current state #asahi-dev · 2023-07-15 13:07
svensure#asahi-dev · 2023-07-15 13:07
svenbut that can come later #asahi-dev · 2023-07-15 13:07
svenI think crossbar needs some work on t6000 for dual output though #asahi-dev · 2023-07-15 13:06
svenbut I first want to make sure dp tunneling works similar to DP altmode #asahi-dev · 2023-07-15 13:06
svenyeah, but I have some vague plans how to improve that #asahi-dev · 2023-07-15 12:44
svenI also think I know how dp tunneling works now so that’s next after usb3/tipd #asahi-dev · 2023-07-15 12:43
svenwhat I might end up doing is just always setting up usb3+DP anyway for the current hw #asahi-dev · 2023-07-15 12:42
svenbut essentially I can switch the atcphy mode without going through a full reset and everything still works #asahi-dev · 2023-07-15 12:42
svenor maybe I just misremember the first part :D#asahi-dev · 2023-07-15 12:42
svenI think so. Iirc xnu used to do that additional reset but at some point they also stopped doing it#asahi-dev · 2023-07-15 12:41
svenand the whole pcie hotplug issues ofc #asahi-dev · 2023-07-15 12:40
sventhere are still some issues with pcie power management over tbt but I first want to get this new tipd/usb3 part ready #asahi-dev · 2023-07-15 12:40
sven😵💫#asahi-dev · 2023-07-15 12:35
svenalso, usb3 followed by a mode switch to usb3+DP doesn’t require a dwc3 reset anymore \o/#asahi-dev · 2023-07-15 12:35
svennow lets see about that weird bit that flips when xnu runs but didn’t with my old code#asahi-dev · 2023-07-15 12:34
svenyay, looks like usb is stable again #asahi-dev · 2023-07-13 13:08
sveni'm reasonably sure there's also a filter in iBoot that just drops unsupported boot args#asahi-dev · 2023-07-13 13:07
svenas I said: sven> yeah, -v is some iBoot thing which then sets a flag in the xnubootargs [...]#asahi-dev · 2023-07-13 13:07
svenoh, right, that was changed at some point because we originally thought we could only set -v with disabled security