#asahi-dev · 2026-05-04 16:50
yukathe adt has "no-restore-gpio-pins = [0x0000003100000086, 0x0000003300000032]"#asahi-dev · 2026-05-04 16:48
yukathe regmap cache does that in pinctrl probe#asahi-dev · 2026-05-04 16:48
yukaattempting to read32(0x31a000218) SErrors#asahi-dev · 2026-05-04 16:47
yukaps_gpio is on#asahi-dev · 2026-05-04 16:47
yukaThe pinctrl_ap is supposedly at 0x31a000000#asahi-dev · 2026-05-04 16:46
yukahmmmm#asahi-dev · 2026-05-04 15:57
yukahttps://yuyu.yuka.dev/public/2026-05-04-17_56-j700-dump_pmgr2.log#asahi-dev · 2026-05-04 15:57
yuka(index)#asahi-dev · 2026-05-04 15:57
yukaand before that is the reg#asahi-dev · 2026-05-04 15:57
yukaOk I think I got it: the last 24 bits of unk2_1 are the offset#asahi-dev · 2026-05-04 15:27
yukayep#asahi-dev · 2026-05-04 15:25
jannauprobably a different reg then#asahi-dev · 2026-05-04 15:22
yukaThe thing it errors on is DEBUG_GATED which has an offset (unk2_1) out of range of the primary pmgr and was also in pmgr_mini on M3#asahi-dev · 2026-05-04 15:19
jannauiirc dump_pmgr also SErrors on some things on t60xx#asahi-dev · 2026-05-04 15:17
yukathis is looking excellent#asahi-dev · 2026-05-04 15:16
yukathe things I get up to the SError match what I would expect as the primary pmgr nodes#asahi-dev · 2026-05-04 15:15
yukaAha#asahi-dev · 2026-05-04 14:09
chaos_princessthe kernel has a function called PE_i_can_has_debugger or sth like that, just make it return true#asahi-dev · 2026-05-04 14:08
nickchanso instead you need to modify the kernel itself#asahi-dev · 2026-05-04 14:08
nickchanyou can't modify the device tree binary#asahi-dev · 2026-05-04 14:08
nickchanno#asahi-dev · 2026-05-04 14:08
yukaso I just disable boot security, go to the preboot or whatever partition and start editing the devicetree binary?#asahi-dev · 2026-05-04 14:07
yukauhm#asahi-dev · 2026-05-04 14:07
nickchanyuka: im pretty sure that's /chosen/debug-enabled property to 1 in adt#asahi-dev · 2026-05-04 14:06
yukacan you point me somewhere for how to do this?#asahi-dev · 2026-05-04 14:06
yuka> enabling i_can_has_debugger#asahi-dev · 2026-05-04 14:04
chaos_princessif you can set custom xnu args - try enabling i_can_has_debugger, add this thing to kernel command line "pmgr-debug=0xffffffff pmgr-debug-devices=0xffffffff pmgr-debug-always-on=0xffffffff pmgr-debug-energy-model=0xffffffff pmgr-debug-restore-counter=1 pmgr-trace=1 -disable_mtx_chk" and see what it prints on console#asahi-dev · 2026-05-04 13:55
yuka(obviously not since it starts SErroring halfway into the dump)#asahi-dev · 2026-05-04 13:53
yukanot saying it's correct or the entire solution#asahi-dev · 2026-05-04 13:53
yukaunk2_1 seemed interesting, and using it as an offset into pmgr.get_regs(0)[0] looks promising#asahi-dev · 2026-05-04 13:52
yukaid2 is just counting up as previously#asahi-dev · 2026-05-04 13:52
yukaI looked at the properties of the pmgr devices entries#asahi-dev · 2026-05-04 13:52
yukahttps://yuyu.yuka.dev/public/2026-05-04-15_51-j700-dump_pmgr.log#asahi-dev · 2026-05-04 13:50
yukaI was going to send the text file#asahi-dev · 2026-05-04 13:50
yukaWhoops#asahi-dev · 2026-05-04 11:47
svenyes#asahi-dev · 2026-05-04 11:41
yukaAh nice so when enabling the debugusb you can choose which pins to put it on, and currently tuxvdmtool simply puts it on the normal data pins but you could also put it on some unused pins to continue using the data pins normally?#asahi-dev · 2026-05-04 11:38
jannaupossible that usb2 can bypass the hub#asahi-dev · 2026-05-04 11:37
jannauthe neo has https://www.ti.com/product/TUSB2E22 which has a mux and is reachable via i2c#asahi-dev · 2026-05-04 11:35
NickChan[m]But I expect if you do that, the other port won't work at all#asahi-dev · 2026-05-04 11:34
NickChan[m]which according to Apple's website should be the USB3 port#asahi-dev · 2026-05-04 11:33
jannauhttps://asahilinux.org/docs/hw/soc/usb-pd/#pin-sets and information how USB-C orientation symmetry works. It will need hardware since those pins are not connected in any standard usb cable#asahi-dev · 2026-05-04 11:30
NickChan[m]The Neo must somehow be able to do device mode during a DFU reatore #asahi-dev · 2026-05-04 11:14
yukacan you explain that a bit more? is this something we can do through software(#asahi-dev · 2026-05-04 11:13
yuka> map debugusb to the non-connected usb2 pins#asahi-dev · 2026-05-04 11:07
jannauno, that still prevents you from using usb under HV#asahi-dev · 2026-05-04 11:05
jannauand use the neo's usb2 port#asahi-dev · 2026-05-04 11:03
chaos_princessor make the host machine enter the device mode#asahi-dev · 2026-05-04 10:54
jannauI think the best bet for the neo is to map debugusb to the non-connected usb2 pins (needs a special cable / breakout board)#asahi-dev · 2026-05-04 10:52
chadmedcan we just wait and see if the neo 2 is less cursed :P