Rga on 8GB memory board

I have a 8GB rock3a and I’m using a mainline 5.17 kernel. I can enable the rga in dtb with CounterPillow’s patch. But when I use gstreamer command gst-launch-1.0 videotestsrc ! video/x-raw,width=320,height=240 ! v4l2convert ! video/x-raw,width=640,height=480 ! autovideosink, I get a green window. And I can see rga error:

rockchip-rga fdeb0000.rga: swiotlb buffer is full (sz: 393216 bytes), total 32768 (slots), used 6827 (slots)

After some search on internet, I found that other people using rockchip 4.19 also meet this issue: https://forum.odroid.com/viewtopic.php?f=211&t=44281&sid=8c3a1dedcc2e517ab52168e19f0b6970. I add “mem=4G” to my boot parameter and I can run the above gstreamer command with normal output. It seems that the rockchip rga2 driver is used for chips released before rk3568 which don’t have memory larger than 4GB.

1 Like

Facing same problems here, RK3566 evb3 V10 board with kernel 4.19.219


Just some of my findings.
This happens also on rk3588, 16GB, kernel 5.10.66 and 5.10.110, librga 1.8.1 If i recall correctly, librga on the official image is 1.7.y and i can’t remember having this issue with 1.7.y when i re-used the rootfs to build my first custom image, but i don’t have the latest SDK. Waiting for the Radxa team to release it and test it.

Obs: using hw decode