讨论广场 问答详情
OHv6.0 64位 RK3568 RGA报错
Juusi 2026-01-22 14:01:23
200 评论 分享

内存4G 64位 未调整uboot 

在正常滑倒屏幕的时候出现这个报错,出现报错的时候显示异常了
 请问 要从哪里解决这个问题,

[  575.509593] rga: 468    518   : RGA_MMU unsupported memory larger than 4G!
[  575.509623] rga: 468    518   : scheduler core[4] unsupported mm_flag[0x0]!
[  575.509634] rga: 468    518   : buffer[0] mm import buffer failed! memory = 0x17, type = dma_fd(0x0)
[  575.582776] rga: 468    518   : RGA_MMU unsupported memory larger than 4G!
[  575.582838] rga: 468    518   : scheduler core[4] unsupported mm_flag[0x0]!
[  575.582853] rga: 468    518   : buffer[0] mm import buffer failed! memory = 0x1e, type = dma_fd(0x0)
[  575.635692] rga: 468    518   : RGA_MMU unsupported memory larger than 4G!
[  575.635754] rga: 468    518   : scheduler core[4] unsupported mm_flag[0x0]!
[  575.635808] rga: 468    518   : buffer[0] mm import buffer failed! memory = 0x18, type = dma_fd(0x0)
[  575.688596] rga: 468    518   : RGA_MMU unsupported memory larger than 4G!
[  575.688651] rga: 468    518   : scheduler core[4] unsupported mm_flag[0x0]!
[  575.688666] rga: 468    518   : buffer[0] mm import buffer failed! memory = 0x1b, type = dma_fd(0x0)
[  575.742016] rga: 468    518   : RGA_MMU unsupported memory larger than 4G!
[  575.742059] rga: 468    518   : scheduler core[4] unsupported mm_flag[0x0]!
[  575.742072] rga: 468    518   : buffer[0] mm import buffer failed! memory = 0x15, type = dma_fd(0x0)
[  575.795476] rga: 468    518   : RGA_MMU unsupported memory larger than 4G!
[  575.795522] rga: 468    518   : scheduler core[4] unsupported mm_flag[0x0]!
[  575.795536] rga: 468    518   : buffer[0] mm import buffer failed! memory = 0x17, type = dma_fd(0x0)
[  575.849220] rga: 468    518   : RGA_MMU unsupported memory larger than 4G!
[  575.849263] rga: 468    518   : scheduler core[4] unsupported mm_flag[0x0]!
[  575.849277] rga: 468    518   : buffer[0] mm import buffer failed! memory = 0x1e, type = dma_fd(0x0)
[  575.902616] rga: 468    518   : RGA_MMU unsupported memory larger than 4G!
[  575.902658] rga: 468    518   : scheduler core[4] unsupported mm_flag[0x0]!
[  575.902670] rga: 468    518   : buffer[0] mm import buffer failed! memory = 0x18, type = dma_fd(0x0)
[  575.939614] access_token_id: access_tokenid_ioctl: access tokenid magic fail, TYPE=84
[  575.956807] rga: 468    518   : RGA_MMU unsupported memory larger than 4G!
[  575.956860] rga: 468    518   : scheduler core[4] unsupported mm_flag[0x0]!
[  575.956875] rga: 468    518   : buffer[0] mm import buffer failed! memory = 0x1b, type = dma_fd(0x0)
[  576.009946] rga: 468    518   : RGA_MMU unsupported memory larger than 4G!
[  576.009992] rga: 468    518   : scheduler core[4] unsupported mm_flag[0x0]!
[  576.010006] rga: 468    518   : buffer[0] mm import buffer failed! memory = 0x15, type = dma_fd(0x0)
[  576.063354] rga: 468    518   : RGA_MMU unsupported memory larger than 4G!
[  576.063397] rga: 468    518   : scheduler core[4] unsupported mm_flag[0x0]!
[  576.063409] rga: 468    518   : buffer[0] mm import buffer failed! memory = 0x17, type = dma_fd(0x0)
[  576.117491] rga: 468    518   : RGA_MMU unsupported memory larger than 4G!
[  576.117535] rga: 468    518   : scheduler core[4] unsupported mm_flag[0x0]!
[  576.117549] rga: 468    518   : buffer[0] mm import buffer failed! memory = 0x1e, type = dma_fd(0x0)
[  576.122372] hungtask_user process 1838 is kicked
[  576.122513] APPSPAWN: [appspawn_kickdog.c:83]Nweb kick 4
[  576.170645] rga: 468    518   : RGA_MMU unsupported memory larger than 4G!
[  576.170693] rga: 468    518   : scheduler core[4] unsupported mm_flag[0x0]!
[  576.170705] rga: 468    518   : buffer[0] mm import buffer failed! memory = 0x18, type = dma_fd(0x0)
[  576.224144] rga: 468    518   : RGA_MMU unsupported memory larger than 4G!
[  576.224195] rga: 468    518   : scheduler core[4] unsupported mm_flag[0x0]!
[  576.224208] rga: 468    518   : buffer[0] mm import buffer failed! memory = 0x1b, type = dma_fd(0x0)
[  576.277599] rga: 468    518   : RGA_MMU unsupported memory larger than 4G!
[  576.277636] rga: 468    518   : scheduler core[4] unsupported mm_flag[0x0]!
[  576.277649] rga: 468    518   : buffer[0] mm import buffer failed! memory = 0x15, type = dma_fd(0x0)
[  576.331363] rga: 468    518   : RGA_MMU unsupported memory larger than 4G!
[  576.331407] rga: 468    518   : scheduler core[4] unsupported mm_flag[0x0]!
[  576.331462] rga: 468    518   : buffer[0] mm import buffer failed! memory = 0x17, type = dma_fd(0x0)
[  576.385120] rga: 468    518   : RGA_MMU unsupported memory larger than 4G!
[  576.385160] rga: 468    518   : scheduler core[4] unsupported mm_flag[0x0]!
[  576.385173] rga: 468    518   : buffer[0] mm import buffer failed! memory = 0x1e, type = dma_fd(0x0)
[  576.438670] rga: 468    518   : RGA_MMU unsupported memory larger than 4G!
[  576.438719] rga: 468    518   : scheduler core[4] unsupported mm_flag[0x0]!
[  576.438731] rga: 468    518   : buffer[0] mm import buffer failed! memory = 0x18, type = dma_fd(0x0)
[  576.491937] rga: 468    518   : RGA_MMU unsupported memory larger than 4G!
[  576.491978] rga: 468    518   : scheduler core[4] unsupported mm_flag[0x0]!
[  576.491992] rga: 468    518   : buffer[0] mm import buffer failed! memory = 0x1b, type = dma_fd(0x0)
[  576.545582] rga: 468    518   : RGA_MMU unsupported memory larger than 4G!
[  576.545622] rga: 468    518   : scheduler core[4] unsupported mm_flag[0x0]!
[  576.545635] rga: 468    518   : buffer[0] mm import buffer failed! memory = 0x15, type = dma_fd(0x0)
[  576.599210] rga: 468    518   : RGA_MMU unsupported memory larger than 4G!
[  576.599252] rga: 468    518   : scheduler core[4] unsupported mm_flag[0x0]!
[  576.599265] rga: 468    518   : buffer[0] mm import buffer failed! memory = 0x17, type = dma_fd(0x0)
[  576.625901] access_token_id: access_tokenid_ioctl: access tokenid magic fail, TYPE=84
[  576.671145] rga: 468    518   : RGA_MMU unsupported memory larger than 4G!
[  576.671184] rga: 468    518   : scheduler core[4] unsupported mm_flag[0x0]!
[  576.671197] rga: 468    518   : buffer[0] mm import buffer failed! memory = 0x1e, type = dma_fd(0x0)
[  576.742575] rga: 468    518   : RGA_MMU unsupported memory larger than 4G!
[  576.742621] rga: 468    518   : scheduler core[4] unsupported mm_flag[0x0]!
[  576.742633] rga: 468    518   : buffer[0] mm import buffer failed! memory = 0x18, type = dma_fd(0x0)
[  576.796008] rga: 468    518   : RGA_MMU unsupported memory larger than 4G!
[  576.796049] rga: 468    518   : scheduler core[4] unsupported mm_flag[0x0]!
[  576.796062] rga: 468    518   : buffer[0] mm import buffer failed! memory = 0x1b, type = dma_fd(0x0)
[  576.849293] rga: 468    518   : RGA_MMU unsupported memory larger than 4G!
[  576.849334] rga: 468    518   : scheduler core[4] unsupported mm_flag[0x0]!
[  576.849347] rga: 468    518   : buffer[0] mm import buffer failed! memory = 0x15, type = dma_fd(0x0)
[  576.902840] rga: 468    518   : RGA_MMU unsupported memory larger than 4G!
[  576.902879] rga: 468    518   : scheduler core[4] unsupported mm_flag[0x0]!
[  576.902892] rga: 468    518   : buffer[0] mm import buffer failed! memory = 0x17, type = dma_fd(0x0)
[  576.956336] rga: 468    518   : RGA_MMU unsupported memory larger than 4G!
[  576.956381] rga: 468    518   : scheduler core[4] unsupported mm_flag[0x0]!
[  576.956393] rga: 468    518   : buffer[0] mm import buffer failed! memory = 0x1e, type = dma_fd(0x0)
[  577.009810] rga: 468    518   : RGA_MMU unsupported memory larger than 4G!
[  577.009856] rga: 468    518   : scheduler core[4] unsupported mm_flag[0x0]!
[  577.009870] rga: 468    518   : buffer[0] mm import buffer failed! memory = 0x18, type = dma_fd(0x0)
[  577.063351] rga: 468    518   : RGA_MMU unsupported memory larger than 4G!
[  577.063390] rga: 468    518   : scheduler core[4] unsupported mm_flag[0x0]!
[  577.063404] rga: 468    518   : buffer[0] mm import buffer failed! memory = 0x1b, type = dma_fd(0x0)
[  577.117118] rga: 468    518   : RGA_MMU unsupported memory larger than 4G!
[  577.117160] rga: 468    518   : scheduler core[4] unsupported mm_flag[0x0]!
[  577.117172] rga: 468    518   : buffer[0] mm import buffer failed! memory = 0x15, type = dma_fd(0x0)
[  577.170747] rga: 468    518   : RGA_MMU unsupported memory larger than 4G!
[  577.170788] rga: 468    518   : scheduler core[4] unsupported mm_flag[0x0]!
[  577.170801] rga: 468    518   : buffer[0] mm import buffer failed! memory = 0x17, type = dma_fd(0x0)
[  577.224210] rga: 468    518   : RGA_MMU unsupported memory larger than 4G!
[  577.224247] rga: 468    518   : scheduler core[4] unsupported mm_flag[0x0]!
[  577.224260] rga: 468    518   : buffer[0] mm import buffer failed! memory = 0x1e, type = dma_fd(0x0)
[  577.398527] rga: 468    518   : RGA_MMU unsupported memory larger than 4G!
[  577.398611] rga: 468    518   : scheduler core[4] unsupported mm_flag[0x0]!
[  577.398629] rga: 468    518   : buffer[0] mm import buffer failed! memory = 0x18, type = dma_fd(0x0)
 

200 评论 分享
写回答
全部评论(3)
2 楼

参考5.10内核:drivers/gpu/drm/rockchip/rockchip_drm_gem.c rockchip_gem_alloc_object 实现,drm申请内存时加上__GFP_DMA32标志位

1
2026-01-23 10:09:41

你好请问有修改后的代码吗

2026-01-27 21:05:50
1 楼

核心问题:RGA 驱动的 MMU 模块对 4G 内存边界的硬编码检查,与 64 位系统的内存寻址冲突。
优先方案:修改 RGA 驱动跳过 4G 边界检查(针对 4G 物理内存场景),快速解决显示异常。
兜底方案:调整内核启动参数或适配 U-Boot 内存配置,从内存分配层面避开 4G 边界。

2026-01-22 16:04:42