#
✕ nick:DannyB
#asahi-dev · 2023-12-01 17:01
DannyBI wonder if there is some lockdown register
#asahi-dev · 2023-12-01 17:01
DannyBInteresting. Any MSR crashes it.
#asahi-dev · 2023-12-01 16:56
DannyBStill can't quite trace macos on m3. Fixed most of the obvious issues, but it crashes executing msr's from the kernel
#asahi-dev · 2023-12-01 13:39
DannyBbut we'll see
#asahi-dev · 2023-12-01 13:39
DannyBI found the debug flags for HPM over SPMI (too lazy to trace it), and it doesn't actually look that bad to make work. It looks at a glance like they do identical things to the ports, just tunneled over SPMI instead of I2C.
#asahi-dev · 2023-11-30 22:36
DannyBlol
#asahi-dev · 2023-11-30 22:36
DannyBthey read all the entries and see which has the state string "running"
#asahi-dev · 2023-11-30 22:36
DannyBactually, xnu does it a super funny way
#asahi-dev · 2023-11-30 22:22
DannyBokay, this will be esay
#asahi-dev · 2023-11-30 22:22
DannyBoh they aren't, duh
#asahi-dev · 2023-11-30 22:22
DannyBi didn't think to check whether the other AFF bits are the cluster and die
#asahi-dev · 2023-11-30 22:21
DannyBooh good question
#asahi-dev · 2023-11-30 22:17
DannyBj`ey: The core number in MPIDR_EL1 is 0.
#asahi-dev · 2023-11-30 22:16
DannyByes, it starts on the first p-core
#asahi-dev · 2023-11-30 22:11
DannyBor something
#asahi-dev · 2023-11-30 22:11
DannyBi guess extract the core/cluster/die ids and see if they match and skip it
#asahi-dev · 2023-11-30 22:11
DannyB(and there does not appear to be like /chosen/primary-cpu or something like that
#asahi-dev · 2023-11-30 22:11
DannyBbut it's not obvious to me how to figure out which of the device tree nodes represents the one we are currently running on.
#asahi-dev · 2023-11-30 22:10
DannyBunlike the other macbook pro's, the m3 max starts on cpu4, and not cpu0. Is there a way to tell which one we are currently on? smp_start_secondaries assumes we start on CPU0, and then crashes trying to start our current CPU :)
#asahi-dev · 2023-11-30 22:08
DannyBSo fun question that should be obvious that isn't
#asahi-dev · 2023-11-30 22:07
DannyBjanneg: I have a feeling the m3 regular is just a chip replacement and nothing else
#asahi-dev · 2023-11-30 22:06
DannyBnicolas17: yes
#asahi-dev · 2023-11-30 17:06
DannyBi never would have figured this out without bouncing things off people here :)
#asahi-dev · 2023-11-30 17:06
DannyBthanks for your help :)
#asahi-dev · 2023-11-30 17:05
DannyBbefore i get much further
#asahi-dev · 2023-11-30 17:05
DannyBOkay, time to package this up in the pr
#asahi-dev · 2023-11-30 17:04
DannyBi can get proxyclient over normal usb
#asahi-dev · 2023-11-30 17:04
DannyBthey work
#asahi-dev · 2023-11-30 16:53
DannyBnot sure i believe it's 2 dies
#asahi-dev · 2023-11-30 16:53
DannyBAIC: AIC3 with 1/2 dies, 2528/4096 IRQs, reg_size:40004 die_stride:04a00
#asahi-dev · 2023-11-30 16:53
DannyBAIC seems off
#asahi-dev · 2023-11-30 16:50
DannyBmy hack maybe worked?
#asahi-dev · 2023-11-30 16:50
DannyBUSB2: initialized at 0x10004dec860
#asahi-dev · 2023-11-30 16:50
DannyBUSB0: initialized at 0x1000702bc30
#asahi-dev · 2023-11-30 16:50
DannyBUSB1: initialized at 0x10004dec2e0
#asahi-dev · 2023-11-30 16:50
DannyBdart: dart /arm-io/dart-usb2 at 0xf02f80000 is a t8110
#asahi-dev · 2023-11-30 16:50
DannyBdart: dart /arm-io/dart-usb1 at 0xb02f80000 is a t8110
#asahi-dev · 2023-11-30 16:50
DannyBdart: dart /arm-io/dart-usb0 at 0x702f80000 is a t8110
#asahi-dev · 2023-11-30 16:49
DannyB;-)
#asahi-dev · 2023-11-30 16:49
DannyBi have the ioreg archive around, but i can get whatever is helpful
#asahi-dev · 2023-11-30 16:48
DannyBwhat format you want the ADT in
#asahi-dev · 2023-11-30 16:48
DannyByeah, that would make sense
#asahi-dev · 2023-11-30 16:46
DannyBsorry, synopsys
#asahi-dev · 2023-11-30 16:46
DannyBI think this is a synopsis based usb-c power delivery controller
#asahi-dev · 2023-11-30 16:45
DannyBi think the sn is synopsis
#asahi-dev · 2023-11-30 16:41
DannyBstaring this doesn't look horribly complicated
#asahi-dev · 2023-11-30 16:41
DannyBthe phys are still compatible with the old one
#asahi-dev · 2023-11-30 16:35
DannyBbeyond my skills :)
#asahi-dev · 2023-11-30 16:35
DannyBso it's just power and interrupt and mode control
#asahi-dev · 2023-11-30 16:34
DannyBthe drd's and such still exist

plus ›