-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
问一下这些报错是什么原因? #73
Comments
@HouLingLXH 请问你这个问题毕现吗? 我在3568上跑偶发出现这个问题, 同4G内存. |
持续一段时间,肯定是必现 |
我也遇到同样问题 4G DDR没有超过4G呀,搞不懂为什么报这个错 |
@lztmfx 你用的什么集成商的板子? 我用RK提供的开发板, Android 13系统就没这个问题. |
猜测是高负载下RAM不足,buffer被分配到了swap交换分区,因此不满足RGA2只能用dma32的4GB限制,所以报错。 要么修改程序来用dma-heap/drm gem的dma32模式来分配buffer,要么修改配置图像任务的参数,使得其满足RGA3的限制(比如1/8~8缩放倍率),然后用core flag来强制使用RGA3。后者只适用于rk3588(s)。 参考 https://github.com/airockchip/librga/blob/main/docs/Rockchip_FAQ_RGA_CN.md Q4.5:“RGA_MMU unsupported Memory larger than 4G!”报错该如何解决? A4.5:该报错通常对应HAL层报错:
该报错标识当前配置的图像任务配置的内存无法满足当前匹配到的硬件核心对内存的要求,由于不同的硬件版本的RGA的IOMMU对内存位数的要求不同,当分配的内存超过对应硬件的限制时,则会出现该该报错,详细的不同硬件版本RGA的限制可见《Rockchip_Developer_Guide_RGA_CN》中的概述——设计指标小节。 当出现该报错时,通常有以下几种场景以及对应的解决方案:
|
我参考这个方法 https://github-wiki-see.page/m/jjm2473/ffmpeg-rk/wiki/FAQ |
rk3588s , 4G内存
调用过 imtranslate 和 imresize
报错:
Apr 1 02:17:27 firefly kernel: [ 8594.342568] rga_mm: RGA_MMU unsupported memory larger than 4G!
Apr 1 02:17:27 firefly kernel: [ 8594.342603] rga_mm: scheduler core[4] unsupported mm_flag[0x8]!
Apr 1 02:17:27 firefly kernel: [ 8594.342623] rga_mm: rga_mm_map_buffer map virtual address error!
Apr 1 02:17:27 firefly kernel: [ 8594.342628] rga_mm: job buffer map failed!
Apr 1 02:17:27 firefly kernel: [ 8594.342633] rga_mm: src channel map job buffer failed!
Apr 1 02:17:27 firefly kernel: [ 8594.342636] rga_mm: failed to map buffer
Apr 1 02:17:27 firefly kernel: [ 8594.342644] rga_job: rga_job_commit: failed to map job info
Apr 1 02:17:27 firefly kernel: [ 8594.342659] rga_job: request[633374] task[0] job_commit failed.
Apr 1 02:17:27 firefly kernel: [ 8594.342665] rga_job: rga request[633374] commit failed!
Apr 1 02:17:27 firefly kernel: [ 8594.342670] rga: request[633374] submit failed!
Apr 1 02:18:18 firefly kernel: [ 8645.375707] rga_mm: RGA_MMU unsupported memory larger than 4G!
Apr 1 02:18:18 firefly kernel: [ 8645.375748] rga_mm: scheduler core[4] unsupported mm_flag[0x8]!
Apr 1 02:18:18 firefly kernel: [ 8645.375833] rga_mm: rga_mm_map_buffer map virtual address error!
Apr 1 02:18:18 firefly kernel: [ 8645.375842] rga_mm: job buffer map failed!
Apr 1 02:18:18 firefly kernel: [ 8645.375849] rga_mm: dst channel map job buffer failed!
Apr 1 02:18:18 firefly kernel: [ 8645.376261] rga_mm: failed to map buffer
Apr 1 02:18:18 firefly kernel: [ 8645.376273] rga_job: rga_job_commit: failed to map job info
Apr 1 02:18:18 firefly kernel: [ 8645.376300] rga_job: request[638814] task[0] job_commit failed.
Apr 1 02:18:18 firefly kernel: [ 8645.376310] rga_job: rga request[638814] commit failed!
Apr 1 02:18:18 firefly kernel: [ 8645.376318] rga: request[638814] submit failed!
The text was updated successfully, but these errors were encountered: