From ProventusNova DeveloperWiki
Debug NVIDIA Jetson nvv4l2av1enc VPR Violation (EMEM decode error)
Issue description
When using NVIDIA's encoder AV1 GStreamer element nvv4l2av1enc with a non-standard resolution, such as 2712x1538, it may trigger unauthorized access to protected memory issues. You may see logs from the kernel reporting EMEM address decode error (EMEM decode error), route sanity error, and VPR violation issues.
Replicate issue
For replicating this issue do the following.
To see kernel debug messages run:
dmesg -wH
On another console run the following GStreamer pipeline:
gst-launch-1.0 videotestsrc is-live=1 ! 'video/x-raw, width=2712, height=1538, framerate=90/1' ! nvvidconv ! queue ! nvv4l2av1enc name=encoder1 bitrate=22000000 maxperf-enable=1 insert-seq-hdr=true idrinterval=15 iframeinterval=256 ! fakesink
Important: The issue doest not occur every time. For getting the error cancel and execute the pipeline repeatedly until you see a log from the dmesg the looks like the following:
arm-smmu 12000000.iommu: Unhandled context fault: fsr=0x402, iova=0x3ffded8000, fsynr=0x6f0013, cbfrsynra=0x835, cb=2
[ +0.000462] arm-smmu 12000000.iommu: Unhandled context fault: fsr=0x402, iova=0x3ffded8000, fsynr=0x6f0003, cbfrsynra=0x835, cb=2
[ +0.000436] arm-smmu 12000000.iommu: Unhandled context fault: fsr=0x402, iova=0x3ffded8000, fsynr=0x6f0003, cbfrsynra=0x835, cb=2
[ +0.000423] arm-smmu 12000000.iommu: Unhandled context fault: fsr=0x402, iova=0x3ffded8000, fsynr=0x6f0013, cbfrsynra=0x835, cb=2
[ +0.000406] arm-smmu 12000000.iommu: Unhandled context fault: fsr=0x402, iova=0x3ffded8000, fsynr=0x6f0013, cbfrsynra=0x835, cb=2
[ +0.000407] arm-smmu 12000000.iommu: Unhandled context fault: fsr=0x402, iova=0x3ffded8000, fsynr=0x6f0003, cbfrsynra=0x835, cb=2
[ +0.000400] arm-smmu 12000000.iommu: Unhandled context fault: fsr=0x402, iova=0x3ffded8000, fsynr=0x6f0003, cbfrsynra=0x835, cb=2
[ +0.000396] arm-smmu 12000000.iommu: Unhandled context fault: fsr=0x402, iova=0x3ffded8000, fsynr=0x6f0003, cbfrsynra=0x835, cb=2
[ +0.000865] arm-smmu 12000000.iommu: Unhandled context fault: fsr=0x402, iova=0x3ffded8000, fsynr=0x6f0003, cbfrsynra=0x835, cb=2
[ +0.001541] arm-smmu 12000000.iommu: Unhandled context fault: fsr=0x402, iova=0x3ffded8000, fsynr=0x6f0013, cbfrsynra=0x835, cb=2
[ +0.008255] tegra-mc 2c00000.memory-controller: nvencsrd: secure read @0x000000ffffffff00: EMEM address decode error (EMEM decode error)
[ +0.009824] tegra-mc 2c00000.memory-controller: nvencswr: secure write @0x00000003ffffff00: VPR violation ((null))
[ +0.009101] tegra-mc 2c00000.memory-controller: nvencswr: secure write @0x00000003ffffff00: Route Sanity error ((null))
[ +0.016422] tegra-mc 2c00000.memory-controller: nvencsrd: secure read @0x000000ffffffff00: EMEM address decode error (EMEM decode error)
[ +0.004142] tegra-mc 2c00000.memory-controller: nvencswr: secure write @0x00000003ffffff00: VPR violation ((null))
[ +0.009097] tegra-mc 2c00000.memory-controller: nvencswr: secure write @0x00000003ffffff00: Route Sanity error ((null))
[ +0.019064] tegra-mc 2c00000.memory-controller: unknown: secure read @0x000000ffffffff00: EMEM address decode error (EMEM decode error)
[ +0.001501] tegra-mc 2c00000.memory-controller: nvencswr: secure write @0x00000003ffffff00: VPR violation ((null))
[ +0.009187] tegra-mc 2c00000.memory-controller: nvencswr: secure write @0x00000003ffffff00: Route Sanity error ((null))
[ +0.015548] tegra-mc 2c00000.memory-controller: nvencsrd: secure read @0x000000ffffffff00: EMEM address decode error (EMEM decode error)