Closed waby38b closed 1 year ago
First issue is located here with what seems to be straight during the boot:
[ 12.464817] sti 0.sti-display-subsystem: [drm] ERROR fbdev: Failed to setup generic emulation (ret=-12)
aka an Out of Memory error. Snif.
Here is my lsmod output on my buildroot based system:
Module Size Used by Not tainted
snd_soc_hdmi_codec 24576 0
dwc3 69632 0
lima 53248 0
gpu_sched 32768 1 lima
st_remoteproc 20480 0
drm_shmem_helper 20480 1 lima
i2c_st 20480 1
sti_drm 106496 0
drm_dma_helper 16384 1 sti_drm
drm_kms_helper 126976 3 sti_drm,drm_dma_helper
cfbfillrect 16384 1 drm_kms_helper
syscopyarea 16384 1 drm_kms_helper
cfbimgblt 16384 1 drm_kms_helper
sysfillrect 16384 1 drm_kms_helper
st_spi_fsm 28672 0
sysimgblt 16384 1 drm_kms_helper
dwc3_st 16384 0
cfbcopyarea 16384 1 drm_kms_helper
mailbox_sti 20480 8
drm 385024 7 lima,gpu_sched,drm_shmem_helper,sti_drm,drm_dma_helper,drm_kmsr
st_lpc_wdt 16384 0
drm_panel_orientation_quirks 16384 1 drm
fb 45056 1 drm_kms_helper
watchdog 28672 1 st_lpc_wdt
phy_miphy28lp 20480 3
phy_stih407_usb 16384 10
On Arch Linux for ARM:
[alarm@alarm ~]$ uname -a
Linux alarm 6.3.0-rc6-ge7381035faed #19 SMP Sun Apr 23 13:43:34 CEST 2023 armv7l GNU/Linux
[alarm@alarm ~]$ dmesg | grep -i cma
[ 0.000000] cma: Reserved 1024 MiB at 0xbf000000
[ 0.000000] Kernel command line: cma=1024M loglevel=8 earlyprintk console=ttyAS0,115200 rw root=UUID=f9d4de21-a0f3-4e21-9876-e883d1f09bf9 initrd=0x95000000,0x6a38f8 LANG=en_US.UTF-8
[ 0.000000] Memory: 980384K/2080768K available (15360K kernel code, 2478K rwdata, 6280K rodata, 2048K init, 422K bss, 51808K reserved, 1048576K cma-reserved, 245760K highmem)
[ 6.438158] bgmac_bcma: Broadcom 47xx GBit MAC driver loaded
[alarm@alarm ~]$ systemctl status systemd-oomd
* systemd-oomd.service
Loaded: masked (Reason: Unit systemd-oomd.service is masked.)
Active: inactive (dead)
I got several kernel panics before the board gets soft-bricked:
[alarm@alarm ~]$ glmark2-es2-drm
MESA-LOADER: failed to open sti: /usr/lib/dri/sti_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/dri, suffix _dri)
Warning: DRM_CAP_ASYNC_PAGE_FLIP not supported, falling back to 'mailbox' mode for SwapInterval(0).
=======================================================
glmark2 2023.01
=======================================================
OpenGL Information
GL_VENDOR: Mesa
GL_RENDERER: Mali400
GL_VERSION: OpenGL ES 2.0 Mesa 23.0.2
Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=24 stencil=0 samples=0
Surface Size: 800x480 fullscreen
=======================================================
[build] use-vbo=false: FPS: 542 FrameTime: 1.846 ms
[build] use-vbo=true: FPS: 87 FrameTime: 11.518 ms
[texture] texture-filter=nearest: FPS: 49 FrameTime: 20.427 ms
[texture] texture-filter=linear: FPS: 82 FrameTime: 12.260 ms
[texture] texture-filter=mipmap: FPS: 83 FrameTime: 12.153 ms
[shading] shading=gouraud: FPS: 50 FrameTime: 20.005 ms
[shading] shading=blinn-phong-inf:[ 236.135862] kworker/u8:0 invoked oom-killer: gfp_mask=0xcc0(GFP_KERNEL), order=0, oom_score_adj=0
[ 236.144793] CPU: 0 PID: 298 Comm: kworker/u8:0 Not tainted 6.3.0-rc6-ge7381035faed #19
[ 236.152702] Hardware name: STi SoC with Flattened Device Tree
[ 236.158444] unwind_backtrace from show_stack+0x10/0x14
[ 236.163682] show_stack from dump_stack_lvl+0x40/0x4c
[ 236.168735] dump_stack_lvl from dump_header+0x48/0x2ac
[ 236.173964] dump_header from oom_kill_process+0x47c/0x48c
[ 236.179450] oom_kill_process from out_of_memory+0x2ec/0x4b4
[ 236.185102] out_of_memory from __alloc_pages+0xb48/0xf04
[ 236.190505] __alloc_pages from new_slab+0x2e0/0x430
[ 236.195474] new_slab from ___slab_alloc+0x3a4/0x97c
[ 236.200438] ___slab_alloc from kmem_cache_alloc+0x180/0x298
[ 236.206096] kmem_cache_alloc from __alloc_file+0x20/0xac
[ 236.211497] __alloc_file from alloc_empty_file+0x54/0x100
[ 236.216982] alloc_empty_file from alloc_file+0x1c/0x14c
[ 236.222292] alloc_file from alloc_file_pseudo+0xac/0x104
[ 236.227689] alloc_file_pseudo from create_pipe_files+0xec/0x1c4
[ 236.233697] create_pipe_files from umh_pipe_setup+0x30/0x98
[ 236.239357] umh_pipe_setup from call_usermodehelper_exec_async+0xf0/0x180
[ 236.246240] call_usermodehelper_exec_async from ret_from_fork+0x14/0x2c
[ 236.252939] Exception stack(0xf0ee5fb0 to 0xf0ee5ff8)
[ 236.257981] 5fa0: 00000000 00000000 00000000 00000000
[ 236.266147] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 236.274312] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 236.280953] Mem-Info:
[ 236.283226] active_anon:333 inactive_anon:8132 isolated_anon:0
[ 236.283226] active_file:3891 inactive_file:18532 isolated_file:0
[ 236.283226] unevictable:177642 dirty:1 writeback:0
[ 236.283226] slab_reclaimable:2505 slab_unreclaimable:3364
[ 236.283226] mapped:15523 shmem:177985 pagetables:247
[ 236.283226] sec_pagetables:0 bounce:0
[ 236.283226] kernel_misc_reclaimable:0
[ 236.283226] free:290005 free_pcp:327 free_cma:229150
[ 236.323079] Node 0 active_anon:1332kB inactive_anon:32528kB active_file:15564kB inactive_file:74128kB unevictable:710568kB isolated(anon):0kB isolated(file):0kB mapped:62092kB dirty:4kB wr
iteback:0kB shmem:711940kB writeback_tmp:0kB kernel_stack:800kB pagetables:988kB sec_pagetables:0kB all_unreclaimable? yes
[ 236.350457] DMA free:3320kB boost:0kB min:3428kB low:4284kB high:5140kB reserved_highatomic:0KB active_anon:0kB inactive_anon:0kB active_file:252kB inactive_file:0kB unevictable:710568kB w
ritepending:4kB present:786432kB managed:743472kB mlocked:0kB bounce:0kB free_pcp:1308kB local_pcp:1308kB free_cma:0kB
[ 236.377487] lowmem_reserve[]: 0 0 1264 1264
[ 236.381671] DMA: 26*4kB (UME) 34*8kB (UME) 32*16kB (UME) 19*32kB (UME) 6*64kB (UME) 5*128kB (UE) 3*256kB (UME) 1*512kB (U) 0*1024kB 0*2048kB 0*4096kB 0*8192kB = 3800kB
[ 236.396679] 200394 total pagecache pages
[ 236.400589] 0 pages in swap cache
[ 236.403900] Free swap = 0kB
[ 236.406768] Total swap = 0kB
[ 236.409635] 520192 pages RAM
[ 236.412501] 323584 pages HighMem/MovableOnly
[ 236.416766] 10740 pages reserved
[ 236.419981] 262144 pages cma reserved
[ 236.423638] Tasks state (memory values in pages):
[ 236.428328] [ pid ] uid tgid total_vm rss pgtables_bytes swapents oom_score_adj name
[ 236.436940] [ 130] 0 130 9678 2999 36864 0 -250 systemd-journal
[ 236.445989] [ 145] 0 145 6830 1504 26624 0 -1000 systemd-udevd
[ 236.454862] [ 146] 980 146 3831 1536 20480 0 0 systemd-network
[ 236.463910] [ 189] 977 189 4522 2496 24576 0 0 systemd-resolve
[ 236.472956] [ 190] 976 190 5944 1408 22528 0 0 systemd-timesyn
[ 236.481994] [ 194] 81 194 2858 1088 18432 0 -900 dbus-daemon
[ 236.490693] [ 195] 0 195 2406 1472 16384 0 -1000 sshd
[ 236.498784] [ 196] 0 196 3634 1408 20480 0 0 systemd-logind
[ 236.507746] [ 199] 0 199 585 384 10240 0 0 agetty
[ 236.516017] [ 200] 0 200 3028 1184 18432 0 0 login
[ 236.524196] [ 207] 1000 207 4322 2240 22528 0 100 systemd
[ 236.532548] [ 211] 1000 211 5677 994 28672 0 100 (sd-pam)
[ 236.540978] [ 220] 1000 220 1050 608 8192 0 0 bash
[ 236.549068] [ 240] 102 240 14986 2016 36864 0 0 polkitd
[ 236.557419] [ 296] 1000 296 51443 12553 167936 0 0 glmark2-es2-drm
[ 236.566466] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),task=systemd,pid=207,uid=1000
[ 236.575008] Out of memory: Killed process 207 (systemd) total-vm:17288kB, anon-rss:1792kB, file-rss:7168kB, shmem-rss:0kB, UID:1000 pgtables:22kB oom_score_adj:100
[ 236.648206] kworker/u8:0 invoked oom-killer: gfp_mask=0xcc0(GFP_KERNEL), order=0, oom_score_adj=0
[ 236.657126] CPU: 0 PID: 298 Comm: kworker/u8:0 Not tainted 6.3.0-rc6-ge7381035faed #19
[ 236.665037] Hardware name: STi SoC with Flattened Device Tree
[ 236.670774] unwind_backtrace from show_stack+0x10/0x14
[ 236.676011] show_stack from dump_stack_lvl+0x40/0x4c
[ 236.681064] dump_stack_lvl from dump_header+0x48/0x2ac
[ 236.686294] dump_header from oom_kill_process+0x47c/0x48c
[ 236.691779] oom_kill_process from out_of_memory+0x2ec/0x4b4
[ 236.697431] out_of_memory from __alloc_pages+0xb48/0xf04
[ 236.702834] __alloc_pages from new_slab+0x2e0/0x430
[ 236.707802] new_slab from ___slab_alloc+0x3a4/0x97c
[ 236.712765] ___slab_alloc from kmem_cache_alloc+0x180/0x298
[ 236.718424] kmem_cache_alloc from __alloc_file+0x20/0xac
[ 236.723825] __alloc_file from alloc_empty_file+0x54/0x100
[ 236.729310] alloc_empty_file from alloc_file+0x1c/0x14c
[ 236.734620] alloc_file from alloc_file_pseudo+0xac/0x104
[ 236.740017] alloc_file_pseudo from create_pipe_files+0xec/0x1c4
[ 236.746025] create_pipe_files from umh_pipe_setup+0x30/0x98
[ 236.751684] umh_pipe_setup from call_usermodehelper_exec_async+0xf0/0x180
[ 236.758566] call_usermodehelper_exec_async from ret_from_fork+0x14/0x2c
[ 236.765265] Exception stack(0xf0ee5fb0 to 0xf0ee5ff8)
[ 236.770306] 5fa0: 00000000 00000000 00000000 00000000
[ 236.778473] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 236.786639] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 236.793269] Mem-Info:
[ 236.795531] active_anon:333 inactive_anon:7219 isolated_anon:0
[ 236.795531] active_file:3946 inactive_file:18532 isolated_file:0
[ 236.795531] unevictable:177642 dirty:1 writeback:0
[ 236.795531] slab_reclaimable:2494 slab_unreclaimable:3364
[ 236.795531] mapped:15512 shmem:177985 pagetables:225
[ 236.795531] sec_pagetables:0 bounce:0
[ 236.795531] kernel_misc_reclaimable:0
[ 236.795531] free:290440 free_pcp:348 free_cma:229649
[ 236.835326] Node 0 active_anon:1332kB inactive_anon:28876kB active_file:15784kB inactive_file:74128kB unevictable:710568kB isolated(anon):0kB isolated(file):0kB mapped:62048kB dirty:4kB wr
iteback:0kB shmem:711940kB writeback_tmp:0kB kernel_stack:800kB pagetables:900kB sec_pagetables:0kB all_unreclaimable? yes
[ 236.862700] DMA free:3320kB boost:0kB min:3428kB low:4284kB high:5140kB reserved_highatomic:0KB active_anon:0kB inactive_anon:0kB active_file:252kB inactive_file:0kB unevictable:710568kB w
ritepending:4kB present:786432kB managed:743472kB mlocked:0kB bounce:0kB free_pcp:1392kB local_pcp:1392kB free_cma:0kB
[ 236.889726] lowmem_reserve[]: 0 0 1264 1264
[ 236.893919] DMA: 26*4kB (UME) 34*8kB (UME) 32*16kB (UME) 19*32kB (UME) 6*64kB (UME) 5*128kB (UE) 3*256kB (UME) 1*512kB (U) 0*1024kB 0*2048kB 0*4096kB 0*8192kB = 3800kB
[ 236.908926] 200449 total pagecache pages
[ 236.912846] 0 pages in swap cache
[ 236.916148] Free swap = 0kB
[ 236.919015] Total swap = 0kB
[ 236.921882] 520192 pages RAM
[ 236.924757] 323584 pages HighMem/MovableOnly
[ 236.929014] 10740 pages reserved
[ 236.932228] 262144 pages cma reserved
[ 236.935885] Tasks state (memory values in pages):
[ 236.940574] [ pid ] uid tgid total_vm rss pgtables_bytes swapents oom_score_adj name
[ 236.949187] [ 130] 0 130 9678 2999 36864 0 -250 systemd-journal
[ 236.958237] [ 145] 0 145 6830 1504 26624 0 -1000 systemd-udevd
[ 236.967111] [ 146] 980 146 3831 1536 20480 0 0 systemd-network
[ 236.976159] [ 189] 977 189 4522 2496 24576 0 0 systemd-resolve
[ 236.985205] [ 190] 976 190 5944 1408 22528 0 0 systemd-timesyn
[ 236.994251] [ 194] 81 194 2858 1088 18432 0 -900 dbus-daemon
[ 237.002951] [ 195] 0 195 2406 1472 16384 0 -1000 sshd
[ 237.011034] [ 196] 0 196 3634 1408 20480 0 0 systemd-logind
[ 237.019994] [ 199] 0 199 585 384 10240 0 0 agetty
[ 237.028260] [ 200] 0 200 3028 1184 18432 0 0 login
[ 237.036439] [ 220] 1000 220 1050 608 8192 0 0 bash
[ 237.044532] [ 240] 102 240 14986 2016 36864 0 0 polkitd
[ 237.052885] [ 296] 1000 296 51443 12553 167936 0 0 glmark2-es2-drm
[ 237.061923] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),task=glmark2-es2-drm,pid=296,uid=1000
[ 237.071154] Out of memory: Killed process 296 (glmark2-es2-drm) total-vm:205772kB, anon-rss:15524kB, file-rss:34688kB, shmem-rss:0kB, UID:1000 pgtables:164kB oom_score_adj:0
[ 237.761603] systemd-coredump[298]: Failed to get EXE, ignoring: No such process
I close this issue since it was probably related to kernel compilation dependencies issue!
Trying to use iso/avo/stih418-display branch
but not (yet) able to have something on my HDMI Display defconfig.txt
full dmesg.txt sysfs-sys-kernel-dbg-dri.txt
Maybe you can share your kernel defconfig ?