#asahi-dev · 2026-06-26 09:23
integralpilotill find out which#asahi-dev · 2026-06-26 09:23
integralpilotor m1n1 might be triggering a false positive#asahi-dev · 2026-06-26 09:23
integralpilotwe might have the addresses wrong in the dt then?#asahi-dev · 2026-06-26 09:21
integralpiloti found why! m1n1 does dt_disable_missing_devs("i2c", "i2c@", 8) which is marking our i2c nodes are missing and then disabling them#asahi-dev · 2026-06-26 08:40
integralpilotso it seems m1n1 is disabling?#asahi-dev · 2026-06-26 08:40
integralpilotand they are showing disabled from /sys/firmware/devicetree/base but enabled (seemingly) in what i build#asahi-dev · 2026-06-26 08:40
integralpilotspeakers on i2c1 and i2c3#asahi-dev · 2026-06-26 08:35
integralpilotbut from the live system /sys/firmware/devicetree/base, it shows as disabled when i decompile it#asahi-dev · 2026-06-26 08:35
integralpilotin t8122.dtsi yep, but then we do status = "okay" in t8122-jxxx.dtsi#asahi-dev · 2026-06-26 08:26
integralpilotit seems the i2c driver isnt probing???#asahi-dev · 2026-06-26 07:41
integralpiloti'll see how to fix#asahi-dev · 2026-06-26 07:41
integralpilotokay so with the clock fix, now mca successfully probes, but macaudio doesn't yet, there's a new error#asahi-dev · 2026-06-26 07:22
integralpilotthanks! will do#asahi-dev · 2026-06-26 07:21
integralpilotwill outdated speakersafetyd be a problem? i think i still got the one from janurary#asahi-dev · 2026-06-26 07:21
integralpilotmaybe i will test headphone jack first#asahi-dev · 2026-06-26 07:21
integralpilotim scared to cause i dont want them to blow up!#asahi-dev · 2026-06-26 07:17
integralpilotcomparing to t8112, i think its missing "<&nco 4>, <&nco 4>" will test now#asahi-dev · 2026-06-26 07:16
integralpilotjannau: the MCA nodes you pushed to asahi-wip for t8122 aren't right i think, for me it complains about not enough clocks and fails to probe#asahi-dev · 2026-06-26 07:04
integralpiloti can't manage to reproduce your error sorry, if i put a completetly bogus reg then i get a SError during probe, not only when "cat" called#asahi-dev · 2026-06-26 06:56
integralpilotit might be something wrong with the driver then, i did only code it up very quickly just to test echo/cat didn't error out#asahi-dev · 2026-06-26 06:55
integralpilotyuka: that seems reasonable, strange then its not working#asahi-dev · 2026-06-26 01:34
integralpilothow did you get the regs?#asahi-dev · 2026-06-26 01:30
integralpilotit looks to me like the regs might be wrong or for some weird reason on m4 it might need some power domains?#asahi-dev · 2026-06-26 01:27
integralpilotin the meantime ill try and see if i can reproduce it#asahi-dev · 2026-06-26 01:27
integralpilotyuka: huh, can you try writing (echo "hello" > /dev/ttydc0) and see if that crashes as well? would be interesting to see if its just an issue with reads on happens on both#asahi-dev · 2026-06-25 12:12
integralpilotthat happened so much for me lol i installed this thing called ccache#asahi-dev · 2026-06-25 09:36
integralpilotyuka: i wrote it for ones with interrupts, but you should be able to adapt it to ones without them by busy-polling TX_FREE before writes RX_COUNT before reads and making the interrupt binding (and platform_get_irq etc.) optional#asahi-dev · 2026-06-25 08:46
integralpilotah yeah true, don't really have the time today though. thank you for testing, hopefully SMC isn't more broken then before (fingers crossed!)#asahi-dev · 2026-06-25 08:42
integralpilotoh, did you make the fix? people were reporting it was "fixed with the update" but might have had it the wrong way. thanks for making it!#asahi-dev · 2026-06-25 08:41
integralpilotah, not sure in that case sorry, as i have just seen people reporting that the SMC issue persists. and can't test it myself as i don't have the hardware#asahi-dev · 2026-06-25 08:40
integralpilotsome unsuspecting people on the reddit have for us lol! i believe it fixes the boot menu issue but still has the battery / SMC firmware change that causes our driver to emergency shutdown#asahi-dev · 2026-06-25 08:36
integralpilotbut anyway hope it helps!#asahi-dev · 2026-06-25 08:36
integralpilotand the coding style is kinda bad and rough too#asahi-dev · 2026-06-25 08:35
integralpilotjust a few cavets in that: a) its really rough and quick cause i just wanted to prove the mailbox concept and i only tested it a tiny bit and it might not actually work fully, b) it uses the dockchannel through mailbox subsystem, which isn't in downstream, c) there was a warning about using the wrong workqueue that happens when you send data to it, but i didn't look further into it as it appeared to work#asahi-dev · 2026-06-25 08:34
integralpilotyuka: i pushed the rough TTY driver you wanted to see now - https://github.com/IntegralPilot/linux2/tree/dc-serial-test#asahi-dev · 2026-06-25 08:25
integralpilotthere's guides on this that you can find, but if you need any help LMK#asahi-dev · 2026-06-25 08:25
integralpilotthe first step is to install m1n1 on your MBP, and get the asahi (and also linux-next) kernel building on a seperate linux device#asahi-dev · 2026-06-25 08:24
integralpilotin particular see https://github.com/AsahiLinux/linux/blob/asahi/drivers/hid/spi-hid/spi-hid-apple-of.c and https://github.com/AsahiLinux/linux/blob/asahi/drivers/hid/spi-hid/spi-hid-apple-core.c#asahi-dev · 2026-06-25 08:23
integralpilotwe're planning to send the dockchannel HID (used on macbooks that are M2+) drivers upstream soon, but the SPI HID ones (for M1 only) are still downstream, and i'd love to help upstream them but i can't because I only have an M3 device. and looking at them now, they don't seem _that_ bad, so might be good for a start with your M1!#asahi-dev · 2026-06-25 08:21
integralpilotbarusu: something that's really helpful to the project is what's called upstreaming: cleaning up driver code and making it suitable for sending to the mainline kernel (which means there's less burden when we rebase every release). in my opinon, it's a great way to get started with the linux kernel (it's how i did!). cause you're on M1, something i'd suggest is the SPI HID drivers (see drivers/hid/spi-hid/).#asahi-dev · 2026-06-24 11:10
integralpilotsuper cool m4 is being done now too#asahi-dev · 2026-06-24 11:09
integralpilotawesome!! really great work guys#asahi-dev · 2026-06-24 11:07
integralpilotoh interesting, cool work!#asahi-dev · 2026-06-24 11:05
integralpilotyuka: it was just a really rough tty driver and i only tested it a bit (just to confirm the concept of loading from mailbox was OK), but if you'd like to look remind me tomorrow, i shut off my laptop for the night sorry but i can push then#asahi-dev · 2026-06-24 11:02
integralpilotthanks again!#asahi-dev · 2026-06-24 11:02
integralpilotsven: code still in the same place, i forced pushed the updates to that branch. https://github.com/IntegralPilot/linux2/pull/1 #asahi-dev · 2026-06-24 11:00
integralpilotHID looking good then, cause mailbox is fine now, so i just think waiting on if there's anymore feedback from jannau and then sven's feedback on the weekend (thank you) and can maybe be sent upstream sometime next week?#asahi-dev · 2026-06-24 10:57
integralpilotyuka: don't really need anything for HID, its not really blocked on -uart anymore! thank you though :)#asahi-dev · 2026-06-24 10:57
integralpilotso looks like mailbox for HID is perfect and fine then#asahi-dev · 2026-06-24 10:56
integralpilotsven: seems mailbox works fine for dockchannel-uart, at least with the quick test i just did