marcan changed the topic of #asahi-re to: Asahi Linux: porting Linux to Apple Silicon macs | Hardware / boot process / firmware interface reverse engineering | WARNING: this channel (only) may contain binary reverse engineering discussion | RE policy: https://alx.sh/re (MANDATORY READ) | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-re
TheJollyRoger has quit [Read error: Connection reset by peer]
DarthCloud has quit [Remote host closed the connection]
TheJollyRoger has joined #asahi-re
DarthCloud has joined #asahi-re
amw has joined #asahi-re
amw has quit [Ping timeout: 272 seconds]
amw has joined #asahi-re
thestr4ng3r has quit [Read error: Connection reset by peer]
thestr4ng3r has joined #asahi-re
thestr4ng3r has quit [Read error: Connection reset by peer]
thestr4ng3r has joined #asahi-re
phiologe has quit [Ping timeout: 264 seconds]
phiologe has joined #asahi-re
brosenz[m] has joined #asahi-re
ransom has joined #asahi-re
Bluerise has quit [Ping timeout: 268 seconds]
_whitelogger has joined #asahi-re
Bluerise has joined #asahi-re
Bluerise has quit [Ping timeout: 240 seconds]
ransom has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_whitelogger has joined #asahi-re
ransom has joined #asahi-re
ransom_ has joined #asahi-re
ransom has quit [Ping timeout: 240 seconds]
_whitelogger has joined #asahi-re
ransom_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maor26 has joined #asahi-re
amw has quit [Ping timeout: 256 seconds]
Tokamak has quit [Ping timeout: 240 seconds]
hir0 has joined #asahi-re
Tokamak has joined #asahi-re
amw has joined #asahi-re
TellowKrinkle[m] has quit [Quit: Idle for 30+ days]
amw has quit [Ping timeout: 240 seconds]
Tokamak has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hir0 has quit [Quit: hir0]
Bluerise has joined #asahi-re
maor26 has quit [Remote host closed the connection]
amw has joined #asahi-re
maor26 has joined #asahi-re
amw has quit [Ping timeout: 256 seconds]
<sven>
so.. has anyone looked into this power management controller yet? I found https://github.com/Siguza/dt which is already helpful
<sven>
but I'm curious about e.g. "Higher bits exist, but for most their meaning is unknown and might change between chip generations."
<sven>
bit 0x300 might be "power is stable" or something like that. after reboot the value might e.g. be 2300. i then set 0xf and the register then reads back as 23ff and eventually 20ff after more time passes
<marcan>
possibly related to clamping/"ready"
<sven>
hrm, I think I actually need to write to the register once more before that 0x300 disappears
<sven>
so the lower 8 bits are [actual][wanted]. 0b1000 and 0b0100 can be enabled independently.
<sven>
0b0010 and 0b0001 can only be enabled when 0b1000 is set I think
<sven>
0x300 seems to behave like a "was disabled" bit
vimal has quit [Ping timeout: 240 seconds]
<sven>
yeah, the 0x300 bits are some kind of "something changed" flag related to the 0b1100 bits
DarthCloud has quit [Remote host closed the connection]
DarthCloud has joined #asahi-re
grumble has quit [Quit: ACCORDING TO ALL KNOWN LAWS OF AVIATION THERE IS NO WAY A BEE SHOULD BE ABLE TO FLY ITS WINGS ARE TOO SMALL TO GET ITS FAT LITTLE BODY OFF THE GROUND THE BEE OF COURSE FLIES ANYWAY BECAUSE BEES DON'T CARE WHAT HUMANS THINK IS IMPOSSIBLE]
Tokamak has joined #asahi-re
grumble has joined #asahi-re
Tokamak has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Tokamak has joined #asahi-re
Tokamak has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jannau>
"RCC Disable Power Save Prf (performance?) Clock Off" needs to be set in EHID for PMC 0/1 to count
<jannau>
not sure what they count though, PMC0 updates at 2.11 GHz and PMC1 updates at 4.158MHz
<jannau>
the configureable performance counters still don't count
Necrosporus has quit [Read error: Connection reset by peer]
Necrosporus has joined #asahi-re
riker77 has quit [Ping timeout: 264 seconds]
<jannau>
it's working now after a reboot. PMC0 seems to be CPU cycles, at least it reports roughly the same value as the configurable CPU_CYCLES counter
<marcan>
jannau: XNU says PMC0 is cycles and PMC1 is instructions
<jannau>
argh, I've missed osfmk/arm64/monotonic_arm64.c. I only looked at osfmk/arm64/kpc.c
riker77 has joined #asahi-re
<modwizcode>
/mark
hwatwasthat[m] has quit [Quit: Idle for 30+ days]
Bluerise has quit [Quit: brb]
Necrosporus has quit [Ping timeout: 256 seconds]
Tokamak has joined #asahi-re
<jannau>
"RCC Disable Power Save Prf (performance?) Clock Off" is unrelated it was just a missing isb
<marcan>
I've noticed several things that need an isb to work
<jannau>
documentaton updated
Necrosporus has joined #asahi-re
ransom has joined #asahi-re
ransom has quit [Client Quit]
zkrx has quit [Ping timeout: 240 seconds]
zkrx has joined #asahi-re
vup has quit [Ping timeout: 246 seconds]
anuejn has quit [Ping timeout: 272 seconds]
anuejn has joined #asahi-re
vup has joined #asahi-re
eta has quit [Quit: we're here, we're queer, connection reset by peer]
eta has joined #asahi-re
TheJollyRoger has quit [Remote host closed the connection]