ChanServ changed the topic of #asahi-re to: Asahi Linux: porting Linux to Apple Silicon macs | Hardware / boot process / firmware interface reverse engineering | WARNING: this channel (only) may contain binary reverse engineering discussion | RE policy: https://alx.sh/re (MANDATORY READ) | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-re
quarkyalice_ has joined #asahi-re
quarkyalice has quit [Ping timeout: 480 seconds]
yuyichao has joined #asahi-re
<alyssa> what is imx?
<alyssa> I don't see it in the adt
<alyssa> ..except for one big power-domains blob. right ok
<alyssa> i guess that was from XNU debug spam
<marcan> alyssa: dump_pmgr.py
<alyssa> ack
<alyssa> ...that seems to list both clkgates *and* pwrgates?
<marcan> yes
<marcan> and devices
<marcan> which is where this comes from
<alyssa> thanks ok this makes sense now 👍
<alyssa> (and more importantly I see how to add DT nodes for e.g GPIo now)
phiologe has quit [Ping timeout: 480 seconds]
<marcan> wait I just found something lol
<marcan> ./AppleT8301USB.kext/Contents/MacOS/AppleT8301USB
<marcan> T8301
<marcan> not T8103
<marcan> ... is that the next SoC?
<marcan> AppleRSM.kext/Contents/Info.plist: <string>rsm,t8301</string>
<sven> uh
<marcan> I think they messed up including those, lol
<marcan> no other references
<sven> :D
<marcan> oh wait no
<marcan> well okay
<sven> ah, makes sense i guess
<marcan> so there is this stuff
<marcan> %06lu.%06u Unknown@Unknown: %s::%s: AUSBC_CFG_USB2PHY_BLK_USB2PHY_CTL.USB2PHY_SIDDQ = 0x%x
<marcan> %06lu.%06u %s@%s: %s::%s: AUSBC_CFG_USB2PHY_BLK_USB2PHY_CTL.USB2PHY_RESET = 0x%x
<marcan> %06lu.%06u %s@%s: %s::%s: AUSBC_CFG_USB2PHY_BLK_USB2PHY_CTL.USB2PHY_PORT_RESET = 0x%x
<marcan> %06lu.%06u Unknown@Unknown: %s::%s: AUSBC_CFG_USB2PHY_BLK_USB2PHY_CTL.USB2PHY_RESET = 0x%x
<marcan> %06lu.%06u Unknown@Unknown: %s::%s: AUSBC_CFG_USB2PHY_BLK_USB2PHY_CTL.USB2PHY_PORT_RESET = 0x%x
<sven> yes
<sven> that's what i used for the partial reset
<marcan> and also this
<marcan> %06lu.%06u %s@%s: %s::%s: changing USB mode to host
<marcan> %06lu.%06u Unknown@Unknown: %s::%s: changing USB mode to host
<marcan> %06lu.%06u %s@%s: %s::%s: AUSBC_CFG_USB2PHY_BLK_USB_CTL.USB_MODE = 0x%x
<marcan> %06lu.%06u Unknown@Unknown: %s::%s: AUSBC_CFG_USB2PHY_BLK_USB_CTL.USB_MODE = 0x%x
<marcan> %06lu.%06u %s@%s: %s::%s: changing USB mode to device
<sven> which works most of the time
<marcan> %06lu.%06u Unknown@Unknown: %s::%s: changing USB mode to device
<marcan> %06lu.%06u %s@%s: %s::%s: changing USB mode to isolation
<marcan> %06lu.%06u Unknown@Unknown: %s::%s: changing USB mode to isolation
<marcan> "isolation"
<marcan> wonder if switching to that and back would work
<sven> it's part of a "full" reset cycle fwiw
<marcan> right
<marcan> I wonder if your problem is that you're resetting "too" much
<marcan> like, something you do breaks xhci
<sven> yeah, possibly
<marcan> and maybe there's some other way that is less big hammer
<marcan> and just gets the eUSB2 crap to work
<sven> the weird thing is that right now that mode selection it set to uhh.... device mode anyway I think. and host mode still works
<sven> i've tried switching it to host mode before entering linux though and that didn't change anything
<marcan> heh
<marcan> maybe try isolation and back?
<sven> but i can try and see what happens if i just do host -> isolation -> host
<marcan> yeah
<sven> i was seriously surprised when kettenis told me he just got those usb ports working in openbsd
<marcan> also maybe do some delays in between
<marcan> heh
<sven> because i assumed until then I had to switch it to host mode :D
<marcan> well, maybe it still matters for subtler stuff
<marcan> :p
<marcan> or maybe it doesn't and that mode actually gets passed through from dwc3
<sven> yeah, possibly
<marcan> still, isolation is worth looking at
<sven> i first though it would matter for usb3 but then again, usb3 phy seems to be more in the register the kext prefixes with CIO iirc
<sven> yeah, sure
<marcan> yeah
<sven> unrelated to this, there's also a way to break gadget mode completely that alyssa ran into
<sven> apparently if you disconnect the gadget cable linux will first WARN_ON because it couldn't issue a stop transfer command and from then on the port just refuses to work at all
<sven> even when you switch back to host and reinit xhci
X-Scale has joined #asahi-re
X-Scale` has quit [Ping timeout: 480 seconds]
<marcan> interesting
robinp_ is now known as robinp
chadmed has joined #asahi-re
yuyichao has quit [Ping timeout: 480 seconds]
yuyichao has joined #asahi-re
jbowen has quit [Quit: leaving]
phiologe has joined #asahi-re
roxfan has joined #asahi-re
yuyichao has quit [Ping timeout: 480 seconds]