2026-06-05
00:38StanfordAppliedCyber[m]there are a lot of knobs to turn off all the apple proprietary stuff
00:38StanfordAppliedCyber[m]as far as i can tell it's at least one sysctl and a bunch of random commpage bits
00:42voidah has quit [Ping timeout: 480 seconds]
00:42Calandracas has joined #asahi-dev
00:44voidah has joined #asahi-dev
00:45Calandracas_ has quit [Ping timeout: 480 seconds]
02:00yurix has quit [Remote host closed the connection]
02:00yurix has joined #asahi-dev
02:17gargantua has quit [Ping timeout: 480 seconds]
02:23Nic[m] is now known as nicllm[m]
02:46tobhe has joined #asahi-dev
02:49ddxtanx has joined #asahi-dev
02:51voidah has quit [Ping timeout: 480 seconds]
02:53tobhe_ has quit [Ping timeout: 480 seconds]
02:58voidah has joined #asahi-dev
03:07voidah has quit [Ping timeout: 480 seconds]
03:14voidah has joined #asahi-dev
03:24MikeM64 has joined #asahi-dev
03:40nicolas17 has quit []
03:44marvin24_ has joined #asahi-dev
03:47cow123 has quit [Remote host closed the connection]
03:47nora_ has joined #asahi-dev
03:47cow123 has joined #asahi-dev
03:48marvin24 has quit [Ping timeout: 480 seconds]
03:49nora has quit [Ping timeout: 480 seconds]
04:22voidah has quit [Ping timeout: 480 seconds]
04:31voidah has joined #asahi-dev
05:30_whitelogger has joined #asahi-dev
05:33habiby has quit [Read error: Connection reset by peer]
05:52violette- has joined #asahi-dev
05:52violette has quit [Read error: Connection reset by peer]
06:00_whitelogger has joined #asahi-dev
06:02voidah has quit [Ping timeout: 480 seconds]
06:10voidah has joined #asahi-dev
07:21voidah has quit [Ping timeout: 480 seconds]
07:29voidah has joined #asahi-dev
07:30StanfordAppliedCyber[m]can i ask why the current chainload.py design exists as is, with a streamed kernelcache over uart?
07:31StanfordAppliedCyber[m]like as i understand it (i've never actaully done it, and only vaguely looked at the code) you specify a path to a kernel cache, you stream that over uart, and then that boots under the hypervisor
07:31StanfordAppliedCyber[m]--> you have to stream a 120mb kernel cache for every experiment
07:31StanfordAppliedCyber[m]as opposed to, say, building a raw boot image where the first 2mb are reserved for m1n1, you then bless a 1tr object containing the kernelcache, then chainload only sends 2mb
07:32StanfordAppliedCyber[m]and then you just boot the kernelcache at some fixed offset
07:32StanfordAppliedCyber[m]this makes kernelcache iterations longer, but those are rare
07:32JamesCalligeros[m]Because thats a pain in the arse, no one wants to go through 1tr every time it needs to change
07:32JamesCalligeros[m]It takes like 2-3 seconds to stream a kcache who cares
07:32StanfordAppliedCyber[m]does it change often though? for me it's only changed once
07:33StanfordAppliedCyber[m]it takes 2-3 seconds? i thought it takes 50+ in a best case
07:33JamesCalligeros[m]Also what if you want to chainload m1n1 itself
07:33StanfordAppliedCyber[m]my debugusb is having issues so i've been running over a 115200 uart
07:33StanfordAppliedCyber[m]wdym you want to chainload m1n1 itself? you just overwrite the first 2mb of m1n1
07:34StanfordAppliedCyber[m]if the kernelcache changes rarely (if this is wrong then correct me) then not having to send it over the wire for every test seems like the obvious decision
07:35chaos_princessall other machines have cdc acm that is much, much faster than uart. so, yes, 3-4 seconds is a good approximation
07:36StanfordAppliedCyber[m]oh, fair enough then
07:36StanfordAppliedCyber[m]is cdc acm that custom hardware dongle that the macvdmtool readme talks about?
07:37chaos_princessno, it is uart protocol, but over usb.
07:37chaos_princessso, runs at usb 2.0 speeds, not uart speeds
07:37chaos_princesscustom dongle is uart, and going that way would take over a minute to send over the kcache
07:38StanfordAppliedCyber[m]okay, and yuka said she got this to work so i'll definitely need to do the same before i upstream this
07:38StanfordAppliedCyber[m]right now i'm doing an even uglier hack than what i mentioned above
07:39freetolga has joined #asahi-dev
07:39ddxtanx has quit [Quit: Konversation terminated!]
07:40JamesCalligeros[m]cdc acm should work once usb over spmi works
07:41JamesCalligeros[m]But i thought we sorted that out already
07:43chaos_princessi think stanford is on neo with it's weird usb topology
07:44nela8 has joined #asahi-dev
07:45asahi has joined #asahi-dev
07:46JamesCalligeros[m]Oh yeah :/
07:49nela has quit [Ping timeout: 480 seconds]
07:49nela8 is now known as nela
07:51ddxtanx has joined #asahi-dev
07:52ddxtanx has quit []
07:57StanfordAppliedCyber[m]that would be correct
07:58StanfordAppliedCyber[m]have other people gotten debugusb to work on neo?
08:03pjv has joined #asahi-dev
08:09ddxtanx has joined #asahi-dev
08:14luma has quit [Ping timeout: 480 seconds]
08:15luma has joined #asahi-dev
08:23pjv has quit [Quit: pjv]
08:25jannauStanfordAppliedCyber[m]: you could create a fat partition and load the kernelcache from there using m1n1's nvme support (not sure if it will work out of the box on a18 pro / macOS 26). that's a less cursed setup than bundling the kernelcache
08:26StanfordAppliedCyber[m]i'm likely going to continue using my cursed setup because it still just works, adding nvme support will be had because there are nvme changes and for obvious reasons i can't contribute those
08:26StanfordAppliedCyber[m]it's just that i want to test the path i upstream
08:26StanfordAppliedCyber[m]and presumably everyone else who ever boots m1n1 hypervisor on the neo will do the normal "stream the kernelcache" thing
08:27jannaufor the debugusb troubles you could test https://github.com/AsahiLinux/kisd which should give you at least 10mbps
08:27StanfordAppliedCyber[m]i've been talking with yuka about kisd, will try, it's not a priority for now because i'm still in the 'make it work' phase (albeit definitely in the final 25%, if not more)
08:28StanfordAppliedCyber[m]we're making significant progress through userspace
08:28StanfordAppliedCyber[m]thanks for the advice here! curse the horrible usb on this thing
08:31jannauI suspect there is a single gpio pin which bypasses the usb hub and allows usb device mode. unfortunately I have no good idea how to find it. likely on the smc pin controller
08:33StanfordAppliedCyber[m]how would we actually use this? like just set some gpio pin --> usb device mode just works?
08:34svendidn't someone already reverse engineer the nvme changes for that newer firmware? or have they changed even more for the neo now?
08:35StanfordAppliedCyber[m]not sure, chaos princess told me we knew what the changes were
08:35svenand as long as there are no further changes to the usb2 phy device mode should mostly just work if you manage to bypass the hub
08:39yukaStanfordAppliedCyber: don't confuse cdc-acm and debugusb. For cdc-acm m1n1 directly drives the main usb phy itself and it appears like any usb-serial adapter on the other side. For debugusb it's a special apple thing and there's another microcontroller in the system doing usb to dockchannel uart internally.
08:44sveni'm pretty sure that microcontroller is yet another core part of the main SoC fwiw. it also exposes SWD/JTAG via that debugusb protocol on development-fused devices
08:46yukaFor spmi pd controllers we'll need a new interface to allow tuxvdmtool to send out VDMs, right?
08:47sveni2c was convenient because you can just send commands from userspace, dunno if that's possible with spmi but i don't think so
08:48svenif that's accepted upstream, yeah. otherwise add a userspace interface to tipd to send commands
08:50sveneither that or create a /dev node like the i2c interface. but i guess sysfs might be easier
08:50svenmight be a good idea to ask the spmi maintainers what they think about a generic i2c-style userspace interface
08:51yuka(https://cyberchaos.dev/yuka/linux/-/commits/tipd-spmi at least loads as a separate module on my system, and is able to turn on the 5V power)
08:51sventhere are also some old commit by jannau somewhere that directly add some sysfs or debugfs or whatever thing to tipd iirc
08:52svenhah, https://cyberchaos.dev/yuka/linux/-/commit/88b7ece864c3a05342a10fa3b82260b18e3271ad is the interface you could use, isn't it? :D
08:53svenif that works maybe just send that as a RFC to the spmi maintianers with our usecase and see what they think
08:54xdeus has joined #asahi-dev
09:37voidah has quit [Ping timeout: 480 seconds]
09:38voidah has joined #asahi-dev
09:59fumnanya has joined #asahi-dev
10:39zyr0z has joined #asahi-dev
10:41zyr0z has quit []
10:49voidah has quit [Ping timeout: 480 seconds]
10:50voidah has joined #asahi-dev
10:55fumnanya has quit [Ping timeout: 480 seconds]
10:55fumnanya has joined #asahi-dev
10:58fumnanya has quit [Remote host closed the connection]
10:59voidah has quit [Ping timeout: 480 seconds]
10:59fumnanya has joined #asahi-dev
11:07voidah has joined #asahi-dev
11:08fumnanya has quit [Ping timeout: 480 seconds]
11:08fumnanya has joined #asahi-dev
11:14madmatt0670 has joined #asahi-dev
11:18madmatt067 has quit [Ping timeout: 480 seconds]
11:18madmatt0670 is now known as madmatt067
11:19lynndotpy72 has quit [Quit: bye bye]
11:19lynndotpy72 has joined #asahi-dev
11:22chadmed has quit [Quit: Konversation terminated!]
11:23chadmed has joined #asahi-dev
11:32fumnanya has quit [Ping timeout: 480 seconds]
11:56first_thunder0 has quit [Ping timeout: 480 seconds]
12:03asahi has quit [Quit: asahi]
12:06first_thunder0 has joined #asahi-dev
12:07asahi has joined #asahi-dev
12:21fumnanya has joined #asahi-dev
12:29fumnanya has quit [Read error: Connection reset by peer]
12:37habiby has joined #asahi-dev
12:58msimonelli_ has joined #asahi-dev
13:05msimonelli has quit [Ping timeout: 480 seconds]
13:12Mrmaxmeier1 has quit [Quit: The Lounge - https://thelounge.chat]
13:15msimonelli has joined #asahi-dev
13:16Mrmaxmeier1 has joined #asahi-dev
13:23msimonelli_ has quit [Ping timeout: 480 seconds]
13:30nela has quit [Quit: bye!]
13:31Jijdejiiedjjiedijede has joined #asahi-dev
13:32alysssa has joined #asahi-dev
13:41alysssa has quit [Remote host closed the connection]
13:47MikeM64 has quit [Ping timeout: 480 seconds]
13:52msimonelli_ has joined #asahi-dev
13:52fumnanya has joined #asahi-dev
13:59msimonelli has quit [Ping timeout: 480 seconds]
14:00nela has joined #asahi-dev
14:00pjv has joined #asahi-dev
14:01asahi has quit [Read error: Connection reset by peer]
14:03xdeus has quit [Quit: Connection closed for inactivity]
14:04fumnanya has quit [Read error: Connection reset by peer]
14:05fumnanya has joined #asahi-dev
14:08xdeus has joined #asahi-dev
14:14fumnanya has quit [Ping timeout: 480 seconds]
14:23fumnanya has joined #asahi-dev
14:26Jijdejiiedjjiedijede has quit [Remote host closed the connection]
14:33pjv has quit [Quit: pjv]
14:38fumnanya has quit [Remote host closed the connection]
14:39fumnanya has joined #asahi-dev
14:43fumnanya has quit [Read error: Connection reset by peer]
14:44fumnanya has joined #asahi-dev
14:52fumnanya has quit [Ping timeout: 480 seconds]
14:59svenhttps://gist.github.com/Artingl/c5e7f9fbb0307f7c236e29e4f1fc1f8e those are the nvme differences
14:59svencmd.cdw12 is just a bug i think because i read the nvme spec wrong and the controller on m1/m2 didn't mind
15:00pjv has joined #asahi-dev
15:11svenso i guess for linux we need to introduce a new compatible with a required apple,firmware-version property and use that for m3+
15:12svenand patch the device trees to the new compatible on m1/m2 if we are running on a newer version *sigh*
15:19svenor maybe just add a new compatible without the apple,firmware-version that only works for the new fw version, dunno what's better
15:22sveni was thinking about adding the minimal fw verison where it changes to the compatible string
15:25jannauwe could switch to new compatible and add unknown_ctrl and linear_sq_ctrl as reg entries or properties but I think that's even worse
15:47pjv has quit [Quit: pjv]
15:54jannauSErrors on M4 with 15.1 and 26.0 with the changes from the gist so hopefully a m4 and later device change and not another firmware change affecting all devices
16:23mattia013_ has joined #asahi-dev
16:27mattia013 has quit [Ping timeout: 480 seconds]
16:27mattia013_ is now known as mattia013
16:42Calandracas_ has joined #asahi-dev
16:42NickChan[m]cdw12 is definitely bug
16:42gargantua has joined #asahi-dev
16:42NickChan[m]supposedly cdw12 = 1 would output 0x2000 bytes worth of data
16:43NickChan[m]that's per nvme specification but on m1 the way m1n1 uses nvme it's still 0x1000 bytes outputted
16:48Calandracas has quit [Ping timeout: 480 seconds]
17:00nickchanabout the firmware revision, it should be possible to tell the firmware version type inside the sart driver from the bootloader entires but that's a hack of epic proportions
17:25xal has quit [Read error: Connection reset by peer]
17:26xal has joined #asahi-dev
18:13xdeus has quit [Quit: Connection closed for inactivity]
18:16gargantua has quit [Ping timeout: 480 seconds]
18:25yukaHow does usb work in u-boot? I can't find any drivers for the apple,cd321x in the u-boot tree
18:31hamr842 has joined #asahi-dev
18:32hamr84 has quit [Read error: Connection reset by peer]
18:32hamr842 is now known as hamr84
18:33yukaThen we also need to do that on the new spmi based ones, and then usb in u-boot might start working
18:37chadmed has quit [Read error: Connection reset by peer]
18:37chadmed has joined #asahi-dev
18:41pjv has joined #asahi-dev
19:11yukamildsunrise, noopwafel: I couldn't immediately find any attempts to implement the spmi transport in m1n1, is this correct?
19:20yukaok so the spmi.c itself is already upstreamed. I would try to re-do the tps6598 transport part based on my tuxvdmtool code to stay clear of any copyright doubts
19:26pb17 has quit [Ping timeout: 480 seconds]
19:28pb17 has joined #asahi-dev
19:30gargantua has joined #asahi-dev
19:30enick_227111 has quit [Ping timeout: 480 seconds]
19:30rhysmdnz1111 has quit [Ping timeout: 480 seconds]
19:35enick_227111 has joined #asahi-dev
19:37rhysmdnz1111 has joined #asahi-dev
20:01asahi has joined #asahi-dev
20:12voidah has quit [Ping timeout: 480 seconds]
20:12voidah has joined #asahi-dev
20:33first_thunder0 has quit [Read error: Connection reset by peer]
20:35first_thunder0 has joined #asahi-dev
21:02first_thunder05 has joined #asahi-dev
21:02first_thunder0 has quit [Ping timeout: 480 seconds]
21:02first_thunder05 is now known as first_thunder0
21:09berdanka has quit [Quit: ZNC - https://znc.in]
21:09mildsunriseyuka: yes, the spmi controller driver is fair game, but hpm/tps9598x you should stay clear... the docs (https://asahilinux.org/docs/hw/peripherals/ace3/) should be enough to implement the spmi transport
21:11cyrinux949075 has quit []
21:12pjv has quit [Quit: pjv]
21:13cyrinux949075 has joined #asahi-dev
21:45voidah has quit [Read error: Connection reset by peer]
21:45voidah has joined #asahi-dev
21:48asahi has quit [Quit: asahi]
21:50yukabut now that we know that this is useful for tuxvdmtool, we have a reason to try to upstream it
21:54jannaucan you create a separate PR for "Factor out i2c bus device". I'd like to merge that for REASONS
22:14nela9 has joined #asahi-dev
22:17nela has quit [Ping timeout: 480 seconds]
22:17nela9 is now known as nela
22:46StanfordAppliedCyber[m]is there anything i can do with my hypervisor to help the nvme thing on a18 pro?
22:47chaos_princesstrace nvme, see what changed compared to the driver
22:47StanfordAppliedCyber[m]i have nvme clearly working in sptm and can get any traces yall could want (we already exercise nvme to mount root)
22:47StanfordAppliedCyber[m]ack i'll post a trace in a sec
22:48hardy94 has joined #asahi-dev
22:48chaos_princesswell, i personally won't be able to use it, no relevant hw
22:49StanfordAppliedCyber[m]yuka and i have been working together
22:49StanfordAppliedCyber[m]i've already given her a bunch of traces for different things (i have no clue why she likes pcie so much but i'm glad she does)
23:10hardy94 has quit [Remote host closed the connection]
23:31msimonelli has joined #asahi-dev
23:33minecrell0 has joined #asahi-dev
23:34minecrell has quit [Remote host closed the connection]
23:38msimonelli_ has quit [Ping timeout: 480 seconds]
23:43revadam has joined #asahi-dev
23:45revadam has quit []
23:45voidah has quit [Ping timeout: 480 seconds]
23:54voidah has joined #asahi-dev