#
✕ nick:sven
#asahi-dev · 2026-05-17 08:16
svendid you figure out where the addresses you have to read from come from? i thought they were in that initial 0x8000 or whatever block but those didn't work for m3 then
#asahi-dev · 2026-05-17 08:15
svenyeah, the macos driver is a bit weird and you can it stuck very easily
#asahi-dev · 2026-05-17 08:02
sveni.e. pick up power, pwm and arm
#asahi-dev · 2026-05-17 08:02
sveni just have to skip watchdog, don't i?
#asahi-dev · 2026-05-17 07:59
svenjannau: can i pick up v3 of the m3 device tree series?
#asahi-dev · 2026-05-15 13:19
sventhat's why comparing macos vs linux with the same tracer is usually very helpful
#asahi-dev · 2026-05-15 13:19
svendepending on how finicky the hardware is even some simple difference can make it not work at all fwiw
#asahi-dev · 2026-05-14 19:22
sventhat one
#asahi-dev · 2026-05-14 19:22
svenapcieC
#asahi-dev · 2026-05-14 19:22
svenbah
#asahi-dev · 2026-05-14 19:22
sven*acpcieC
#asahi-dev · 2026-05-14 19:22
sventhe tbt controller is usually acpieC fwiw
#asahi-dev · 2026-05-14 12:35
svencpu_m{0,1,2} is just confusing imho
#asahi-dev · 2026-05-14 12:35
svenm1n1 current uses donan ({e,p}-core) code and i'd just add -s core there
#asahi-dev · 2026-05-14 12:28
svenguess we'll just stick to everest/sawtooth and just continue with donan (e-core)/donan (p-core) etc. since those really don't seem to have separate codenames anymore
#asahi-dev · 2026-05-14 12:27
svenwhat a mess
#asahi-dev · 2026-05-10 18:00
sveniirc the parses took data packets exported from wireshark as json
#asahi-dev · 2026-05-10 17:59
svenmy plan was to write something that watches for apple debug devices and then uses FUSE/CUSE to expose some /dev/tty.applekis.whatever devcies
#asahi-dev · 2026-05-10 17:58
svenhttps://f.svpe.de/2f3b03f14a51fea811f6edc9685b92599558ccb7c08a6ba85039800983fc2703_kis.py.txt
#asahi-dev · 2026-05-10 17:57
svenah, looks like the python code is even on this machine that i have with me: https://f.svpe.de/94abc21820b8833bce0fec48dac352e99138910b23dddcd83d644a84bc629a9b_kis-test.py.txt
#asahi-dev · 2026-05-10 17:53
svenwhen i tried with wireshark on macos half of the messages from the host were missing
#asahi-dev · 2026-05-10 17:29
svennot any working code, but i can upload the full traces i have and my python parser for those
#asahi-dev · 2026-05-10 17:28
svenyuka: remind me tomorrow evening and i can push the stuff i have somewhere
#asahi-dev · 2026-05-10 17:28
svenyuka: wireshark doesn't capture the full thing because macos is dumb, you need a real usb analyzer
#asahi-dev · 2026-05-10 17:27
svennickchan: nested virt. put SPTM into GL1/fake-GL2 and the exclave kernel into real GL1 and m1n1 into real GL2
#asahi-dev · 2026-05-10 11:03
sventrue, that could work
#asahi-dev · 2026-05-10 10:20
svenbut if emulation works for m4 and a18 that’s already great!
#asahi-dev · 2026-05-10 10:20
svenM5 is gonna be much more annoying with the secure kernel and exclaves anyway, not sure how feasible emulation is gonna be there
#asahi-dev · 2026-05-10 10:19
svenif it’s much more we‘ll see how to deal with it once we get there
#asahi-dev · 2026-05-10 10:18
sven1000 ofc, 1000k lines would be a bit too much :D
#asahi-dev · 2026-05-10 10:17
svenlet’s see how much SPTM emulation actually requires, if it’s really just ~100-1000k lines the write documentation and then someone else implements it is gonna be fine
#asahi-dev · 2026-05-10 10:16
svenWe’re not gonna do linked program crap. That’s just gonna encourage asm2c
#asahi-dev · 2026-05-10 08:47
sventhat crap is exactly what we want to avoid
#asahi-dev · 2026-05-10 08:46
svenyeah, no.
#asahi-dev · 2026-05-10 06:30
sven SPTM is the same as any kext wrt to that policy
#asahi-dev · 2026-05-10 06:29
sven*emulate
#asahi-dev · 2026-05-10 06:29
svenyou’ll also run into some other Apple ISA extensions you’ll have to trap and emulator fwiw but that’s true for every other way as well
#asahi-dev · 2026-05-10 06:28
svendon’t get me wrong, the approach will probably work but we really don’t want to enter any legally questionable areas with this project
#asahi-dev · 2026-05-10 06:27
svenI‘m especially not gonna accept any MR like that from a new contributor, see the binary reversing policy for details
#asahi-dev · 2026-05-10 06:26
svenim afraid it’ll just end up as asm2c otherwise
#asahi-dev · 2026-05-10 06:26
svenreversing SPTM and reimplementing that in m1n1 is very legally challenging unless you write a documentation inbetween and have someone else write the emulator
#asahi-dev · 2026-05-09 12:31
sveni have some notes somewhere how the protocol works
#asahi-dev · 2026-05-09 12:30
svenyes
#asahi-dev · 2026-05-09 11:32
svenreally needs to find some time to finish writing asahi-kisd :(
#asahi-dev · 2026-05-05 15:21
sventhe boot mode on m4 before macOS 26 was just broken fwiw
#asahi-dev · 2026-05-05 15:20
svent6050 is some m5, isn't it? i hope they didn't break the non-entitled boot mode again :(
#asahi-dev · 2026-05-05 06:33
svenand then lspci is just going to work on linux
#asahi-dev · 2026-05-05 06:33
sventhen the pcie driver needs some adjustments to bring up that side of the tunnel
#asahi-dev · 2026-05-05 06:33
svenfirst NHI needs to see the connection and bring up the tbt tunnels
#asahi-dev · 2026-05-05 06:33
svenuh, i don't see how visualising will help

plus ›