#
✕ nick:yuka
#asahi-dev · 2026-05-28 14:55
yukaI traced pcie on M3 Max (the 14 core one, T6034 if it matters), but I saw none of the fuses stuff
#asahi-dev · 2026-05-28 12:31
yukabut good enough
#asahi-dev · 2026-05-28 12:30
yukajust the shell is slightly broken then
#asahi-dev · 2026-05-28 12:30
yukaAh, this also works: 2>&1 | tee -i /path/to/log
#asahi-dev · 2026-05-28 12:24
yukanice, thanks
#asahi-dev · 2026-05-28 12:18
yukabut having traces go to another iodev would be nice
#asahi-dev · 2026-05-28 12:18
yukaI guess I'll need to switch over to something more fancy for this
#asahi-dev · 2026-05-28 12:17
yukaI use foot
#asahi-dev · 2026-05-28 12:16
yukaAh well
#asahi-dev · 2026-05-28 12:15
yukaand my scrollback buffer is too small to copy it afterwards
#asahi-dev · 2026-05-28 12:14
yukasince I have to interact with the shell to start it properly, and also piping the output somewhere doesn't seem to work
#asahi-dev · 2026-05-28 12:14
yukaHow do you all record/save your hv traces?
#asahi-dev · 2026-05-28 10:56
yukaBut if I managed to enter device mode in Mac OS, I would now try to focus the regs of the _repeater_ (I2C addr 0x21), and not the hub.
#asahi-dev · 2026-05-28 10:56
yukaFor some reason I can't properly dump the i2c regs using the m1n1 code. Maybe because it doesn't implement the correct i2c reading mode (I know too little about i2c...)
#asahi-dev · 2026-05-28 10:55
yukait is possible that apple's custom variant allows controlling it over i2c
#asahi-dev · 2026-05-28 10:55
yukathe device tree doesn't mention anything of a gpio
#asahi-dev · 2026-05-28 10:54
yukaOn TIUSB2E221 (which is a newer variant of TIUSB2E22 with i2c) the 2x2 crosspoint mux is controlled via a gpio
#asahi-dev · 2026-05-28 10:53
yukabut all variants of ti 2e22 usb repeaters I can find do have a 2x2 crosspoint mux
#asahi-dev · 2026-05-28 10:53
yukabut not the same, since the i2c register map seems to be completely different
#asahi-dev · 2026-05-28 10:52
yukaThe device tree says the usb-repeater is a "ticd2e22", ti = texas instruments, cd = custom design?, it's probably related to this one: https://www.ti.com/lit/ds/symlink/tusb2e221.pdf
#asahi-dev · 2026-05-28 10:51
yukaWe know the usb-hub is a variant of the Via VL122 (https://www.via-labs.com/product_show.php?id=126). While it is not super obvious, it seems unlikely to me now that the upstream/downstream ports of this hub can be reversed.
#asahi-dev · 2026-05-28 10:50
yukaa friend noted that the usb-repeater is likely responsible for bypassing the usb-hub
#asahi-dev · 2026-05-28 10:50
yukaRe macbook neo usb device mode
#asahi-dev · 2026-05-27 17:31
yukawith the new spmi features implemented in linux in some capacity
#asahi-dev · 2026-05-27 17:30
yukaThere is also a branch by mildsunrise
#asahi-dev · 2026-05-27 16:17
yukaSo, it needs more than device tree changes
#asahi-dev · 2026-05-27 16:17
yukaApparently the M3 Air has spmi
#asahi-dev · 2026-05-27 16:16
yukahttps://github.com/AsahiLinux/linux/blob/af7dd7b48f235c040682e23808c4e13ab866a190/arch/arm64/boot/dts/apple/t8122-usbpd-i2c.dtsi
#asahi-dev · 2026-05-27 16:15
yukajsk: did you try the DT from asahi-wip?
#asahi-dev · 2026-05-26 12:32
yukaon some private channel?
#asahi-dev · 2026-05-26 12:31
yukachaos_princess: can I just send you some of the adts with tunables?
#asahi-dev · 2026-05-26 12:04
yukahave to check later, not on a laptop rn
#asahi-dev · 2026-05-26 12:03
yukaand I think m3 max is similar to m4
#asahi-dev · 2026-05-26 01:01
yukaI hope there is a better way
#asahi-dev · 2026-05-26 01:00
yukaSo essentially I would need to keep my own set of mappings and then decide based on that if I go through the IOMapped functions or treat the address in the kernel memory?
#asahi-dev · 2026-05-26 00:58
yukaAnd I can not just go and map it where I need it, because I'm in the shared kernel address space
#asahi-dev · 2026-05-26 00:58
yukaBut IOMemoryDescriptor just maps it somewhere and gives me a special function to map my physical address back to a virtual one
#asahi-dev · 2026-05-26 00:56
yukaIf I understand it correctly, m1n1 enables the mmu and then maps those ranges with virtual address = physical address
#asahi-dev · 2026-05-26 00:49
yukaFor the kextproxy I can do mmio reads/writes fine using IOMapped{Read,Write} but it's a bit of a pain to detect whether something should go through that path or be read directly
#asahi-dev · 2026-05-25 20:03
yukabut then it quickly went away
#asahi-dev · 2026-05-25 20:03
yukawhile the macbook neo was at the login screen
#asahi-dev · 2026-05-25 20:03
yukaI briefly saw an Apple Inc, Mac on my host
#asahi-dev · 2026-05-25 20:00
yukaor not available at all
#asahi-dev · 2026-05-25 20:00
yukaabsent means it's not loaded?
#asahi-dev · 2026-05-25 19:57
yukain case this is useful: after running "./neo-usb-device -p 1 device", I get AppleUSBNCMControl absent and AppleUSBNCMData absent
#asahi-dev · 2026-05-25 19:15
yukahardy94: if you can help me reproduce this in a synchronous debugging session that would be appreciated
#asahi-dev · 2026-05-25 19:14
yukahardy94: I loaded the xdci 'codeless' kexts and did not see a usb device on the mac mini
#asahi-dev · 2026-05-25 09:35
yukaI think next up is a basic uartproxy so that I don't have to reboot this thing for each new dump
#asahi-dev · 2026-05-25 09:35
yukahttps://cyberchaos.dev/yuka/j700-i2c-dump/-/tree/main/i2c <-- pushed the adt, pmgr & i2c code running in a kext
#asahi-dev · 2026-05-25 09:11
yukathere is so much text in the repo that it's difficult to grasp what's relevant for switching to device role and what is not

plus ›