VIM4 Fenix 1.7.2 H264 crashes kernel - Irregular resolutions suspected

UPDATES : Resolution mismatches between linux driver and actual file suspected.

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

`Fenix Debian 12 - Minimal
Fenix Debian 12 - Server
OOWOW Ubuntu 1.7.x

(Tried all three)
`

Which version of system do you use? Please provide the version of the system here:

**1.7.2**

Please describe your issue below:

**Hardware H264 crashes kernel**

Post a console log of your issue below:

Command line:

$ ffmpeg -c:v h264_v4l2m2m -i rtsp://192.168.10.134:8554/garden_high_cam -f null /dev/null

Kernel logs

Nov 24 11:12:04 Khadas kernel: [amlcom]:vdec_create instance 0000000058244886, total 1, PM: power-domain
Nov 24 11:12:04 Khadas kernel: [media_clock]: vdec mux clock is 799999988 Hz
Nov 24 11:12:04 Khadas kernel: [amlcom]:vdec_init, dev_name:ammvdec_h264_v4l, vdec_type=VDEC_TYPE_FRAME_BLOCK, format: 2, total: 1
Nov 24 11:12:04 Khadas kernel: [h264]:0: pdata->config=parm_v4l_codec_enable:1;mh264_double_write_mode:16;parm_v4l_buffer_margin:7;parm_v4l_canvas_mem_mode:0;parm_v4l_canvas_mem_endian:0;
Nov 24 11:12:04 Khadas kernel: [h264]:ammvdec_h264_mmu_init tvp = 0x0
Nov 24 11:12:04 Khadas kernel: [media_clock]: vdec mux clock is 799999988 Hz
Nov 24 11:12:04 Khadas kernel: [h264]:vh264_init, phy_addr=98200000 vaddr=000000001b74c61b
Nov 24 11:12:04 Khadas kernel: [amlcom]:optee_load_fw ret ffff0007, core 0, is_swap 0
Nov 24 11:12:04 Khadas kernel: [h264]:0: MH264 the TEE fw loading failed, err: ffff0007
Nov 24 11:12:04 Khadas kernel: [amlv4l]:[2]: Post event: dec err
Nov 24 11:12:04 Khadas kernel: [amlcom]:optee_load_fw ret ffff0007, core 0, is_swap 0
Nov 24 11:12:04 Khadas kernel: [h264]:0: MH264 the TEE fw loading failed, err: ffff0007
Nov 24 11:12:04 Khadas kernel: [amlv4l]:[2]: Post event: dec err
Nov 24 11:12:04 Khadas kernel: [amlcom]:optee_load_fw ret ffff0007, core 0, is_swap 0
Nov 24 11:12:04 Khadas kernel: [h264]:0: MH264 the TEE fw loading failed, err: ffff0007
Nov 24 11:12:04 Khadas kernel: [amlv4l]:[2]: Post event: dec err
Nov 24 11:12:04 Khadas kernel: [amlcom]:optee_load_fw ret ffff0007, core 0, is_swap 0
Nov 24 11:12:04 Khadas kernel: Unable to handle kernel access to user memory outside uaccess routines at virtual address 0000000000000868
Nov 24 11:12:04 Khadas kernel: [h264]:0: MH264 the TEE fw loading failed, err: ffff0007
Nov 24 11:12:04 Khadas kernel: [amlv4l]:[2]: Post event: dec err
Nov 24 11:12:04 Khadas kernel: Mem abort info:
Nov 24 11:12:04 Khadas kernel: [amlcom]:optee_load_fw ret ffff0007, core 0, is_swap 0
Nov 24 11:12:04 Khadas kernel: [h264]:0: MH264 the TEE fw loading failed, err: ffff0007
Nov 24 11:12:04 Khadas kernel:   ESR = 0x96000005
Nov 24 11:12:04 Khadas kernel: [amlv4l]:[2]: Post event: dec err
Nov 24 11:12:04 Khadas kernel: [amlcom]:optee_load_fw ret ffff0007, core 0, is_swap 0
Nov 24 11:12:04 Khadas kernel:   EC = 0x25: DABT (current EL), IL = 32 bits
Nov 24 11:12:04 Khadas kernel:   SET = 0, FnV = 0
Nov 24 11:12:04 Khadas kernel:   EA = 0, S1PTW = 0
Nov 24 11:12:04 Khadas kernel:   FSC = 0x05: level 1 translation fault
Nov 24 11:12:04 Khadas kernel: [h264]:0: MH264 the TEE fw loading failed, err: ffff0007
Nov 24 11:12:04 Khadas kernel: Data abort info:
Nov 24 11:12:04 Khadas kernel: [amlv4l]:[2]: Post event: dec err
Nov 24 11:12:04 Khadas kernel:   ISV = 0, ISS = 0x00000005
Nov 24 11:12:04 Khadas kernel: [amlcom]:optee_load_fw ret ffff0007, core 0, is_swap 0
Nov 24 11:12:04 Khadas kernel:   CM = 0, WnR = 0
Nov 24 11:12:04 Khadas kernel: [h264]:0: MH264 the TEE fw loading failed, err: ffff0007
Nov 24 11:12:04 Khadas kernel: user pgtable: 4k pages, 39-bit VAs, pgdp=0000000122a40000
Nov 24 11:12:04 Khadas kernel: [amlv4l]:[2]: Post event: dec err
Nov 24 11:12:04 Khadas kernel: [0000000000000868] pgd=0000000000000000, p4d=0000000000000000, pud=0000000000000000
Nov 24 11:12:04 Khadas kernel: [amlcom]:optee_load_fw ret ffff0007, core 0, is_swap 0
Nov 24 11:12:04 Khadas kernel: Internal error: Oops: 0000000096000005 [#1] PREEMPT SMP
Nov 24 11:12:04 Khadas kernel: Modules linked in:
Nov 24 11:12:04 Khadas kernel: [h264]:0: MH264 the TEE fw loading failed, err: ffff0007
Nov 24 11:12:04 Khadas kernel:  zram(E) snd_seq(E) dhd(E) amvenc_multi(E) jpegenc(E) encoder_common(E) media_sync(E) amvdec_avs2_fb_v4l(E)
Nov 24 11:12:04 Khadas kernel: [amlv4l]:[2]: Post event: dec err
Nov 24 11:12:04 Khadas kernel:  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)
Nov 24 11:12:04 Khadas kernel: [amlcom]:optee_load_fw ret ffff0007, core 0, is_swap 0
Nov 24 11:12:04 Khadas kernel:  amvdec_mmpeg4_v4l(E) amvdec_mmpeg4(E) usbkbd(E) amvdec_mmpeg12_v4l(E) amvdec_mmpeg12(E) amvdec_mmjpeg_v4l(E) amvdec_mmjpeg(E) amvdec_h265_v4l(E)
Nov 24 11:12:04 Khadas kernel: [h264]:0: MH264 the TEE fw loading failed, err: ffff0007
Nov 24 11:12:04 Khadas kernel:  amvdec_h265(E) amvdec_h264mvc(E) amvdec_mh264_v4l(E) amvdec_mh264(E) amvdec_ports(E) stream_input(E)

Edit
NOTES: Does not work with OOWOW Ubuntu Image either.

UPDATE:

If I play a MP4 file, it works fine (RTSP Stream does not)

Command Line -
ffmpeg -c:v h264_v4l2m2m -i 03.58.mp4 -f null /dev/null

From Logs

[  150.400628] [media_clock]: vdec mux clock is 799999988 Hz
[  150.400780] [h264]:vh264_init, phy_addr=98200000 vaddr=00000000964e6a30
[  150.408177] [h264]:0: vmh264_get_ps_info mmu_enable 0 double_write_mode 0x10
[  150.408193] [amlv4l]:[2]: Parse from ucode, visible(1920 x 1056), coded(1920 x 1088), scan:P, bitdepth(0), dw(10)
[  150.408210] [amlv4l]:[2]: Picture buffer count: dec:2, vpp:0, ge2d:0, margin:7, total:9
[  150.412665] [amlv4l]:[2]: Post event: res chg
[  150.435279] [h264]:0: restriction_flag=0, max_dec_frame_buffering=1, dec_dpb_size=2 num_reorder_frames 0 used_reorder_dpb_size_margin 7
[  150.445958] [h264]:0: decoder duration change old: 0 new: 3200
[  151.947558] [amlv4l]:[2]: Post event: eos
[  151.948314] [amlv4l]:[2]: reset mode: 1, es frames buffering: 0
[  151.974384] [amlv4l]:[2]: reset mode: 1, es frames buffering: 0
[  152.038238] [amlv4l]:[2]: reset mode: 1, es frames buffering: 0
[  152.064528] [amlcom]:vdec_release instance 00000000f274be0f, total 1
[  152.065021] [media_clock]: the clk_vdec_mux    clock off, ref cnt: 0

If I play a RTSP video stream - it Kernel OOPS

Hello @RichardPar

Do you have same issues for previous images? Which images work and which not?

@numbqq999
It worked on Debian11 (older kernel) - but no longer on Debian 12

I just tried Fenix 1.6.5 and it didnt work either (built in May)
Linux Khadas 5.15.119 #1.6.5 SMP PREEMPT Wed May 8 20:35:45 BST 2024 aarch64 GNU/Linux

Same problem.

About Debian 11, what’s the kernel version? And Debian 12, do you use the same kernel ?

I only use Fenix to build… so its whatever is there!

@numbqq Will this be progressed? I have reproduced with GStreamer too using the v4l hardware decoder. The commands dont work on Ubuntu downloaded from OOWOW either.

I have reproduce this issue with ffmpeg rtsp and will check this issue.

You mean gstreamer play local file also has this issue? Which image and how to reproduce?

1 Like

Hi @numbqq ,

Have you managed to break it ? How can I help.

Richard

[   32.743449][7 T441   ..] systemd-journald[441]: File /var/log/journal/585cd14dad7042a2934e12a2c0e2465f/user-1000.journal corrupted or uncleanly shut down, renaming and replacing.
ESC[?2004hkhadas@Khadas:~$
ESC[?2004l^MESC[?2004hkhadas@Khadas:~$
ESC[?2004l^MESC[?2004hkhadas@Khadas:~$ [   67.973018][1 T1142  ..] vdin-v4l: vdin_v4l2_open
[   67.981986][1 T1142  ..] vdin-v4l: vdin_v4l2_release
[   67.991625][1 T1142  ..] vdin-v4l: vdin_v4l2_open
[   67.999441][1 T1142  ..] vdin-v4l: vdin_v4l2_release
[   68.005988][1 T1142  ..] dp_buf:[1:0]di buf_mgr free
[   68.012437][1 T1142  ..] dp_buf:[1:1]di buf_mgr free
[   68.018866][1 T1142  ..] dp_buf:[1:2]di buf_mgr free
[   68.025246][1 T1142  ..] dp_buf:[1:3]di buf_mgr free
[   68.031435][1 T1142  ..] dp_buf:[1:4]di buf_mgr free
[   68.035585][1 T1142  ..] dp_buf:[1:5]di buf_mgr free
[   68.040466][1 T1142  ..] dp_buf:[1:6]di buf_mgr free
[   68.045406][1 T1142  ..] dp_buf:[1:7]di buf_mgr free
[   68.050092][1 T1142  ..] dp_buf:[1:8]di buf_mgr free
[   68.291696][7 T1148  ..] vdin-v4l: vdin_v4l2_open
[   68.298145][7 T1148  ..] vdin-v4l: vdin_v4l2_release
[   68.303592][7 T1148  ..] vdin-v4l: vdin_v4l2_open
[   68.309436][7 T1148  ..] vdin-v4l: vdin_v4l2_release
[   68.315151][2 T1148  ..] dp_buf:[1:0]di buf_mgr free
[   68.319369][2 T1148  ..] dp_buf:[1:1]di buf_mgr free
[   68.324207][2 T1148  ..] dp_buf:[1:2]di buf_mgr free
[   68.329174][2 T1148  ..] dp_buf:[1:3]di buf_mgr free
[   68.334305][2 T1148  ..] dp_buf:[1:4]di buf_mgr free
[   68.339210][2 T1148  ..] dp_buf:[1:5]di buf_mgr free
[   68.344142][2 T1148  ..] dp_buf:[1:6]di buf_mgr free
[   68.349125][2 T1148  ..] dp_buf:[1:7]di buf_mgr free
[   68.353740][2 T1148  ..] dp_buf:[1:8]di buf_mgr free
[   68.360515][0 T1148  ..] [amlv4l]:[ERR]: sizeimage of output format must be given
[   68.365971][0 T1148  ..] [amlv4l]:[ERR]: sizeimage of output format must be given
[   68.373397][0 T1148  ..] [amlv4l]:[ERR]: sizeimage of output format must be given
[   68.380847][0 T1148  ..] [amlv4l]:[ERR]: sizeimage of output format must be given
[   68.388417][0 T1148  ..] [amlv4l]:[ERR]: sizeimage of output format must be given
[   68.395740][0 T1148  ..] [amlv4l]:[ERR]: sizeimage of output format must be given
[   68.403196][0 T1148  ..] [amlv4l]:[ERR]: sizeimage of output format must be given
[   68.410625][0 T1148  ..] [amlv4l]:[ERR]: sizeimage of output format must be given
[   68.418106][0 T1148  ..] [amlv4l]:[ERR]: sizeimage of output format must be given
[   68.425547][0 T1148  ..] [amlv4l]:[ERR]: sizeimage of output format must be given
[   68.433228][0 T1148  ..] [amlv4l]:[ERR]: sizeimage of output format must be given
[   68.441438][0 T1148  ..] [amlcom]:vdec_init, dev_name:ammvdec_h264_v4l, vdec_type=VDEC_TYPE_FRAME_BLOCK, format: 2, total: 1
[   68.463761][2 T1148  ..] [amlv4l]:[3]: [ERR]: Seqinfo not ready.

There are bigger issues… I have home assistant running on them and None survive more than 3 days without the Debian12 kernel crasing and rebooting. Not even doing anything stressful on them.

Hello @RichardPar

We are still working on the crash issues.

1 Like

I done some investigation… I have tried on a D2 revB and revC. I installed a Debian11 (which used to work!) and it fails the same too. When I tested it in 2023 (Ffmpeg and hardware h264 decode - #16 by RichardPar)

Something has been regressed since April 2023.


This was the Debian11 image that I had working… (I think)

UPDATE: Tried ARMBIAN - also crashes but seems to be missing TEE (Another reason - but just for info)

UPDATE 2: Fenix 1.5.7 Creates good kernel… (different kernel!)

[  140.798217][1 T3364  ..] Mem abort info:
[  140.802096][1 T3364  ..]   ESR = 0x96000005
[  140.806248][1 T3364  ..]   EC = 0x25: DABT (current EL), IL = 32 bits
[  140.812667][1 T3364  ..]   SET = 0, FnV = 0
[  140.816983][1 T3364  ..]   EA = 0, S1PTW = 0
[  140.821053][1 T3364  ..]   FSC = 0x05: level 1 translation fault
[  140.827019][1 T3364  ..] Data abort info:
[  140.831013][1 T3364  ..]   ISV = 0, ISS = 0x00000005
[  140.835998][1 T3364  ..]   CM = 0, WnR = 0
[  140.840015][1 T3364  ..] user pgtable: 4k pages, 39-bit VAs, pgdp=0000000103abb000
[  140.847565][1 T3364  ..] [0000000000000868] pgd=0000000000000000, p4d=0000000000000000, pud=0000000000000000
[  140.857357][1 T3364  d.] Internal error: Oops: 0000000096000005 [#1] PREEMPT SMP
[  140.857361][2 T538   ..] [h264]:0: MH264 the TEE fw loading failed, err: ffff0007
[  140.858245][4 T66    d.] kauditd_printk_skb: 138 callbacks suppressed
[  140.858261][4 T66    ..] audit: type=1400 audit(1736084020.604:150): apparmor="DENIED" operation="open" profile="rsyslogd" name="/run/systemd/sessions/" pid=1235 comm=72733A6D61696E20513A526567 requested_mask="r" denied_mask="r" fsuid=103 ouid=0
[  140.864708][1 T3364  d.] Modules linked in: bnep sch_fq_codel snd_seq sunrpc dhd veth xt_addrtype xt_MASQUERADE xt_conntrack nft_compat nft_counter
[  140.872159][2 T538   ..] [amlv4l]:[3]: Post event: dec err
[  140.878567][1 T3364  d.]  nft_chain_nat nf_tables nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 amvenc_multi jpegenc usbhid encoder_common media_sync mali_kbase amvdec_avs2_fb_v4l khadas_mcu amlsens
[  140.900482][2 T538   ..] [amlcom]:optee_load_fw ret ffff0007, core 0, is_swap 0
[  140.913406][1 T3364  d.]  dw9714 amvdec_mavs_v4l adla_core amlcam amvdec_avs2_v4l amvdec_avs3_v4l joydev amvdec_av1_v4l amvdec_av1 amvdec_mavs amvdec_ports amvdec_avs2 amvdec_vp9_v4l amvdec_vp9 amvdec_vc1 amvdec_mmpeg4_v4l amvdec_mmpeg4 amvdec_mmpeg12_v4l amvdec_mmpeg12 amvdec_mmjpeg_v4l
[  140.918876][2 T538   ..] [h264]:0: MH264 the TEE fw loading failed, err: ffff0007
[  140.936807][1 T3364  d.]  amvdec_mmjpeg amvdec_h265_v4l amvdec_h265 amvdec_h264mvc amvdec_mh264_v4l amvdec_mh264 stream_input pts_server video_framerate_adapter zram decoder_common firmware media_clock mac80211 cfg80211 amlogic_snd_codec_ad82128 amlogic_snd_codec_pa1 amlogic_snd_codec_tas5805 amlogic_snd_codec_tas5707 amlogic_snd_codec_ad82584f amlogic_snd_codec_tl1
[  140.944093][2 T538   ..] [amlv4l]:[3]: Post event: dec err
[  140.969481][1 T3364  d.]  amlogic_snd_codec_t9015 amlogic_snd_soc amlogic_snd_codec_dummy amlogic_usb_cam amlogic_seckey amlogic_jtag amlogic_led amlogic_host amlogic_socinfo bl40_module amlogic_rtc dwc_otg amlogic_dvb_ci amlogic_dvb_demux amlogic_audio_utils videobuf_vmalloc v4l2_fwnode v4l2_async i2c_dev dwmac_dwc_qos_eth dwmac_meson system_heap ntfs3
[  140.977145][2 T538   ..] [amlcom]:optee_load_fw ret ffff0007, core 0, is_swap 0
[  141.009260][1 T3364  d.]  zsmalloc sha1_ce amlogic_pcie_v3_host amlogic_wireless amlogic_crypto_dma nfnetlink ip_tables x_tables autofs4 amlogic_pcie_v2_host dwmac_meson8b stmmac_platform aml_drm amlogic_mdio_g12a stmmac amlogic_inphy mdio_mux amlogic_phy_debug amlogic_irblaster
[  141.014735][2 T538   ..] [h264]:0: MH264 the TEE fw loading failed, err: ffff0007
[  141.045920][1 T3364  d.]  amlogic_usb amlogic_thermal amlogic_camera aml_media amlogic_dvb amlogic_watchdog amlogic_input amlogic_adc amlogic_pm dvb_core videobuf_core aml_smmu optee amlogic_tee tee amlogic_rng amlogic_spi amlogic_i2c amlogic_mmc cqhci
[  141.053208][2 T538   ..] [amlv4l]:[3]: Post event: dec err
[  141.077813][1 T3364  d.]  amlogic_efuse_unifykey amlogic_cpufreq amlogic_power amlogic_reset gpio_regulator pwm_regulator amlogic_pwm amlogic_mailbox amlogic_pinctrl_soc_t7 amlogic_gpio amlogic_aoclk_g12a amlogic_clk_soc_t7 amlogic_clk amlogic_memory_debug user_fault amlogic_cpuinfo pcs_xpcs amlogic_secmon
[  141.085538][2 T538   ..] [amlcom]:optee_load_fw ret ffff0007, core 0, is_swap 0
[  141.107540][1 T3364  d.]  amlogic_debug amlogic_hwspinlock amlogic_debug_iotrace amlogic_gkitool
[  141.107552][1 T3364  d.] PC : ffffffeb024b44b4, PFN:11007f V
[  141.107555][1 T3364  d.] SP : ffffffc017b1b910, PFN:127f3d V
[  141.107557][1 T3364  d.] FAR : 0000000000000868  U
[  141.107558][1 T3364  d.] R0  : ffffff811aa72828, PFN:11aa72 L
[  141.107561][1 T3364  d.] R3  : ffffff811aa72b24, PFN:11aa72 L
[  141.113012][2 T538   ..] [h264]:0: MH264 the TEE fw loading failed, err: ffff0007
[  141.140040][1 T3364  d.] R4  : ffffffeb024d8b08, PFN:108cff V
[  141.140043][1 T3364  d.] R6  : ffffffc017c15040, PFN:10dab0 V
[  141.140045][1 T3364  d.] R19 : ffffff810ed20000, PFN:10ed20 L
[  141.140047][1 T3364  d.] R20 : ffffffc017c3f358, PFN:10b8c4 V
[  141.140049][1 T3364  d.] R21 : ffffff811aa72b10, PFN:11aa72 L
[  141.140051][1 T3364  d.] R22 : ffffffeb024ee000, PFN:129f36 V
[  141.140052][1 T3364  d.] R23 : ffffffeb024ee000, PFN:129f36 V
[  141.140054][1 T3364  d.] R24 : ffffffc017c15040, PFN:10dab0 V
[  141.140055][1 T3364  d.] R25 : ffffffc017c15040, PFN:10dab0 V
[  141.140057][1 T3364  d.] R28 : ffffffc017c15000, PFN:10dab0 V
[  141.140058][1 T3364  d.] R29 : ffffffc017b1b960, PFN:127f3d V
[  141.140060][1 T3364  d.] R30 : ffffffeb08b34e14, PFN: 1d34 V
[  141.140063][1 T3364  d.]
[  141.140063][1 T3364  d.] PC: 0xffffffeb024b4434:
[  141.147327][2 T538   ..] [amlv4l]:[3]: Post event: dec err
[  141.156075][1 T3364  d.] 4434  d105c3ff a9057bfd 910143fd a90653f3 aa0003f3 d5384100 a9075bf5 d00001d6
[  141.156079][1 T3364  d.] 4454  a90863f7 b94242c1 a90a73fb f942f002 f900b7e2 d2800002 f9400260 52800202
[  141.156082][1 T3364  d.] 4474  291b7fe2 f940241c 37385041 b9400001 121c7822 7100085f 54000500 7100383f
[  141.156085][1 T3364  d.] 4494  54000088 d28a3502 9ac12441 37000461 a9096bf9 9140ab94 910d6294 f941e27b
[  141.156088][1 T3364  d.] 44b4  f9443760 eb13001f 54002700 b94242c1 37104241 9140ab95 aa1303e2 911002b5
[  141.161953][2 T538   ..] [amlcom]:optee_load_fw ret ffff0007, core 0, is_swap 0
[  141.167341][1 T3364  d.] 44d4  91050361 aa1403e0 f9501ea3 d63f0060 b948cb60 35002fe0 52800020 b908d760
[  141.167345][1 T3364  d.] 44f4  9140a780 396da000 340025c0 91400677 394426e0 35002500 f9403660 52800061
[  141.167348][1 T3364  d.] 4514  97c10c30 37f83060 b94242c0 52800021 390426e1 14000124 91400795 39548aa1
[  141.167350][1 T3364  d.]
[  141.167350][1 T3364  d.] LR: 0xffffffeb08b34d94:
[  141.167353][1 T3364  d.] 4d94  9411a787 f9401e80 b40000a0 a94153f3 a8c27bfd d50323bf d65f03c0 d4210000
[  141.172119][2 T538   ..] [h264]:0: MH264 the TEE fw loading failed, err: ffff0007
[  141.177828][1 T3364  d.] 4db4  a94153f3 a8c27bfd d50323bf d65f03c0 d503233f a9be7bfd 52800082 910003fd
[  141.177832][1 T3364  d.] 4dd4  a90153f3 aa0003f3 b9005802 f9400001 d503201f 1400000f 910bf020 52800022
[  141.177835][1 T3364  d.] 4df4  b822001f d503201f f9400260 f9401800 f9402801 b4000061 aa1303e0 d63f0020
[  141.177838][1 T3364  d.] 4e14  a94153f3 a8c27bfd d50323bf d65f03c0 910bf023 f9800071 885f7c60 11000400
[  141.177840][1 T3364  d.] 4e34  88027c60 35ffffa2 17ffffef b0007a00 91002000 d538d083 b8636803 d0008cc2
[  141.183553][2 T538   ..] [amlv4l]:[3]: Post event: dec err
[  141.191001][1 T3364  d.] 4e54  9126a040 53067c62 f8627800 9ac32400 3607fcc0 d5384114 b9401280 11000400
[  141.191005][1 T3364  d.] 4e74  b9001280 d2800000 aa1303e2 94000c21 f9400a80 d1000400 b9001280 b5000060
[  141.191006][1 T3364  d.]
[  141.191006][1 T3364  d.] SP: 0xffffffc017b1b890:
[  141.191010][1 T3364  d.] b890  00000000 00000000 00000000 00000000 17c15000 ffffffc0 17b1b960 ffffffc0
[  141.191013][1 T3364  d.] b8b0  08b34e14 ffffffeb 17b1b910 ffffffc0 024b44b4 ffffffeb 80400005 00000000
[  141.191015][1 T3364  d.] b8d0  02bd0000 00000000 08b1ef80 ffffffeb 80400005 00000000 17c15040 ffffffc0
[  141.196959][2 T538   ..] [amlcom]:optee_load_fw ret ffff0007, core 0, is_swap 0
[  141.202441][1 T3364  d.] b8f0  17b1b960 ffffffc0 024b44b4 ffffffeb 17b1b940 ffffffc0 00000000 00000000
[  141.202445][1 T3364  d.] b910  17b1b930 ffffffc0 08f96110 ffffffeb 17b1b970 ffffffc0 08f9617c ffffffeb
[  141.202448][1 T3364  d.] b930  17b1b940 ffffffc0 08f96184 ffffffeb 17b1b960 ffffffc0 08f972ac ffffffeb
[  141.202451][1 T3364  d.] b950  1aa72828 ffffff81 1aa72800 ffffff81 17b1ba80 ffffffc0 08b34e14 ffffffeb
[  141.208170][2 T538   ..] [h264]:0: MH264 the TEE fw loading failed, err: ffff0007
[  141.213882][1 T3364  d.] b970  0ed20000 ffffff81 1aa72828 ffffff81 1aa72b10 ffffff81 00000009 00000000
[  141.213884][1 T3364  d.]
[  141.213884][1 T3364  d.] X0: 0xffffff811aa727a8:
[  141.213887][1 T3364  d.] 27a8  00000000 00000000 00000000 00000000 00000000 00000000 1c599000 ffffff81
[  141.213890][1 T3364  d.] 27c8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  141.213893][1 T3364  d.] 27e8  00000000 00000000 0ec1d000 ffffff81 00000000 00000000 17c42b20 ffffffc0
[  141.213896][1 T3364  d.] 2808  00000000 00000000 00000000 00000000 00000000 00000000 08fa4000 ffffff81
[  141.219605][2 T538   ..] [amlv4l]:[3]: Post event: dec err
[  141.225321][1 T3364  d.] 2828  00000009 00000013 00000000 00000000 00000000 00000000 00000090 00000000
[  141.225325][1 T3364  d.] 2848  17c42b20 ffffffc0 17c15040 ffffffc0 024d8a78 ffffffeb 094f0dd8 ffffffeb
[  141.225328][1 T3364  d.] 2868  094f0a90 ffffffeb 17c15000 ffffffc0 00000000 00001230 00004000 00000000
[  141.225331][1 T3364  d.] 2888  00000001 00000000 00e1d010 ffffff81 00e1d010 ffffff81 00000000 00000000
[  141.225333][1 T3364  d.]
[  141.225333][1 T3364  d.] X3: 0xffffff811aa72aa4:
[  141.225336][1 T3364  d.] 2aa4  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  141.231274][2 T538   ..] [amlcom]:optee_load_fw ret ffff0007, core 0, is_swap 0
[  141.236761][1 T3364  d.] 2ac4  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  141.236765][1 T3364  d.] 2ae4  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  141.236768][1 T3364  d.] 2b04  00000000 00000014 00000000 0ed201e0 ffffff81 046ee1e0 ffffff81 00000014
[  141.236771][1 T3364  d.] 2b24  00000001 1aa72b28 ffffff81 1aa72b28 ffffff81 00000000 00000000 00000000
[  141.242488][2 T538   ..] [h264]:0: MH264 the TEE fw loading failed, err: ffff0007
[  141.248201][1 T3364  d.] 2b44  00000000 1aa72b48 ffffff81 1aa72b48 ffffff81 000000a0 00000000 00000000
[  141.248205][1 T3364  d.] 2b64  00000000 00000000 00000000 2d706163 30303030 30303030 64366137 31366261
[  141.248208][1 T3364  d.] 2b84  00000000 00000000 00000000 1aa72b90 ffffff81 1aa72b90 ffffff81 00000000
[  141.248210][1 T3364  d.]
[  141.248210][1 T3364  d.] X4: 0xffffffeb024d8a88:
[  141.248213][1 T3364  d.] 8a88  08b38d04 ffffffeb 00000000 00000000 024b3424 ffffffeb 024b1b30 ffffffeb
[  141.248216][1 T3364  d.] 8aa8  024aef50 ffffffeb 024ad580 ffffffeb 024ad774 ffffffeb 024b68d0 ffffffeb
[  141.253925][2 T538   ..] [amlv4l]:[3]: Post event: dec err
[  141.259555][1 T3364  d.] 8ac8  024b4430 ffffffeb 00000000 00000000 6f326276 765f7370 5f636564 5f667562
[  141.259558][1 T3364  d.] 8ae8  75657571 00000065 74736f70 6172665f 745f656d 70755f6f 00726570 00000000
[  141.259561][1 T3364  d.] 8b08  024aee80 ffffffeb 024aee00 ffffffeb 00000000 00000000 024aed80 ffffffeb
[  141.259564][1 T3364  d.] 8b28  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  141.259567][1 T3364  d.] 8b48  024b1df0 ffffffeb 00000000 00000000 024b1df0 ffffffeb 00000000 00000000
[  141.266983][2 T538   ..] [amlcom]:optee_load_fw ret ffff0007, core 0, is_swap 0
[  141.272208][1 T3364  d.] 8b68  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  141.272210][1 T3364  d.]
[  141.272210][1 T3364  d.] X6: 0xffffffc017c14fc0:
[  141.272221][1 T3364  d.] 4fc0  ******** ******** ******** ******** ******** ******** ******** ********
[  141.281519][2 T538   ..] [h264]:0: MH264 the TEE fw loading failed, err: ffff0007
[  141.290756][1 T3364  d.] 4fe0  ******** ******** ******** ******** ******** ******** ******** ********
[  141.290760][1 T3364  d.] 5000  00000003 00000001 00000000 00000000 08fa0080 ffffff81 1aa72800 ffffff81
[  141.300047][2 T538   ..] [amlv4l]:[3]: Post event: dec err
[  141.309301][1 T3364  d.] 5020  09b62520 ffffffc0 00000000 00000000 024ed9a0 ffffffeb 09b62000 ffffffc0
[  141.309305][1 T3364  d.] 5040  0aee25b8 ffffff81 0aee25b8 ffffff81 0aee2000 ffffff81 17c150e0 ffffffc0
[  141.309308][1 T3364  d.] 5060  00000002 00000000 00000000 00000000 17c15070 ffffffc0 17c15070 ffffffc0
[  141.309312][1 T3364  d.] 5080  00000000 00000000 00000000 00000000 17c15090 ffffffc0 17c15090 ffffffc0
[  141.309315][1 T3364  d.] 50a0  00000000 00000000 00000000 00000000 2d18f000 ffffff81 0e78db00 ffffff81
[  141.309318][1 T3364  d.]
[  141.309318][1 T3364  d.] X19: 0xffffff810ed1ff80:
[  141.318829][2 T538   ..] [amlcom]:optee_load_fw ret ffff0007, core 0, is_swap 0
[  141.325855][1 T3364  d.] ff80  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  141.325859][1 T3364  d.] ffa0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  141.325861][1 T3364  d.] ffc0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  141.325864][1 T3364  d.] ffe0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  141.325867][1 T3364  d.] 0000  1aa72828 ffffff81 00000000 00000009 00000001 00000002 00000000 00000000
[  141.325869][1 T3364  d.] 0020  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  141.325872][1 T3364  d.] 0040  00000000 00000000 00000000 00000000 00000000 00000000 00000004 0000001b
[  141.335137][2 T538   ..] [h264]:0: MH264 the TEE fw loading failed, err: ffff0007
[  141.344401][1 T3364  d.] 0060  126f3600 ffffff81 00000000 00000000 00000000 00000000 00001000 00001000
[  141.344404][1 T3364  d.]
[  141.344404][1 T3364  d.] X20: 0xffffffc017c3f2d8:
[  141.344407][1 T3364  d.] f2d8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  141.344410][1 T3364  d.] f2f8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  141.344412][1 T3364  d.] f318  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  141.344415][1 T3364  d.] f338  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  141.344417][1 T3364  d.] f358  00000003 00000000 024da7b8 ffffffeb 00000001 00000000 00000000 00000000
[  141.353678][2 T538   ..] [amlv4l]:[3]: Post event: dec err
[  141.360868][1 T3364  d.] f378  00000000 00000000 17c3f380 ffffffc0 17c3f380 ffffffc0 00000000 00000000
[  141.360871][1 T3364  d.] f398  00000000 00000000 00000015 00000000 17c3f3a8 ffffffc0 17c3f3a8 ffffffc0
[  141.360874][1 T3364  d.] f3b8  00000014 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  141.360876][1 T3364  d.]
[  141.360876][1 T3364  d.] X21: 0xffffff811aa72a90:
[  141.360878][1 T3364  d.] 2a90  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  141.360881][1 T3364  d.] 2ab0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  141.360883][1 T3364  d.] 2ad0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  141.370395][2 T538   ..] [amlcom]:optee_load_fw ret ffff0007, core 0, is_swap 0
[  141.377595][1 T3364  d.] 2af0  00000000 00000000 00000000 00000000 00000000 00000000 00000014 00000000
[  141.377598][1 T3364  d.] 2b10  0ed201e0 ffffff81 046ee1e0 ffffff81 00000014 00000001 1aa72b28 ffffff81
[  141.377601][1 T3364  d.] 2b30  1aa72b28 ffffff81 00000000 00000000 00000000 00000000 1aa72b48 ffffff81
[  141.377604][1 T3364  d.] 2b50  1aa72b48 ffffff81 000000a0 00000000 00000000 00000000 00000000 00000000
[  141.386877][2 T538   ..] [h264]:0: MH264 the TEE fw loading failed, err: ffff0007
[  141.396141][1 T3364  d.] 2b70  2d706163 30303030 30303030 64366137 31366261 00000000 00000000 00000000
[  141.396144][1 T3364  d.]
[  141.396144][1 T3364  d.] X22: 0xffffffeb024edf80:
[  141.396147][1 T3364  d.] df80  024d730c ffffffeb 0000003d 00000000 00000000 00000000 00000000 00000000
[  141.396150][1 T3364  d.] dfa0  024edfa0 ffffffeb 024edfa0 ffffffeb 00000000 00000000 00000000 00000000
[  141.396153][1 T3364  d.] dfc0  024eb088 ffffffeb 00000020 00000004 024d72dc ffffffeb 024d7400 ffffffeb
[  141.396156][1 T3364  d.] dfe0  00000001 00000002 024eb078 ffffffeb 024fc000 ffffffeb 00000000 00000000
[  141.405423][2 T538   ..] [amlv4l]:[3]: Post event: dec err
[  141.414688][1 T3364  d.] e000  024ab000 ffffffeb 00050000 0002c000 00041000 00042000 024ede80 ffffffeb
[  141.414692][1 T3364  d.] e020  02480fa1 ffffffeb 02501420 ffffffeb 024a52e0 ffffffeb 02480fb9 ffffffeb
[  141.414695][1 T3364  d.] e040  02501438 ffffffeb 024a52f8 ffffffeb 00000000 00000000 00000000 00000000
[  141.414698][1 T3364  d.] e060  00000000 00000000 024ede80 ffffffeb 024ee020 ffffffeb 00000000 00000000
[  141.414700][1 T3364  d.]
[  141.414700][1 T3364  d.] X23: 0xffffffeb024edf80:
[  141.414703][1 T3364  d.] df80  024d730c ffffffeb 0000003d 00000000 00000000 00000000 00000000 00000000
[  141.424190][2 T538   ..] [amlcom]:optee_load_fw ret ffff0007, core 0, is_swap 0
[  141.429421][1 T3364  d.] dfa0  024edfa0 ffffffeb 024edfa0 ffffffeb 00000000 00000000 00000000 00000000
[  141.429426][1 T3364  d.] dfc0  024eb088 ffffffeb 00000020 00000004 024d72dc ffffffeb 024d7400 ffffffeb
[  141.429429][1 T3364  d.] dfe0  00000001 00000002 024eb078 ffffffeb 024fc000 ffffffeb 00000000 00000000
[  141.429432][1 T3364  d.] e000  024ab000 ffffffeb 00050000 0002c000 00041000 00042000 024ede80 ffffffeb
[  141.429435][1 T3364  d.] e020  02480fa1 ffffffeb 02501420 ffffffeb 024a52e0 ffffffeb 02480fb9 ffffffeb
[  141.438706][2 T538   ..] [h264]:0: MH264 the TEE fw loading failed, err: ffff0007
[  141.447968][1 T3364  d.] e040  02501438 ffffffeb 024a52f8 ffffffeb 00000000 00000000 00000000 00000000
[  141.447972][1 T3364  d.] e060  00000000 00000000 024ede80 ffffffeb 024ee020 ffffffeb 00000000 00000000
[  141.447974][1 T3364  d.]
[  141.447974][1 T3364  d.] X24: 0xffffffc017c14fc0:
[  141.447979][1 T3364  d.] 4fc0  ******** ******** ******** ******** ******** ******** ******** ********
[  141.447982][1 T3364  d.] 4fe0  ******** ******** ******** ******** ******** ******** ******** ********
[  141.455165][2 T538   ..] [amlv4l]:[3]: Post event: dec err
[  141.464435][1 T3364  d.] 5000  00000003 00000001 00000000 00000000 08fa0080 ffffff81 1aa72800 ffffff81
[  141.464438][1 T3364  d.] 5020  09b62520 ffffffc0 00000000 00000000 024ed9a0 ffffffeb 09b62000 ffffffc0
[  141.464441][1 T3364  d.] 5040  0aee25b8 ffffff81 0aee25b8 ffffff81 0aee2000 ffffff81 17c150e0 ffffffc0
[  141.464444][1 T3364  d.] 5060  00000002 00000000 00000000 00000000 17c15070 ffffffc0 17c15070 ffffffc0
[  141.464447][1 T3364  d.] 5080  00000000 00000000 00000000 00000000 17c15090 ffffffc0 17c15090 ffffffc0
[  141.464450][1 T3364  d.] 50a0  00000000 00000000 00000000 00000000 2d18f000 ffffff81 0e78db00 ffffff81
[  141.464451][1 T3364  d.]
[  141.464451][1 T3364  d.] X25: 0xffffffc017c14fc0:
[  141.473934][2 T538   ..] [amlcom]:optee_load_fw ret ffff0007, core 0, is_swap 0
[  141.482983][1 T3364  d.] 4fc0  ******** ******** ******** ******** ******** ******** ******** ********
[  141.482987][1 T3364  d.] 4fe0  ******** ******** ******** ******** ******** ******** ******** ********
[  141.482990][1 T3364  d.] 5000  00000003 00000001 00000000 00000000 08fa0080 ffffff81 1aa72800 ffffff81
[  141.482993][1 T3364  d.] 5020  09b62520 ffffffc0 00000000 00000000 024ed9a0 ffffffeb 09b62000 ffffffc0
[  141.482996][1 T3364  d.] 5040  0aee25b8 ffffff81 0aee25b8 ffffff81 0aee2000 ffffff81 17c150e0 ffffffc0
[  141.482999][1 T3364  d.] 5060  00000002 00000000 00000000 00000000 17c15070 ffffffc0 17c15070 ffffffc0
[  141.490271][2 T538   ..] [h264]:0: MH264 the TEE fw loading failed, err: ffff0007
[  141.499535][1 T3364  d.] 5080  00000000 00000000 00000000 00000000 17c15090 ffffffc0 17c15090 ffffffc0
[  141.499538][1 T3364  d.] 50a0  00000000 00000000 00000000 00000000 2d18f000 ffffff81 0e78db00 ffffff81
[  141.499540][1 T3364  d.]
[  141.499540][1 T3364  d.] X28: 0xffffffc017c14f80:
[  141.499545][1 T3364  d.] 4f80  ******** ******** ******** ******** ******** ******** ******** ********
[  141.499549][1 T3364  d.] 4fa0  ******** ******** ******** ******** ******** ******** ******** ********
[  141.499552][1 T3364  d.] 4fc0  ******** ******** ******** ******** ******** ******** ******** ********
[  141.508817][2 T538   ..] [amlv4l]:[3]: Post event: dec err
[  141.518083][1 T3364  d.] 4fe0  ******** ******** ******** ******** ******** ******** ******** ********
[  141.518086][1 T3364  d.] 5000  00000003 00000001 00000000 00000000 08fa0080 ffffff81 1aa72800 ffffff81
[  141.518089][1 T3364  d.] 5020  09b62520 ffffffc0 00000000 00000000 024ed9a0 ffffffeb 09b62000 ffffffc0
[  141.518093][1 T3364  d.] 5040  0aee25b8 ffffff81 0aee25b8 ffffff81 0aee2000 ffffff81 17c150e0 ffffffc0
[  141.518095][1 T3364  d.] 5060  00000002 00000000 00000000 00000000 17c15070 ffffffc0 17c15070 ffffffc0
[  141.518097][1 T3364  d.]
[  141.518097][1 T3364  d.] X29: 0xffffffc017b1b8e0:
[  141.518100][1 T3364  d.] b8e0  80400005 00000000 17c15040 ffffffc0 17b1b960 ffffffc0 024b44b4 ffffffeb
[  141.527607][2 T538   ..] [amlcom]:optee_load_fw ret ffff0007, core 0, is_swap 0
[  141.534808][1 T3364  d.] b900  17b1b940 ffffffc0 00000000 00000000 17b1b930 ffffffc0 08f96110 ffffffeb
[  141.534812][1 T3364  d.] b920  17b1b970 ffffffc0 08f9617c ffffffeb 17b1b940 ffffffc0 08f96184 ffffffeb
[  141.534815][1 T3364  d.] b940  17b1b960 ffffffc0 08f972ac ffffffeb 1aa72828 ffffff81 1aa72800 ffffff81
[  141.544092][2 T538   ..] [h264]:0: MH264 the TEE fw loading failed, err: ffff0007
[  141.551275][1 T3364  d.] b960  17b1ba80 ffffffc0 08b34e14 ffffffeb 0ed20000 ffffff81 1aa72828 ffffff81
[  141.551278][1 T3364  d.] b980  1aa72b10 ffffff81 00000009 00000000 024ee000 ffffffeb 17c15040 ffffffc0
[  141.551283][1 T3364  d.] b9a0  17c15040 ffffffc0 00000000 00000000 00000001 00000000 17c16000 ffffffc0
[  141.551286][1 T3364  d.] b9c0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  141.551287][1 T3364  d.]
[  141.551289][1 T3364  d.] CPU: 1 PID: 3364 Comm: dec0:0:h264_v4l Not tainted 5.15.137-legacy-meson-s4t7 #3
[  141.560553][2 T538   ..] [amlv4l]:[3]: Post event: dec err
[  141.569820][1 T3364  d.] Hardware name: Khadas VIM4 (DT)
[  141.569822][1 T3364  d.] pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[  141.569826][1 T3364  d.] pc : vb2ops_vdec_buf_queue+0x84/0xb50 [amvdec_ports]
[  141.579377][2 T538   ..] [amlcom]:optee_load_fw ret ffff0007, core 0, is_swap 0
[  141.588366][1 T3364  d.] lr : __enqueue_in_driver+0x50/0xec
[  141.588375][1 T3364  d.] sp : ffffffc017b1b910
[  141.593836][2 T538   ..] [h264]:0: MH264 the TEE fw loading failed, err: ffff0007
[  141.603100][1 T3364  d.] x29: ffffffc017b1b960 x28: ffffffc017c15000 x27: 0000000000000000
[  141.603106][1 T3364  d.] x26: 0000000000000000 x25: ffffffc017c15040 x24: ffffffc017c15040
[  141.603110][1 T3364  d.] x23: ffffffeb024ee000 x22: ffffffeb024ee000 x21: ffffff811aa72b10
[  141.603114][1 T3364  d.] x20: ffffffc017c3f358 x19: ffffff810ed20000 x18: 0000000000000000
[  141.612379][2 T538   ..] [amlv4l]:[3]: Post event: dec err
[  141.621646][1 T3364  d.]
[  141.621647][1 T3364  d.] x17: 0000000000000000 x16: 0000000000000000 x15: 0000007fac76d924
[  141.621652][1 T3364  d.] x14: 0000000000000000 x13: 0000000000000000 x12: 0000000000000000
[  141.621656][1 T3364  d.] x11: 0000000000000000 x10: 0000000000000000 x9 : 0000000000000000
[  141.621660][1 T3364  d.] x8 : 0000000000000000 x7 : 0000000000000000 x6 : ffffffc017c15040
[  141.621664][1 T3364  d.] x5 : 0000000000000005
[  141.631156][2 T538   ..] [amlcom]:optee_load_fw ret ffff0007, core 0, is_swap 0
[  141.638113][1 T3364  d.]  x4 : ffffffeb024d8b08 x3 : ffffff811aa72b24
[  141.638117][1 T3364  d.] x2 : 00000000000051a8 x1 : 0000000000000028 x0 : ffffff811aa72828
[  141.638122][1 T3364  d.] Call trace:
[  141.638124][1 T3364  d.]  vb2ops_vdec_buf_queue+0x84/0xb50 [amvdec_ports]
[  141.647397][2 T538   ..] [h264]:0: MH264 the TEE fw loading failed, err: ffff0007
[  141.654666][1 T3364  d.]  __enqueue_in_driver+0x50/0xec
[  141.654672][1 T3364  d.]  vb2_start_streaming+0x38/0x170
[  141.654675][1 T3364  d.]  vb2_core_streamon+0x90/0x190
[  141.654678][1 T3364  d.]  vb2_streamon+0x1c/0x70
[  141.654682][1 T3364  d.]  v4l2_m2m_ioctl_streamon+0x5c/0xa0
[  141.663948][2 T538   ..] [amlv4l]:[3]: Post event: dec err
[  141.673213][1 T3364  d.]  vidioc_decoder_streamon+0xcc/0x5a4 [amvdec_ports]
[  141.682718][2 T538   ..] [amlcom]:optee_load_fw ret ffff0007, core 0, is_swap 0
[  141.691760][1 T3364  d.]  v4l_streamon+0x24/0x30
[  141.691766][1 T3364  d.]  __video_do_ioctl+0x198/0x410
[  141.691769][1 T3364  d.]  video_usercopy+0x274/0x660
[  141.699224][2 T538   ..] [h264]:0: MH264 the TEE fw loading failed, err: ffff0007
[  141.708487][1 T3364  d.]  video_ioctl2+0x18/0x50
[  141.708491][1 T3364  d.]  v4l2_vcodec_ioctl+0x164/0x594 [amvdec_ports]
[  141.717768][2 T538   ..] [amlv4l]:[3]: Post event: dec err
[  141.727033][1 T3364  d.]  v4l2_ioctl+0x4c/0x70
[  141.727037][1 T3364  d.]  __arm64_sys_ioctl+0xa8/0xf0
[  141.727042][1 T3364  d.]  invoke_syscall+0x48/0x114
[  141.727047][1 T3364  d.]  el0_svc_common.constprop.0+0x44/0xfc
[  141.734464][2 T538   ..] [amlcom]:optee_load_fw ret ffff0007, core 0, is_swap 0
[  141.743499][1 T3364  d.]  do_el0_svc+0x28/0xa0
[  141.743503][1 T3364  d.]  el0_svc+0x28/0xa0
[  141.743507][1 T3364  d.]  el0t_64_sync_handler+0xa4/0x130
[  141.752783][2 T538   ..] [h264]:0: MH264 the TEE fw loading failed, err: ffff0007
[  141.758233][1 T3364  d.]  el0t_64_sync+0x1b0/0x1b4
[  141.758239][1 T3364  d.] Code: a9096bf9 9140ab94 910d6294 f941e27b (f9443760)
[  141.758243][1 T3364  d.] ---[ end trace 446b416722a76611 ]---
[  141.759019][6 T66    ..] audit: type=1400 audit(1736084021.504:151): apparmor="DENIED" operation="open" profile="rsyslogd" name="/run/systemd/sessions/" pid=1235 comm=72733A6D61696E20513A526567 requested_mask="r" denied_mask="r" fsuid=103 ouid=0
[  141.767529][2 T538   ..] [amlv4l]:[3]: Post event: dec err
[  141.767787][2 T538   ..] [amlcom]:optee_load_fw ret ffff0007, core 0, is_swap 0
[  141.775635][1 T3364  d.] Kernel panic - not syncing: Oops: Fatal exception
[  141.775638][1 T3364  d.] SMP: stopping secondary CPUs
[  141.776788][1 T3364  d.] Kernel Offset: 0x2b00000000 from 0xffffffc008000000
[  141.776790][1 T3364  d.] PHYS_OFFSET: 0x0
[  141.776791][1 T3364  d.] CPU features: 0x0,0000c9a3,00000846
[  141.776794][1 T3364  d.] Memory Limit: none
[  143.154347][1 T3364  d.] Rebooting in 5 seconds..

Serial logs from Debian11 Gnome built today - showing the full crash

[  216.824692][4 T2058  ..] Unable to handle kernel access to user memory outside uaccess routines at virtual address 0000000000000868
[  216.830946][4 T2058  ..] Mem abort info:
[  216.834873][4 T2058  ..]   ESR = 0x96000005
[  216.839115][4 T2058  ..]   EC = 0x25: DABT (current EL), IL = 32 bits
[  216.845443][4 T2058  ..]   SET = 0, FnV = 0
[  216.849782][4 T2058  ..]   EA = 0, S1PTW = 0
[  216.853821][4 T2058  ..]   FSC = 0x05: level 1 translation fault
[  216.859836][4 T2058  ..] Data abort info:
[  216.863793][4 T2058  ..]   ISV = 0, ISS = 0x00000005
[  216.868727][4 T2058  ..]   CM = 0, WnR = 0
[  216.872792][4 T2058  ..] user pgtable: 4k pages, 39-bit VAs, pgdp=00000001025cc000
[  216.880347][4 T2058  ..] [0000000000000868] pgd=0000000000000000, p4d=0000000000000000, pud=0000000000000000
[  216.890127][4 T2058  d.] Internal error: Oops: 0000000096000005 [#1] PREEMPT SMP
[  216.897464][4 T2058  d.] Modules linked in: bnep(E) snd_seq(E) zram(E) dhd(E) amvenc_multi(E) jpegenc(E) encoder_common(E) media_sync(E) amvdec_avs2_fb_v4l(E) usbkbd(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) usbhid(E) amvdec_vp9(E) khadas_mcu(E) amvdec_vc1(E) joydev(E) amlsens(E) dw9714(E) amvdec_mmpeg4_v4l(E) amvdec_mmpeg4(E) amvdec_mmpeg12_v4l(E) mali_kbase(E) amvdec_mmpeg12(E) amvdec_ports(E) adla_core(E) amlcam(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) stream_input(E) pts_server(E) video_framerate_adapter(E) decoder_common(E) firmware(E) media_clock(E) mac80211(E) cfg80211(E) amlogic_snd_codec_ad82128(E) amlogic_snd_codec_pa1(E) amlogic_snd_codec_tas5805(E) amlogic_snd_codec_tas5707(E) amlogic_snd_codec_ad82584f(E) amlogic_snd_codec_tl1(E) amlogic_snd_codec_t9015(E) amlogic_snd_soc(E)
[  216.897686][4 T2058  d.]  amlogic_snd_codec_dummy(E) amlogic_usb_cam(E) amlogic_seckey(E) amlogic_jtag(E) amlogic_led(E) amlogic_host(E) amlogic_socinfo(E) bl40_module(E) amlogic_rtc(E) dwc_otg(E) amlogic_dvb_ci(E) amlogic_dvb_demux(E) amlogic_audio_utils(E) videobuf_vmalloc(E) v4l2_fwnode(E) v4l2_async(E) i2c_dev(E) dwmac_dwc_qos_eth(E) dwmac_meson(E) system_heap(E) ntfs3(E) zsmalloc(E) sha1_ce(E) amlogic_pcie_v3_host(E) amlogic_wireless(E) amlogic_crypto_dma(E) ip_tables(E) x_tables(E) autofs4(E) amlogic_pcie_v2_host(E) dwmac_meson8b(E) stmmac_platform(E) aml_drm(E) stmmac(E) amlogic_mdio_g12a(E) mdio_mux(E) amlogic_inphy(E) amlogic_phy_debug(E) amlogic_irblaster(E) amlogic_usb(E) amlogic_thermal(E) amlogic_camera(E) aml_media(E) amlogic_dvb(E) amlogic_watchdog(E) amlogic_input(E) amlogic_adc(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) amlogic_mmc(E) cqhci(E) amlogic_efuse_unifykey(E)
[  216.983518][4 T2058  d.]  amlogic_cpufreq(E) amlogic_power(E) amlogic_reset(E) gpio_regulator(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_memory_debug(E) user_fault(E) amlogic_cpuinfo(E) amlogic_secmon(E) pcs_xpcs(E) amlogic_debug(E) amlogic_hwspinlock(E) amlogic_debug_iotrace(E) amlogic_gkitool(E)
[  217.106072][4 T2058  d.] PC : ffffffe202443788, PFN:112e19 V
[  217.111696][4 T2058  d.] SP : ffffffc00dc93910, PFN:1025c0 V
[  217.117329][4 T2058  d.] FAR : 0000000000000868  U
[  217.122096][4 T2058  d.] R5  : ffffffc00defd040, PFN:1193df V
[  217.127816][4 T2058  d.] R8  : ffffffc00dc93a78, PFN:1025c0 V
[  217.133536][4 T2058  d.] R19 : ffffff8106d92000, PFN:106d92 L
[  217.139256][4 T2058  d.] R20 : ffffffc00defd000, PFN:1193df V
[  217.144976][4 T2058  d.] R21 : ffffffc00df27358, PFN:1255ae V
[  217.150696][4 T2058  d.] R22 : ffffffc00dc93a0c, PFN:1025c0 V
[  217.156416][4 T2058  d.] R23 : ffffffe20247d000, PFN:101e9f V
[  217.162136][4 T2058  d.] R24 : ffffffe20247d000, PFN:101e9f V
[  217.167856][4 T2058  d.] R25 : ffffffc00defd040, PFN:1193df V
[  217.173576][4 T2058  d.] R27 : ffffffe2094c3c08, PFN: 26c3 V
[  217.179209][4 T2058  d.] R29 : ffffffc00dc93960, PFN:1025c0 V
[  217.184929][4 T2058  d.] R30 : ffffffe202443734, PFN:112e19 V
[  217.190651][4 T2058  d.]
[  217.190651][4 T2058  d.] PC: 0xffffffe202443708:
[  217.197847][4 T2058  d.] 3708  a90863f7 d00001d8 a9096bf9 f9400275 f942f020 f900b7e0 d2800000 910483e0
[  217.207120][4 T2058  d.] 3728  52800001 f94026b4 958c8994 52800201 291b7fe1 910093e1 b9424300 a90dfc3f
[  217.216392][4 T2058  d.] 3748  a9017edf b90022df 37384300 b94002a0 121c7801 7100083f 54000520 7100381f
[  217.225665][4 T2058  d.] 3768  54000088 d28a3501 9ac02420 37000480 a90a73fb 9140aa95 910d62b5 f941e27c
[  217.234938][4 T2058  d.] 3788  f9443780 eb13001f 54002740 b9424301 37104f81 9140aa96 aa1303e2 911002d6
[  217.244212][4 T2058  d.] 37a8  91050381 aa1503e0 f9501ec3 d63f0060 b948cb80 35003000 52800020 b908d780
[  217.253485][4 T2058  d.] 37c8  9140a680 91088397 396da000 340025e0 91400679 39442720 35002520 f9403660
[  217.262758][4 T2058  d.] 37e8  52800061 97d01aee 37f834c0 b9424300 52800021 39042721 14000125 91400697
[  217.272029][4 T2058  d.]
[  217.272029][4 T2058  d.] LR: 0xffffffe2024436b4:
[  217.279225][4 T2058  d.] 36b4  910103e1 d2800800 959aaa12 b94242a0 3647f020 17ffffe3 2a1303e1 b0000140
[  217.288498][4 T2058  d.] 36d4  911e8000 95ac874e 17ffff7b d503233f d105c3ff d5384101 d2800902 a9057bfd
[  217.297771][4 T2058  d.] 36f4  910143fd a90653f3 aa0003f3 a9075bf5 9103f3f6 a90863f7 d00001d8 a9096bf9
[  217.307044][4 T2058  d.] 3714  f9400275 f942f020 f900b7e0 d2800000 910483e0 52800001 f94026b4 958c8994
[  217.316318][4 T2058  d.] 3734  52800201 291b7fe1 910093e1 b9424300 a90dfc3f a9017edf b90022df 37384300
[  217.325591][4 T2058  d.] 3754  b94002a0 121c7801 7100083f 54000520 7100381f 54000088 d28a3501 9ac02420
[  217.334865][4 T2058  d.] 3774  37000480 a90a73fb 9140aa95 910d62b5 f941e27c f9443780 eb13001f 54002740
[  217.344138][4 T2058  d.] 3794  b9424301 37104f81 9140aa96 aa1303e2 911002d6 91050381 aa1503e0 f9501ec3
[  217.353409][4 T2058  d.]
[  217.353409][4 T2058  d.] SP: 0xffffffc00dc93890:
[  217.360604][4 T2058  d.] 3890  00000000 00000000 094c3c08 ffffffe2 00000000 00000000 0dc93960 ffffffc0
[  217.369878][4 T2058  d.] 38b0  02443734 ffffffe2 0dc93910 ffffffc0 02443788 ffffffe2 80400005 00000000
[  217.379151][4 T2058  d.] 38d0  0247d000 ffffffe2 00000000 00000000 00000000 00000000 0df27358 ffffffc0
[  217.388424][4 T2058  d.] 38f0  0dc93960 ffffffc0 02443788 ffffffe2 0dc939d0 ffffffc0 00000000 00000000
[  217.397698][4 T2058  d.] 3910  255b4000 ffffff81 255b4030 ffffff81 00000013 00000000 00000002 00000000
[  217.406971][4 T2058  d.] 3930  00000001 00000000 0a2cf000 ffffffe2 11d96028 ffffff81 0dc93a88 ffffffc0
[  217.416244][4 T2058  d.] 3950  00000002 00000000 11d96028 ffffff81 0dc93a80 ffffffc0 08b14770 ffffffe2
[  217.425518][4 T2058  d.] 3970  06d92000 ffffff81 11d96028 ffffff81 11d96310 ffffff81 00000009 00000000
[  217.434790][4 T2058  d.]
[  217.434790][4 T2058  d.] X5: 0xffffffc00defcfc0:
[  217.441994][4 T2058  d.] cfc0  ******** ******** ******** ******** ******** ******** ******** ********
[  217.451260][4 T2058  d.] cfe0  ******** ******** ******** ******** ******** ******** ******** ********
[  217.460531][4 T2058  d.] d000  00000003 00000001 00000000 00000000 09ee3c80 ffffff81 11d96000 ffffff81
[  217.469805][4 T2058  d.] d020  0a1e7520 ffffffc0 00000000 00000000 0247c9a0 ffffffe2 0a1e7000 ffffffc0
[  217.479078][4 T2058  d.] d040  108895b8 ffffff81 108895b8 ffffff81 10889000 ffffff81 0defd0e0 ffffffc0
[  217.488351][4 T2058  d.] d060  00000002 00000000 00000000 00000000 0defd070 ffffffc0 0defd070 ffffffc0
[  217.497624][4 T2058  d.] d080  00000000 00000000 00000000 00000000 0defd090 ffffffc0 0defd090 ffffffc0
[  217.506898][4 T2058  d.] d0a0  00000000 00000000 00000000 00000000 025cb800 ffffff81 25bb7e00 ffffff81
[  217.516170][4 T2058  d.]
[  217.516170][4 T2058  d.] X8: 0xffffffc00dc939f8:
[  217.523364][4 T2058  d.] 39f8  0832db78 ffffffe2 0dc93b40 ffffffc0 0243ede0 00000000 00000000 00000000
[  217.532637][4 T2058  d.] 3a18  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  217.541911][4 T2058  d.] 3a38  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  217.551184][4 T2058  d.] 3a58  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  217.560458][4 T2058  d.] 3a78  63a09500 2ec5b31f 0dc93aa0 ffffffc0 08b15378 ffffffe2 06d92000 ffffff81
[  217.569731][4 T2058  d.] 3a98  11d96028 ffffff81 0dc93ad0 ffffffc0 08b15bd8 ffffffe2 11d96028 ffffff81
[  217.579005][4 T2058  d.] 3ab8  11d96000 ffffff81 0a5f17c0 ffffff81 08b15bcc ffffffe2 0dc93af0 ffffffc0
[  217.588278][4 T2058  d.] 3ad8  08b18b88 ffffffe2 0defd000 ffffffc0 00000000 00000000 0dc93b00 ffffffc0
[  217.597551][4 T2058  d.]
[  217.597551][4 T2058  d.] X19: 0xffffff8106d91f80:
[  217.604831][4 T2058  d.] 1f80  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  217.614104][4 T2058  d.] 1fa0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  217.623377][4 T2058  d.] 1fc0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  217.632650][4 T2058  d.] 1fe0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  217.641924][4 T2058  d.] 2000  11d96028 ffffff81 00000000 00000009 00000001 00000002 00000000 00000000
[  217.651198][4 T2058  d.] 2020  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  217.660471][4 T2058  d.] 2040  00000000 00000000 00000000 00000000 00000000 00000000 00000004 0000001b
[  217.669744][4 T2058  d.] 2060  031fad00 ffffff81 00000000 00000000 00000000 00000000 00001000 00001000
[  217.679016][4 T2058  d.]
[  217.679016][4 T2058  d.] X20: 0xffffffc00defcf80:
[  217.686301][4 T2058  d.] cf80  ******** ******** ******** ******** ******** ******** ******** ********
[  217.695574][4 T2058  d.] cfa0  ******** ******** ******** ******** ******** ******** ******** ********
[  217.704846][4 T2058  d.] cfc0  ******** ******** ******** ******** ******** ******** ******** ********
[  217.714120][4 T2058  d.] cfe0  ******** ******** ******** ******** ******** ******** ******** ********
[  217.723391][4 T2058  d.] d000  00000003 00000001 00000000 00000000 09ee3c80 ffffff81 11d96000 ffffff81
[  217.732665][4 T2058  d.] d020  0a1e7520 ffffffc0 00000000 00000000 0247c9a0 ffffffe2 0a1e7000 ffffffc0
[  217.741938][4 T2058  d.] d040  108895b8 ffffff81 108895b8 ffffff81 10889000 ffffff81 0defd0e0 ffffffc0
[  217.751211][4 T2058  d.] d060  00000002 00000000 00000000 00000000 0defd070 ffffffc0 0defd070 ffffffc0
[  217.760482][4 T2058  d.]
[  217.760482][4 T2058  d.] X21: 0xffffffc00df272d8:
[  217.767764][4 T2058  d.] 72d8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  217.777038][4 T2058  d.] 72f8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  217.786311][4 T2058  d.] 7318  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  217.795584][4 T2058  d.] 7338  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  217.804857][4 T2058  d.] 7358  00000003 00000000 024696f0 ffffffe2 00000001 00000000 00000000 00000000
[  217.814131][4 T2058  d.] 7378  00000000 00000000 0df27380 ffffffc0 0df27380 ffffffc0 00000000 00000000
[  217.823404][4 T2058  d.] 7398  00000000 00000000 00000015 00000000 0df273a8 ffffffc0 0df273a8 ffffffc0
[  217.832677][4 T2058  d.] 73b8  00000014 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  217.841949][4 T2058  d.]
[  217.841949][4 T2058  d.] X22: 0xffffffc00dc9398c:
[  217.849231][4 T2058  d.] 398c  00000000 0247d000 ffffffe2 0defd040 ffffffc0 0defd040 ffffffc0 00000000
[  217.858504][4 T2058  d.] 39ac  00000000 094c3c08 ffffffe2 0defe000 ffffffc0 00000013 00000000 63a09500
[  217.867778][4 T2058  d.] 39cc  2ec5b31f 0dc939f0 ffffffc0 08328fec ffffffe2 000a80f0 ffffff81 00000010
[  217.877051][4 T2058  d.] 39ec  00000000 0dc93a10 ffffffc0 0832db78 ffffffe2 0dc93b40 ffffffc0 0243ede0
[  217.886324][4 T2058  d.] 3a0c  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  217.895597][4 T2058  d.] 3a2c  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  217.904871][4 T2058  d.] 3a4c  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  217.914144][4 T2058  d.] 3a6c  00000000 00000000 00000000 63a09500 2ec5b31f 0dc93aa0 ffffffc0 08b15378
[  217.923416][4 T2058  d.]
[  217.923416][4 T2058  d.] X23: 0xffffffe20247cf80:
[  217.930698][4 T2058  d.] cf80  0246630c ffffffe2 0000003d 00000000 00000000 00000000 00000000 00000000
[  217.939971][4 T2058  d.] cfa0  0247cfa0 ffffffe2 0247cfa0 ffffffe2 00000000 00000000 00000000 00000000
[  217.949244][4 T2058  d.] cfc0  02479fc0 ffffffe2 00000020 00000004 024662dc ffffffe2 02466400 ffffffe2
[  217.958518][4 T2058  d.] cfe0  00000001 00000002 02479fb0 ffffffe2 023e2000 ffffffe2 00000000 00000000
[  217.967791][4 T2058  d.] d000  0243a000 ffffffe2 00050000 0002c000 00041000 00042000 0247ce80 ffffffe2
[  217.977064][4 T2058  d.] d020  02431621 ffffffe2 00000000 00000000 00000000 00000000 02431639 ffffffe2
[  217.986338][4 T2058  d.] d040  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  217.995611][4 T2058  d.] d060  00000000 00000000 0247ce80 ffffffe2 02431621 ffffffe2 02400520 ffffffe2
[  218.004882][4 T2058  d.]
[  218.004882][4 T2058  d.] X24: 0xffffffe20247cf80:
[  218.012164][4 T2058  d.] cf80  0246630c ffffffe2 0000003d 00000000 00000000 00000000 00000000 00000000
[  218.021438][4 T2058  d.] cfa0  0247cfa0 ffffffe2 0247cfa0 ffffffe2 00000000 00000000 00000000 00000000
[  218.030711][4 T2058  d.] cfc0  02479fc0 ffffffe2 00000020 00000004 024662dc ffffffe2 02466400 ffffffe2
[  218.039984][4 T2058  d.] cfe0  00000001 00000002 02479fb0 ffffffe2 023e2000 ffffffe2 00000000 00000000
[  218.049258][4 T2058  d.] d000  0243a000 ffffffe2 00050000 0002c000 00041000 00042000 0247ce80 ffffffe2
[  218.058531][4 T2058  d.] d020  02431621 ffffffe2 00000000 00000000 00000000 00000000 02431639 ffffffe2
[  218.067804][4 T2058  d.] d040  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  218.077077][4 T2058  d.] d060  00000000 00000000 0247ce80 ffffffe2 02431621 ffffffe2 02400520 ffffffe2
[  218.086349][4 T2058  d.]
[  218.086349][4 T2058  d.] X25: 0xffffffc00defcfc0:
[  218.093633][4 T2058  d.] cfc0  ******** ******** ******** ******** ******** ******** ******** ********
[  218.102907][4 T2058  d.] cfe0  ******** ******** ******** ******** ******** ******** ******** ********
[  218.112178][4 T2058  d.] d000  00000003 00000001 00000000 00000000 09ee3c80 ffffff81 11d96000 ffffff81
[  218.121451][4 T2058  d.] d020  0a1e7520 ffffffc0 00000000 00000000 0247c9a0 ffffffe2 0a1e7000 ffffffc0
[  218.130724][4 T2058  d.] d040  108895b8 ffffff81 108895b8 ffffff81 10889000 ffffff81 0defd0e0 ffffffc0
[  218.139997][4 T2058  d.] d060  00000002 00000000 00000000 00000000 0defd070 ffffffc0 0defd070 ffffffc0
[  218.149271][4 T2058  d.] d080  00000000 00000000 00000000 00000000 0defd090 ffffffc0 0defd090 ffffffc0
[  218.158544][4 T2058  d.] d0a0  00000000 00000000 00000000 00000000 025cb800 ffffff81 25bb7e00 ffffff81
[  218.167816][4 T2058  d.]
[  218.167816][4 T2058  d.] X27: 0xffffffe2094c3b88:
[  218.175098][4 T2058  d.] 3b88  4004560e 00000001 0981d2f0 ffffffe2 08ae6370 ffffffe2 08f745e8 ffffffe2
[  218.184372][4 T2058  d.] 3ba8  c058560f 00000004 0981d300 ffffffe2 08aebda0 ffffffe2 08ae6e90 ffffffe2
[  218.193645][4 T2058  d.] 3bc8  c0405610 00100004 0981d310 ffffffe2 08ae65c0 ffffffe2 08ae6e24 ffffffe2
[  218.202918][4 T2058  d.] 3be8  c0585611 00000004 0981d320 ffffffe2 08aebe00 ffffffe2 08ae6e90 ffffffe2
[  218.212191][4 T2058  d.] 3c08  40045612 00000005 0981d330 ffffffe2 08ae6310 ffffffe2 08ae6dd0 ffffffe2
[  218.221465][4 T2058  d.] 3c28  40045613 00000005 0981d340 ffffffe2 08ae6340 ffffffe2 08ae6dd0 ffffffe2
[  218.230738][4 T2058  d.] 3c48  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  218.240011][4 T2058  d.] 3c68  c0cc5615 00040000 0981d358 ffffffe2 08ae7d44 ffffffe2 08ae6d14 ffffffe2
[  218.249282][4 T2058  d.]
[  218.249282][4 T2058  d.] X29: 0xffffffc00dc938e0:
[  218.256564][4 T2058  d.] 38e0  00000000 00000000 0df27358 ffffffc0 0dc93960 ffffffc0 02443788 ffffffe2
[  218.265838][4 T2058  d.] 3900  0dc939d0 ffffffc0 00000000 00000000 255b4000 ffffff81 255b4030 ffffff81
[  218.275111][4 T2058  d.] 3920  00000013 00000000 00000002 00000000 00000001 00000000 0a2cf000 ffffffe2
[  218.284384][4 T2058  d.] 3940  11d96028 ffffff81 0dc93a88 ffffffc0 00000002 00000000 11d96028 ffffff81
[  218.293657][4 T2058  d.] 3960  0dc93a80 ffffffc0 08b14770 ffffffe2 06d92000 ffffff81 11d96028 ffffff81
[  218.302931][4 T2058  d.] 3980  11d96310 ffffff81 00000009 00000000 0247d000 ffffffe2 0defd040 ffffffc0
[  218.312204][4 T2058  d.] 39a0  0defd040 ffffffc0 00000000 00000000 094c3c08 ffffffe2 0defe000 ffffffc0
[  218.321477][4 T2058  d.] 39c0  00000013 00000000 63a09500 2ec5b31f 0dc939f0 ffffffc0 08328fec ffffffe2
[  218.330748][4 T2058  d.]
[  218.333351][4 T2058  d.] CPU: 4 PID: 2058 Comm: ffmpeg Tainted: G            E     5.15.137 #1.7.3
[  218.342275][4 T2058  d.] Hardware name: Khadas VIM4 (DT)
[  218.347563][4 T2058  d.] pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[  218.355622][4 T2058  d.] pc : vb2ops_vdec_buf_queue+0xa8/0xb90 [amvdec_ports]
[  218.362729][4 T2058  d.] lr : vb2ops_vdec_buf_queue+0x54/0xb90 [amvdec_ports]
[  218.369835][4 T2058  d.] sp : ffffffc00dc93910
[  218.374255][4 T2058  d.] x29: ffffffc00dc93960 x28: 0000000000000000 x27: ffffffe2094c3c08
[  218.382488][4 T2058  d.] x26: 0000000000000000 x25: ffffffc00defd040 x24: ffffffe20247d000
[  218.390722][4 T2058  d.] x23: ffffffe20247d000 x22: ffffffc00dc93a0c x21: ffffffc00df27358
[  218.398955][4 T2058  d.] x20: ffffffc00defd000 x19: ffffff8106d92000 x18: 0000000000000000
[  218.407188][4 T2058  d.] x17: 0000000000000000 x16: 0000000000000000 x15: 0000007fe51225d4
[  218.415422][4 T2058  d.] x14: 0000000000000000 x13: 0000000000000000 x12: 0000000000000000
[  218.423655][4 T2058  d.] x11: 0000000000000000 x10: 0000000000000000 x9 : 0000000000000000
[  218.431888][4 T2058  d.] x8 : ffffffc00dc93a78 x7 : 0000000000000000 x6 : 0000000000000005
[  218.440122][4 T2058  d.] x5 : ffffffc00defd040 x4 : 0000000000000000 x3 : 0000000000000000
[  218.448355][4 T2058  d.] x2 : 0000000000000008 x1 : 00000000000051a8 x0 : 0000000000000028
[  218.456589][4 T2058  d.] Call trace:
[  218.460143][4 T2058  d.]  vb2ops_vdec_buf_queue+0xa8/0xb90 [amvdec_ports]
[  218.466902][4 T2058  d.]  __enqueue_in_driver+0x50/0xf0
[  218.472102][4 T2058  d.]  vb2_start_streaming+0x38/0x170
[  218.477389][4 T2058  d.]  vb2_core_streamon+0x88/0x190
[  218.482502][4 T2058  d.]  vb2_streamon+0x18/0x64
[  218.487095][4 T2058  d.]  v4l2_m2m_ioctl_streamon+0x5c/0xa0
[  218.492642][4 T2058  d.]  vidioc_decoder_streamon+0xc8/0x5ac [amvdec_ports]
[  218.499575][4 T2058  d.]  v4l_streamon+0x24/0x30
[  218.504169][4 T2058  d.]  __video_do_ioctl+0x178/0x410
[  218.509282][4 T2058  d.]  video_usercopy+0x208/0x6a0
[  218.514222][4 T2058  d.]  video_ioctl2+0x18/0x50
[  218.518815][4 T2058  d.]  v4l2_vcodec_ioctl+0x13c/0x5a0 [amvdec_ports]
[  218.525315][4 T2058  d.]  v4l2_ioctl+0x4c/0x70
[  218.529736][4 T2058  d.]  __arm64_sys_ioctl+0xac/0xf0
[  218.534762][4 T2058  d.]  invoke_syscall+0x48/0x114
[  218.539615][4 T2058  d.]  el0_svc_common.constprop.0+0x44/0xec
[  218.545422][4 T2058  d.]  do_el0_svc+0x24/0xa0
[  218.549842][4 T2058  d.]  el0_svc+0x20/0x80
[  218.554002][4 T2058  d.]  el0t_64_sync_handler+0xe8/0x114
[  218.559375][4 T2058  d.]  el0t_64_sync+0x1b0/0x1b4
[  218.564144][4 T2058  d.] Code: a90a73fb 9140aa95 910d62b5 f941e27c (f9443780)
[  218.571338][4 T2058  d.] ---[ end trace 792e43307bbdfc99 ]---

Message from syslogd@localhost at Jan  5 14:16:12 ...
 kernel:[  216.890127][4 T2058  d.] Internal error: Oops: 0000000096000005 [#1] PREEMPT SMP
[  218.607496][4 T2058  d.] Kernel panic - not syncing: Oops: Fatal exception
[  218.608734][4 T2058  d.] SMP: stopping secondary CPUs
[  218.613926][4 T2058  d.] Kernel Offset: 0x2200000000 from 0xffffffc008000000
[  218.620779][4 T2058  d.] PHYS_OFFSET: 0x0
[  218.624765][4 T2058  d.] CPU features: 0x0,0000c9a3,00000846
[  218.630399][4 T2058  d.] Memory Limit: none
[  218.666704][4 T2058  d.] Rebooting in 5 seconds..
ubuntu@ubuntu:~$

Good Morining! :smiley:
Any feedback or progress to report ?

UPDATE - Non standard video resolutions crash driver:

I have 2 files with the same content and different resolution. My Camera feeds are 640x352 but when I inut this file it crashes. I resample video to 640x384 and it works. On Old working drivers, I notice that the v4l2m2m code is changing the resolution from 640x352 to 640x384 and adding a large green bar to the bottom of the video. The Linux driver is changing the video frame size on the working driver.

On the Broken Debian, the driver crashes when I input a video that is not a usual size. Copying data from a 640x384 buffer to a destination of 640x352 will go very badly.
If you want the 2 files, I will gladly upload. just tell me where to upload.

Regards,
Richard

any updates on the issue?

Can I take this as a “Not going to be fixed” or can I ask Amlogic to see if they are willing to offer some assistance?

Yes, it may not be fixed bacause current driver not test with ffmpeg and not supported.

Thank you, Although this is V4L and also happens on Gstreamer, I thank you for your time. I will look at debugging it, but will also look at other SBC and see if they are fine with v4l

Could you tell us how to reproduce this issue with Gstreamer? If for Gstreamer, we can do more debug.