偶现运行桌面卡死,请问可能是什么原因

ubuntu20.04,linux 5.16.0-rc2;偶现运行GNOME桌面卡死,打印如下,内核出现了空指针操作,请问可能是什么原因呢?

[  127.524042] hdmi-audio-codec hdmi-audio-codec.1.auto: Not able to map channels to speakers (-22)
[  127.527212] hdmi-audio-codec hdmi-audio-codec.1.auto: ASoC: error at snd_soc_dai_hw_params on i2s-hifi: -22
[  127.536902] axg-sound-card sound: ASoC: PRE_PMU: be.dai-link-7-playback event failed: -22
[  872.233916] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7300, status=0x0, head=0x33d5fc0, tail=0x33d5fc0, sched_job=00000000569ced65
[  872.749905] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7b02, status=0x0, head=0x3f27f00, tail=0x3f27f00, sched_job=00000000e1d4f560
[  873.293907] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7301, status=0x0, head=0x3ae9000, tail=0x3ae9000, sched_job=00000000dd3c5591
[  873.833908] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7b00, status=0x0, head=0x3faa000, tail=0x3faa000, sched_job=000000000276d32e
[  874.349896] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7301, status=0x0, head=0x3faa740, tail=0x3faa740, sched_job=00000000110936e0
[  874.889905] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7b00, status=0x0, head=0x30a2400, tail=0x30a2400, sched_job=000000006f669d39
[  875.401916] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7301, status=0x0, head=0x3f89740, tail=0x3f89740, sched_job=00000000901358a8
[  875.913916] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7b00, status=0x0, head=0x30cfa00, tail=0x30cfa00, sched_job=00000000cc3e0bfe
[  876.429900] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7b00, status=0x0, head=0x30af000, tail=0x30af000, sched_job=00000000901358a8
[  876.969931] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7300, status=0x0, head=0x30afa00, tail=0x30afa00, sched_job=00000000110936e0
[  877.485902] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7300, status=0x0, head=0x3186000, tail=0x3186000, sched_job=00000000ff3c3b21
[  878.029942] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7b00, status=0x0, head=0x3186a00, tail=0x3186a00, sched_job=00000000f3f274c0
[  878.573918] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7b00, status=0x0, head=0x31b6000, tail=0x31b6000, sched_job=000000008ca8f638
[  879.113912] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7300, status=0x0, head=0x31b6980, tail=0x31b6980, sched_job=00000000d6eefc3a
[  879.629904] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7300, status=0x0, head=0x3ae9000, tail=0x3ae9000, sched_job=00000000759b19fb
[  880.173908] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7b00, status=0x0, head=0x3ae96c0, tail=0x3ae96c0, sched_job=00000000b315ef67
[  880.717904] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7b00, status=0x0, head=0x46da000, tail=0x46da000, sched_job=00000000ce9ca37f
[  881.261899] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7300, status=0x0, head=0x46da6c0, tail=0x46da6c0, sched_job=0000000002bbc8d2
[  881.801897] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7300, status=0x0, head=0x485a000, tail=0x485a000, sched_job=0000000041927f4b
[  882.213899] BUG: scheduling while atomic: alsa-sink-fe.da/2098/0x00010000
[  882.216054] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000041
[  882.223953] Mem abort info:
[  882.226581]   ESR = 0x96000004
[  882.229558]   EC = 0x25: DABT (current EL), IL = 32 bits
[  882.234871]   SET = 0, FnV = 0
[  882.237930]   EA = 0, S1PTW = 0
[  882.240944]   FSC = 0x04: level 0 translation fault
[  882.245819] Data abort info:
[  882.248681]   ISV = 0, ISS = 0x00000004
[  882.252518]   CM = 0, WnR = 0
[  882.255471] user pgtable: 4k pages, 48-bit VAs, pgdp=0000000026af2000
[  882.261850] [0000000000000041] pgd=0000000000000000, p4d=0000000000000000
[  882.268513] Internal error: Oops: 96000004 [#1] SMP
[  882.273286] Modules linked in: fuse zram zsmalloc cdc_acm hci_uart btqca btbcm bluetooth governor_simpleondemand ecdh_generic ecc meson_vdec(C) panfrost videobuf2_dma_contig ir_nec_decoder v4l2_mem2mem khadas_mcu_fan gpu_sched rc_khadas videobuf2_memops videobuf2_v4l2 meson_ir videobuf2_common galcore(C) brcmfmac brcmutil cfg80211 rfkill ip_tables x_tables btrfs blake2b_generic xor xor_neon zlib_deflate raid6_pq zstd_compress libcrc32c gpio_pca953x rtc_hym8563 rtc_meson_vrtc gpio_keys_polled
[  882.316501] CPU: 0 PID: 2098 Comm: alsa-sink-fe.da Tainted: G        WC        5.16.0-rc2 #1.0.10
[  882.325294] Hardware name: Khadas VIM3 (DT)
[  882.329437] pstate: 40000005 (nZcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[  882.336333] pc : __enqueue_rt_entity+0x14/0x320
[  882.340819] lr : enqueue_rt_entity+0x3c/0x60
[  882.345044] sp : ffff800010003d80
[  882.348322] x29: ffff800010003d80 x28: ffff000005f30000 x27: 0000000000000000
[  882.355393] x26: ffff800012019ac0 x25: ffff80001264cb6a x24: ffff000000263400
[  882.362466] x23: 0000000000000012 x22: ffff000005f30000 x21: 0000000000000002
[  882.369539] x20: ffff000002be4f0c x19: 0000000000000001 x18: 0000000000000060
[  882.376611] x17: 2020202020435720 x16: 2020202020202047 x15: ffff000005f30448
[  882.383683] x14: 000000000000008c x13: 0000000000000000 x12: 00000000000000a7
[  882.390756] x11: 0000000000000312 x10: 0000000000000910 x9 : ffff800010003ce0
[  882.397828] x8 : ffff000005f30970 x7 : ffff00009e84e1c0 x6 : ffff00001c3d0800
[  882.404902] x5 : 0000000000000001 x4 : ffff000005f30000 x3 : ffff000000f3d8d0
[  882.411974] x2 : 0000000000000000 x1 : 0000000002be4f0c x0 : 0000000000000001
[  882.419047] Call trace:
[  882.421463]  __enqueue_rt_entity+0x14/0x320
[  882.425602]  enqueue_rt_entity+0x3c/0x60
[  882.429482]  enqueue_task_rt+0x2c/0xd8
[  882.433192]  ttwu_do_activate.isra.0+0x6c/0x118
[  882.437680] Code: a9bd7bfd 910003fd a90153f3 aa0003f3 (f9402000) 
[  882.443719] ---[ end trace b61f580191996e6e ]---
[  883.038837] Unable to handle kernel paging request at virtual address ffff800010ff39f8
[  883.041147] Mem abort info:
[  883.043891]   ESR = 0x96000007
[  883.046908]   EC = 0x25: DABT (current EL), IL = 32 bits
[  883.052165]   SET = 0, FnV = 0
[  883.055182]   EA = 0, S1PTW = 0
[  883.058287]   FSC = 0x07: level 3 translation fault
[  883.063117] Data abort info:
[  883.065964]   ISV = 0, ISS = 0x00000007
[  883.069759]   CM = 0, WnR = 0
[  883.072692] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000002213000
[  883.079333] [ffff800010ff39f8] pgd=100000009efff003, p4d=100000009efff003, pud=100000009effe003, pmd=1000000004de4003, pte=0000000000000000
[  883.091755] Internal error: Oops: 96000007 [#2] SMP
[  883.096584] Modules linked in: fuse zram zsmalloc cdc_acm hci_uart btqca btbcm bluetooth governor_simpleondemand ecdh_generic ecc meson_vdec(C) panfrost videobuf2_dma_contig ir_nec_decoder v4l2_mem2mem khadas_mcu_fan gpu_sched rc_khadas videobuf2_memops videobuf2_v4l2 meson_ir videobuf2_common galcore(C) brcmfmac brcmutil cfg80211 rfkill ip_tables x_tables btrfs blake2b_generic xor xor_neon zlib_deflate raid6_pq zstd_compress libcrc32c gpio_pca953x rtc_hym8563 rtc_meson_vrtc gpio_keys_polled
[  883.139796] CPU: 0 PID: 3353 Comm: IPC I/O Child Tainted: G      D WC        5.16.0-rc2 #1.0.10
[  883.148419] Hardware name: Khadas VIM3 (DT)
[  883.152560] pstate: a00000c5 (NzCv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[  883.159459] pc : cpuacct_charge+0x18/0x78
[  883.163427] lr : update_curr+0xd4/0x150
[  883.167221] sp : ffff800012ce3a80
[  883.170499] x29: ffff800012ce3a80 x28: 0000000000000009 x27: 0000000000000000
[  883.177571] x26: 0000000000000000 x25: 0000000000000002 x24: 0000000000000001
[  883.184644] x23: 0000000000000009 x22: ffff000004e12880 x21: 000000000003d207
[  883.191716] x20: ffff0000239d7400 x19: ffff000004e12900 x18: 0000000000000000
[  883.198789] x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000
[  883.205861] x14: 0000000000000000 x13: 0000000000000000 x12: 0000000000000000
[  883.212934] x11: 0000000000000000 x10: 0000000000000000 x9 : 0000000000000004
[  883.220006] x8 : ffff800012ce3d40 x7 : ffff00002f4c5e40 x6 : 000000000642c23e
[  883.227079] x5 : 00ffffffffffffff x4 : 0000000000000001 x3 : ffff80008c591000
[  883.234151] x2 : ffff800010ff38f0 x1 : 000000000003d207 x0 : ffff000004e12880
[  883.241225] Call trace:
[  883.243640]  cpuacct_charge+0x18/0x78
[  883.247261]  dequeue_entity+0x24/0x2b0
[  883.250970]  dequeue_task_fair+0x8c/0x2b8
[  883.254938]  __schedule+0x4cc/0x728
[  883.258387]  schedule+0x48/0xd8
[  883.261492]  schedule_hrtimeout_range_clock+0x108/0x118
[  883.266667]  schedule_hrtimeout_range+0x14/0x20
[  883.271152]  do_epoll_wait+0x5d0/0x790
[  883.274861]  do_compat_epoll_pwait.part.0+0x14/0x98
[  883.279691]  __arm64_sys_epoll_pwait+0x74/0xc8
[  883.284090]  invoke_syscall+0x44/0x108
[  883.287799]  el0_svc_common.constprop.0+0x17c/0x1a0
[  883.292629]  do_el0_svc+0x24/0x88
[  883.295906]  el0_svc+0x20/0x90
[  883.298925]  el0t_64_sync_handler+0xb0/0xb8
[  883.303065]  el0t_64_sync+0x1a0/0x1a4
[  883.306692] Code: d538d083 f8636842 d503233f b4000262 (f9408442) 
[  883.312729] ---[ end trace b61f580191996e6f ]---

@kiwin 只是待机么?》你做了什么操作?建议试试最新的5.18的固件

不是待机,是偶现运行一段时间之后整个界面就卡住不动了,看内核有报错,每次内核报错信息还不太一样。5.18固件有处理过类似问题吗?

@kiwin 那就要看你的板子在运行什么内容了,要能复现才能分析

就是只运行一个我们自己的带界面的java应用或者打开火狐浏览器播放1080的视频,偶现一段时间就随机出现卡死现象;板子上的CPU调度模式是被改成了schedutil模式。

sudo cpufreq-set -g schedutil
sudo cpufreq-set -c 2 -g schedutil