mmind00 changed the topic of #linux-rockchip to: Rockchip development discussion | public log at https://libera.irclog.whitequark.org/linux-rockchip
_whitelogger has joined #linux-rockchip
naoki has joined #linux-rockchip
stikonas has quit [Quit: Konversation terminated!]
krei-se has quit [Ping timeout: 245 seconds]
krei-se has joined #linux-rockchip
hexdump0815 has quit [Ping timeout: 248 seconds]
hexdump0815 has joined #linux-rockchip
System_Error has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
System_Error has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
cbeznea has joined #linux-rockchip
clarity has quit [Ping timeout: 248 seconds]
clarity has joined #linux-rockchip
System_Error has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
naoki has quit [Ping timeout: 260 seconds]
warpme has joined #linux-rockchip
ldevulder_ has joined #linux-rockchip
ldevulder_ is now known as ldevulder
System_Error has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
darfo has quit [Ping timeout: 272 seconds]
darfo has joined #linux-rockchip
<warpme> detlevc3 : great work with vdec. I give it run on 3576 and 3588; h264 and hevc; 8bit and 10bit. On 3588: h264: all perfect. hevc: 90% of mine samples are playing nicely (including all 4k movies i have and 4k tv) :-) ; On 3576: boot hangs on vdec probe - if vdec iommu enabled. Disabling iommu gives it working: h264: any sample gives me pink flashes; hevc: same good as on 3588. All this is on 6.15.2 mainline.
raster has joined #linux-rockchip
paulk has quit [Ping timeout: 276 seconds]
paulk has joined #linux-rockchip
paulk has joined #linux-rockchip
<warpme> detlevc3 : huh - current code also gives me nice hevc/h264 on 3566. so it looks vdpu381 code is ok on 3566/3588. only 3576 still needs some love. qll work!
<warpme> (maybe 3576 issue is by iommu?)
chewitt has joined #linux-rockchip
chewitt has quit [Read error: Connection reset by peer]
chewitt_ has joined #linux-rockchip
chewitt_ has quit [Quit: Zzz..]
eballetbo has joined #linux-rockchip
xha has joined #linux-rockchip
tlwoerner has quit [Ping timeout: 252 seconds]
tlwoerner has joined #linux-rockchip
<mmind00> CounterPillow: oooooh, the discussion is getting juicy ... but nice that the Intel person also found a use case :-D
<CounterPillow> right, I did notice the Intel macro at some point but totally forgot about it until now
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
System_Error has quit [Ping timeout: 244 seconds]
<CounterPillow> I think the unspoken rule is that whenever you do extra work because a maintainer asks you to, the response to the extra work will be another maintainer asking you to undo it, so my frustration levels are well contained behind a curtain of post-ironic "it is what it is"
<mmind00> When I started readong that sentence my mind was autocompleting as "whenever you do extra work because a maintainer asks you to, the response to the extra work will be another maintainer asking you to do even more work" ;-)
<CounterPillow> technically also correct ;)
<CounterPillow> hence "please have mercy" in the cover letter
System_Error has joined #linux-rockchip
warpme has joined #linux-rockchip
<detlevc3> warpme: I didn't see that on 3576, what board are you using ? Also, what branch ?
<detlevc3> warpme: I merged all the work into the staging rkvdec driver (currently here https://gitlab.collabora.com/detlev/linux/-/tree/add-vdpu381-and-383-to-rkvdec)
<warpme> detlevc3 : board is nanopi-m5; branch is 6.15.2 + https://gitlab.collabora.com/detlev/linux/-/commits/add-vdpu381-and-383-to-rkvdec
<warpme> i'm on 6.15 instead of 6.16 as I can't get sd card working with 6.16. so i backported all drivers/media + drivers/staging/rkvdec 6.16 commits to 6.15
<warpme> i assume backporting is ok as all works well on 3566/3588. issue is only on 3576 and only with h264
<warpme> also only 3576 gives me hang on rkvdec probe. hang happens when dt has iommu enabled. disabling iommu allows to me play with rkvdec on 3576. maybe 6.15 needs some iommu backports from 6.16?
digetx has quit [Ping timeout: 272 seconds]
digetx has joined #linux-rockchip
ldevulder_ has joined #linux-rockchip
<warpme> demsg is like this (aftet manual rkvdec probe): https://termbin.com/df5u
ldevulder has quit [Ping timeout: 252 seconds]
<detlevc3> warpme: iommu on rk3576 needs the rockchip,disable-mmu-reset flag set in device tree. If it is already there, I don't know what the issue is yet. bu I haven't tried to load it as a module, I wouldn't be surprised if the power management has issues
<detlevc3> backporting to 6.15 shouldn't be an issue
<warpme> i just diffed https://gitlab.collabora.com/detlev/linux/-/tree/add-vdpu381-and-383-to-rkvdec (branch you pointed here) with source i used ( https://gitlab.collabora.com/detlev/linux/-/commits/add-vdpu381-and-383-to-rkvdec) and there are diffs in hevc-common.{c,h} & vepu381/vepu383.c. Which branch i sgould use as reference? https://gitlab.collabora.com/detlev/linux/-/tree/add-vdpu381-and-383-to-rkvdec ?
ldevulder_ has quit [Ping timeout: 260 seconds]
<warpme> 3576.dtsi i'm using is almost exact the same as yours (from https://gitlab.collabora.com/detlev/linux/-/commits/add-vdpu381-and-383-to-rkvdec) (except i added thermal)
mripard has quit [Quit: WeeChat 4.6.3]
<warpme> i just rebuild 6.15 with rkvdec code from https://gitlab.collabora.com/detlev/linux/-/tree/add-vdpu381-and-383-to-rkvdec and h264 still pink flashes...
<detlevc3> I'm still actively working on that branch so it will be forced pushed from time to time
<warpme> my 3576 rkvdec hang at rkvdec probe tells something....
<detlevc3> Can you share the source video (or is it all of them ?)
<detlevc3> oh any sample, got it
<warpme> if you are referring to "pink flashes" on 3576 h264 - this is on any sample...
<detlevc3> with the latest branch I get 127/135 h264 fluster score on rock-4d, and no iommu issue, I'll try to get your same setup
Stat_headcrabbed has joined #linux-rockchip
<detlevc3> Ok, I also get a hang with iommu when built as a module
<warpme> ah "qll" (in a sense this may hint us somehow :-)))))
<warpme> "I'll try to get your same setup" - fantastic! milion thx as this allows me to quite quick offer hw decode on 3566/3588 for my users (we are on 6.15.2 kernel)
Stat_headcrabbed has quit [Quit: Stat_headcrabbed]
<warpme> (and of course early test runs on 3576)
<detlevc3> from what I see, you can either use clk_ignore_unused or have the module built-in (to run your pre-tests)
vagrantc has joined #linux-rockchip
ldevulder_ has joined #linux-rockchip
<warpme> with clk_ignore no more hangs on probe. h264 playback is now solid green. dmesg now has plenty iommu errors: https://termbin.com/52fi
<warpme> in dmesg is see: rkvdec 27b00100.rkvdec: No sram node, RCB will be stored in RAM is this expected?
<robmur01> Hmm, you definitely shouldn't be getting "swiotlb buffer is full" if things are supposed to be using IOMMUs...
<warpme> i think there is more general q: in respect of rkvdec: does 6.16 have something in iommu what 6.15 don't have?
<robmur01> "Page fault at 0x0000000000000000 of type read" also points to something being misprogrammed if you're relying on the DMA API, since iommu-dma will never give 0 as a valid DMA address
b0 has quit [Read error: Connection reset by peer]
jakllsch_ has joined #linux-rockchip
b0 has joined #linux-rockchip
jakllsch has quit [Ping timeout: 276 seconds]
<detlevc3> No, there are no changes in iommu for that since 6.16. a read at 0 probably means something is not programmed correctly when starting the decoder
<detlevc3> and the SRAM, I see it too, need to get to it, it just makes it a bit slower
<warpme> detlevc3 : "since 6.16" or 6.15?
<detlevc3> 6.15, but I'll rebase on it to make sure
<warpme> 'k thx!
<detlevc3> already fixed sram and clock issue (will have to adapt rockchip iommu dt-bindings though)
<detlevc3> thanks for your testing !
dsimic has quit [Ping timeout: 252 seconds]
dsimic has joined #linux-rockchip
<warpme> detlevc3 : should i backport to 6.15 (with hope this will make 3576 h264 working) or rather i need to wait till you confirm h264 works ok for you on 6.15 on 3576?
<detlevc3> Let me check it first, I did nothing that would solve iommu errors yet
<warpme> btw: i my repo i have also hevc backend for 33xx rkvdec (nice code by alex+kwiboo). as now new rkvdec uses structs - this code needs some serious rework... Such rework is over my skills. Maybe you have plans to add (at some point in time) rk33xx hevc support?
<detlevc3> yes, that is in my plan
<detlevc3> I think Kwiboo mentioned he was waiting for 6.16-rc1 tag to send his hevc patches
<warpme> fantastic!. your work is really appreciated by my users....some of them were awaiting for hevc on 3566 for years!
<detlevc3> warpme: still no issues with 6.15.2. Can you run fluster (fluster.py run -d GStreamer-H.264-V4L2SL-Gst1.0 -ts JVT-AVC_V1) and see if it complains still ?
<detlevc3> warpme: Hehe happy for them ! :) Hopefully it will get upstream soon
<warpme> sure. let me do this. i'll back to you later as now family screams for me :-/
detlevc3 is now known as detlevc
detlevc has quit [Changing host]
detlevc has joined #linux-rockchip
<detlevc> detlevc: of course, see you later
<robmur01> IOMMU bindings> FWIW I'd be inclined to suspect dependent/linked clocks not being modelled correctly in the clk driver before than the IOMMU itself genuinely having more clocks, but I could be wrong
<robmur01> Um, "before than"? Make that either "before" or "rather than" :)
<detlevc> robmur01: Yes, that's totally right. The iommu is embedded into the decoder core, so it can depend on more clocks. In this case, it makes sense to add the dependency in the clock driver rather than in the iommu
Stat_headcrabbed has joined #linux-rockchip
Stat_headcrabbed has quit [Client Quit]
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
warpme has joined #linux-rockchip
ldevulder_ has quit [Quit: Leaving]
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jakllsch_ is now known as jakllsch
krei-se- has joined #linux-rockchip
krei-se has quit [Ping timeout: 260 seconds]
<diederik> looking at SRAM (for rkvdec) and I see in rk3588-base.dtsi ``system_sram2: sram@ff001000 {`` but in the RK3588 TRM part 1 on page 19 I see FF000000 ? The address for system_sram1 does match the value in the TRM.
<diederik> looks like I need to do more research ...
<detlevc> the downstream dts uses sram@ff001000 too, I'll check if it works with FF000000
<diederik> AFAICT according to the TRM the sizes are the same, but not according to the dts (hence more research)
<robmur01> doesn't that just mean that the first 4KB of SRAM2 is being reserved for someone other than Linux?
<robmur01> (or at least *intended* to be)
<robmur01> and indeed the last 64KB as well, if the total size is really 1MB
<CounterPillow> I was hungry and ate those sections of the SRAM, sorry
<robmur01> Burrrrp!
<CounterPillow> that was some fast sleuthing, nice
<diederik> nice :)
<detlevc> good find
<mmind00> detlevc: while you're here, could you refresh your vop reset series?
stikonas has joined #linux-rockchip
raster has quit [Quit: Gettin' stinky!]
System_Error has quit [Ping timeout: 244 seconds]
<detlevc> mmind00: right that was only partially merged
<detlevc> I need a screen I don't have here to retry it and confirm the issue is still present on latest kernel. I'll have a look at that next week
tlwoerner_ has joined #linux-rockchip
tlwoerner has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
cbeznea has quit [Ping timeout: 244 seconds]
<ndufresne4> robmur01: Benjamin Gaignard will send the VSI iommu driver (for the AV1 decoder) next week, hope you can help get this right
warpme has joined #linux-rockchip
raster has joined #linux-rockchip
warpme has quit [Ping timeout: 252 seconds]
warpme has joined #linux-rockchip
System_Error has quit [Ping timeout: 244 seconds]
System_Error has joined #linux-rockchip
<detlevc> warpme: also, two questions: what is your userspace situation ? (gstreamer or ffmpeg ? which versions ?) and can you send me a file that gives you those iommu errors ?
vagrantc has quit [Quit: leaving]
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]