airockchip / librga

Apache License 2.0
300 stars 55 forks source link

src: handle = -1, Fd = 00 ,phyAddr = (nil) ,virAddr = (nil) #53

Open SpiceGL opened 11 months ago

SpiceGL commented 11 months ago

我在rv1109上使用rga,用的1.10.0版本中的copy_demo的例子运行,但是importbuffer_virtualaddr获取到的handle为-1,因此基础的例子无法通过。问题日志如下,请问这是什么原因呢?是驱动的原因吗?我们现在更新驱动较为麻烦,因为我们购买的rv1109设备没有提供完整的sdk,只有交叉编译环境。

librga fail to get driver version! Compatibility mode will be enabled.

15 im2d_rga_impl rga_version_below_minimun_range_user_driver(329): The driver may be compatible, but it is best to update the driver to version 1.2.4. You can try to update the SDK or update the /kernel/drivers/video/rockchip/rga3 directory individually. current version: librga 1.10.0, driver . rgaapi version 1.10.0[2] 15 im2d_rga_impl rga_import_buffers(1359): RGA_IOC_IMPORT_BUFFER fail! Invalid argument 15 im2d_rga_impl rga_import_buffers(1359): RGA_IOC_IMPORT_BUFFER fail! Invalid argument src_handle: -1, dst_handle: -1! <<<<-------- print rgaLog -------->>>> src->hnd = 0x0 , dst->hnd = 0x0 , src1->hnd = 0x0

src: handle = -1, Fd = 00 ,phyAddr = (nil) ,virAddr = (nil)

dst: handle = -1, Fd = 00 ,phyAddr = (nil) ,virAddr = (nil)

537:src has not fd and address for render rga_copy_demo running success! output [0x80, 0x80, 0x80, 0x80] open ./datas/out0w1280-h720-rgba8888.bin and write ok 47 im2d_rga_impl rga_release_buffers(1427): RGA_IOC_RELEASE_BUFFER fail! Invalid argument 47 im2d_rga_impl rga_release_buffers(1427): RGA_IOC_RELEASE_BUFFER fail! Invalid argument