#
✕ nick:sven
#asahi-dev · 2021-11-24 08:05
sveni'm pretty sure the ports also very occasionally break when they're in host mode
#asahi-dev · 2021-11-24 08:04
sven:D
#asahi-dev · 2021-11-23 19:48
sventhis is not remotely ready for review yet
#asahi-dev · 2021-11-23 19:48
svensee "WIP" at the start of the commit
#asahi-dev · 2021-11-23 17:55
sven🤷‍♂️
#asahi-dev · 2021-11-23 17:50
sven*add
#asahi-dev · 2021-11-23 17:50
svenif you're also working on it i can stop rebasing/squashing and instead just adding commits on top of that
#asahi-dev · 2021-11-23 17:48
svenmarcan: pushed my current WIP rtkit stuff to rtkit/dev
#asahi-dev · 2021-11-23 16:12
svenk
#asahi-dev · 2021-11-23 16:01
svenok
#asahi-dev · 2021-11-23 16:01
svenmarcan: where's the latest code for the reset/pmgr stuff? inside the t6000 branch?
#asahi-dev · 2021-11-23 15:52
sveni'm pretty sure 6 is "set co-processor power state" then
#asahi-dev · 2021-11-23 15:51
svenyeah, that's obviously a reasonable action to take when you get an invalid argument! *sigh*
#asahi-dev · 2021-11-23 15:50
svenit'll panic then
#asahi-dev · 2021-11-23 15:50
sventhe only thing you can't do is send the same power state twice
#asahi-dev · 2021-11-23 15:48
sveniirc for ANS it uses 0x6 but with power state = 0x0
#asahi-dev · 2021-11-23 15:48
svenhrm, so it uses both
#asahi-dev · 2021-11-23 15:47
sven0x0 is completely shut down and requires a hard reset but 0x10 allows recovery by just sending that wake-up message
#asahi-dev · 2021-11-23 15:47
svenmaybe it just uses 0xb which may just be "notify co-processor that AP power state is 0x0 now" and maybe that disables all messages it tries to send?
#asahi-dev · 2021-11-23 15:46
svenhrm, do you remember which command iBoot sends?
#asahi-dev · 2021-11-23 15:46
sveni'll push them later as well then
#asahi-dev · 2021-11-23 15:46
svenat least those work and don't crash anything :>
#asahi-dev · 2021-11-23 15:45
sveni guess i should push my current rtkit changes somewhere if you want to start with SMC
#asahi-dev · 2021-11-23 15:44
svenyup :D
#asahi-dev · 2021-11-23 15:43
svenoh, and ANS firmware text also seems to be inside the same region the DCP firmware also uses. it's just the data section that seems to be inside the region that SErrors if we try to read it
#asahi-dev · 2021-11-23 15:43
svenso maybe just have a function to poke that bit and another function to wake up SMC or something like that
#asahi-dev · 2021-11-23 15:42
svenyeah
#asahi-dev · 2021-11-23 15:42
sventhe thunderbolt processors don't even have it
#asahi-dev · 2021-11-23 15:42
svenso i think we should remove the "poke the CPU START" bit out of the rtkit library
#asahi-dev · 2021-11-23 15:39
svensee -re
#asahi-dev · 2021-11-23 15:39
svenyeah :D
#asahi-dev · 2021-11-23 15:39
sveni think 0xb is to report the AP power state
#asahi-dev · 2021-11-23 15:38
svenpretty sure 0x6 is for the co-processor
#asahi-dev · 2021-11-23 15:38
svenboth of them are somehow power state related
#asahi-dev · 2021-11-23 15:38
svenor something like that
#asahi-dev · 2021-11-23 15:38
sven0x6 and 0xb
#asahi-dev · 2021-11-23 15:38
svenyeah
#asahi-dev · 2021-11-23 15:37
svensounds good
#asahi-dev · 2021-11-23 15:37
svenunrelated, but fwiw SMC actually isn't reset by iBoot but just put into some low power state
#asahi-dev · 2021-11-23 15:35
svenyeah, it's useful
#asahi-dev · 2021-11-23 15:35
sveni've just been reading them using xxd :D
#asahi-dev · 2021-11-23 15:35
svenah, nice
#asahi-dev · 2021-11-23 15:34
svensounds good to me
#asahi-dev · 2021-11-23 15:34
sveni'll give it a try after $work
#asahi-dev · 2021-11-23 15:33
svennot really. right now it crashes just after initializing the admin queue
#asahi-dev · 2021-11-23 15:33
sven*tried
#asahi-dev · 2021-11-23 15:33
sveni have code in there, i just don't remember if I actually tries with a DT that uses it
#asahi-dev · 2021-11-23 15:33
svenuh, maybe. i can try later
#asahi-dev · 2021-11-23 15:32
svenyeah. and also doing some other stuff in a saner way and getting rid of all the PCI cruft
#asahi-dev · 2021-11-23 15:31
sveni'm working on a nvme driver that actually uses it

plus ›