#
…

2021-09-24

00:20quarkyalice_ has joined #asahi-re
00:21quarkyalice has quit [Ping timeout: 480 seconds]
01:16yuyichao has joined #asahi-re
01:18alyssawhat is imx?
01:18alyssaI don't see it in the adt
01:18alyssa..except for one big power-domains blob. right ok
01:18alyssai guess that was from XNU debug spam
01:19marcanalyssa: dump_pmgr.py
01:21alyssa...that seems to list both clkgates *and* pwrgates?
01:22marcanand devices
01:22marcanwhich is where this comes from
01:23alyssathanks ok this makes sense now 👍
01:23alyssa(and more importantly I see how to add DT nodes for e.g GPIo now)
02:29phiologe has quit [Ping timeout: 480 seconds]
06:10marcanwait I just found something lol
06:10marcan./AppleT8301USB.kext/Contents/MacOS/AppleT8301USB
06:10marcannot T8103
06:10marcan... is that the next SoC?
06:11marcanAppleRSM.kext/Contents/Info.plist: <string>rsm,t8301</string>
06:11marcanI think they messed up including those, lol
06:11marcanno other references
06:11marcanoh wait no
06:11marcanwell okay
06:11svenah, makes sense i guess
06:13marcanso there is this stuff
06:13marcan%06lu.%06u Unknown@Unknown: %s::%s: AUSBC_CFG_USB2PHY_BLK_USB2PHY_CTL.USB2PHY_SIDDQ = 0x%x
06:13marcan%06lu.%06u %s@%s: %s::%s: AUSBC_CFG_USB2PHY_BLK_USB2PHY_CTL.USB2PHY_RESET = 0x%x
06:13marcan%06lu.%06u %s@%s: %s::%s: AUSBC_CFG_USB2PHY_BLK_USB2PHY_CTL.USB2PHY_PORT_RESET = 0x%x
06:13marcan%06lu.%06u Unknown@Unknown: %s::%s: AUSBC_CFG_USB2PHY_BLK_USB2PHY_CTL.USB2PHY_RESET = 0x%x
06:13marcan%06lu.%06u Unknown@Unknown: %s::%s: AUSBC_CFG_USB2PHY_BLK_USB2PHY_CTL.USB2PHY_PORT_RESET = 0x%x
06:13sventhat's what i used for the partial reset
06:14marcanand also this
06:14marcan%06lu.%06u %s@%s: %s::%s: changing USB mode to host
06:14marcan%06lu.%06u Unknown@Unknown: %s::%s: changing USB mode to host
06:14marcan%06lu.%06u %s@%s: %s::%s: AUSBC_CFG_USB2PHY_BLK_USB_CTL.USB_MODE = 0x%x
06:14marcan%06lu.%06u Unknown@Unknown: %s::%s: AUSBC_CFG_USB2PHY_BLK_USB_CTL.USB_MODE = 0x%x
06:14marcan%06lu.%06u %s@%s: %s::%s: changing USB mode to device
06:14svenwhich works most of the time
06:14marcan%06lu.%06u Unknown@Unknown: %s::%s: changing USB mode to device
06:14marcan%06lu.%06u %s@%s: %s::%s: changing USB mode to isolation
06:14marcan%06lu.%06u Unknown@Unknown: %s::%s: changing USB mode to isolation
06:14marcan"isolation"
06:14marcanwonder if switching to that and back would work
06:14svenit's part of a "full" reset cycle fwiw
06:14marcanI wonder if your problem is that you're resetting "too" much
06:14marcanlike, something you do breaks xhci
06:15svenyeah, possibly
06:15marcanand maybe there's some other way that is less big hammer
06:15marcanand just gets the eUSB2 crap to work
06:16sventhe weird thing is that right now that mode selection it set to uhh.... device mode anyway I think. and host mode still works
06:17sveni've tried switching it to host mode before entering linux though and that didn't change anything
06:17marcanmaybe try isolation and back?
06:17svenbut i can try and see what happens if i just do host -> isolation -> host
06:17sveni was seriously surprised when kettenis told me he just got those usb ports working in openbsd
06:17marcanalso maybe do some delays in between
06:18svenbecause i assumed until then I had to switch it to host mode :D
06:18marcanwell, maybe it still matters for subtler stuff
06:18marcanor maybe it doesn't and that mode actually gets passed through from dwc3
06:18svenyeah, possibly
06:18marcanstill, isolation is worth looking at
06:19sveni 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
06:19svenyeah, sure
06:20svenunrelated to this, there's also a way to break gadget mode completely that alyssa ran into
06:20svenapparently 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
06:21sveneven when you switch back to host and reinit xhci
08:18X-Scale has joined #asahi-re
08:23X-Scale` has quit [Ping timeout: 480 seconds]
09:10marcaninteresting
09:24robinp_ is now known as robinp
09:30chadmed has joined #asahi-re
14:36yuyichao has quit [Ping timeout: 480 seconds]
14:52yuyichao has joined #asahi-re
14:53jbowen has quit [Quit: leaving]
16:42phiologe has joined #asahi-re
17:10roxfan has joined #asahi-re
18:44yuyichao has quit [Ping timeout: 480 seconds]
…