#
✕ nick:integralpilot
#asahi-dev · 2026-01-25 10:58
integralpilotif we're doing serial as well, it also might be easier to first upstream dockchannel & serial (which is simple), THEN upstream HID
#asahi-dev · 2026-01-25 10:57
integralpilotideally we can probably get it working just using mboxes = <&dockchannel 1>; etc. i think
#asahi-dev · 2026-01-25 10:57
integralpilotit probably works that way, i think (i'll have to prototype and see which i'm doing rn)
#asahi-dev · 2026-01-25 10:54
integralpilotreading through that email many of the issues marcan brought up probably apply to dockchannel too now that i think of it
#asahi-dev · 2026-01-25 10:50
integralpiloti've looked into it more (seeing how the mailbox subsystem works because i wasn't sure!) and it seems actually like a better way of handling it and more ergonomic
#asahi-dev · 2026-01-25 10:49
integralpilotjust finishing power v4 first
#asahi-dev · 2026-01-25 10:49
integralpilothmm okay, i'll prototype re-writing it that way
#asahi-dev · 2026-01-25 10:48
integralpilotthat would probably actually work better
#asahi-dev · 2026-01-25 10:48
integralpilotsven: i guess that could work, but we would need to make sure the callbacks etc. are in a threaded IRQ context
#asahi-dev · 2026-01-25 10:45
integralpilotif you make it not a contorller anymore, you can't give an IRQ number to the serial driver, as the AIC one is for all events
#asahi-dev · 2026-01-25 10:45
integralpilotwith the system of it acting as its own interrupt controller & abstracting away the multiplexing it's easier to say, oh serial, your IRQ is #3 (or whatever) on the dockchannel
#asahi-dev · 2026-01-25 10:44
integralpilotsven: the way you proposed getting rid of the IRQ stuff would work for HID, but it would probably break serial as i think serial8250 (or similar) expects to be able to bind to an IRQ
#asahi-dev · 2026-01-25 10:38
integralpilotno, you don't. if you add it to power-domains property on each node it should turn them on as needed
#asahi-dev · 2026-01-25 10:36
integralpilotoh sorry was AFK!
#asahi-dev · 2026-01-25 10:23
integralpilotto my understanding, at least
#asahi-dev · 2026-01-25 10:23
integralpilotsven: it's its own interrupt controller because it only has one interrupt line to AIC (as opposed to the many internal events that can occur) and uses mulitplexing to then indicate which even actually occured, rather than having a sepereate AIC interrupt for each of these
#asahi-dev · 2026-01-25 10:18
integralpilotwell we've already changed the dts representation so far so will need to change u-boot anyway, so might as well make it perfect
#asahi-dev · 2026-01-25 10:16
integralpiloti think we could just have the HID device as a child of soc and then refer to the dockchannel within mboxes
#asahi-dev · 2026-01-25 10:12
integralpilotwe could change the structure if the current way doesn't look right, what would you propose?
#asahi-dev · 2026-01-25 10:12
integralpiloti don't think MTP does anything non-HID, i think it's point is to just regular internal HID events, though might be wrong
#asahi-dev · 2026-01-25 10:05
integralpilotdoing SMC power stuff now and will send v4 on list shortly
#asahi-dev · 2026-01-25 10:05
integralpilotjust posted updated dockchannel/MTP draft to branch
#asahi-dev · 2026-01-25 10:05
integralpilotyay for shell, great work fl0_id! :)
#asahi-dev · 2026-01-24 13:10
integralpilotanyway gtg now, thank you for your help!
#asahi-dev · 2026-01-24 13:10
integralpilotoh btw that DT is the new format with MTP fully merged in, can send old format if you'd prefer
#asahi-dev · 2026-01-24 13:09
integralpilotif nonposted-mmio isn't needed on M2 for whatever reason fine to remove it from there, just confused that in all my testing its needed for M3
#asahi-dev · 2026-01-24 13:09
integralpilotworks perfectly fine when it's added
#asahi-dev · 2026-01-24 13:09
integralpilotwithout nonposted-mmio we get SError at coproc-asc + 0x44 for some reason.
#asahi-dev · 2026-01-24 13:08
integralpilotjannau: tried AGAIN and it STILL needs nonposted-mmio. here's the DT (just minimal boot & MTP to minimise the issue i'm using): https://gist.github.com/IntegralPilot/74448a31fbae11a76f489d26f2a01fe7
#asahi-dev · 2026-01-24 12:11
integralpiloti just virtual when it's needed (like i do dmesg > /dev/ttySAC0 in my init script to get all the logs due to fb scrolling)
#asahi-dev · 2026-01-24 12:10
integralpiloti don't think i've even enabled physcial serial in my DT
#asahi-dev · 2026-01-24 12:10
integralpilotyou can just used virtual serial then i think
#asahi-dev · 2026-01-24 12:08
integralpilotdoes HV virtual serial not work as well?
#asahi-dev · 2026-01-24 12:08
integralpilotyeah
#asahi-dev · 2026-01-24 12:07
integralpiloteven with m1n1?
#asahi-dev · 2026-01-24 12:06
integralpilot(i think, might be remembering wrong as i use HV mostly)
#asahi-dev · 2026-01-24 12:06
integralpiloton the screen
#asahi-dev · 2026-01-24 12:06
integralpilotwe manually added the iBoot framebuffer so they should see output to it when booting baremetal. at least i do
#asahi-dev · 2026-01-24 12:03
integralpilotboth are really easy to set up lmk if you need help
#asahi-dev · 2026-01-24 12:03
integralpilotyou can do just busybox or alpine mini root fs
#asahi-dev · 2026-01-24 12:02
integralpilotperfect! time to add a rootfs
#asahi-dev · 2026-01-24 12:00
integralpiloti did fb first then added serial later once it was booting all the way, but if you'd like to get serial working all the way first that's ok too
#asahi-dev · 2026-01-24 11:59
integralpilotfl0_id__ maybe remove serial and change the default output to the iBoot framebuffer (i added this to the DT i made for you) just to see if it will boot all the way
#asahi-dev · 2026-01-24 10:44
integralpilotoriginally sven suggested just adding it to aic2 iirc
#asahi-dev · 2026-01-24 10:41
integralpilotslight less annoyance when working on M3 upstream stuff to not have to worry about applying AIC3 patches
#asahi-dev · 2026-01-24 10:41
integralpilotyay!!
#asahi-dev · 2026-01-24 07:41
integralpilotchaos_princess does AOP stuff i'm pretture sure so can probably explain what's going on. i think currently it's WIP so not ready yet.
#asahi-dev · 2026-01-24 07:40
integralpilotarchiemeng: looking at the code on the current asahi branch, the ALS driver expects a devicetree property apple,als-calibration but we don't define it (or set it dynamically in m1n1) anywhere for any device
#asahi-dev · 2026-01-24 04:56
integralpilotalso if you ^C after the hang in the HV, can you give the traceback (bt command)? might help figure out where it is stalling
#asahi-dev · 2026-01-24 04:56
integralpilotif you remove all arguments about serial (just have the arg "debug") and just have it write to the iBoot framebuffer, do you see anything?

plus ›