#
…

2022-11-13

00:25millenialhacker has joined #asahi-re
00:33millenialhacker has quit [Ping timeout: 480 seconds]
00:35Dcow has quit [Remote host closed the connection]
00:36Dcow has joined #asahi-re
00:44Dcow has quit [Ping timeout: 480 seconds]
01:08Dcow has joined #asahi-re
01:16Dcow has quit [Ping timeout: 480 seconds]
01:21chadmed has joined #asahi-re
01:44Dcow has joined #asahi-re
01:52Dcow has quit [Ping timeout: 480 seconds]
03:22millenialhacker has joined #asahi-re
03:28pthariensflame has joined #asahi-re
03:30millenialhacker has quit [Ping timeout: 480 seconds]
03:31Dcow has joined #asahi-re
03:39Dcow has quit [Ping timeout: 480 seconds]
03:47amarioguy has quit [Quit: Leaving]
04:08Dcow has joined #asahi-re
04:16Dcow has quit [Ping timeout: 480 seconds]
04:46millenialhacker has joined #asahi-re
04:54millenialhacker has quit [Ping timeout: 480 seconds]
05:04pthariensflame has quit [Quit: Textual IRC Client: www.textualapp.com]
05:18pthariensflame has joined #asahi-re
05:26pthariensflame has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
05:28pthariensflame has joined #asahi-re
05:28pthariensflame has quit []
05:49Dcow has joined #asahi-re
05:57Dcow has quit [Ping timeout: 480 seconds]
06:16Dcow has joined #asahi-re
06:24Dcow has quit [Ping timeout: 480 seconds]
06:24millenialhacker has joined #asahi-re
06:32millenialhacker has quit [Ping timeout: 480 seconds]
06:59SSJ_GZ has joined #asahi-re
08:31millenialhacker has joined #asahi-re
08:39millenialhacker has quit [Ping timeout: 480 seconds]
08:48millenialhacker has joined #asahi-re
09:03chadmed has quit [Remote host closed the connection]
09:44millenialhacker has quit [Remote host closed the connection]
10:20millenialhacker has joined #asahi-re
10:20millenialhacker has quit [Remote host closed the connection]
10:20millenialhacker has joined #asahi-re
12:25Dcow has joined #asahi-re
12:53cylm has joined #asahi-re
17:38millenialhacker has quit [Remote host closed the connection]
17:43millenialhacker has joined #asahi-re
17:45millenialhacker has quit [Remote host closed the connection]
17:45millenialhacker has joined #asahi-re
18:36pthariensflame has joined #asahi-re
18:41nsklaus_ has joined #asahi-re
18:43svenso if anyone wants to help enable usb3 on the M2 here's how: we need the fuses (see e.g. https://github.com/AsahiLinux/linux/blob/d5cd55d580e95c37e7623afef31a84e78065a9ea/arch/arm64/boot/dts/apple/t8103.dtsi#L986) for the M2 atcphy
18:43sventhese are read and applied in AppleT8112TypeCPhy::performEFuseProgramming
18:43sventhat function is very very verbose with debug prints
18:43leafpaw has joined #asahi-re
18:45svenif you decompile it in ghidra you'll see patterns like fuse_full = *(uint *)((this + whatever) + some_offset); fuse_value = (fuse_full >> some_shift) & some_mask;
18:45nsklaus_ has quit [Read error: Connection reset by peer]
18:45nsklaus_ has joined #asahi-re
18:45digicyc2 has quit [Ping timeout: 480 seconds]
18:46pthariensflame has quit [Quit: Textual IRC Client: www.textualapp.com]
18:46millenialhacker has quit [Remote host closed the connection]
18:46millenialhacker has joined #asahi-re
18:46millenialhacker has quit [Remote host closed the connection]
18:46sventhat's then followed up by *(uint *)(atcphy_mmio_ptr + some_offset) = *(uint *)(atcphy_mmio_ptr + some_offset) & some_mask | fuse_value << some_shift;
18:46nsklaus has quit [Ping timeout: 480 seconds]
18:47sventhe first one reads the fuse and extracts some bits, the second one applies the values to the atcphy. the atcphy regs can be matched up with what I have inside atcphy.c and are probably the same
18:47svenafter that you'll always see a very big block which looks like if (this + whatever == something) { .... } and there will be lots of boilerplate in that block
18:48sventhat's all just debug print stuff and can be used to match up the name of the fuse and otherwise ignored
18:49sventhe other alternative to get them is to intercept reads/write to the fuse region and the atcphy fuse regs and play around with a few different patterns to see what gets stored where
18:49sveni've done that for the first two fuses or so before I got fed up, but maybe someone is more patient
18:56millenialhacker has joined #asahi-re
19:04millenialhacker has quit [Ping timeout: 480 seconds]
19:13Dcow_ has joined #asahi-re
19:20Dcow has quit [Ping timeout: 480 seconds]
19:46millenialhacker has joined #asahi-re
19:54millenialhacker has quit [Ping timeout: 480 seconds]
20:09nsklaus_ has quit [Quit: Textual IRC Client: www.textualapp.com]
20:16pthariensflame has joined #asahi-re
20:17pthariensflame has quit []
21:58millenialhacker has joined #asahi-re
22:06millenialhacker has quit [Ping timeout: 480 seconds]
23:00yrlf has quit [Quit: The Lounge - https://thelounge.chat]
23:01yrlf has joined #asahi-re
23:21millenialhacker has joined #asahi-re
23:29millenialhacker has quit [Ping timeout: 480 seconds]
…