I added a register dump to the rknpu.ko driver and run rknn_matmul_api_demo (from rknn toolkit2)
by doing
./rknn_matmul_api_demo 1 1 32 16 0 0 1 1 1,
in the rknpu.ko driver, in rknpu_job.c in the rknpu_job_subcore_commit_pc function, the first_task->regcmd_addr dump looks like this: (full dump in rknn_matmul_api_demo_dump.txt )
Hi, RK3568 NPU hw is slightly different to RK3588. I suggest reviewing the RK3568 TRM (part 2) it should give you an idea of the register values. Then follow my code and it should be similar.
Hi, I'm trying to run your code on rk3568. but when I run
./matmul_fp16_test 1 32 16
I get "RKNPU_SUBMIT returned -1
" and the output in dmesg:I added a register dump to the rknpu.ko driver and run rknn_matmul_api_demo (from rknn toolkit2) by doing
./rknn_matmul_api_demo 1 1 32 16 0 0 1 1 1
, in the rknpu.ko driver, in rknpu_job.c in the rknpu_job_subcore_commit_pc function, the first_task->regcmd_addr dump looks like this: (full dump in rknn_matmul_api_demo_dump.txt )as I understand from your source codes op 0x0201 is OP_REG_CNA, but what does 0x0401 mean - is there a place where I can read about it?