本帖最后由 shinima 于 2025-5-8 09:56 编辑
环境: rk3588 + ubuntu20.04 + RGA multicore Device Driver: v1.3.0 + librga.so (1.3.2)
描述:调用rga的resize功能时报错如下,求大佬解答
```bash
RgaBlit(1356) RGA_BLIT fail: 无效的参数 RgaBlit(1357) RGA_BLIT fail: 无效的参数
fd-vir-phy-hnd-format[0, 0x7f95a458c0, (nil), (nil), 0]
rect[0, 0, 1000, 1000, 1000, 1000, 512, 0]
f-blend-size-rotation-col-log-mmu[0, 0, 0, 0, 0, 0, 1]
fd-vir-phy-hnd-format[0, 0x7f9457bd40, (nil), (nil), 0]
rect[0, 0, 84, 84, 84, 84, 512, 0]
f-blend-size-rotation-col-log-mmu[0, 0, 0, 0, 0, 0, 1]
This output the user patamaters when rga call blit fail
srect[x,y,w,h] = [0, 0, 0, 0] src[w,h,ws,hs] = [1000, 1000, 1000, 1000]
drect[x,y,w,h] = [0, 0, 0, 0] dst[w,h,ws,hs] = [84, 84, 84, 84]
usage[0x80000]
```
查看dmesg:
```bash
...
[1078827.914453] rga_policy: invalid setting core by user
[1078827.914480] rga_job: job assign failed
[1078827.914484] rga_job: failed to get scheduler, rga_job_commit(407)
[1078827.914498] rga_job: request[6651] task[0] job_commit failed.
[1078827.914505] rga_job: rga request[6651] commit failed!
[1078827.914510] rga: request[6651] submit failed!
[1078829.554255] RKNPU fdab0000.npu: RKNPU: iommu still enabled
...
```
调用resize的代码:请见附件截图
|