#
#asahi-dev · 2026-07-20 10:30
JamesCalligeros[m]Im good :p
#asahi-dev · 2026-07-20 10:30
chaos_princessit probably will, unless you want to write a rw apfs driver
#asahi-dev · 2026-07-20 10:29
JamesCalligeros[m]No one should be using 12.x so reinstall. For 13.x installs, tbd but hopefully we can work something out that does not require a trip to macos. Maybe.
#asahi-dev · 2026-07-20 10:29
chaos_princessthere should be next to no installs left on it
#asahi-dev · 2026-07-20 10:29
chaos_princessfor 12.x - reinstall
#asahi-dev · 2026-07-20 10:29
Sobek[m]What does a macOS stub update requires ? (Round trip to recovery ? To normal macOS ?)
#asahi-dev · 2026-07-20 10:29
Sobek[m]<JamesCalligeros[m]> "We will get rid of the 12.x fw..." <- How in practice will you deploy this ?
#asahi-dev · 2026-07-20 10:29
sofusyeah thats kinda the same as avd rev3 with its extra 0 commands
#asahi-dev · 2026-07-20 10:28
JamesCalligeros[m]It doesnt actually seem to do anything, but the swap request will be rejected if the buffer is not the right size
#asahi-dev · 2026-07-20 10:27
JamesCalligeros[m]Theyve added like 0x230 extra bytes of 0xaa to the swap/page flip command buffer
#asahi-dev · 2026-07-20 10:27
JamesCalligeros[m]Eh, its unavoidable. We are at Apple’s mercy, and they do stupid shit like move EPIC tags by +/- 1 with each fw release
#asahi-dev · 2026-07-20 10:26
sofusJamesCalligeros[m]: i meant mostly in regards to the macros, but i suppose its fine
#asahi-dev · 2026-07-20 10:25
sven:D
#asahi-dev · 2026-07-20 10:25
JamesCalligeros[m]No way, only fine artisanal barely-functional slop :p
#asahi-dev · 2026-07-20 10:24
sven“Claude, rewrite this DCP driver in rust please” /s
#asahi-dev · 2026-07-20 10:22
JamesCalligeros[m]There was some talk of a rust rewrite ages ago to make this easier
#asahi-dev · 2026-07-20 10:22
JamesCalligeros[m]We will get rid of the 12.x fw and potentially 13.x and keep 14.x once it actually works, and then any future ones as required
#asahi-dev · 2026-07-20 10:21
JamesCalligeros[m]Refer to the m1n1 pr and kernel branch i posted last night :p
#asahi-dev · 2026-07-20 10:18
sofusWe cant really get rid of this because of devices with never versions right? Whats the plan to upstream this? (if there is one)
#asahi-dev · 2026-07-20 10:16
JamesCalligeros[m]The functions kms calls into are wrappers that call the real function based on the fw abi detected by m1n1
#asahi-dev · 2026-07-20 10:16
JamesCalligeros[m]Yeah the abi-sensitive stuff
#asahi-dev · 2026-07-20 10:15
sofusthats cool! This is only for for generating the iomfb things right?
#asahi-dev · 2026-07-20 10:05
chaos_princesshttps://en.wikipedia.org/wiki/X_macro - something like a derivative of this technique
#asahi-dev · 2026-07-20 10:03
JamesCalligeros[m](It builds both lmfao)
#asahi-dev · 2026-07-20 10:03
JamesCalligeros[m]Evil evil evil crimes against the preprocessor
#asahi-dev · 2026-07-20 10:03
sofusi dont really get how dcp's macros work, like how does it know what version to build with?
#asahi-dev · 2026-07-20 10:01
sofusso like defining everything in something like https://github.com/AsahiLinux/linux/blob/f4dd286f7888b348c757b9a2f28dd7bde4c3532b/drivers/media/platform/apple/avd/avd-hevc.c#L448
#asahi-dev · 2026-07-20 10:01
JamesCalligeros[m](Do NOT do this)
#asahi-dev · 2026-07-20 10:01
JamesCalligeros[m]You could do something like dcp :p
#asahi-dev · 2026-07-20 10:01
sofusthis is mostly for the instruction stream definitions
#asahi-dev · 2026-07-20 10:01
sofusthankfully i dont know of any differences
#asahi-dev · 2026-07-20 09:59
JamesCalligeros[m]If there are a silly amount of register differences between variants just put each variant in its own header
#asahi-dev · 2026-07-20 09:59
JamesCalligeros[m]sofus: that approach seems sane enough for registers etc. if it was variants of functions id say to use a function table/avd_ops struct and tie that to the compatible or something like that
#asahi-dev · 2026-07-20 09:51
sofus200 is a guess, if i dont make them shared it will be around 400
#asahi-dev · 2026-07-20 09:50
sofusdifferent things, and they are shared between codecs, but have slighly different meanings
#asahi-dev · 2026-07-20 09:49
LarstiQ200 different kind of things, or v_0 ... v_199?
#asahi-dev · 2026-07-20 09:47
sofusim also bad at names, so having to define more than 200 things kinda scares me :(
#asahi-dev · 2026-07-20 09:45
sofushmm, im trying to plan how to "prettify" the avd driver. rkvdec's approach seem unfeasable for avd, if anyone knows a better approach than define+genmask+field_prep (for register like things) please let me know!
#asahi-dev · 2026-07-20 08:09
chaos_princesschanges for now - need a mwait or an interrupt wait after the spmi wake, spmi regmap is broken for reads of >16bytes (typo).
#asahi-dev · 2026-07-20 08:07
chaos_princessyes
#asahi-dev · 2026-07-20 08:07
yukaoh you're working on M3 atcphy? :>
#asahi-dev · 2026-07-20 08:07
chaos_princessusb is awesome, i managed to somehow wedge the usb stack on host machine with an atc tracer
#asahi-dev · 2026-07-20 07:16
yukacool that you were able to reproduce it :)
#asahi-dev · 2026-07-20 07:14
djtried starting other cores few ways, but its just not responding. excited to tinker more with it tomorrow though
#asahi-dev · 2026-07-20 07:14
djvery cool work on T6050 recently, i was reading the logs here and tried it out on my m5 pro machine. got m1n1 proxy working and basic shell loaded with keyboard
#asahi-dev · 2026-07-19 10:40
chadmedalso you will need to patch the gpu initdata stuff in m1n1 to get this kernel to boot on a 14.x-ed machine. this has been left as an exercise for the reader
#asahi-dev · 2026-07-19 10:39
chadmedi think also the surface skipping/clearing stuff has changed in a breaking way. setting surf_null and friends to true no longer seems to be enough to get dcp to ignore a surface. macos also never sets these anymore
#asahi-dev · 2026-07-19 10:38
chadmedaudio and edid stuff might not work
#asahi-dev · 2026-07-19 10:37
chadmedmost stuff seems to work, didnt test dcpext thoroughly but it boots fine and hpd works
#asahi-dev · 2026-07-19 10:36
chadmedi have updated the m1n1 MR with the latest developments, and pushed a rough kernel branch to https://github.com/chadmed/linux/tree/dcp/14.8.3

plus ›