Toybrick
标题:
RGA imfill 使用出现了一个问题咨询
[打印本页]
作者:
alexanderdumas
时间:
2023-11-1 15:30
标题:
RGA imfill 使用出现了一个问题咨询
本帖最后由 alexanderdumas 于 2023-11-1 15:39 编辑
rga_buffer_t st_img
im_rect lst_rect
我使用了一个:imfill(lst_img, lst_rect, 0x000000ff)
(参数啥的对了好几遍,都没有错,而且是看着demon写的)。
报错如下:
RgaCollorFill(1717) RGA_COLORFILL fail: Invalid argument
RgaCollorFill(1718) RGA_COLORFILL fail: Invalid argument
dmesg:
[167276.823420] rga_policy: invalid function policy
[167276.823431] rga_job: job assign failed
[167276.823433] rga_job: failed to get scheduler, rga_job_commit(742)
[167276.823437] rga: rga_job_commit failed
打开rga_driver驱动日志查看:
[171154.806185] rga_policy: start policy on core = 1
[171154.806186] rga_policy: core = 1, break on feature
[171154.806188] rga_policy: start policy on core = 2
[171154.806190] rga_policy: core = 2, break on feature
[171154.806192] rga_policy: optional_cores = 0
[171154.806196] rga_policy: invalid function policy
[171154.806197] rga_policy: assign core: -1
[171154.806199] rga_job: job assign failed
[171154.806201] rga_job: failed to get scheduler, rga_job_commit(742)
[171154.806204] rga: rga_job_commit failed
目前板子核心是:
scheduler[0]: rga3_core0load = 0%
scheduler[1]: rga3_core1load = 0%
scheduler[2]: rga2load = 0%
驱动版本:
RGA multicore Device Driver: v1.2.9
RGA 版本:rga_api version 1.8.0_[0]
是怎么回事呢
作者:
alexanderdumas
时间:
2023-11-1 17:24
把这行去掉就可以:
imconfig(IM_CONFIG_SCHEDULER_CORE, IM_SCHEDULER_RGA3_CORE0);
因为有多个服务,本想着每个服务绑定单独的一个核心,充分发挥RGA的性能。
欢迎光临 Toybrick (https://t.rock-chips.com/)
Powered by Discuz! X3.3