Hi,
We use Jetson Nano NVENC to encoder 4 camera with 640x480. We referenced the Tegra_Multimedia_API_R32.2.0_aarch64. The jetpack version is 4.4 [L4T 32.4.3]. We need to change the bitrate occasionally, hence, the encoder may be exited and created new one.
In most cases, the function works fine. But it may be bolcked at v4l2_ioctl(fd, VIDIOC_STREAMOFF, &buf_type);
in NvV4l2ElementPlane.cpp.
At that time, there are several logs by application shown as below:
NvRmChannelSubmit: NvError_IoctlFailed with error code 22
NvRmPrivFlush: NvRmChannelSubmit failed (err = 196623, SyncPointIdx = 7, SyncPointValue = 0)
fence_set_name ioctl failed with 22
NvMMLiteVideoEncDoWork:NvMSEncConvertSurfaceFormat failed
VENC: NvMMLiteVideoEncDoWork: 4283: BlockSide error 0x4
NvVideoEnc: BlockError
NvVideoEncTransferOutputBufferToBlock: DoWork failed line# 667
NvVideoEnc: NvVideoEncTransferOutputBufferToBlock TransferBufferToBlock failed Line=678
We think it was print by nvbuf_utils probably. And of course there is kernel dmesg shown as below.
[152490.356974] smmu_dump_pagetable(): fault_address=0x00000000ff1a7200 pa=0x0000000000000200 bytes=1000 #pte=4 in L2
[152490.367380] mc-err: (19) csr_vicsrd: EMEM decode error on PDE or PTE entry
[152490.374364] mc-err: status = 0x6000006c; addr = 0xff1a7200
[152490.380151] mc-err: secure: no, access-type: read, SMMU fault: nr-nw-s
[152490.387684] smmu_dump_pagetable(): fault_address=0x00000000fe1a0000 pa=0x0000000000000000 bytes=1000 #pte=275 in L2
[152490.398261] mc-err: (19) csr_vicsrd: EMEM decode error on PDE or PTE entry
[152490.405275] mc-err: status = 0x6000006c; addr = 0xfe1a0000
[152490.411105] mc-err: secure: no, access-type: read, SMMU fault: nr-nw-s
[152494.205721] falcon 54340000.vic: pin_array_ids: could not get buf err=-22
[152494.212644] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152494.220286] falcon 54340000.vic: submit_add_gathers: failed to copy user inputs: class_ids=000000008c022e38 num_cmdbufs=2
[152494.232198] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152494.239966] (NULL device *): nvhost_sync_fence_set_name: failed to get fence
[152497.730324] falcon 54340000.vic: pin_array_ids: could not get buf err=-22
[152497.737401] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152497.746084] falcon 54340000.vic: submit_add_gathers: failed to copy user inputs: class_ids=000000008c022868 num_cmdbufs=2
[152497.757198] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152497.764845] (NULL device *): nvhost_sync_fence_set_name: failed to get fence
[152497.849457] smmu_dump_pagetable(): fault_address=0x00000000fd4f3000 pa=0x0000000000000000 bytes=1000 #pte=777 in L2
[152497.860009] mc-err: (19) csr_vicsrd: EMEM decode error on PDE or PTE entry
[152497.866994] mc-err: status = 0x6000006c; addr = 0xfd4f3000
[152497.872759] mc-err: secure: no, access-type: read, SMMU fault: nr-nw-s
[152497.880176] smmu_dump_pagetable(): fault_address=0x00000000f6760000 pa=0x0000000000000000 bytes=1000 #pte=718 in L2
[152497.890720] mc-err: (19) csr_vicsrd: EMEM decode error on PDE or PTE entry
[152497.897837] mc-err: status = 0x6000006c; addr = 0xf6760000
[152497.903681] mc-err: secure: no, access-type: read, SMMU fault: nr-nw-s
[152497.931569] falcon 54340000.vic: pin_array_ids: could not get buf err=-22
[152497.938586] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152497.946477] falcon 54340000.vic: submit_add_gathers: failed to copy user inputs: class_ids=000000008c023b08 num_cmdbufs=2
[152497.957689] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152497.965334] (NULL device *): nvhost_sync_fence_set_name: failed to get fence
[152498.014272] falcon 54340000.vic: pin_array_ids: could not get buf err=-22
[152498.021197] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152498.028884] falcon 54340000.vic: submit_add_gathers: failed to copy user inputs: class_ids=0000000094023328 num_cmdbufs=2
[152498.040044] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152498.047752] (NULL device *): nvhost_sync_fence_set_name: failed to get fence
[152498.083931] falcon 54340000.vic: pin_array_ids: could not get buf err=-22
[152498.090925] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152498.098623] falcon 54340000.vic: submit_add_gathers: failed to copy user inputs: class_ids=000000008c023b28 num_cmdbufs=2
[152498.109712] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152498.118126] (NULL device *): nvhost_sync_fence_set_name: failed to get fence
[152498.125353] mc-err: Too many MC errors; throttling prints
[152507.587766] smmu_dump_pagetable(): fault_address=0x00000000fb8c0000 pa=0x0000000000000000 bytes=1000 #pte=226 in L2
[152507.598405] mc-err: (19) csr_vicsrd: EMEM decode error on PDE or PTE entry
[152507.605477] mc-err: status = 0x6000006c; addr = 0xfb8c0000
[152507.611315] mc-err: secure: no, access-type: read, SMMU fault: nr-nw-s
[152507.618904] smmu_dump_pagetable(): fault_address=0x00000000fb6a0000 pa=0x0000000000000000 bytes=1000 #pte=509 in L2
[152507.629577] mc-err: (19) csr_vicsrd: EMEM decode error on PDE or PTE entry
[152507.636701] mc-err: status = 0x6000006c; addr = 0xfb6a0000
[152507.642596] mc-err: secure: no, access-type: read, SMMU fault: nr-nw-s
[152507.666741] falcon 54340000.vic: pin_array_ids: could not get buf err=-22
[152507.674075] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152507.681891] falcon 54340000.vic: submit_add_gathers: failed to copy user inputs: class_ids=000000008c023b88 num_cmdbufs=2
[152507.692969] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152507.700739] (NULL device *): nvhost_sync_fence_set_name: failed to get fence
[152507.848893] smmu_dump_pagetable(): fault_address=0x00000000fc660000 pa=0x0000000000000000 bytes=1000 #pte=459 in L2
[152507.859436] mc-err: (19) csr_vicsrd: EMEM decode error on PDE or PTE entry
[152507.866424] mc-err: status = 0x6000006c; addr = 0xfc660000
[152507.872188] mc-err: secure: no, access-type: read, SMMU fault: nr-nw-s
[152507.879718] smmu_dump_pagetable(): fault_address=0x00000000f9ce0000 pa=0x0000000000000000 bytes=1000 #pte=374 in L2
[152507.890303] mc-err: (19) csr_vicsrd: EMEM decode error on PDE or PTE entry
[152507.897323] mc-err: status = 0x6000006c; addr = 0xf9ce0000
[152507.903156] mc-err: secure: no, access-type: read, SMMU fault: nr-nw-s
[152507.925451] falcon 54340000.vic: pin_array_ids: could not get buf err=-22
[152507.932460] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152507.941315] falcon 54340000.vic: submit_add_gathers: failed to copy user inputs: class_ids=0000000094022ad8 num_cmdbufs=2
[152507.953191] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152507.960889] (NULL device *): nvhost_sync_fence_set_name: failed to get fence
[152508.174616] mc-err: Too many MC errors; throttling prints
[152508.204717] falcon 54340000.vic: pin_array_ids: could not get buf err=-22
[152508.211970] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152508.219626] falcon 54340000.vic: submit_add_gathers: failed to copy user inputs: class_ids=000000009402b868 num_cmdbufs=2
[152508.230698] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152508.238331] (NULL device *): nvhost_sync_fence_set_name: failed to get fence
[152510.624100] falcon 54340000.vic: pin_array_ids: could not get buf err=-22
[152510.631290] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152510.639254] falcon 54340000.vic: submit_add_gathers: failed to copy user inputs: class_ids=000000008c029428 num_cmdbufs=2
[152510.650506] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152510.658802] (NULL device *): nvhost_sync_fence_set_name: failed to get fence
[152511.145672] falcon 54340000.vic: pin_array_ids: could not get buf err=-22
[152511.153130] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152511.160976] falcon 54340000.vic: submit_add_gathers: failed to copy user inputs: class_ids=000000008c0229b8 num_cmdbufs=2
[152511.172163] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152511.179964] (NULL device *): nvhost_sync_fence_set_name: failed to get fence
[152517.083286] falcon 54340000.vic: pin_array_ids: could not get buf err=-22
[152517.090224] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152517.097859] falcon 54340000.vic: submit_add_gathers: failed to copy user inputs: class_ids=000000008c013d48 num_cmdbufs=2
[152517.109127] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152517.116872] (NULL device *): nvhost_sync_fence_set_name: failed to get fence
[152526.520754] falcon 54340000.vic: pin_array_ids: could not get buf err=-22
[152526.527667] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152526.535283] falcon 54340000.vic: submit_add_gathers: failed to copy user inputs: class_ids=0000000094023ef8 num_cmdbufs=2
[152526.546337] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152526.553982] (NULL device *): nvhost_sync_fence_set_name: failed to get fence
[152526.582084] falcon 54340000.vic: pin_array_ids: could not get buf err=-22
[152526.589034] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152526.597237] falcon 54340000.vic: pin_array_ids: could not get buf err=-22
[152526.597242] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152526.597258] falcon 54340000.vic: submit_add_gathers: failed to copy user inputs: class_ids=0000000094022ac8 num_cmdbufs=2
[152526.597261] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152526.597362] (NULL device *): nvhost_sync_fence_set_name: failed to get fence
[152526.641216] falcon 54340000.vic: submit_add_gathers: failed to copy user inputs: class_ids=000000008c02bf68 num_cmdbufs=2
[152526.652576] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152526.660263] (NULL device *): nvhost_sync_fence_set_name: failed to get fence
[152526.687366] falcon 54340000.vic: pin_array_ids: could not get buf err=-22
[152526.694297] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152526.701910] falcon 54340000.vic: submit_add_gathers: failed to copy user inputs: class_ids=000000008c02bf38 num_cmdbufs=2
[152526.712965] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152526.720596] (NULL device *): nvhost_sync_fence_set_name: failed to get fence
[152526.749058] falcon 54340000.vic: pin_array_ids: could not get buf err=-22
[152526.756020] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152526.763658] falcon 54340000.vic: submit_add_gathers: failed to copy user inputs: class_ids=000000008c02bc88 num_cmdbufs=2
[152526.774773] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152526.782472] (NULL device *): nvhost_sync_fence_set_name: failed to get fence
[152526.792580] smmu_dump_pagetable(): fault_address=0x00000000fe060000 pa=0x0000000000000000 bytes=1000 #pte=113 in L2
[152526.803171] mc-err: (19) csr_vicsrd: EMEM decode error on PDE or PTE entry
[152526.810171] mc-err: status = 0x6000006c; addr = 0xfe060000
[152526.815963] mc-err: secure: no, access-type: read, SMMU fault: nr-nw-s
[152526.824641] smmu_dump_pagetable(): fault_address=0x00000000fe060000 pa=0x0000000000000000 bytes=1000 #pte=113 in L2
[152526.835210] mc-err: (19) csr_vicsrd: EMEM decode error on PDE or PTE entry
[152526.842204] mc-err: status = 0x6000006c; addr = 0xfe060000
[152526.847971] mc-err: secure: no, access-type: read, SMMU fault: nr-nw-s
[152526.885311] smmu_dump_pagetable(): fault_address=0x00000000fd8e0000 pa=0x0000000000000000 bytes=1000 #pte=371 in L2
[152526.895863] mc-err: (19) csr_vicsrd: EMEM decode error on PDE or PTE entry
[152526.902858] mc-err: status = 0x6000006c; addr = 0xfd8e0000
[152526.908617] mc-err: secure: no, access-type: read, SMMU fault: nr-nw-s
[152526.944730] smmu_dump_pagetable(): fault_address=0x00000000ff617200 pa=0x0000000000000200 bytes=1000 #pte=2 in L2
[152526.955086] mc-err: (19) csr_vicsrd: EMEM decode error on PDE or PTE entry
[152526.962067] mc-err: status = 0x6000006c; addr = 0xff617200
[152526.967837] mc-err: secure: no, access-type: read, SMMU fault: nr-nw-s
[152527.002749] falcon 54340000.vic: pin_array_ids: could not get buf err=-22
[152527.009775] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152527.018729] falcon 54340000.vic: submit_add_gathers: failed to copy user inputs: class_ids=000000008c010958 num_cmdbufs=2
[152527.029813] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152527.030047] mc-err: Too many MC errors; throttling prints
[152527.043326] (NULL device *): nvhost_sync_fence_set_name: failed to get fence
[152527.067778] falcon 54340000.vic: pin_array_ids: could not get buf err=-22
[152527.074754] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152527.082494] falcon 54340000.vic: submit_add_gathers: failed to copy user inputs: class_ids=000000008c02b908 num_cmdbufs=2
[152527.085121] falcon 54340000.vic: pin_array_ids: could not get buf err=-22
[152527.085127] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152527.085140] falcon 54340000.vic: submit_add_gathers: failed to copy user inputs: class_ids=000000008c010568 num_cmdbufs=2
[152527.085143] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152527.085185] (NULL device *): nvhost_sync_fence_set_name: failed to get fence
[152527.107469] falcon 54340000.vic: pin_array_ids: could not get buf err=-22
[152527.107473] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152527.107486] falcon 54340000.vic: submit_add_gathers: failed to copy user inputs: class_ids=000000008c010b28 num_cmdbufs=2
[152527.107489] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152527.107542] (NULL device *): nvhost_sync_fence_set_name: failed to get fence
[152527.138400] falcon 54340000.vic: pin_array_ids: could not get buf err=-22
[152527.138405] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152527.138418] falcon 54340000.vic: submit_add_gathers: failed to copy user inputs: class_ids=000000008c010738 num_cmdbufs=2
[152527.138421] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152527.138473] (NULL device *): nvhost_sync_fence_set_name: failed to get fence
[152527.163274] falcon 54340000.vic: pin_array_ids: could not get buf err=-22
[152527.163280] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152527.163295] falcon 54340000.vic: submit_add_gathers: failed to copy user inputs: class_ids=000000008c010408 num_cmdbufs=2
[152527.163298] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152527.163351] (NULL device *): nvhost_sync_fence_set_name: failed to get fence
[152527.220653] falcon 54340000.vic: pin_array_ids: could not get buf err=-22
[152527.220658] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152527.220672] falcon 54340000.vic: submit_add_gathers: failed to copy user inputs: class_ids=000000008c011058 num_cmdbufs=2
[152527.220675] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152527.220742] (NULL device *): nvhost_sync_fence_set_name: failed to get fence
[152527.294864] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152527.302528] (NULL device *): nvhost_sync_fence_set_name: failed to get fence
[152531.435474] falcon 54340000.vic: pin_array_ids: could not get buf err=-22
[152531.442415] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152531.450040] falcon 54340000.vic: submit_add_gathers: failed to copy user inputs: class_ids=000000009402b868 num_cmdbufs=2
[152531.461120] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152531.468790] (NULL device *): nvhost_sync_fence_set_name: failed to get fence
[152531.496651] falcon 54340000.vic: pin_array_ids: could not get buf err=-22
[152531.503569] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152531.511187] falcon 54340000.vic: submit_add_gathers: failed to copy user inputs: class_ids=000000008c02c3c8 num_cmdbufs=2
[152531.522295] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152531.529951] (NULL device *): nvhost_sync_fence_set_name: failed to get fence
[152531.557475] falcon 54340000.vic: pin_array_ids: could not get buf err=-22
[152531.564498] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152531.572160] falcon 54340000.vic: submit_add_gathers: failed to copy user inputs: class_ids=000000008c02c3c8 num_cmdbufs=2
[152531.583282] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152531.591100] (NULL device *): nvhost_sync_fence_set_name: failed to get fence
[152531.618501] falcon 54340000.vic: pin_array_ids: could not get buf err=-22
[152531.625491] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152531.633095] falcon 54340000.vic: submit_add_gathers: failed to copy user inputs: class_ids=0000000094029088 num_cmdbufs=2
[152531.644148] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152531.651793] (NULL device *): nvhost_sync_fence_set_name: failed to get fence
[152531.678533] falcon 54340000.vic: pin_array_ids: could not get buf err=-22
[152531.685462] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152531.693721] falcon 54340000.vic: submit_add_gathers: failed to copy user inputs: class_ids=0000000094022c28 num_cmdbufs=2
[152531.704807] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152531.712449] (NULL device *): nvhost_sync_fence_set_name: failed to get fence
[152531.739153] falcon 54340000.vic: pin_array_ids: could not get buf err=-22
[152531.746085] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152531.753867] falcon 54340000.vic: submit_add_gathers: failed to copy user inputs: class_ids=000000009402d088 num_cmdbufs=2
[152531.764982] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152531.772766] (NULL device *): nvhost_sync_fence_set_name: failed to get fence
[152531.800198] falcon 54340000.vic: pin_array_ids: could not get buf err=-22
[152531.807132] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152531.814812] falcon 54340000.vic: submit_add_gathers: failed to copy user inputs: class_ids=000000009402c458 num_cmdbufs=2
[152531.825877] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152531.833512] (NULL device *): nvhost_sync_fence_set_name: failed to get fence
[152531.861050] falcon 54340000.vic: pin_array_ids: could not get buf err=-22
[152531.868048] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152531.875649] falcon 54340000.vic: submit_add_gathers: failed to copy user inputs: class_ids=000000008c02c3c8 num_cmdbufs=2
[152531.886761] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152531.894541] (NULL device *): nvhost_sync_fence_set_name: failed to get fence
[152531.922178] falcon 54340000.vic: pin_array_ids: could not get buf err=-22
[152531.929282] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152531.936950] falcon 54340000.vic: submit_add_gathers: failed to copy user inputs: class_ids=0000000094022be8 num_cmdbufs=2
[152531.948434] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152531.956545] (NULL device *): nvhost_sync_fence_set_name: failed to get fence
[152531.984133] falcon 54340000.vic: pin_array_ids: could not get buf err=-22
[152531.991130] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152531.998807] falcon 54340000.vic: submit_add_gathers: failed to copy user inputs: class_ids=0000000094010898 num_cmdbufs=2
[152532.009935] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152532.017743] (NULL device *): nvhost_sync_fence_set_name: failed to get fence
[152532.044936] falcon 54340000.vic: pin_array_ids: could not get buf err=-22
[152532.051946] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152532.059581] falcon 54340000.vic: submit_add_gathers: failed to copy user inputs: class_ids=0000000094022c48 num_cmdbufs=2
[152532.070637] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152532.078263] (NULL device *): nvhost_sync_fence_set_name: failed to get fence
[152532.103764] falcon 54340000.vic: pin_array_ids: could not get buf err=-22
[152532.110675] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152532.118280] falcon 54340000.vic: submit_add_gathers: failed to copy user inputs: class_ids=000000008c02c008 num_cmdbufs=2
[152532.129423] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152532.137121] (NULL device *): nvhost_sync_fence_set_name: failed to get fence
[152532.163940] falcon 54340000.vic: pin_array_ids: could not get buf err=-22
[152532.170867] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152532.178468] falcon 54340000.vic: submit_add_gathers: failed to copy user inputs: class_ids=000000008c02c008 num_cmdbufs=2
[152532.189522] falcon 54340000.vic: nvhost_ioctl_channel_submit: failed with err -22
[152532.197169] (NULL device *): nvhost_sync_fence_set_name: failed to get fence
We have coded a test application and attached. You can download the NVENC.tar.gz and compile it by make CC=aarch64-linux-gnu-g++
in Linux. Of course you shold have the aarch64 cross-compiler. And this test application relays on dynamic library including pthread, v4l2, nvbuf_utils.
NVENC.tar.gz (1.9 MB)
This phenomenon can be easily reproduced by run two or more application attached meanwhile.