野火电子论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 918|回复: 1

鲁班猫1的RGA问题

[复制链接]
发表于 2023-7-7 15:20:44 | 显示全部楼层 |阅读模式
具体的报错信息如下

  1. usage[0x80000]
  2. Rga resize: resize error for status: Fatal error: Failed to call RockChipRga interface, query log to find the cause of failure.
  3. RgaBlit(1465) RGA_BLIT fail: Invalid argument
  4. RgaBlit(1466) RGA_BLIT fail: Invalid argument
  5. fd-vir-phy-hnd-format[0, 0x7f7433c010, (nil), 0, 0]
  6. rect[0, 0, 1280, 720, 1280, 720, 2560, 0]
  7. f-blend-size-rotation-col-log-mmu[0, 0, 0, 0, 0, 0, 1]
  8. fd-vir-phy-hnd-format[0, 0x7f73ebc010, (nil), 0, 0]
  9. rect[0, 0, 416, 416, 416, 416, 512, 0]
  10. f-blend-size-rotation-col-log-mmu[0, 0, 0, 0, 0, 0, 1]
  11. This output the user patamaters when rga call blit fail
  12. srect[x,y,w,h] = [0, 0, 0, 0] src[w,h,ws,hs] = [1280, 720, 1280, 720]

  13. drect[x,y,w,h] = [0, 0, 0, 0] dst[w,h,ws,hs] = [416, 416, 416, 416]
复制代码
鲁班猫的RGA信息
  1. rga_api version 1.8.0_[0]
  2. RGA vendor            : Rockchip Electronics Co.,Ltd.
  3. RGA_api version       : v1.8.0_[0]
  4. RGA version           : RGA_2_Enhance
  5. Max input             : 8192x8192
  6. Max output            : 4096x4096
  7. Byte stride           : 4 byte
  8. Scale limit           : 0.0625 ~ 16
  9. Input support format  : RGBA_8888 RGB_888 RGB_565 RGBA_4444 RGBA_5551 YUV420_sp_8bit YUV420_sp_10bit YUV420_p_8bit YUV420_p_10bit YUV422_sp_8bit YUV422_sp_10bit YUV422_p_8bit YUV422_p_10bit YUYV422 YUV400/Y4
  10. output support format : RGBA_8888 RGB_888 RGB_565 RGBA_4444 RGBA_5551 YUV420_sp_8bit YUV420_p_8bit YUV422_sp_8bit YUV422_p_8bit YUYV420 YUYV422 YUV400/Y4
  11. RGA feature           : color_fill color_palette ROP quantize src1_r2y_csc dst_full_csc
  12. expected performance  : max 2 pixel/cycle
复制代码
很奇怪,这个程序在瑞芯微的SoC上运行不会报错的,移植到鲁班猫中运行就出现这样的情况。请问一下这回事什么情况?










回复

使用道具 举报

 楼主| 发表于 2023-7-7 15:39:43 | 显示全部楼层
使用下列命令
  1. dmesg |grep rga
复制代码
排查了一下发现基本都是相同的错误
  1. [91862.376681] rga2: req argument is inval
  2. [91862.377973] rga2: req argument is inval
  3. [91862.432430] rga2: req argument is inval
复制代码
原先是在3588上运行的程序,使用的是RGA3核心。现在在鲁班猫1中运行是RGA2-Enhance核心
不同的核心会有什么函数的输入参数不一样吗?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

联系站长|手机版|野火电子官网|野火淘宝店铺|野火电子论坛 ( 粤ICP备14069197号 ) 大学生ARM嵌入式2群

GMT+8, 2024-5-18 11:50 , Processed in 0.069592 second(s), 26 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表