导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页

    npu无法awnn_det_demo 错误,能回答?

    V Series
    1
    1
    788
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • S
      super0759 LV 5 最后由 编辑

      root@(none):/usr/bin/det_demo# ./awnn_det_demo testcase.txt
      info: models/pdet/1.0.1_Gamma.nb, 1, 0.250000, 1
      input:body_640x360.nv12, 640, 360
      info: models/pdet/3.0.1_Beta.nb, 3, 0.250000, 1
      input:body_384x216.nv12, 384, 216
      info: models/fdet/Facedet_480_288_nv12.nb, 4, 0.600000, 1
      input:face_480x270.nv12, 480, 270
      count=3
      =====info 05dc32ee903c08a3abd53ddd829a8dd5 640 384 10061394 0.000000
      =====info 827b3a725d0fd7173338a56fd06c8db0 384 224 2829624 0.000000
      =====info 3d42fcd47490a62d52ea0[48198.853183] npu[37e][37e] drv open process pid=37e, tid=37e
      21760ddc7d6 480 288 3639619 0.00[48198.861633] ------lq KERNEL_CMD_INIT0000
      mem_size: 16530637
      Versio---lq vpmdENABLE_MULTIPLE_TASK=1 context->initialize=0
      n: AWNN_LIB_1.0.4

      [48198.876741] npu[37e][37e] start create initialize mutex ...
      [48198.884839] npu[37e][37e] linux kernel version=0x409bf
      [48198.890644] npu[37e][37e] power on vip hardware0.
      [48198.895936] npu[37e][37e] vipcore, device init..
      [48198.901230] set_vip_power_clk ON
      [48198.906894] enter aw vip mem alloc size 16530637 vip_heap
      [48198.970477] aw_vip_mem_alloc vir 0xc50a6000, phy 0x48400000
      [48198.976796] npu[37e][37e] gckvip_drv_init kernel logical phy address=0x48400000 virtual =0xc50a6000
      [48198.987190] npu[37e][37e] VIPLite driver software version 1.13.0.0-AW-2023-08-21
      [48198.995504] npu[37e][37e] vpmdENABLE_RECOVERY=0
      [48199.000696] npu[37e][37e] vpmdHARDWARE_TIMEOUT=20000
      [48199.006284] npu[37e][37e] vpmdENABLE_HANG_DUMP=2
      [48199.011498] npu[37e][37e] vpmdENABLE_USE_AGENT_TRIGGER=0
      [48199.017484] npu[37e][37e] vpmdENABLE_CAPTURE=0
      [48199.022479] npu[37e][37e] vpmdENABLE_CAPTURE_IN_KERNEL=0
      [48199.028463] npu[37e][37e] vpmdCREATE_NETWORK_FROM_FLASH=0
      [48199.034533] npu[37e][37e] vpmdENABLE_WAIT_LINK_LOOP=0
      [48199.040226] npu[37e][37e] vpmdENABLE_FLUSH_CPU_CACHE=1, LINE_SIZE=64
      [48199.047428] npu[37e][37e] vpmdENABLE_VIDEO_MEMORY_CACHE=0
      [48199.053501] npu[37e][37e] vpmdENABLE_LAYER_DUMP=0
      [48199.058817] npu[37e][37e] vpmdENABLE_CNN_PROFILING=0
      [48199.064400] npu[37e][37e] vpmdENABLE_BW_PROFILING=0
      [48199.069900] npu[37e][37e] vpmdENABLE_MEMORY_PROFILING=0
      [48199.075773] npu[37e][37e] vpmdENABLE_DEBUG_LOG=4
      [48199.080977] npu[37e][37e] vpmdENABLE_SUPPORT_CPU_LAYER=1
      [48199.086962] npu[37e][37e] vpmdENABLE_SYS_MEMORY_HEAP=1
      [48199.092739] npu[37e][37e] vpmdENABLE_VIDEO_MEMORY_HEAP=1
      [48199.098767] npu[37e][37e] vpmdENABLE_MMU=0
      [48199.103376] npu[37e][37e] vpmdPOWER_OFF_TIMEOUT=10000
      [48199.109071] npu[37e][37e] vpmdENABLE_SUSPEND_RESUME=1
      [48199.114751] npu[37e][37e] vpmdENABLE_USER_CONTROL_POWER=0
      [48199.120834] npu[37e][37e] vpmdENABLE_CANCELATION=1
      [48199.126222] npu[37e][37e] vpmdENABLE_DEBUGFS=1
      [48199.131229] npu[37e][37e] vpmdENABLE_CREATE_BUF_FD=1
      [48199.136822] npu[37e][37e] vpmdENABLE_GROUP_MODE=1
      [48199.142109] npu[37e][37e] vpmdENABLE_NODE=0
      [48199.146864] npu[37e][37e] vpmdENABLE_CHANGE_PPU_PARAM=1
      [48199.152741] npu[37e][37e] vpmdENABLE_FUNC_TRACE=0
      [48199.158047] npu[37e][37e] vpmdENABLE_REDUCE_MEMORY=0
      [48199.163629] npu[37e][37e] vpmdENABLE_RESERVE_PHYSICAL=0
      [48199.169516] npu[37e][37e] vpmdENABLE_POWER_MANAGEMENT=1
      [48199.175391] npu[37e][37e] vpmdENABLE_CLOCK_SUSPEND=1
      [48199.180985] npu[37e][37e] vpmdDUMP_NBG_RESOURCE=0
      [48199.186273] npu[37e][37e] vpmdENABLE_POLLING=0
      [48199.191303] npu[37e][37e] hashmap 0xc0a74e74: insert index=1, handle=0x0000037e
      [48199.199590] npu[37e][37e] axi sram address=0x00000000, vipsram address=0x00400000
      [48199.208028] npu[37e][37e] core 0 axi sram size=0x00000000, vip sram size=0x20000
      [48199.216347] npu[37e][37e] max_core_count=0, total core count=1, total device=1
      [48199.224508] npu[37e][37e] device_id=0, this device core count=1, core_fscale_percent=-1053044736
      [48199.234396] npu[37e][37e] core_id=0
      [48199.238533] npu[37e][37e] queue create read signal=0xc13bd240
      [48199.244995] npu[37e][37e] queue create write signal=0xc13bd280
      [48199.251766] npu[37e][37e] device0, mt_hashmap=0xc3968074
      [48199.257790] npu[384][384] multi-thread dev0 process thread start
      [48199.264632] npu[37e][37e] multi-task is enabled...
      [48199.270255] npu[37e][37e] power management is enabled ...
      [48199.276350] npu[37e][37e] video memory heap base physical=0x48400000, user logical=0x (null), kernel logical=0xc50a6000, size=0xfc3ccd bytes
      [48199.290755] npu[37e][37e] video memory heap total free: 0xfbee0d bytes, node used: 0x4ec0 bytes, node capacity: 1008
      [48199.302715] npu[37e][37e] video memory heap capability=0xe7b
      [48199.309110] npu[37e][37e] video memory alloc_flag=0x611, align=0x40, size=0x280
      [48199.317368] npu[37e][37e] video memory heap_alloc, physical=0x48400000, virtual=0x48400000, kernel logical=0xc50a6000, user logical=0x (null), handle=0xc2646b80, size=0x280, align=0x40, allo_flag=0x611
      [48199.337614] npu[37e][37e] init register capture done
      [48199.343203] npu[37e][37e] ver1=0x9000, ver2=0x8303, cid=0x00ee, date=0x20210128
      [48199.352017] npu[37e][37e] start prepare init commands
      [48199.357722] npu[37e][37e] video memory alloc_flag=0x641, align=0x40, size=0x100
      [48199.365956] npu[37e][37e] video memory heap_alloc, physical=0x48401000, virtual=0x48401000, kernel logical=0xc50a7000, user logical=0x00001000, handle=0xc2646080, size=0x100, align=0x40, allo_flag=0x641
      [48199.386208] npu[37e][37e] database convert from first_free_pos=0x2 handle=0xc2646080 to id=0x15000001, pid=37e
      [48199.397518] npu[37e][37e] hardware initialize core0..
      [48199.403214] npu[37e][37e] MMU is disabled
      [48199.408048] npu[37e][37e] submit initialize commands size=0xa0, hand=0xc2646080
      [48199.416286] npu[37e][37e] dev0 wait mem_handle=0xc2646080 start
      [48199.422963] npu[37e][37e] irq check try count=0, wait irq value=0x10
      [48199.430127] npu[37e][37e] HASHMAP 0xc0a77418 GET BY HANDLE: handle 0xc2646080 not exist in hashmap
      [48199.440216] npu[37e][37e] end profiling can't find handle=0xc2646080
      [48199.447428] npu[37e][37e] dev0 wait mem_handle=0xc2646080 done
      [48199.453991] npu[37e][37e] initialize commands done
      [48199.459398] npu[37e][37e] hardware initialize done core_count=1
      [48199.466058] npu[37e][37e] VIP Frequency:
      [48199.470490] npu[37e][37e] set hardware frequency fscale=64, percent=100
      [48199.527988] npu[37e][37e] core[0] Core Frequency=347992554 HZ
      [48199.534648] npu[37e][37e] core[0] PPU Frequency=347996212 HZ
      [48199.541328] npu[37e][37e] hardware clock suspend.
      [48199.546686] npu[37e][37e] query hw0 idle, wait time=10ms, fast=1, reg=0x7fffffff, is_idle=Y
      [48199.556088] npu[37e][37e] do init done initialize num=1 pid=0x37e.
      [48199.563090] npu[37e][37e] --lq -> drv release process pid=37e, tid=37e
      [48199.630482] npu[37e][37e] start to destroy resource, pid=37e, tid=37e
      [48199.637754] npu[37e][37e] hashmap 0xc0a74e74: remove index=1, handle=0x0000037e
      [48199.645978] npu[37e][37e] start to destroy vip pid=0x37e..
      [48199.652217] npu[384][384] multi-task thread exit
      [48199.657442] npu[37e][37e] free video memory handle=0xc2646080
      [48199.657468] npu[385][385] power management thread wake up.
      [48199.657474] npu[385][385] power manage thread not running, exit thread after wait signal
      [48199.657478] npu[385][385] power management thread exit
      [48199.657537] npu[37e][37e] free video memory handle=0xc2646b80
      [48199.657550] npu[37e][37e] video memory heap destroy....
      [48199.657567] npu[37e][37e] power management uninit done
      [48199.703541] npu[37e][37e] gckvip_drv_exit, aw_vip_mem_free
      [48199.709814] aw_vip_mem_free vir 0xc50a6000, phy 0x48400000
      [48199.719837] npu[37e][37e] power off vip hardware0.
      [48199.725243] npu[37e][37e] vipcore, device un-init..
      [48199.730847] npu[37e][37e] destroy initialize mutex
      [48199.736254] npu[37e][37e] end to destroy vip..
      [0xb6f2e560]gcvip_os_init[125], fail to mmap device vipcore, video memory size: 0xfc3ccd
      [0xb6f2e560]gcvip_user_init[347], fail to initialize OS, status=-2.
      [0xb6f2e560]gcvip_init[4216], failed to user init
      E viplite init failed!
      ---------lq wait 20s memsize: 16530637
      [0xb6f2e560]gcvip_os_call_kernel[332], failed os is NULL, command: CMD_DESTROY
      [0xb6f2e560]gcvip_user_destroy[419], fail to call kernel cmd destroy
      [0xb6f2e560]gcvip_os_uninit[164], failed os is NULL in uninit
      [0xb6f2e560]gcvip_destroy[4303], failed to user destroy
      E viplite uninit failed!

      1 条回复 最后回复 回复 引用 分享 0
      • 1 / 1
      • First post
        Last post

      Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

      行为准则 | 用户协议 | 隐私权政策