#asahi-dev · 2023-07-16 21:14
svens/ok/on/#asahi-dev · 2023-07-16 21:14
svenatcphy is very picky when it comes to those magic pokes unfortunately :-(#asahi-dev · 2023-07-16 21:14
sveni think the ports got stuck it sone non-ready state ok resume #asahi-dev · 2023-07-16 21:13
kettenismy previous attempt didn't work#asahi-dev · 2023-07-16 21:13
svenand iirc the broken behavior happened when using the xhci suspend mechanism#asahi-dev · 2023-07-16 21:13
kettenismight give it another try at that point#asahi-dev · 2023-07-16 21:13
sventhe current one is slightly different from xnu and might have lead to some weird issues for some people #asahi-dev · 2023-07-16 21:12
svenI’ll probably push some updates to the usb3 sequence next weekend or so fwiw #asahi-dev · 2023-07-16 21:11
kettenis(note that I don't have USB3 working yet)#asahi-dev · 2023-07-16 21:10
kettenisI put it back into S0 upon resume and the USB devices reattach#asahi-dev · 2023-07-16 21:10
svennice :)#asahi-dev · 2023-07-16 21:10
kettenisyup#asahi-dev · 2023-07-16 21:10
sveniirc there were also other power related commands for that tipd chip but they all didn’t work on apple’s firmware #asahi-dev · 2023-07-16 21:09
svenso that SSPS command to S5 works?#asahi-dev · 2023-07-16 21:08
svengood to know! #asahi-dev · 2023-07-16 21:07
kettenissven: S5 turns off VBUS, S3 doesn't#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 21:03
jannauand I fear I will run into that once I use an unmanaged domain for dcp piodma#asahi-dev · 2023-07-16 21:01
jannauI was looking at .release_device which should be fine. attaching to new iommu domain might be a problem if apple_dart_domain_free() is called#asahi-dev · 2023-07-16 20:46
svendetaching is essentially „attach new iommu domain“ isn’t it?#asahi-dev · 2023-07-16 20:43
jannaudcp should be fine in the sense that we will never return to simpledrm. also the use case for detaching from the iommu is a bit esoteric to begin with#asahi-dev · 2023-07-16 20:41
jannaushould be fine in the sane that we restore reserved boot regions when the device re-attaches#asahi-dev · 2023-07-16 20:39
jannauso I guess I should be answer that for dcp but I guess other coprocessor without locked darts are affected as well#asahi-dev · 2023-07-16 20:38
jannaulooking into whether I need to save and restore the boot level one table for locked darts#asahi-dev · 2023-07-16 20:37
jannauis it reasonable to assume that devices are shutdown sufficiently when they detach from the iommu so they don't access memory#asahi-dev · 2023-07-16 20:10
eilnChaosPrincess: the sensors should be next. im really not familiar with the color/calibration magic though#asahi-dev · 2023-07-16 20:07
eilnsven: thank you, dcp/ipc.py was really helpful :)#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 20:03
eilnand the code: https://pastebin.com/YpaH18Ne#asahi-dev · 2023-07-16 20:02
eilnlog: https://pastebin.com/ExWV7WNh#asahi-dev · 2023-07-16 20:02
eilnwtf pastebin is down#asahi-dev · 2023-07-16 20:01
eiln5am again, but i got the isp firmware to do its init dance#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 17:50
marcanneed to trace dwc3/atcphy through a suspend cycle on macos...#asahi-dev · 2023-07-16 17:50
marcansven: I hope the suspend thing just means we need more atcphy crap (ugh but doable) and not that it really is broken#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:26
jannausven: I think we concluded that the crossbars are per die without ultrafusion links#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:29
eiln*powermetrics#asahi-dev · 2023-07-16 14:29
eilnthe +0x8000s aren't necessary, they're something to do with voltages in powertop#asahi-dev · 2023-07-16 14:27
eilnChaosPrincess: without the reset it doesn't run on the second run (and requires reboot). i need to look into it though#asahi-dev · 2023-07-16 14:25
ChaosPrincessalso, i dont think you need a reset after load_fw, but again, not 100% sure#asahi-dev · 2023-07-16 14:24
ChaosPrincesseiln: i have this as tunables apply code, and while im not sure, i think you might be able to skip at least some of the writes in the bridge_evt_ctrs block https://paste.bingner.com/paste/xrn3w#asahi-dev · 2023-07-16 14:22
kettenissven: thanks, lemme try that#asahi-dev · 2023-07-16 14:22
eilnim working on the irq & command arg structs