#asahi-dev · 2026-05-28 09:04
chaos_princessdrm/accel is actually kind of a perfect fit for this kind of thing - you have map/unmap memory, and "run a command buffer" api. Should be all you'd want#asahi-dev · 2026-05-28 09:01
chaos_princessright, so, from my understanding v4l2 has all the parts in kernel, with no userspace part that can generate the instruction stream#asahi-dev · 2026-05-28 08:55
chaos_princesssofus: yea, that's kinda what i meant by "just proxy the irq", but are you trying to put a bunch of logic into the new cm3 firmware that parses the v4l structs and feeds the hw?#asahi-dev · 2026-05-28 08:49
chaos_princessor if you can't - just proxy the irq and that's it#asahi-dev · 2026-05-28 08:49
chaos_princesscan't you reconfigure the aic to get the interrupts to ap cores?#asahi-dev · 2026-05-28 08:47
chaos_princesswasn't the plan to ignore the cm3?#asahi-dev · 2026-05-28 08:36
chaos_princessseconding "some driver is better than none", but an advantage of vkvideo/vaapi is that a significant chunk of your driver can live in userspace instead of in the kernel.#asahi-dev · 2026-05-27 22:13
chaos_princesssame#asahi-dev · 2026-05-27 17:10
chaos_princessnot for usb itself, for the pd controller. protocol is supposed to be same/similar, just over spmi now. there is a m1n1 experiment that extends the existing spmi driver with features used by pd controller.#asahi-dev · 2026-05-27 16:16
chaos_princessis the air the one with i2c pd controller or the spmi one?#asahi-dev · 2026-05-26 22:50
chaos_princesswhich one were you poking at?#asahi-dev · 2026-05-26 19:28
chaos_princessdpe sounds power-related#asahi-dev · 2026-05-26 12:32
chaos_princesssure, why not#asahi-dev · 2026-05-26 12:04
chaos_princessalso pcie-pcieclkgen-tunables#asahi-dev · 2026-05-26 12:04
chaos_princessdoes m4 have all of 'apcie-gp-axi2af-tunables', 'apcie-ge-axi2af-tunables', 'apcie-cio3pllcore-tunables' ?#asahi-dev · 2026-05-26 12:02
chaos_princesspcie on m3 pro and m3 max seem materially different, pro has something closer to vanilla m3 (completely wild guess - just take https://github.com/AsahiLinux/m1n1/blob/dc1a56521c2eaf9775a83456adc2ebdd000c8002/src/pcie.c#L333-L334 drop second line, and change offset to 0x4000 in first)#asahi-dev · 2026-05-25 22:42
chaos_princesssth like that#asahi-dev · 2026-05-25 22:41
chaos_princessalso add --boot-directory=/boot/#asahi-dev · 2026-05-25 22:39
chaos_princessand post your current one#asahi-dev · 2026-05-25 22:37
chaos_princessadd --modules=fat to grub-install cmdline#asahi-dev · 2026-05-25 22:24
chaos_princessactually, where are you getting your u-boot from?#asahi-dev · 2026-05-25 22:24
chaos_princesshow exactly is it failing#asahi-dev · 2026-05-25 22:22
chaos_princessthat is why you have to use BOOTAA64.EFI instead of being able to specify your own path#asahi-dev · 2026-05-25 22:21
chaos_princessand failing to load efi variables is fine, there is nowhere to load them from#asahi-dev · 2026-05-25 22:21
chaos_princessit is for shim, you do not need shim#asahi-dev · 2026-05-25 22:10
chaos_princessu-boot does not need them?#asahi-dev · 2026-05-24 18:46
chaos_princessyou don't really need them tbh, as you can point it at the tty device with M1N1DEVICE=/dev/ttyWhatever ...#asahi-dev · 2026-05-24 18:45
chaos_princesshave you installed the udev rules?#asahi-dev · 2026-05-24 18:44
chaos_princesswhich host os?#asahi-dev · 2026-05-23 22:43
chaos_princessthere was some api that does a callback into your kext from idle thread#asahi-dev · 2026-05-23 21:52
chaos_princessi think you should add 210000000 on that one#asahi-dev · 2026-05-23 20:30
chaos_princesscause i am sure you can just read and write to io memory from a kext, you just need to map it first#asahi-dev · 2026-05-23 20:30
chaos_princessis it mapped where you expect it to be?#asahi-dev · 2026-05-23 20:29
chaos_princesshttps://developer.apple.com/documentation/kernel/iomemorydescriptor/1812908-withphysicaladdress - i think this is their version of iomap#asahi-dev · 2026-05-23 19:43
chaos_princesslike, it should be there?#asahi-dev · 2026-05-23 19:43
chaos_princesshttps://developer.apple.com/documentation/kernel/1575337-iolog#asahi-dev · 2026-05-23 19:42
chaos_princessmaybe missing an include? it could be some header-only thing#asahi-dev · 2026-05-23 19:35
chaos_princessIOLog?#asahi-dev · 2026-05-22 22:19
chaos_princessit is used for keyboard backlight leds#asahi-dev · 2026-05-22 22:19
chaos_princesspwm driver is pretty easy, you can try re-creating that#asahi-dev · 2026-05-22 22:18
chaos_princesspractice on something easy pretty much.#asahi-dev · 2026-05-22 22:11
chaos_princessyou won't be able to practice with m4/m5 yet#asahi-dev · 2026-05-22 22:11
chaos_princessoh, i am suggesting you use a m1/m2 to practice, not m5. #asahi-dev · 2026-05-22 22:07
chaos_princesspick a driver that already exists for some simple hardware block, then re-create it yourself, without using the original as reference. that should be some good practice#asahi-dev · 2026-05-21 08:45
chaos_princessi think it just wasn't, you picked one or another#asahi-dev · 2026-05-21 08:45
chaos_princessit still very much is if you accidentally disable the gpu drivers#asahi-dev · 2026-05-21 07:36
chaos_princesswasn't pre-dcp approach not actually capable of brightness control and was only able to turn the entire display on/off with a gpio pin? or am i misremembering#asahi-dev · 2026-05-20 17:28
chaos_princessplease tell me it is coccinelle or something making that series#asahi-dev · 2026-05-19 18:43
chaos_princessyea, it is not exactly a simple platform#asahi-dev · 2026-05-19 18:42
chaos_princessread docs, acquire knowledge :P