#asahi-dev · 2026-06-29 10:34
JamesCalligeros[m]It would help for writing some tests for locked registers too#asahi-dev · 2026-06-29 10:19
JamesCalligeros[m]That makes no sense#asahi-dev · 2026-06-29 10:19
JamesCalligeros[m]Wait, why are the masks swapped on m3#asahi-dev · 2026-06-29 10:15
JamesCalligeros[m]It should just be a bitmask of ~(tx_slots_in_use)#asahi-dev · 2026-06-29 08:26
JamesCalligeros[m]Each “slot” is an n-bit wide tdm slice of bus time. The thing the amps beam their vi data to ORs the “left” and “right” buses together so the left side has to guarantee that 0 is on its bus when the right bus wants to send data and vice versa#asahi-dev · 2026-06-29 08:23
JamesCalligeros[m]Ill check j313 later tonight. The masks might need swapping there too#asahi-dev · 2026-06-29 06:43
JamesCalligeros[m]This might help make dcp’s mode selection a little less goofy#asahi-dev · 2026-06-29 06:43
JamesCalligeros[m]drm colour format stuff got merged#asahi-dev · 2026-06-29 02:11
JamesCalligeros[m]also i dont think we can do anything but word-aligned reads so yeah no rtk-style memcpy_fromio of log strings :( #asahi-dev · 2026-06-29 02:10
JamesCalligeros[m]eyyy avd syslog sorta works. initialising the memory of the ring buffer in _start causes it to never not be zero. leaving it uninitialised makes the logger work....#asahi-dev · 2026-06-28 21:26
JamesCalligeros[m]It’s not too late to change of course#asahi-dev · 2026-06-28 09:51
JamesCalligeros[m]stay cool :(#asahi-dev · 2026-06-28 07:33
JamesCalligeros[m]nice#asahi-dev · 2026-06-28 07:23
JamesCalligeros[m]sofus: so unsurprisingly the issue was that I am stupid. had not reserved a section in the linker script and the pointer to the buffer was pointing at garbage#asahi-dev · 2026-06-28 05:53
JamesCalligeros[m]Its just the syslog thing with the pointer to the buffer at various places in memory. I just had a thought though and will check something when i get home#asahi-dev · 2026-06-28 05:52
JamesCalligeros[m]No big deal, not important#asahi-dev · 2026-06-28 05:52
JamesCalligeros[m]I tried writing obvious values to various places in ram and scanning code and sram for it but it was in neither#asahi-dev · 2026-06-28 05:51
JamesCalligeros[m]Hmm#asahi-dev · 2026-06-27 13:01
JamesCalligeros[m]Try swap them#asahi-dev · 2026-06-27 13:01
JamesCalligeros[m]The 0xf0f0/0x0f0f in the codec dt nodes#asahi-dev · 2026-06-27 12:45
JamesCalligeros[m]Try fiddling with the bus keeper masks#asahi-dev · 2026-06-27 12:34
JamesCalligeros[m]As in the dai link has the wrong mapping?#asahi-dev · 2026-06-27 10:38
JamesCalligeros[m]The slots are probably fine#asahi-dev · 2026-06-27 10:35
JamesCalligeros[m]You might have to patch out the speakersafetyd interlock from the kernel driver#asahi-dev · 2026-06-27 10:35
JamesCalligeros[m]Did you manage to get the raw samples from the visense capture pcm?#asahi-dev · 2026-06-27 10:33
JamesCalligeros[m]Still getting garbage vi data?#asahi-dev · 2026-06-27 10:23
JamesCalligeros[m]You didnt get one for each write to the mbox?#asahi-dev · 2026-06-27 10:21
JamesCalligeros[m]Perhaps better to send either like a log msg id that can then be referenced from the blob or just use the ring buffer#asahi-dev · 2026-06-27 10:20
JamesCalligeros[m]Idk if using the mailbox like that is a good idea. We will get a lot of interrupts#asahi-dev · 2026-06-27 10:14
JamesCalligeros[m]Is that what rtk syslog does?#asahi-dev · 2026-06-27 10:06
JamesCalligeros[m]I just sent the one, read the log then acked#asahi-dev · 2026-06-27 10:03
JamesCalligeros[m]I had a loca kernel branch that acked the irq but i had to go out (hence matrix acc) so didnt get around to parsing the log message#asahi-dev · 2026-06-27 10:03
JamesCalligeros[m]Lets gooooooo#asahi-dev · 2026-06-27 09:50
JamesCalligeros[m](And get rid of the command and completion buffers if you dont want to go down the route i was thinking of)#asahi-dev · 2026-06-27 09:48
JamesCalligeros[m]But take whatever you want#asahi-dev · 2026-06-27 09:48
JamesCalligeros[m]sofus: youll have to play with the memmap, i forgot where the cm3 sram base is so i just kept adding offset to the base until it stoped breaking interrupt handlers#asahi-dev · 2026-06-27 09:26
JamesCalligeros[m]fwiw free to discard all of my opinions and just do whatever, i have no idea what im doing#asahi-dev · 2026-06-27 09:26
JamesCalligeros[m]Nice#asahi-dev · 2026-06-27 09:01
JamesCalligeros[m]nonsense caused by smc firmware, it’s harmless and will be fixed#asahi-dev · 2026-06-27 08:52
JamesCalligeros[m]Yeah we already support semiplanar#asahi-dev · 2026-06-27 08:49
JamesCalligeros[m]It would be cool to support planar yuv. DCP can scan them out with some magic combination of iosurface values which is not a common thing aiui#asahi-dev · 2026-06-27 08:16
JamesCalligeros[m]Not documented in the adt?#asahi-dev · 2026-06-27 08:11
JamesCalligeros[m]Aaaaaaa#asahi-dev · 2026-06-27 08:10
JamesCalligeros[m]The whole thing or just the faulting vp?#asahi-dev · 2026-06-27 08:07
JamesCalligeros[m]If we pause a video and it shuts down we can just reprogram the stream can we not#asahi-dev · 2026-06-27 08:07
JamesCalligeros[m]If we’re storing anything that needs to survive a power cycle sure, but i dont think that would be the case right#asahi-dev · 2026-06-27 08:03
JamesCalligeros[m]the kernel should not care if it gets shut down because if the kernel shuts it down then there are no more streams being decoded#asahi-dev · 2026-06-27 08:03
JamesCalligeros[m]and its still fundamentally stateless, the only state we care about is stuff that is in flight#asahi-dev · 2026-06-27 08:02
JamesCalligeros[m]i cant remember if apple does or not#asahi-dev · 2026-06-27 08:02
JamesCalligeros[m]also powering up and down and reinitialising at runtime is a design choice, we dont have to do that