#
✕ nick:integralpilot
#asahi-dev · 2026-01-08 12:28
integralpiloti'll remove the generic compatibles, thanks
#asahi-dev · 2026-01-08 12:28
integralpilotwe don't use the remote registers yet, so i guess they can be removed. i thought it was best to have them documented in case they are needed later but i guess it won't be liked if they are redundant
#asahi-dev · 2026-01-08 12:22
integralpilothttps://gist.github.com/IntegralPilot/5a8b20a7e962d19e973eb00121984e73
#asahi-dev · 2026-01-08 12:19
integralpilothere's the link:
#asahi-dev · 2026-01-08 12:19
integralpiloti've made DT bindings, and if as suggested someone could take a look and make sure they are right i would really appreicate that.
#asahi-dev · 2026-01-08 12:19
integralpiloti think for the first patch series it's best to just add keyboard support and not have firmware and GPIO and everything needed for trackpads so we can merge the core protocol first without overwhelming maintainers
#asahi-dev · 2026-01-08 12:18
integralpilotFINALLY finished MTP yay
#asahi-dev · 2026-01-08 10:24
integralpiloti guess not, i'll leave it out for now
#asahi-dev · 2026-01-08 09:43
integralpilotprobably sending SMC power v2 tonight, does anyone have a preference on emergency_sync() vs no emergency_sync()?
#asahi-dev · 2026-01-08 02:09
integralpilotchecked and looks like when orderly_poweroff(true) fails and tries to force power off, it emergency syncs before the kernel_power_off()
#asahi-dev · 2026-01-08 02:06
integralpiloti'm just asking because i'm making a v2 for SMC power supply and thought of this while looking through the emergency code
#asahi-dev · 2026-01-08 02:05
integralpilotthe 10 seconds power button code has the comment "make sure the NVMe cache is flushed" but doesn't actually do it and just powers off, unless kernel_power_off() also flushes the cache which it doesn't look like
#asahi-dev · 2026-01-08 02:02
integralpilotdoesn't look like it, both just kernel_power_off()
#asahi-dev · 2026-01-08 01:59
integralpilotmight save a bit more user data and prevent fs corruption but not sure
#asahi-dev · 2026-01-08 01:58
integralpiloti guess it depends on if we have time to emergency_sync(), in the power button scenario we have ~4 seconds before SMC kills us, probably less in the case of voltage below design minimum
#asahi-dev · 2026-01-08 01:57
integralpiloti've been doing some research on what to do in emergencies, and maybe for critical voltage and power button hold down for 10 seconds, should we emergency_sync() before kernel_power_off()? both currently just kernel_power_off()
#asahi-dev · 2026-01-07 19:51
integralpilotokay I did research and apparently if we made a JPEG decoder not much software would use it, but video decoders would be used by a LOT of software
#asahi-dev · 2026-01-07 19:45
integralpilotI think a driver for that would be really cool!
#asahi-dev · 2026-01-07 19:44
integralpilotoh interesting!
#asahi-dev · 2026-01-07 19:40
integralpilotI know M3+ has a AVD hardware decoder, not sure about earlier
#asahi-dev · 2026-01-07 19:40
integralpilotoh cool!
#asahi-dev · 2026-01-07 19:37
integralpilotit might be easier to start with static image decoding first, IIRC there’s a hardware JPEG decoder unit but I don’t think there’s a driver yet
#asahi-dev · 2026-01-07 19:31
integralpilotbut doesn’t cause anything besides the extra logs and (maybe) power status taking longer than it should to update when you plug stuff in/out
#asahi-dev · 2026-01-07 19:28
integralpilotand yeah unknown charger event is unrelated, its a thing with newer SMC firmware and currently fixed on the “asahi” branch
#asahi-dev · 2026-01-07 19:27
integralpilotapparently according to Apple a reboot resets the SMC, if you’re plugged in: https://support.apple.com/en-au/102605
#asahi-dev · 2026-01-07 10:47
integralpilotoh sorry just logged on and saw these! glad it could help with A11 stuff, thank you for looking through it! :)
#asahi-dev · 2026-01-07 03:21
integralpilotsorry MTP/dockchannel is taking so long, a lot of the code is hacky and not upstreamable so I’m having to rewrite a lot
#asahi-dev · 2026-01-06 11:01
integralpilotI made DT bindings, probably a good idea to post them here first thanks
#asahi-dev · 2026-01-06 10:57
integralpilotoh if I might be able to help with audio that’s great, yeah mainly core audio and not kernel side, just want to be careful
#asahi-dev · 2026-01-06 10:54
integralpilotoh good luck with that!
#asahi-dev · 2026-01-06 10:53
integralpilothave done a lot of static analysis of coreaudiod and stuff so probably tainted
#asahi-dev · 2026-01-06 10:53
integralpilotI’d love to touch audio stuff seems super interested but don’t think I can cause of my macOS CVEs in that space :(
#asahi-dev · 2026-01-06 10:51
integralpilotspeaking of that, MTP is almost ready, i should be all to send it off before I go to bed tonight
#asahi-dev · 2026-01-06 10:51
integralpilotI guess we’re all doing a bit (and some people a lot, thank you!) and more bits are going upstream
#asahi-dev · 2026-01-06 10:51
integralpilotthat’s really good!!
#asahi-dev · 2026-01-06 08:26
integralpilotsorry pressed enter too soon
#asahi-dev · 2026-01-06 08:26
integralpilotdef merge it then, thank you!
#asahi-dev · 2026-01-06 08:26
integralpilotoh we should
#asahi-dev · 2026-01-06 08:22
integralpilotdoes only MTP use the helper? I assumed other coprocs did but if it’s just MTP might be better to just move that logic to the MTP driver
#asahi-dev · 2026-01-06 06:17
integralpilotoh and i realised the actual reason ANS doesn't use helper/asc stuff is because it has its own SART for memory and doesn't use like the asc SRAM API etc.
#asahi-dev · 2026-01-06 06:16
integralpilotyeah, i think so. thanks for your help
#asahi-dev · 2026-01-06 06:07
integralpilotANS is already upstream because we have rtkit upstream which is all it needs, not the helper/asc stuff
#asahi-dev · 2026-01-06 06:07
integralpiloti think ANS (the NVMe co-proc) uses rtkit but not asc/ascwrap because it's already started
#asahi-dev · 2026-01-06 05:59
integralpiloti'm leaning towards b) because i feel like it's a lot cleaner and keeps the protocol and hardware lifecycle separate
#asahi-dev · 2026-01-06 05:59
integralpilotwe can either a) merge it all into rtkit.c or b) implement an asc-specific backend (e.g., rtkit-asc.c) within the apple-rtkit library
#asahi-dev · 2026-01-06 05:57
integralpiloteither way the current "helper" system is kinda messy and not upstreamable i think
#asahi-dev · 2026-01-06 05:57
integralpilotbut actually maybe now thinking about it they ARE different things and can be updated seperate from each other (i.e. M3 - still uses RTKit 12 but upgrades to ASC hardware protocol 6, though the protocol 4 drivers have been working fine so not sure what it changes) so maybe they shouldnt be merged
#asahi-dev · 2026-01-06 05:52
integralpiloti think it makes sense to merge them since they basically go hand-in-hand
#asahi-dev · 2026-01-06 05:52
integralpilotpreviously the IPC protocol (rtkit.c) and hardware protocol that runs underneath that to map SRAM, control CPU (rtkit-helper.c) were seeprate
#asahi-dev · 2026-01-06 05:29
integralpiloti think we can integrate it into the main rtkit.c

plus ›