libv changed the topic of #linux-sunxi to: Allwinner/sunxi development - Did you try looking at our wiki? https://linux-sunxi.org - Don't ask to ask. Just ask and wait for an answer! - This channel is logged at https://oftc.catirclogs.org/linux-sunxi
juanesf91 has quit [Quit: Connection closed for inactivity]
rajkosto has quit [Ping timeout: 480 seconds]
flyback has quit []
flyback has joined #linux-sunxi
cnxsoft has joined #linux-sunxi
ftg has quit [Read error: Connection reset by peer]
hexdump0815 has joined #linux-sunxi
hazardchem has quit [Read error: Connection reset by peer]
hazardchem has joined #linux-sunxi
hexdump01 has quit [Ping timeout: 480 seconds]
<wens> juanesf91: well they seem to work correctly
JohnDoe_71Rus has joined #linux-sunxi
JohnDoe_71Rus has quit [Ping timeout: 480 seconds]
gsz has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
warpme has joined #linux-sunxi
warpme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gsz has quit [Ping timeout: 480 seconds]
warpme has joined #linux-sunxi
warpme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jernej> wens: this is completely vibecoded H616 VP9 support: https://github.com/jernejsk/linux-1/commits/vp9-v1/
<jernej> almost all reference bitstreams are correctly decoded. Some issues remain with dynamic scaling, v4l2 limitation
<jernej> wens: you have bug in iommu channels, 2 & 3 are needed
<gamiee> damn, another nice example of how llms can help with those stuff
<gamiee> impressive
<jernej> gamiee: they considerably speed up my projects that were put on hold :)
<gamiee> jernej : same :) the only shame is that sometimes, it takes the joy of writing code and working with it. Or sometimes due to the lack of the whole exploring process will cause not discovering some nice stuff.
<gamiee> But well, it is a tool
<jernej> gamiee: in my case, it discovered HW bugs in VC-1 decoder and even figured out what is the issue :)
<gamiee> pretty impressive! Do you have some test harness that LLM can even automatically test the stuff?
Hypfer has quit [Quit: The Lounge - https://thelounge.github.io]
<jernej> yeah, I have target board booting via tftp, then I run Claude Code or Codex inside kernel source folder, which is exposed via tftp, also ghidra exposed via MCP. Boards are reachable via ssh for mainline, or can be manually booted to Android (TV boxes), so they can be instrumented via frida framework and information is thus captured dynamically.
<jernej> then I have just to steer LLM correctly and sometimes reboot board manually.
<jernej> final thing would be USB relay board for power cycling
<jernej> so I could leave it unattended for long time
<gamiee> damn ! This is indeed proper LLM harness, love it!
<gamiee> future is scary :D
<gamiee> to one side, yeah, finally no need to waste 8 hour figuring out silicon bug, or some dumb issue in my driver, but still... it had it's charm
Hypfer has joined #linux-sunxi
<jernej> once I spent a few years (on and off) figuring HW bug. I don't want to repeat that again.
<gamiee> haha I can imagine
<electricworry> jernej: when you said analogue audio is working for H616, is that in the mainline kernel (e.g. v7.1) without any patches?
<jernej> I think apritzel said that, but I can check
<electricworry> Oh sorry.
<jernej> I see "allwinner,sun50i-h616-codec" in DT, so yes, it should work if it's properly instantiated in board DT.
<wens> jernej: might have been a copy-paste error :(
<wens> jernej: I guess I'll respin my patch series?
<jernej> wens: please do. Also, does sram_claim behave correctly?
<wens> yes
<wens> well the sram drivers are already merged
<wens> as you can see, the VE claims two SRAM regions.
<wens> one is SRAM C, and the other is VE SRAM
<jernej> ah, sorry, missed that
gsz has joined #linux-sunxi
<wens> wow my wip tree was still on 6.19-rc
gsz has quit [Ping timeout: 480 seconds]
warpme has joined #linux-sunxi
warpme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ftg has joined #linux-sunxi
<wens> v2 sent
<jernej> wens: I guess we need R-b or A-b on last one from someone else?
gsz has joined #linux-sunxi
apritzel has joined #linux-sunxi
rajkosto has joined #linux-sunxi
<wens> yeah
<apritzel> wens, jernej: just for patch 7/7?
<jernej> apritzel: yes
<apritzel> on it ...
<jernej> thanks!
cnxsoft has quit [Ping timeout: 480 seconds]
<jernej> apritzel: since I'm testing on 4G DRAM board, iommu had to be fixed to support full range. Maybe you're interested in this commit: https://github.com/jernejsk/linux-1/commit/f79517942f48ff70e8d346d41d25afe4f2ba1dc1
<apritzel> jernej: ah makes sense. Well, in an Allwinner kind of way, in another world this would be a horrible hack ;-)
<apritzel> and it's quite shortsighted, since on the newer SoCs they need more than 32 bits anyway ...
<jernej> apritzel: hack in HW sense? I don't think it can be done nicer in software
<jernej> yeah, newer iommus support 34 bits, so they changed approach
<apritzel> yeah, sorry, in HW. Allwinner is always so stingy with their bits ...
<wens> I have a similar change in my tree, but using separate macro. using PHYS_OFFSET didn't work for me when I was working on it
<wens> my PHYS_OFFSET comes out as 0xfff1000040000000, not 0x40000000
dsimic is now known as Guest13148
dsimic has joined #linux-sunxi
<jernej> that's strange
Guest13148 has quit [Ping timeout: 480 seconds]
<wens> I know
apritzel has quit [Remote host closed the connection]
apritzel has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
<valdikss> jernej: final thing would be USB relay board for power cycling <<< you can reboot on many USB hubs, no additional hardware needed. https://github.com/mvp/uhubctl
<valdikss> I have a LED strip glued to the back of my display, ambilight-style. I connect it to the display's USB port and can enable/disable it programmatically with uhubctl.
<jernej> interesting! let me check if I have compatible one
<jernej> hm... it may even work
<jernej> valdikss: it works! thanks!
<gamiee> valdikss: that really works? I bought this one... sec.
<gamiee> I have CLI tool which can turn on/off the USBs I need, so it's easy to automatize it (both for human test scripts or LLM)
<gamiee> https://gami.ee/files/Screenshot_20260711_183046.png For manual control I made this plasmoid, so it integrates nicely + it can detect what is connected to that USB port and have memory on turn off.
<gamiee> there is external controller which can fully cut off the power to the hub port
warpme has joined #linux-sunxi