Kernel panic hardware h264 decode

Which system do you use? Android, Ubuntu, OOWOW or others?

Armbian 24.2.1 Bookworm

Please describe your issue below:

I got kernel panic on my VIM4 when using h264_v4l2m2m for hardware acceleration.

Post a console log of your issue below:

[13389.348512][2 T41925 d.] Internal error: Oops: 96000005 [#1] PREEMPT SMP
[13389.361146][2 T41925 d.] Modules linked in: xt_nat xt_tcpudp nf_conntrack_netlink xfrm_user xfrm_algo br_netfilter bridge stp llc bnep overlay veth xt_addrtype xt_MASQUERADE xt_conntrack nft_compat nft_counter nft_chain_nat nf_tables nfnetlink nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 amlogic_multienc amlogic_jpegenc media_sync amvdec_avs2_fb_v4l amvdec_mavs_v4l amvdec_avs2_v4l amvdec_avs3_v4l amvdec_av1_v4l amvdec_av1 amvdec_mavs amvdec_avs2 amvdec_vp9_v4l amvdec_vp9 amvdec_vc1 amvdec_mmpeg4_v4l amvdec_mmpeg4 amvdec_mmpeg12_v4l amvdec_mmpeg12 amvdec_mmjpeg_v4l amvdec_mmjpeg amvdec_h265_v4l amvdec_h265 amvdec_h264mvc amvdec_mh264_v4l amvdec_mh264 video_framerate_adapter mac80211 amlogic_snd_codec_ad82128 amlogic_snd_codec_tas5805 amlogic_snd_codec_tas5707 amlogic_snd_codec_tl1 dhd amlogic_snd_codec_t9015 amlogic_snd_codec_dummy amlogic_jtag amlogic_led amlogic_socinfo mousedev dwc_otg amvdec_ports cfg80211 amlogic_dvb_ci usbkbd usbmouse amlogic_dvb_demux amlogic_audio_utils
[13389.361315][2 T41925 d.]  i2c_dev dwmac_dwc_qos_eth stream_input pts_server mali_kbase decoder_common dwmac_meson firmware usbhid media_clock system_heap ntfs3 khadas_mcu sha1_ce dw9714 amlsens amlogic_pcie_v2_host amlogic_host amlcam amlogic_snd_soc amlogic_seckey adla_core amlogic_rtc v4l2_fwnode v4l2_async joydev zram zsmalloc amlogic_wireless amlogic_crypto_dma ip_tables x_tables autofs4 dwmac_meson8b stmmac_platform stmmac aml_drm amlogic_mdio_g12a mdio_mux amlogic_inphy amlogic_phy_debug amlogic_irblaster amlogic_usb amlogic_thermal amlogic_adc amlogic_camera aml_media amlogic_dvb amlogic_watchdog amlogic_input amlogic_pm dvb_core videobuf_core aml_smmu optee amlogic_tee tee amlogic_rng amlogic_spi amlogic_i2c amlogic_mmc cqhci amlogic_efuse_unifykey amlogic_cpufreq amlogic_cpuinfo amlogic_power amlogic_reset pwm_regulator amlogic_pwm amlogic_mailbox amlogic_pinctrl_soc_t7 amlogic_gpio amlogic_aoclk_g12a amlogic_clk_soc_t7 amlogic_clk amlogic_secmon amlogic_memory_debug
[13390.403942][2 T41925 d.]  amlogic_debug pcs_xpcs gpio_regulator page_trace amlogic_hwspinlock amlogic_debug_iotrace amlogic_gkitool
[13391.581974][2 T41925 d.] CPU: 2 PID: 41925 Comm: ffmpeg Not tainted 5.15.119-legacy-meson-s4t7 #2
[13391.688222][2 T41925 d.] Hardware name: Khadas VIM4 (DT)
[13391.751764][2 T41925 d.] pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[13391.848638][2 T41925 d.] pc : vb2ops_vdec_buf_queue+0x8c/0xb60 [amvdec_ports]
[13391.934056][2 T41925 d.] lr : __enqueue_in_driver+0x50/0xec
[13392.000721][2 T41925 d.] sp : ffffffc0125c3930
[13392.053846][2 T41925 d.] x29: ffffffc0125c3980 x28: ffffff81037a8000 x27: 0000000000000000
[13392.152805][2 T41925 d.] x26: 0000000000000000 x25: ffffff81037a8040 x24: ffffff81037a8040
[13392.251763][2 T41925 d.] x23: ffffff81037ade68 x22: ffffffd801735000 x21: ffffff81037aa800
[13392.350721][2 T41925 d.] x20: ffffff81037aa6e8 x19: ffffff811e670000 x18: 0000000000000000
[13392.449679][2 T41925 d.] x17: 0000000000000000 x16: 0000000000000000 x15: 0000007fd0e69584
[13392.548638][2 T41925 d.] x14: 0000000000000000 x13: 0000000000000000 x12: 00000000000026e8
[13392.647596][2 T41925 d.] x11: 0000000000002800 x10: 0000000000000000 x9 : 0000000000000000
[13392.746555][2 T41925 d.] x8 : 0000000000000000 x7 : 0000000000000000 x6 : ffffff81037a8040
[13392.845513][2 T41925 d.] x5 : 0000000000000005 x4 : ffffffd801720858 x3 : ffffff810fec4b24
[13392.944471][2 T41925 d.] x2 : 00000000000051a8 x1 : 0000000000000028 x0 : ffffff810fec4828
[13393.043430][2 T41925 d.] Call trace:
[13393.086140][2 T41925 d.]  vb2ops_vdec_buf_queue+0x8c/0xb60 [amvdec_ports]
[13393.167390][2 T41925 d.]  __enqueue_in_driver+0x50/0xec
[13393.229888][2 T41925 d.]  vb2_start_streaming+0x38/0x170
[13393.293429][2 T41925 d.]  vb2_core_streamon+0x90/0x190
[13393.354888][2 T41925 d.]  vb2_streamon+0x1c/0x70
[13393.410096][2 T41925 d.]  v4l2_m2m_ioctl_streamon+0x5c/0xa0
[13393.476763][2 T41925 d.]  vidioc_decoder_streamon+0xc8/0x55c [amvdec_ports]
[13393.560097][2 T41925 d.]  v4l_streamon+0x24/0x30
[13393.615304][2 T41925 d.]  __video_do_ioctl+0x198/0x410
[13393.676763][2 T41925 d.]  video_usercopy+0x274/0x660
[13393.736138][2 T41925 d.]  video_ioctl2+0x18/0x50
[13393.791347][2 T41925 d.]  v4l2_vcodec_ioctl+0x164/0x594 [amvdec_ports]
[13393.869472][2 T41925 d.]  v4l2_ioctl+0x4c/0x70
[13393.922596][2 T41925 d.]  __arm64_sys_ioctl+0xa8/0xf0
[13393.983013][2 T41925 d.]  invoke_syscall+0x48/0x114
[13394.041346][2 T41925 d.]  el0_svc_common.constprop.0+0x44/0xfc
[13394.111138][2 T41925 d.]  do_el0_svc+0x28/0xa0
[13394.164264][2 T41925 d.]  el0_svc+0x28/0xa0
[13394.214263][2 T41925 d.]  el0t_64_sync_handler+0xa4/0x130
[13394.278846][2 T41925 d.]  el0t_64_sync+0x1b0/0x1b4
[13394.336141][2 T41925 d.] Code: a9096bf9 8b0c0394 8b0b0395 f941e27b (f9451b60) 
[13394.422599][2 T41925 d.] ---[ end trace 634a46ec59759214 ]---
[13394.519423][2 T41925 d.] Kernel panic - not syncing: Oops: Fatal exception
[13394.573640][2 T41925 d.] SMP: stopping secondary CPUs
[13394.634183][2 T41925 d.] Kernel Offset: 0x1800000000 from 0xffffffc008000000
[13394.718429][2 T41925 d.] PHYS_OFFSET: 0x0
[13394.766346][2 T41925 d.] CPU features: 0x0,0000c9a3,00000846
[13394.834055][2 T41925 d.] Memory Limit: none
[13394.912136][2 T41925 d.] Rebooting in 5 seconds..
[13399.970610][2 T41925 d.] [pm]: Reset SDCARD power.

Could you please share more about your environment like what all packages from khadas repository have you applied, what command are you using that we can use to reproduce the issue, etc

Sure, that follow the other issue I got before : here
So I added optee-userspace_0.5-202311_arm64.deband optee-video-firmware_0.4-202311_arm64.deb from https://dl.khadas.com/repos/vim4-5.15/pool/main/o/
I installed ffmpeg with apt install
I created a yuv file with ffmpeg

ffmpeg -i https://github.com/intel-iot-devkit/sample-videos/raw/master/face-demographics-walking.mp4 test.yuv
ffmpeg version 5.1.4-0+deb12u1 Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 12 (Debian 12.2.0-14)
  configuration: --prefix=/usr --extra-version=0+deb12u1 --toolchain=hardened --libdir=/usr/lib/aarch64-linux-gnu --incdir=/usr/include/aarch64-linux-gnu --arch=arm64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --disable-sndio --enable-libjxl --enable-pocketsphinx --enable-librsvg --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --enable-shared
  libavutil      57. 28.100 / 57. 28.100
  libavcodec     59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter     8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample   4.  7.100 /  4.  7.100
  libpostproc    56.  6.100 / 56.  6.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'https://github.com/intel-iot-devkit/sample-videos/raw/master/face-demographics-walking.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41
    creation_time   : 2018-04-27T18:33:59.000000Z
  Duration: 00:01:01.03, start: 0.000000, bitrate: 839 kb/s
  Stream #0:0[0x1](eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv, smpte170m, progressive), 768x432, 711 kb/s, 12 fps, 12 tbr, 24k tbn (default)
    Metadata:
      creation_time   : 2018-04-27T18:33:59.000000Z
      handler_name    : ?Mainconcept Video Media Handler
      vendor_id       : [0][0][0][0]
      encoder         : AVC Coding
  Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 125 kb/s (default)
    Metadata:
      creation_time   : 2018-04-27T18:33:59.000000Z
      handler_name    : #Mainconcept MP4 Sound Media Handler
      vendor_id       : [0][0][0][0]
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> rawvideo (native))
Press [q] to stop, [?] for help
Output #0, rawvideo, to 'test.yuv':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41
    encoder         : Lavf59.27.100
  Stream #0:0(eng): Video: rawvideo (I420 / 0x30323449), yuv420p(tv, smpte170m, progressive), 768x432, q=2-31, 47775 kb/s, 12 fps, 12 tbn (default)
    Metadata:
      creation_time   : 2018-04-27T18:33:59.000000Z
      handler_name    : ?Mainconcept Video Media Handler
      vendor_id       : [0][0][0][0]
      encoder         : Lavc59.37.100 rawvideo
frame=  732 fps=173 q=-0.0 Lsize=  355752kB time=00:01:01.00 bitrate=47775.7kbits/s speed=14.4x    
video:355752kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%

And tried to use hardware decoding for that one :

ffmpeg -c:v h264_v4l2m2m -f rawvideo -pix_fmt yuv420p -s:v 1920x1080 -r 30 -i test.yuv test.mp4 
ffmpeg version 5.1.4-0+deb12u1 Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 12 (Debian 12.2.0-14)
  configuration: --prefix=/usr --extra-version=0+deb12u1 --toolchain=hardened --libdir=/usr/lib/aarch64-linux-gnu --incdir=/usr/include/aarch64-linux-gnu --arch=arm64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --disable-sndio --enable-libjxl --enable-pocketsphinx --enable-librsvg --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --enable-shared
  libavutil      57. 28.100 / 57. 28.100
  libavcodec     59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter     8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample   4.  7.100 /  4.  7.100
  libpostproc    56.  6.100 / 56.  6.100
[extract_extradata @ 0x556e6d5630] No start code is found.
test.yuv: could not find codec parameters
Input #0, rawvideo, from 'test.yuv':
  Duration: N/A, bitrate: N/A
  Stream #0:0: Video: h264, yuv420p, 1920x1080, 746496 kb/s, 30 tbn
[h264_v4l2m2m @ 0x556e6e1e70] Using device /dev/video26
[h264_v4l2m2m @ 0x556e6e1e70] driver 'aml-vcodec-dec' on card 'platform:amlogic' in mplane mode
[h264_v4l2m2m @ 0x556e6e1e70] requesting formats: output=H264 capture=YU12
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (h264_v4l2m2m) -> h264 (libx264))
Press [q] to stop, [?] for help
client_loop: send disconnect: Broken pipe

The oops kernel panic happened there.

Original issue I got was this one, and tried to convert the video to see if it solves my issue :

ffmpeg -c:v h264_v4l2m2m -i https://github.com/intel-iot-devkit/sample-videos/raw/master/face-demographics-walking.mp4 test.mp4 
ffmpeg version n5.1-2-g915ef932a3-20220731 Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 12.1.0 (crosstool-NG 1.25.0.55_3defb7b)
  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=aarch64-ffbuild-linux-gnu- --arch=aarch64 --target-os=linux --enable-gpl --enable-version3 --disable-debug --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --enable-libpulse --enable-libvmaf --enable-libxcb --enable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-libdav1d --disable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-mbedtls --enable-librist --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --disable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --disable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libdrm --disable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --disable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags=-pie --extra-libs='-ldl -lgomp' --extra-version=20220731
  libavutil      57. 28.100 / 57. 28.100
  libavcodec     59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter     8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample   4.  7.100 /  4.  7.100
  libpostproc    56.  6.100 / 56.  6.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'https://github.com/intel-iot-devkit/sample-videos/raw/master/face-demographics-walking.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41
    creation_time   : 2018-04-27T18:33:59.000000Z
  Duration: 00:01:01.03, start: 0.000000, bitrate: 839 kb/s
  Stream #0:0[0x1](eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv, smpte170m, progressive), 768x432, 711 kb/s, 12 fps, 12 tbr, 24k tbn (default)
    Metadata:
      creation_time   : 2018-04-27T18:33:59.000000Z
      handler_name    : ?Mainconcept Video Media Handler
      vendor_id       : [0][0][0][0]
      encoder         : AVC Coding
  Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 125 kb/s (default)
    Metadata:
      creation_time   : 2018-04-27T18:33:59.000000Z
      handler_name    : #Mainconcept MP4 Sound Media Handler
      vendor_id       : [0][0][0][0]
[h264_v4l2m2m @ 0x55d5b03280] Using device /dev/video26
[h264_v4l2m2m @ 0x55d5b03280] driver 'aml-vcodec-dec' on card 'platform:amlogic' in mplane mode
[h264_v4l2m2m @ 0x55d5b03280] requesting formats: output=H264 capture=YU12
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (h264_v4l2m2m) -> h264 (libx264))
  Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 0x55d5a1e590] using cpu capabilities: ARMv8 NEON
[libx264 @ 0x55d5a1e590] profile High, level 2.2, 4:2:0, 8-bit
[libx264 @ 0x55d5a1e590] 264 - core 164 - H.264/MPEG-4 AVC codec - Copyleft 2003-2022 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=12 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'test.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41
    encoder         : Lavf59.27.100
  Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p(progressive), 768x432, q=2-31, 12 fps, 12288 tbn (default)
    Metadata:
      creation_time   : 2018-04-27T18:33:59.000000Z
      handler_name    : ?Mainconcept Video Media Handler
      vendor_id       : [0][0][0][0]
      encoder         : Lavc59.37.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
  Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      creation_time   : 2018-04-27T18:33:59.000000Z
      handler_name    : #Mainconcept MP4 Sound Media Handler
      vendor_id       : [0][0][0][0]
      encoder         : Lavc59.37.100 aac
[libx264 @ 0x55d5a1e590] Input picture width (384) is greater than stride (0)
Error submitting video frame to the encoder
[aac @ 0x55d5b2f260] Qavg: 65536.000
[aac @ 0x55d5b2f260] 2 frames left in the queue on closing
Conversion failed!

I’m posting the kernel panic because when trying to use my camera with ffmpeg and hardware acceleration yesterday I add the exact same kernel panic I took on picture but didn’t have the serial port connected.

Thanks for sharing, I will try to reproduce the issue and will get back to you on the same.

1 Like

Maybe that can help too, when I have no firmware loaded (tee-supplicant and video-firmware-preload-khadas services disabled), I have an other kernel panic but similar.

[ 2183.098620][2 T569   ..] [amlv4l]:[2]: H264 post event: 1024
[ 2183.098621][3 T4326  d.] Internal error: Oops: 96000005 [#1] PREEMPT SMP
[ 2183.098629][3 T4326  d.] Modules linked in:
[ 2183.098879][2 T569   ..] [amlcom]:optee_load_fw ret ffff0007, core 0, is_swap 0
[ 2183.178892][3 T4326  d.]  xt_nat xt_tcpudp nf_conntrack_netlink xfrm_user xfrm_algo br_netfilter bridge stp llc bnep overlay veth xt_addrtype xt_MASQUERADE xt_conntrack nft_compat nft_counter nft_chain_nat nf_tables nfnetlink nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 amlogic_multienc amlogic_jpegenc media_sync amvdec_avs2_fb_v4l amvdec_mavs_v4l amvdec_avs2_v4l amvdec_avs3_v4l amvdec_av1_v4l amvdec_av1 amvdec_mavs amvdec_avs2
[ 2183.228923][2 T569   ..] [h264]:0: MH264 the TEE fw loading failed, err: ffff0007
[ 2183.316390][3 T4326  d.]  amvdec_vp9_v4l amvdec_vp9 amvdec_vc1 amvdec_mmpeg4_v4l amvdec_mmpeg4 amvdec_mmpeg12_v4l amvdec_mmpeg12 amvdec_mmjpeg_v4l amvdec_mmjpeg amvdec_h265_v4l amvdec_h265 amvdec_h264mvc amvdec_mh264_v4l amvdec_mh264 video_framerate_adapter mac80211 amlogic_snd_codec_ad82128 amlogic_snd_codec_tas5805
[ 2183.775790][2 T569   ..] [amlv4l]:[2]: changes: 400
[ 2183.865348][3 T4326  d.]  amlogic_snd_codec_tas5707 amlogic_snd_codec_tl1 amlogic_snd_codec_t9015 amlogic_snd_codec_dummy amlogic_jtag amlogic_led amlogic_socinfo dhd dwc_otg amlogic_dvb_ci amlogic_dvb_demux amvdec_ports cfg80211 amlogic_audio_utils i2c_dev stream_input dwmac_dwc_qos_eth pts_server dwmac_meson system_heap decoder_common ntfs3 firmware sha1_ce media_clock khadas_mcu amlsens amlogic_pcie_v2_host dw9714 mali_kbase
[ 2184.201859][0 T569   ..] [amlv4l]:[2]: H264 post event: 1024
[ 2184.260139][3 T4326  d.]  amlogic_snd_soc adla_core amlcam amlogic_host amlogic_seckey amlogic_rtc v4l2_fwnode v4l2_async joydev mousedev usbmouse usbkbd zram zsmalloc usbhid amlogic_wireless amlogic_crypto_dma ip_tables x_tables autofs4 dwmac_meson8b stmmac_platform stmmac aml_drm amlogic_mdio_g12a amlogic_inphy mdio_mux amlogic_phy_debug amlogic_irblaster amlogic_usb amlogic_thermal amlogic_adc amlogic_camera aml_media
[ 2184.714657][0 T569   ..] [amlcom]:optee_load_fw ret ffff0007, core 0, is_swap 0
[ 2184.782014][3 T4326  d.]  amlogic_dvb amlogic_watchdog amlogic_input amlogic_pm dvb_core videobuf_core aml_smmu optee amlogic_tee tee amlogic_rng amlogic_spi amlogic_i2c amlogic_mmc cqhci amlogic_efuse_unifykey amlogic_cpufreq amlogic_cpuinfo amlogic_power amlogic_reset pwm_regulator amlogic_pwm amlogic_mailbox amlogic_pinctrl_soc_t7 amlogic_gpio amlogic_aoclk_g12a amlogic_clk_soc_t7 amlogic_clk amlogic_secmon
[ 2185.228898][0 T569   dh] sched: RT throttling activated
[ 2185.228903][0 T569   dh] [debug]: RT throttling on cpu:0 rt_time:1026ms, curr:vdec-core/569 prio:49 sum_runtime:2132ms
[ 2185.303146][4 T44    ..] sensors 6-000e: sensor_delaywork_func: Get data failed
[ 2185.316389][3 T4326  d.]  amlogic_memory_debug amlogic_debug
[ 2185.751843][0 T569   dh] [debug]: ISR_Long___ERR. irq:11/arch_timer action=arch_timer_handler_phys exec_time:522950us
[ 2185.814306][3 T4326  d.]  pcs_xpcs gpio_regulator
[ 2185.847127][4 T44    ..] sensors 6-000e: sensor_delaywork_func: Get data failed
[ 2185.942432][0 T569   dh] [debug]: IRQRatio___ERR.irq:11/arch_timer action=arch_timer_handler_phys ratio:50
[ 2186.029931][3 T4326  d.]  page_trace amlogic_hwspinlock
[ 2186.097638][0 T569   dh] [debug]: period_time:1037ms isr_sum_time:522ms, cnt:3, last_exec_time:522950us
[ 2186.224722][3 T4326  d.]  amlogic_debug_iotrace amlogic_gkitool
[ 2186.280987][0 T569   dH] [debug]: RT throttling on cpu:0 rt_time:1126ms, curr:vdec-core/569 prio:49 sum_runtime:3182ms
[ 2186.368472][3 T4326  d.] 
[ 2186.368476][3 T4326  d.] CPU: 3 PID: 4326 Comm: ffmpeg Not tainted 5.15.119-legacy-meson-s4t7 #2
[ 2186.391137][4 T44    ..] sensors 6-000e: sensor_delaywork_func: Get data failed
[ 2186.484186][0 T569   ..] [h264]:0: MH264 the TEE fw loading failed, err: ffff0007
[ 2186.546598][3 T4326  d.] Hardware name: Khadas VIM4 (DT)
[ 2186.546600][3 T4326  d.] pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 2186.546604][3 T4326  d.] pc : vb2ops_vdec_buf_queue+0x8c/0xb60 [amvdec_ports]
[ 2186.659118][0 T569   ..] [amlv4l]:[2]: changes: 400
[ 2186.729930][3 T4326  d.] lr : __enqueue_in_driver+0x50/0xec
[ 2186.729938][3 T4326  d.] sp : ffffffc012923930
[ 2186.729940][3 T4326  d.] x29: ffffffc012923980 x28: ffffff81270e8000 x27: 0000000000000000
[ 2186.729945][3 T4326  d.] x26: 0000000000000000 x25: ffffff81270e8040 x24: ffffff81270e8040
[ 2186.729950][3 T4326  d.] x23: ffffff81270ede68 x22: ffffffd2022f6000 x21: ffffff81270ea800
[ 2186.729954][3 T4326  d.] x20: ffffff81270ea6e8 x19: ffffff8125ce8000
[ 2186.858070][0 T569   ..] [amlv4l]:[2]: H264 post event: 1024
[ 2186.889305][3 T4326  d.]  x18: 0000000000000000
[ 2186.889308][3 T4326  d.] x17: 0000000000000000 x16: 0000000000000000 x15: 0000007fd8312fb4
[ 2186.889312][3 T4326  d.] x14: 0000000000000000 x13: 0000000000000000 x12: 00000000000026e8
[ 2186.889316][3 T4326  d.] x11: 0000000000002800 x10: 0000000000000000 x9 : 0000000000000000
[ 2186.889320][3 T4326  d.] x8 : 0000000000000000 x7 : 0000000000000000 x6 : ffffff81270e8040
[ 2186.889324][3 T4326  d.] x5 : 0000000000000005 x4 : ffffffd2022e1858 x3 : ffffff810df04324
[ 2186.889328][3 T4326  d.] x2 : 00000000000051a8 x1 : 0000000000000028
[ 2186.994800][0 T569   ..] [amlcom]:optee_load_fw ret ffff0007, core 0, is_swap 0
[ 2187.082013][3 T4326  d.]  x0 : ffffff810df04028
[ 2187.082017][3 T4326  d.] Call trace:
[ 2187.082020][3 T4326  d.]  vb2ops_vdec_buf_queue+0x8c/0xb60 [amvdec_ports]
[ 2187.082041][3 T4326  d.]  __enqueue_in_driver+0x50/0xec
[ 2187.082046][3 T4326  d.]  vb2_start_streaming+0x38/0x170
[ 2187.082049][3 T4326  d.]  vb2_core_streamon+0x90/0x190
[ 2187.171624][0 T569   ..] [h264]:0: MH264 the TEE fw loading failed, err: ffff0007
[ 2187.235139][3 T4326  d.]  vb2_streamon+0x1c/0x70
[ 2187.235144][3 T4326  d.]  v4l2_m2m_ioctl_streamon+0x5c/0xa0
[ 2187.235148][3 T4326  d.]  vidioc_decoder_streamon+0xc8/0x55c [amvdec_ports]
[ 2187.332027][0 T569   ..] [amlv4l]:[2]: changes: 400
[ 2187.417431][3 T4326  d.]  v4l_streamon+0x24/0x30
[ 2187.417437][3 T4326  d.]  __video_do_ioctl+0x198/0x410
[ 2187.417441][3 T4326  d.]  video_usercopy+0x274/0x660
[ 2187.417444][3 T4326  d.]  video_ioctl2+0x18/0x50
[ 2187.417446][3 T4326  d.]  v4l2_vcodec_ioctl+0x164/0x594 [amvdec_ports]
[ 2187.475774][0 T569   ..] [amlv4l]:[2]: H264 post event: 1024
[ 2187.542431][3 T4326  d.]  v4l2_ioctl+0x4c/0x70
[ 2187.542436][3 T4326  d.]  __arm64_sys_ioctl+0xa8/0xf0
[ 2187.542441][3 T4326  d.]  invoke_syscall+0x48/0x114
[ 2187.542446][3 T4326  d.]  el0_svc_common.constprop.0+0x44/0xfc
[ 2187.542450][3 T4326  d.]  do_el0_svc+0x28/0xa0
[ 2187.595818][0 T569   ..] [amlcom]:optee_load_fw ret ffff0007, core 0, is_swap 0
[ 2187.694514][3 T4326  d.]  el0_svc+0x28/0xa0
[ 2187.694520][3 T4326  d.]  el0t_64_sync_handler+0xa4/0x130
[ 2187.694523][3 T4326  d.]  el0t_64_sync+0x1b0/0x1b4
[ 2187.694529][3 T4326  d.] Code: a9096bf9 8b0c0394 8b0b0395 f941e27b (f9451b60) 
[ 2187.694532][3 T4326  d.] ---[ end trace 9cbe08e28c7d27fa ]---
[ 2187.714446][3 T4326  d.] Kernel panic - not syncing: Oops: Fatal exception
[ 2187.793513][0 T569   ..] [h264]:0: MH264 the TEE fw loading failed, err: ffff0007
[ 2187.892431][3 T4326  d.] SMP: stopping secondary CPUs
[ 2187.892524][3 T4326  d.] Kernel Offset: 0x1200000000 from 0xffffffc008000000
[ 2187.892527][3 T4326  d.] PHYS_OFFSET: 0x0
[ 2187.892528][3 T4326  d.] CPU features: 0x0,0000c9a3,00000846
[ 2187.892531][3 T4326  d.] Memory Limit: none
[ 2191.036188][3 T4326  d.] Rebooting in 5 seconds..
[ 2196.122732][3 T4326  d.] [pm]: Reset SDCARD power.

With Fenix 1.6.6 Debian GNU/Linux 12 (bookworm) Linux 5.15.119

I tried this :

ffmpeg -c:v h264_v4l2m2m -num_capture_buffers 128 -i https://github.com/intel-iot-devkit/sample-videos/raw/master/face-demographics-walking.mp4 -f rawvideo -pix_fmt yuv420p test.yuv
ffmpeg version 5.1.4-0+deb12u1 Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 12 (Debian 12.2.0-14)
  configuration: --prefix=/usr --extra-version=0+deb12u1 --toolchain=hardened --libdir=/usr/lib/aarch64-linux-gnu --incdir=/usr/include/aarch64-linux-gnu --arch=arm64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --disable-sndio --enable-libjxl --enable-pocketsphinx --enable-librsvg --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --enable-shared
  libavutil      57. 28.100 / 57. 28.100
  libavcodec     59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter     8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample   4.  7.100 /  4.  7.100
  libpostproc    56.  6.100 / 56.  6.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'https://github.com/intel-iot-devkit/sample-videos/raw/master/face-demographics-walking.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41
    creation_time   : 2018-04-27T18:33:59.000000Z
  Duration: 00:01:01.03, start: 0.000000, bitrate: 839 kb/s
  Stream #0:0[0x1](eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv, smpte170m, progressive), 768x432, 711 kb/s, 12 fps, 12 tbr, 24k tbn (default)
    Metadata:
      creation_time   : 2018-04-27T18:33:59.000000Z
      handler_name    : ?Mainconcept Video Media Handler
      vendor_id       : [0][0][0][0]
      encoder         : AVC Coding
  Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 125 kb/s (default)
    Metadata:
      creation_time   : 2018-04-27T18:33:59.000000Z
      handler_name    : #Mainconcept MP4 Sound Media Handler
      vendor_id       : [0][0][0][0]
File 'test.yuv' already exists. Overwrite? [y/N] y
[h264_v4l2m2m @ 0x555aef4d40] Using device /dev/video26
[h264_v4l2m2m @ 0x555aef4d40] driver 'aml-vcodec-dec' on card 'platform:amlogic' in mplane mode
[h264_v4l2m2m @ 0x555aef4d40] requesting formats: output=H264 capture=YU12
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (h264_v4l2m2m) -> rawvideo (native))
Press [q] to stop, [?] for help
client_loop: send disconnect: Broken pipe

And got Kernel Panic :

[  277.292360][2 T5425  ..] [amlv4l]:vidioc_try_fmt, field: 1, fmt: 34363248
[  277.322381][3 T5425  ..] [amlcom]:vdec_init, dev_name:ammvdec_h264_v4l, vdec_type=VDEC_TYPE_FRAME_BLOCK, format: 2, total: 1
[  277.474026][2 T111   ..] [0] level_idc = 22 pic_size = 497664 size = 6
[  277.474026][2 T111   ..] 
[  277.563852][1 T5425  ..] [amlv4l]:[2]: Picture buffer count: dec:7, vpp:0, ge2d:0, margin:7, total:14
[  277.563860][2 T111   ..] [amlv4l]:[2]: Parse from ucode, visible(768 x 432), coded(768 x 448), scan:P, bitdepth(0), dw(10)
[  277.674284][1 T5425  ..] [amlv4l]:[2]: changes: 1
[  277.900406][1 T111   ..] [0] level_idc = 22 pic_size = 497664 size = 6
[  277.900406][1 T111   ..] 
[  277.921781][2 T631   ..] [dhd] dhd_process_pkt_reorder_info: *Warning, new+flush, out=1, pending=0
[  278.080124][0 T555   d.] Unexpected kernel BRK exception at EL1
[  278.150179][0 T555   d.] Internal error: BRK handler: f20003e8 [#1] PREEMPT SMP
[  278.237676][0 T555   d.] Modules linked in: nf_conntrack_netlink(E) br_netfilter(E) bridge(E) stp(E) llc(E) overlay(E) snd_seq(E) xt_addrtype(E) xt_MASQUERADE(E) xt_conntrack(E) nft_compat(E) nft_counter(E) nft_chain_nat(E) nf_tables(E) nfnetlink(E) nf_nat(E) nf_conntrack(E) nf_defrag_ipv6(E) nf_defrag_ipv4(E) amlogic_multienc(E) amlogic_jpegenc(E) media_sync(E) zram(E) amvdec_avs2_fb_v4l(E) amvdec_mavs_v4l(E) amvdec_avs2_v4l(E) amvdec_avs3_v4l(E) amvdec_av1_v4l(E) amvdec_av1(E) amvdec_mavs(E) amvdec_avs2(E) amvdec_vp9_v4l(E) amvdec_vp9(E) amvdec_vc1(E) amvdec_mmpeg4_v4l(E) amvdec_mmpeg4(E) amvdec_mmpeg12_v4l(E) amvdec_mmpeg12(E) amvdec_mmjpeg_v4l(E) amvdec_mmjpeg(E) amvdec_h265_v4l(E) amvdec_h265(E) amvdec_h264mvc(E) amvdec_mh264_v4l(E) amvdec_mh264(E) dhd(E) video_framerate_adapter(E) mac80211(E) amlogic_snd_codec_ad82128(E) amlogic_snd_codec_tas5805(E) amlogic_snd_codec_tas5707(E) amvdec_ports(E) amlogic_snd_codec_tl1(E) amlogic_snd_codec_t9015(E) stream_input(E) cfg80211(E)
[  278.237753][0 T555   d.]  amlogic_snd_codec_dummy(E)
[  278.626206][7 T72    ..] sensors 6-000e: sensor_delaywork_func: Get data failed
[  279.276222][0 T555   d.]  pts_server(E) amlogic_jtag(E) decoder_common(E) amlogic_led(E) amlogic_socinfo(E) dwc_otg(E) firmware(E) media_clock(E) amlogic_dvb_ci(E) mali_kbase(E) amlsens(E) dw9714(E) amlogic_dvb_demux(E) amlcam(E) khadas_mcu(E) mousedev(E) adla_core(E) amlogic_snd_soc(E) amlogic_audio_utils(E) amlogic_host(E) amlogic_rtc(E) amlogic_seckey(E) v4l2_fwnode(E) v4l2_async(E) i2c_dev(E) dwmac_dwc_qos_eth(E) joydev(E) dwmac_meson(E) system_heap(E) ntfs3(E) zsmalloc(E) sha1_ce(E) amlogic_wireless(E) amlogic_crypto_dma(E) ip_tables(E) x_tables(E) autofs4(E) usbkbd(E) usbmouse(E) usbhid(E) amlogic_pcie_v2_host(E) dwmac_meson8b(E) stmmac_platform(E) stmmac(E) aml_drm(E) amlogic_mdio_g12a(E) amlogic_inphy(E) mdio_mux(E) amlogic_phy_debug(E) amlogic_irblaster(E) amlogic_usb(E) amlogic_thermal(E) amlogic_adc(E) amlogic_camera(E) aml_media(E) amlogic_dvb(E) amlogic_watchdog(E) amlogic_input(E) amlogic_pm(E) dvb_core(E) videobuf_core(E) aml_smmu(E) optee(E) amlogic_tee(E) tee(E)
[  279.423112][0 T555   d.]  amlogic_rng(E)
[  279.874285][7 T72    ..] sensors 6-000e: sensor_delaywork_func: Get data failed
[  279.958085][2 T17    dh] sched: RT throttling activated
[  279.958089][2 T17    dh] [debug]: RT throttling on cpu:2 rt_time:951ms, curr:rcu_exp_gp_kthr/17 prio:98 sum_runtime:1408ms
[  280.462674][0 T555   d.]  amlogic_spi(E) amlogic_i2c(E) amlogic_mmc(E) cqhci(E) amlogic_efuse_unifykey(E) amlogic_cpufreq(E) amlogic_cpuinfo(E) amlogic_power(E) amlogic_reset(E) pwm_regulator(E) amlogic_pwm(E) amlogic_mailbox(E) amlogic_pinctrl_soc_t7(E) amlogic_gpio(E) amlogic_aoclk_g12a(E) amlogic_clk_soc_t7(E) amlogic_clk(E) amlogic_secmon(E) amlogic_memory_debug(E) amlogic_debug(E) page_trace(E) pcs_xpcs(E) amlogic_hwspinlock(E) amlogic_debug_iotrace(E) gpio_regulator(E) amlogic_gkitool(E)
[  280.462707][0 T555   d.] CPU: 0 PID: 555 Comm: irq/62-vdec-1 Tainted: G            E     5.15.119 #1.6.6
[  280.910091][2 T17    dh] [debug]: RT throttling on cpu:2 rt_time:952ms, curr:rcu_exp_gp_kthr/17 prio:98 sum_runtime:2359ms
[  281.058185][7 T72    ..] sensors 6-000e: sensor_delaywork_func: Get data failed
[  281.315801][0 T555   d.] Hardware name: Khadas VIM4 (DT)
[  281.315806][0 T555   d.] pstate: 20400005 (nzCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[  281.429366][2 T17    dh] [debug]: ISR_Long___ERR. irq:11/arch_timer action=arch_timer_handler_phys exec_time:519276us
[  281.561631][0 T555   d.] pc : h264_slice_header_process+0x15ac/0x2260 [amvdec_mh264_v4l]
[  281.602309][7 T62    ..] sensors 6-000e: sensor_delaywork_func: Get data failed
[  282.121006][0 T555   d.] lr : h264_slice_header_process+0x68/0x2260 [amvdec_mh264_v4l]
[  282.146314][7 T62    ..] sensors 6-000e: sensor_delaywork_func: Get data failed
[  282.215797][0 T555   d.] sp : ffffffc00a53b3c0
[  282.215800][0 T555   d.] x29: ffffffc00a53b3c0 x28: ffffffc0110b20f0 x27: 0000000000000002
[  282.215806][0 T555   d.] x26: ffffffc0110b3560 x25: ffffffc0110b38c0 x24: ffffffe902762000
[  282.215810][0 T555   d.] x23: ffffffc0110b19a8 x22: ffffffc0110b1160 x21: ffffffc0110b3698
[  282.215814][0 T555   d.] x20: ffffffc0110dd160 x19: ffffffc00a53b55c x18: ffffff822aa56940
[  282.215826][0 T555   d.] x17: 000000100de65870 x16: 0000000000002760 x15: 0000000000002538
[  282.215830][0 T555   d.] x14: 0000000000002400 x13: 0000000000000018 x12: ffffff822ab28b40
[  282.215834][0 T555   d.] x11: ffffffe902762000 x10: 0000000000000dd0 x9 : 0000000000000000
[  282.215838][0 T555   d.] x8 : 0000000000000002 x7 : ffffffc0110b38d4 x6 : 0000000000000001
[  282.215841][0 T555   d.] x5 : 0000000000000001 x4 : 0000000000000080 x3 : ffffffc0110de0f0
[  282.215845][0 T555   d.] x2 : ffffffc0110b1ab0 x1 : 0000000000000020 x0 : 0000000000000020
[  282.215850][0 T555   d.] Call trace:
[  282.215852][0 T555   d.]  h264_slice_header_process+0x15ac/0x2260 [amvdec_mh264_v4l]
[  282.850164][7 T62    ..] sensors 6-000e: sensor_delaywork_func: Get data failed
[  282.851214][0 T555   d.]  vh264_isr_thread_fn+0x8c0/0x2e30 [amvdec_mh264_v4l]
[  282.851226][0 T555   d.]  vdec_thread_isr+0xe4/0x180 [decoder_common]
[  283.490307][7 T62    ..] sensors 6-000e: sensor_delaywork_func: Get data failed
[  283.568923][0 T555   d.]  irq_thread_fn+0x2c/0xb0
[  283.568931][0 T555   d.]  irq_thread+0x198/0x2f0
[  283.568934][0 T555   d.]  kthread+0x14c/0x160
[  283.568938][0 T555   d.]  ret_from_fork+0x10/0x20
[  283.568945][0 T555   d.] Code: 17fffaf5 b90fd485 b9471321 17ffffb0 (d4207d00) 
[  283.568948][0 T555   d.] ---[ end trace b3213b8af00e225d ]---
[  283.585931][0 T555   d.] Kernel panic - not syncing: BRK handler: Fatal exception
[  283.958113][2 T17    dh] [debug]: RT throttling on cpu:2 rt_time:951ms, curr:rcu_exp_gp_kthr/17 prio:98 sum_runtime:4666ms
[  283.982465][0 T555   d.] SMP: stopping secondary CPUs
[  284.476234][2 T17    dh] ------------[ cut here ]------------
[  284.544964][2 T17    dh] WARNING: CPU: 2 PID: 17 at kernel/sched/core.c:3132 set_task_cpu+0x12c/0x1fc
[  284.655381][2 T17    dh] Modules linked in: nf_conntrack_netlink(E) br_netfilter(E) bridge(E) stp(E) llc(E) overlay(E) snd_seq(E) xt_addrtype(E) xt_MASQUERADE(E) xt_conntrack(E) nft_compat(E) nft_counter(E) nft_chain_nat(E) nf_tables(E) nfnetlink(E) nf_nat(E) nf_conntrack(E) nf_defrag_ipv6(E) nf_defrag_ipv4(E) amlogic_multienc(E) amlogic_jpegenc(E) media_sync(E) zram(E) amvdec_avs2_fb_v4l(E) amvdec_mavs_v4l(E) amvdec_avs2_v4l(E) amvdec_avs3_v4l(E) amvdec_av1_v4l(E) amvdec_av1(E) amvdec_mavs(E) amvdec_avs2(E) amvdec_vp9_v4l(E) amvdec_vp9(E) amvdec_vc1(E) amvdec_mmpeg4_v4l(E) amvdec_mmpeg4(E) amvdec_mmpeg12_v4l(E) amvdec_mmpeg12(E) amvdec_mmjpeg_v4l(E) amvdec_mmjpeg(E) amvdec_h265_v4l(E) amvdec_h265(E) amvdec_h264mvc(E) amvdec_mh264_v4l(E) amvdec_mh264(E) dhd(E) video_framerate_adapter(E) mac80211(E) amlogic_snd_codec_ad82128(E) amlogic_snd_codec_tas5805(E) amlogic_snd_codec_tas5707(E) amvdec_ports(E) amlogic_snd_codec_tl1(E) amlogic_snd_codec_t9015(E) stream_input(E) cfg80211(E)
[  284.655458][2 T17    dh]  amlogic_snd_codec_dummy(E)
[  285.027795][0 T555   d.] SMP: failed to stop secondary CPUs 0,2
[  285.693923][2 T17    dh]  pts_server(E)
[  285.753300][0 T555   d.] Kernel Offset: 0x2900000000 from 0xffffffc008000000
[  285.824131][2 T17    dh]  amlogic_jtag(E)
[  285.869964][0 T555[  d.].86U feat0 es:5 x0dh]    coder5c339][2 T1
  0 da], 00coder_cot: none
.103300][2 T17 [  2h6.1033ogic_led7 ) aml]  amlog2c_.mc(385]mlT1ic   dinfoaE) dwc_otg(E) firmwa[ (E) m14ia_clock(E) amlog]cRevboci(g  n 5 skbasds.) amlsens(E) dw9714(E) amlogic_dvb_demux(E) amlcam(E) khadas_mcu(E) mousedev(E) adla_core(E) amlogic_snd_soc(E) amlogic_audio_utils(E) amlogic_host(E) amlogic_rtc(E) amlogic_seckey(E) v4l2_fwnode(E) v4l2_async(E) i2c_dev(E) dwmac_dwc_qos_eth(E) joydev(E) dwmac_meson(E) system_heap(E) ntfs3(E) zsmalloc(E) sha1_ce(E) amlogic_wireless(E) amlogic_crypto_dma(E) ip_tables(E) x_tables(E) autofs4(E) usbkbd(E) usbmouse(E) usbhid(E) amlogic_pcie_v2_host(E) dwmac_meson8b(E) stmmac_platform(E) stmmac(E) aml_drm(E) amlogic_mdio_g12a(E) amlogic_inphy(E) mdio_mux(E) amlogic_phy_debug(E) amlogic_irblaster(E) amlogic_usb(E) amlogic_thermal(E) amlogic_adc(E) amlogic_camera(E) aml_media(E) amlogic_dvb(E) amlogic_watchdog(E) amlogic_input(E) amlogic_pm(E) dvb_core(E) videobuf_core(E) aml_smmu(E) optee(E) amlogic_tee(E) tee(E) amlogic_rng(E) amlogic_spi(E) amlogic_i2c(E)
[  287.156423][2 T17    dh]  cqhci(E) amlogic_efuse_unifykey(E) amlogic_cpufreq(E) amlogic_cpuinfo(E) amlogic_power(E) amlogic_reset(E) pwm_regulator(E) amlogic_pwm(E) amlogic_mailbox(E) amlogic_pinctrl_soc_t7(E) amlogic_gpio(E) amlogic_aoclk_g12a(E) amlogic_clk_soc_t7(E) amlogic_clk(E) amlogic_secmon(E) amlogic_memory_debug(E) amlogic_debug(E) page_trace(E) pcs_xpcs(E) amlogic_hwspinlock(E) amlogic_debug_iotrace(E) gpio_regulator(E) amlogic_gkitool(E)
[  287.633508][2 T17    dh] CPU: 2 PID: 17 Comm: rcu_exp_gp_kthr Tainted: G      D     E     5.15.119 #1.6.6
[  287.748089][2 T17    dh] Hardware name: Khadas VIM4 (DT)
[  287.811632][2 T17    dh] pstate: 404000c5 (nZcv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[  287.908506][2 T17    dh] pc : set_task_cpu+0x12c/0x1fc
[  287.969964][2 T17    dh] lr : try_to_wake_up+0x1c4/0x770
[  288.033506][2 T17    dh] sp : ffffffc008013b60
[  288.086631][2 T17    dh] x29: ffffffc008013b60 x28: 0000000000000000 x27: 0000000000000000
[  288.185589][2 T17    dh] x26: ffffffe909ca3918 x25: 0000000000000001 x24: 0000000000000007
[  288.284547][2 T17    dh] x23: ffffff81034e3f5c x22: 00000000000000c0 x21: 0000000000000020
[  288.383506][2 T17    dh] x20: 0000000000000007 x19: ffffff81034e36c0 x18: ffffff81034e3780
[  288.482464][2 T17    dh] x17: 0000000000000000 x16: 0000004b917e1a20 x15: 0000000000000009
[  288.581423][2 T17    dh] x14: 0000000000000000 x13: 000000000000012c x12: 000000000000000c
[  288.680381][2 T17    dh] x11: 0000000000000008 x10: 0000000000000225 x9 : 0000000000000000
[  288.779339][2 T17    dh] x8 : ffffff822ab0a940 x7 : 0000000000000000 x6 : ffffff810b7c3380
[  288.878297][2 T17    dh] x5 : 0000000000000075 x4 : 0000000000000000 x3 : 0000000000000000
[  288.977256][2 T17    dh] x2 : 0000000000000001 x1 : ffffffe909c7e9a8 x0 : 0000000000000000
[  289.076215][2 T17    dh] Call trace:
[  289.118924][2 T17    dh]  set_task_cpu+0x12c/0x1fc
[  289.176214][2 T17    dh]  try_to_wake_up+0x1c4/0x770
[  289.235589][2 T17    dh]  default_wake_function+0x20/0x4c
[  289.300173][2 T17    dh]  autoremove_wake_function+0x18/0x80
[  289.367881][2 T17    dh]  __wake_up_common+0x88/0x1b0
[  289.428298][2 T17    dh]  __wake_up_common_lock+0x78/0xc4
[  289.492881][2 T17    dh]  __wake_up+0x18/0x2c
[  289.544964][2 T17    dh]  wake_up_klogd_work_func+0xa4/0xb4
[  289.611631][2 T17    dh]  irq_work_single+0x30/0x9c
[  289.669964][2 T17    dh]  irq_work_run_list+0x4c/0x70
[  289.730381][2 T17    dh]  irq_work_tick+0x28/0x6c
[  289.786631][2 T17    dh]  update_process_times+0xd4/0xf0
[  289.850173][2 T17    dh]  tick_sched_handle+0x30/0x70
[  289.910589][2 T17    dh]  tick_sched_timer+0x4c/0xa4
[  289.969964][2 T17    dh]  __hrtimer_run_queues+0x17c/0x340
[  290.035589][2 T17    dh]  hrtimer_interrupt+0xe8/0x244
[  290.097048][2 T17    dh]  arch_timer_handler_phys+0x34/0x44
[  290.163714][2 T17    dh]  handle_percpu_devid_irq+0x88/0x230
[  290.231422][2 T17    dh]  handle_domain_irq+0x78/0xc0
[  290.291839][2 T17    dh]  gic_handle_irq+0x64/0x150
[  290.350172][2 T17    dh]  call_on_irq_stack+0x20/0x50
[  290.410589][2 T17    dh]  do_interrupt_handler+0x54/0x60
[  290.474131][2 T17    dh]  el1_interrupt+0x30/0x74
[  290.530381][2 T17    dh]  el1h_64_irq_handler+0x18/0x24
[  290.592881][2 T17    dh]  el1h_64_irq+0x7c/0x80
[  290.647047][2 T17    dh]  smp_call_function_single+0xe4/0x1d0
[  290.715797][2 T17    dh]  __sync_rcu_exp_select_node_cpus+0x258/0x450
[  290.792881][2 T17    dh]  sync_rcu_exp_select_cpus+0x1a0/0x460
[  290.862673][2 T17    dh]  wait_rcu_exp_gp+0x18/0x30
[  290.921006][2 T17    dh]  kthread_worker_fn+0xbc/0x280
[  290.982464][2 T17    dh]  kthread+0x14c/0x160
[  291.034547][2 T17    dh]  ret_from_fork+0x10/0x20
[  291.090798][2 T17    dh] ---[ end trace b3213b8af00e225e ]---
[  291.159592][2 T17    dh] [debug]: ISR_Long___ERR. irq:11/arch_timer action=arch_timer_handler_phys[ xe9_.259:720[0 T5s
  dh]  debug287673][2 T1__ERRdh] :1ebug]: IRQRatio___ERR.irq:11/arch_timer action=arch_timer_handler_phys ratio:224
[  291.409547][2 T17    dh] [debug]: period_time:7509ms isr_sum_time:7201ms, cnt:81, last_exec_time:7201482us
[  291.555260][0 T555   d.] [pm]: Reset SDCARD power.

Hello @sousmangoosta

We will check this issue, BTW do you have issue on Ubuntu?

@ivan.li please check and follow up.

Hello @numbqq

I can check, what is the recommended method to install it ?

Hello @sousmangoosta

You can use OOWOW to install it online.

1 Like

I used etcher as I want to install on sdcard to keep data on emmc.

I have same issues on Ubuntu Fenix 1.6 Ubuntu 22.04.3 LTS Linux 5.15.119 :

ffmpeg -c:v h264_v4l2m2m -i https://github.com/intel-iot-devkit/sample-videos/raw/master/face-demographics-walking.mp4 -f rawvideo test.mp4
ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)
  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/aarch64-linux-gnu --incdir=/usr/include/aarch64-linux-gnu --arch=arm64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'https://github.com/intel-iot-devkit/sample-videos/raw/master/face-demographics-walking.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41
    creation_time   : 2018-04-27T18:33:59.000000Z
  Duration: 00:01:01.03, start: 0.000000, bitrate: 839 kb/s
  Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv, smpte170m), 768x432, 711 kb/s, 12 fps, 12 tbr, 24k tbn, 24 tbc (default)
    Metadata:
      creation_time   : 2018-04-27T18:33:59.000000Z
      handler_name    : ?Mainconcept Video Media Handler
      vendor_id       : [0][0][0][0]
      encoder         : AVC Coding
  Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 125 kb/s (default)
    Metadata:
      creation_time   : 2018-04-27T18:33:59.000000Z
      handler_name    : #Mainconcept MP4 Sound Media Handler
      vendor_id       : [0][0][0][0]
[h264_v4l2m2m @ 0x55b399a8c0] Using device /dev/video26
[h264_v4l2m2m @ 0x55b399a8c0] driver 'aml-vcodec-dec' on card 'platform:amlogic' in mplane mode
[h264_v4l2m2m @ 0x55b399a8c0] requesting formats: output=H264 capture=YU12
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (h264_v4l2m2m) -> rawvideo (native))
Press [q] to stop, [?] for help
Output #0, rawvideo, to 'test.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41
    encoder         : Lavf58.76.100
  Stream #0:0(eng): Video: rawvideo (I420 / 0x30323449), yuv420p(progressive), 768x432, q=2-31, 47775 kb/s, 12 fps, 12 tbn (default)
    Metadata:
      creation_time   : 2018-04-27T18:33:59.000000Z
      handler_name    : ?Mainconcept Video Media Handler
      vendor_id       : [0][0][0][0]
      encoder         : Lavc58.134.100 rawvideo
Segmentation fault
ffmpeg -c:v h264_v4l2m2m -i https://github.com/intel-iot-devkit/sample-videos/raw/master/face-demographics-walking.mp4 test.mp4
ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)
  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/aarch64-linux-gnu --incdir=/usr/include/aarch64-linux-gnu --arch=arm64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'https://github.com/intel-iot-devkit/sample-videos/raw/master/face-demographics-walking.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41
    creation_time   : 2018-04-27T18:33:59.000000Z
  Duration: 00:01:01.03, start: 0.000000, bitrate: 839 kb/s
  Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv, smpte170m), 768x432, 711 kb/s, 12 fps, 12 tbr, 24k tbn, 24 tbc (default)
    Metadata:
      creation_time   : 2018-04-27T18:33:59.000000Z
      handler_name    : ?Mainconcept Video Media Handler
      vendor_id       : [0][0][0][0]
      encoder         : AVC Coding
  Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 125 kb/s (default)
    Metadata:
      creation_time   : 2018-04-27T18:33:59.000000Z
      handler_name    : #Mainconcept MP4 Sound Media Handler
      vendor_id       : [0][0][0][0]
[h264_v4l2m2m @ 0x55c7c22900] Using device /dev/video26
[h264_v4l2m2m @ 0x55c7c22900] driver 'aml-vcodec-dec' on card 'platform:amlogic' in mplane mode
[h264_v4l2m2m @ 0x55c7c22900] requesting formats: output=H264 capture=YU12
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (h264_v4l2m2m) -> h264 (libx264))
  Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 0x55c8015f90] using cpu capabilities: ARMv8 NEON
[libx264 @ 0x55c8015f90] profile High, level 2.2, 4:2:0, 8-bit
[libx264 @ 0x55c8015f90] 264 - core 163 r3060 5db6aa6 - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=12 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'test.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41
    encoder         : Lavf58.76.100
  Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p(progressive), 768x432, q=2-31, 12 fps, 12288 tbn (default)
    Metadata:
      creation_time   : 2018-04-27T18:33:59.000000Z
      handler_name    : ?Mainconcept Video Media Handler
      vendor_id       : [0][0][0][0]
      encoder         : Lavc58.134.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
  Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      creation_time   : 2018-04-27T18:33:59.000000Z
      handler_name    : #Mainconcept MP4 Sound Media Handler
      vendor_id       : [0][0][0][0]
      encoder         : Lavc58.134.100 aac
[libx264 @ 0x55c8015f90] Input picture width (384) is greater than stride (0)
Video encoding failed
[aac @ 0x55c7eaa580] Qavg: 65536.000
[aac @ 0x55c7eaa580] 2 frames left in the queue on closing
Conversion failed!

And for the kernel panic :

ffmpeg -c:v h264_v4l2m2m -num_capture_buffers 128 -i https://github.com/intel-iot-devkit/sample-videos/raw/master/face-demographics-walking.mp4 -f rawvideo -pix_fmt yuv420p test.yuv
ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)
  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/aarch64-linux-gnu --incdir=/usr/include/aarch64-linux-gnu --arch=arm64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'https://github.com/intel-iot-devkit/sample-videos/raw/master/face-demographics-walking.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41
    creation_time   : 2018-04-27T18:33:59.000000Z
  Duration: 00:01:01.03, start: 0.000000, bitrate: 839 kb/s
  Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv, smpte170m), 768x432, 711 kb/s, 12 fps, 12 tbr, 24k tbn, 24 tbc (default)
    Metadata:
      creation_time   : 2018-04-27T18:33:59.000000Z
      handler_name    : ?Mainconcept Video Media Handler
      vendor_id       : [0][0][0][0]
      encoder         : AVC Coding
  Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 125 kb/s (default)
    Metadata:
      creation_time   : 2018-04-27T18:33:59.000000Z
      handler_name    : #Mainconcept MP4 Sound Media Handler
      vendor_id       : [0][0][0][0]
[h264_v4l2m2m @ 0x5581183900] Using device /dev/video26
[h264_v4l2m2m @ 0x5581183900] driver 'aml-vcodec-dec' on card 'platform:amlogic' in mplane mode
[h264_v4l2m2m @ 0x5581183900] requesting formats: output=H264 capture=YU12
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (h264_v4l2m2m) -> rawvideo (native))
Press [q] to stop, [?] for help
[ 7283.076375][0 T532   d.] Internal error: BRK handler: f20003e8 [#1] PREEMPT SMP
[ 7283.096387][0 T532   d.] Modules linked in: xt_nat(E) xt_tcpudp(E) nf_conntrack_netlink(E) br_netfilter(E) bridge(E) stp(E) llc(E) overlay(E) mousedev(E) usbhid(E) zram(E) xt_addrtype(E) xt_MASQUERADE(E) xt_conntrack(E) nft_compat(E) nft_counter(E) nft_chain_nat(E) nf_tables(E) nfnetlink(E) nf_nat(E) nf_conntrack(E) nf_defrag_ipv6(E) nf_defrag_ipv4(E) amlogic_multienc(E) amlogic_jpegenc(E) media_sync(E) amvdec_avs2_fb_v4l(E) amvdec_mavs_v4l(E) amvdec_avs2_v4l(E) amvdec_avs3_v4l(E) amvdec_av1_v4l(E) amvdec_av1(E) amvdec_mavs(E) amvdec_avs2(E) amvdec_vp9_v4l(E) amvdec_vp9(E) amvdec_vc1(E) amvdec_mmpeg4_v4l(E) amvdec_mmpeg4(E) amvdec_mmpeg12_v4l(E) amvdec_mmpeg12(E) amvdec_mmjpeg_v4l(E) amvdec_mmjpeg(E) amvdec_h265_v4l(E) amvdec_h265(E) amvdec_h264mvc(E) amvdec_mh264_v4l(E) amvdec_mh264(E) video_framerate_adapter(E) mac80211(E) amlogic_snd_codec_ad82128(E) amlogic_snd_codec_tas5805(E) amlogic_snd_codec_tas5707(E) amlogic_snd_codec_tl1(E) amlogic_snd_codec_t9015(E)
[ 7283.096661][0 T532   d.]  amlogic_snd_codec_dummy(E)
[ 7283.616001][4 T19297 ..] sensors 6-000e: sensor_delaywork_func: Get data failed
[ 7284.117208][0 T532   d.]  amlogic_jtag(E) amlogic_led(E) amlogic_socinfo(E) dwc_otg(E) dhd(E) amlogic_dvb_ci(E) amlogic_dvb_demux(E) amvdec_ports(E) amlogic_audio_utils(E) i2c_dev(E) dwmac_dwc_qos_eth(E) dwmac_meson(E) cfg80211(E) system_heap(E) stream_input(E) pts_server(E) decoder_common(E) ntfs3(E) zsmalloc(E) firmware(E) sha1_ce(E) media_clock(E) amlogic_snd_soc(E) amlsens(E) mali_kbase(E) dw9714(E) joydev(E) khadas_mcu(E) amlogic_pcie_v2_host(E) amlcam(E) adla_core(E) v4l2_fwnode(E) amlogic_seckey(E) amlogic_host(E) amlogic_rtc(E) v4l2_async(E) amlogic_wireless(E) amlogic_crypto_dma(E) ip_tables(E) x_tables(E) autofs4(E) btrfs(E) xor(E) xor_neon(E) raid6_pq(E) dwmac_meson8b(E) stmmac_platform(E) stmmac(E) aml_drm(E) amlogic_mdio_g12a(E) amlogic_inphy(E) mdio_mux(E) amlogic_phy_debug(E) amlogic_irblaster(E) amlogic_usb(E) amlogic_thermal(E) amlogic_adc(E) amlogic_camera(E) aml_media(E) amlogic_dvb(E) amlogic_watchdog(E) amlogic_input(E) amlogic_pm(E) dvb_core(E) videobuf_core(E)
[ 7284.117282][0 T532   d.]  aml_smmu(E) optee(E) amlogic_tee(E) tee(E) amlogic_rng(E) amlogic_spi(E) amlogic_i2c(E) amlogic_mmc(E) cqhci(E) amlogic_efuse_unifykey(E) amlogic_cpufreq(E) amlogic_cpuinfo(E) amlogic_power(E) amlogic_reset(E) pwm_regulator(E) amlogic_pwm(E) amlogic_mailbox(E) amlogic_pinctrl_soc_t7(E) amlogic_gpio(E) amlogic_aoclk_g12a(E) amlogic_clk_soc_t7(E) amlogic_clk(E) amlogic_secmon(E) amlogic_memory_debug(E) pcs_xpcs(E) amlogic_debug(E) page_trace(E) amlogic_hwspinlock(E) gpio_regulator(E) amlogic_uart(E) amlogic_debug_iotrace(E) amlogic_gkitool(E)
[ 7284.117319][0 T532   d.] CPU: 0 PID: 532 Comm: irq/62-vdec-1 Tainted: G            E     5.15.119 #1.6
[ 7284.117323][0 T532   d.] Hardware name: Khadas VIM4 (DT)
[ 7284.117325][0 T532   d.] pstate: 20400005 (nzCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 7284.117329][0 T532   d.] pc : h264_slice_header_process+0x15cc/0x2230 [amvdec_mh264_v4l]
[ 7284.117344][0 T532   d.] lr : h264_slice_header_process+0x68/0x2230 [amvdec_mh264_v4l]
[ 7284.735842][4 T19297 ..] sensors 6-000e: sensor_delaywork_func: Get data failed
[ 7285.307832][0 T532   d.] sp : ffffffc014013bd0
[ 7285.307834][0 T532   d.] x29: ffffffc014013bd0 x28: ffffffc0080db7f6 x27: ffffffc014da50f0
[ 7285.307840][0 T532   d.] x26: ffffffc014da6560 x25: ffffffc014da68c0 x24: ffffffc014da6698
[ 7285.307844][0 T532   d.] x23: ffffffc014013d5c x22: ffffffc014da49a8 x21: ffffffd302758000
[ 7285.307848][0 T532   d.] x20: ffffffc014da4160 x19: ffffffc014d5d000 x18: ffffff822aa57940
[ 7285.307852][0 T532   d.] x17: ffffffaf2111e000 x16: 00000268801a247c x15: 0000000000002760
[ 7285.307856][0 T532   d.] x14: 0000000000002538 x13: 0000000000002400 x12: ffffffd302758000
[ 7285.307860][0 T532   d.] x11: ffffffd308edb7f8 x10: 0000000000000dd0 x9 : ffffffc014013d20
[ 7285.307864][0 T532   d.] x8 : ffffffc014da456c x7 : ffffffc014da68d4 x6 : 0000000000000001
[ 7285.307868][0 T532   d.] x5 : 0000000000000001 x4 : 0000000000000080 x3 : ffffffc014dd10f0
[ 7285.307871][0 T532   d.] x2 : ffffffc014da4ab0 x1 : 0000000000000020 x0 : 0000000000000020
[ 7285.307876][0 T532   d.] Call trace:
[ 7285.307877][0 T532   d.]  h264_slice_header_process+0x15cc/0x2230 [amvdec_mh264_v4l]
[ 7285.307888][0 T532   d.]  vh264_isr_thread_fn+0x44c/0x2d90 [amvdec_mh264_v4l]
[ 7285.307897][0 T532   d.]  vdec_thread_isr+0x140/0x180 [decoder_common]
[ 7286.463988][4 T19297 ..] sensors 6-000e: sensor_delaywork_func: Get data failed
[ 7286.513040][0 T532   d.]  irq_thread_fn+0x2c/0xb0
[ 7286.513051][0 T532   d.]  irq_thread+0x18c/0x2e4
[ 7286.513054][0 T532   d.]  kthread+0x154/0x160
[ 7286.513058][0 T532   d.]  ret_from_fork+0x10/0x20
[ 7286.513065][0 T532   d.] Code: 17ffffb5 52800018 f1010adf 540029c9 (d4207d00) 
[ 7286.513069][0 T532   d.] ---[ end trace ab24c9d9290de23e ]---
[ 7286.533741][0 T532   d.] Kernel panic - not syncing: BRK handler: Fatal exception
[ 7287.168001][4 T19297 ..] sensors 6-000e: sensor_delaywork_func: Get data failed
[ 7287.205749][0 T532   d.] SMP: stopping secondary CPUs
[ 7287.205860][0 T532   d.] Kernel Offset: 0x1300000000 from 0xffffffc008000000
[ 7287.205863][0 T532   d.] PHYS_OFFSET: 0x0
[ 7287.205864][0 T532   d.] CPU features: 0x0,0000c9a1,00000846
[ 7287.205867][0 T532   d.] Memory Limit: none
[ 7288.751582][0 T532   d.] Rebooting in 5 seconds..
[ 7293.838159][0 T532   d.] [pm]: Reset SDCARD power.