Toybrick

VPU问题

coollooc

新手上路

积分
11
楼主
发表于 2020-12-16 16:20:35    查看: 9645|回复: 3 | [复制链接]    打印 | 只看该作者
我用的是rk3399prod的开发板,现在测试rtsp硬解码,dmesg看到vpu也失败,帮忙看看问题在哪?
1 硬件: RK3399ProD
2 内核:
  1. Linux debian10.toybrick 4.4.189 #7 SMP Thu May 21 15:23:44 CST 2020 aarch64 GNU/Linux
复制代码

3 dmesg问题:
  1. [    0.299509] iommu: Adding device ff650000.vpu_service to group 0
  2. [    1.693565] rk-vcodec ff650000.vpu_service: Looking up vcodec-supply from device tree
  3. [    1.693583] rk-vcodec ff650000.vpu_service: Looking up vcodec-supply property in node /vpu_service@ff650000 failed
  4. [    1.693602] rk-vcodec ff650000.vpu_service: no regulator for vcodec
  5. [    1.694595] rk-vcodec ff650000.vpu_service: probe device
  6. [    1.695383] rk-vcodec ff650000.vpu_service: drm allocator with mmu enabled
  7. [    1.696825] rk-vcodec ff650000.vpu_service: could not find power_model node
  8. [    1.697490] rk-vcodec ff650000.vpu_service: init success
  9. [ 7448.819837] rk_vcodec: vpu_service_ioctl:2138: error: unknown vpu service ioctl cmd 40086c01
复制代码
多谢




回复

使用道具 举报

jefferyzhang

版主

积分
13574
沙发
发表于 2020-12-16 16:45:50 | 只看该作者
这log是正常的,他在遍历所有rk芯片类型选择对应的指令集
回复

使用道具 举报

coollooc

新手上路

积分
11
板凳
 楼主| 发表于 2020-12-16 18:10:12 | 只看该作者
直接run mpi_test错误
  1. sudo mpi_test
  2. mpp[31257]: mpi_test: mpi_test start
  3. mpp[31257]: mpi_test: mpi_test decoder test start
  4. mpp[31257]: mpi: mpp_create enter ctx 0x7fe53cd490 mpi 0x7fe53cd498
  5. mpp[31257]: mpp_info: mpp version: unknown mpp version for missing VCS info
  6. mpp[31257]: mpi: mpp_create leave ret 0 ctx 0x558694f440 mpi 0x7f855ffab8
  7. mpp[31257]: mpi: mpp_init enter ctx 0x558694f440 type 0 coding 0
  8. mpp[31257]: mpp: unable to create unsupported type 0 coding 0
  9. mpp[31257]: mpi: mpp_init leave ret -1
  10. mpp[31257]: mpi_test: mpp_init failed
  11. mpp[31257]: mpi: mpp_destroy enter ctx 0x558694f440
  12. mpp[31257]: mpi: mpp_destroy leave ret 0
  13. mpp[31257]: mpi_test: mpi_test failed
复制代码


mpi_dec_test一直segment fault
  1. toybrick@debian10:~/hust/mpp$ sudo mpi_dec_test -w 1280 -h 720 -t 4 -d -i ~/test.mp4 -f 7 -o 1.h264
  2. mpp[31304]: mpi_dec_test: cmd parse result:
  3. mpp[31304]: mpi_dec_test: input  file name:
  4. mpp[31304]: mpi_dec_test: output file name: 1.h264
  5. mpp[31304]: mpi_dec_test: config file name:
  6. mpp[31304]: mpi_dec_test: width      : 1280
  7. mpp[31304]: mpi_dec_test: height     :  720
  8. mpp[31304]: mpi_dec_test: type       : 4
  9. mpp[31304]: mpi_dec_test: debug flag : 0
  10. mpp[31304]: mpi_dec_test: max frames : 0
  11. mpp[31304]: mpi_dec_test: mpi_dec_test start
  12. mpp[31304]: mpp_info: mpp version: unknown mpp version for missing VCS info
  13. mpp[31304]: mpi_dec_test: 0x559d96a500 mpi_dec_test decoder test start w 1280 h 720 type 4
  14. mpp[31304]: mpp_rt: NOT found ion allocator
  15. mpp[31304]: mpp_rt: found drm allocator
  16. Segmentation fault
  17. toybrick@debian10:~/hust/mpp$ sudo mpi_dec_test -w 1280 -h 720 -t 4 -d -i ~/test.mp4 -f 8 -o test.jpeg
  18. mpp[31317]: mpi_dec_test: cmd parse result:
  19. mpp[31317]: mpi_dec_test: input  file name:
  20. mpp[31317]: mpi_dec_test: output file name: test.jpeg
  21. mpp[31317]: mpi_dec_test: config file name:
  22. mpp[31317]: mpi_dec_test: width      : 1280
  23. mpp[31317]: mpi_dec_test: height     :  720
  24. mpp[31317]: mpi_dec_test: type       : 4
  25. mpp[31317]: mpi_dec_test: debug flag : 0
  26. mpp[31317]: mpi_dec_test: max frames : 0
  27. mpp[31317]: mpi_dec_test: mpi_dec_test start
  28. mpp[31317]: mpp_info: mpp version: unknown mpp version for missing VCS info
  29. mpp[31317]: mpi_dec_test: 0x55b4f0f500 mpi_dec_test decoder test start w 1280 h 720 type 4
  30. mpp[31317]: mpp_rt: NOT found ion allocator
  31. mpp[31317]: mpp_rt: found drm allocator
  32. Segmentation fault
复制代码


dmesg一直是同一个错误
  1. [164792.137388] rk_vcodec: vpu_service_ioctl:2138: error: unknown vpu service ioctl cmd 40086c01
  2. [164792.144358] Core dump to |/usr/lib/systemd/systemd-coredump 31317 0 0 11 1608113346 18446744073709551615 debian10.toybrick mpi_dec_test pipe failed
复制代码
回复

使用道具 举报

jefferyzhang

版主

积分
13574
地板
发表于 2020-12-16 18:12:06 | 只看该作者
??? mpi test不支持mp4输入 jpeg输出吧?
你设置的type是264就只能给264的裸流
回复

使用道具 举报

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

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


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