Hi Matthias,
I had vc4-kms-v3d-pi5 enabled in extraconfig (without cma parameter), but I've
updated raspberrypi-firmware(-dt) rpms from experimental repos, iommu nodes are
nowhere to be found in mainline dts anyway, added the reg property, patches
you've linked from Andrea applied to the next, compiled the kernel and overrun
dtb's and v3d works.
Really cool stuff, glmark is running fullscreen in fullhd with 233 score.
Thanks :)
glmark2 2023.01
=======================================================
OpenGL Information
GL_VENDOR: Broadcom
GL_RENDERER: V3D 7.1.7.0
GL_VERSION: 3.1 Mesa 26.0.0
Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=24 stencil=0 samples=0
Surface Size: 1920x1080 fullscreen
=======================================================
=======================================================
glmark2 Score: 233
=======================================================
Sway won't run in 4K tho, FullHD only:
DRM_IOCTL_MODE_CREATE_DUMB failed: Cannot allocate memory
00:00:01.114 [ERROR] [wlr] [render/allocator/gbm.c:118] gbm_bo_create failed:
Cannot allocate memory
00:00:01.114 [ERROR] [wlr] [render/swapchain.c:105] Failed to allocate buffer
According to kernel CMA size is 64MB and doesn't respect the cma-256 set
through extraconfig, when I set cma=256M as a kernel parametar and run sway, I
get a black screen with:
Feb 11 14:17:06 pidesk.localdomain kernel: ------------[ cut here ]------------
Feb 11 14:17:06 pidesk.localdomain kernel: kernel BUG at mm/memory.c:1381!
Feb 11 14:17:06 pidesk.localdomain kernel: Internal error: Oops - BUG:
00000000f2000800 [#1] SMP
Feb 11 14:17:06 pidesk.localdomain kernel: Modules linked in: nf_log_syslog
nft_log nft_ct nf_conntrack nf_defrag_ipv4 nf_tables dm_mod dax rtw88_8822bu
rtw88_8822b rtw88_usb rtw88_core mac80211 btusb btrtl cfg80211 mousedev btintel
joydev>
Feb 11 14:17:06 pidesk.localdomain kernel: CPU: 1 UID: 1000 PID: 830 Comm: sway
Tainted: G T 7.0.0-rc2-next-20260306-NEXT-dirty #3 PREEMPT
Feb 11 14:17:06 pidesk.localdomain kernel: Tainted: [T]=RANDSTRUCT
Feb 11 14:17:06 pidesk.localdomain kernel: Hardware name: raspberrypi rpi/rpi,
BIOS 2025.10 10/01/2025
Feb 11 14:17:06 pidesk.localdomain kernel: pstate: 60400009 (nZCv daif +PAN
-UAO -TCO -DIT -SSBS BTYPE=--)
Feb 11 14:17:06 pidesk.localdomain kernel: pc : copy_page_range+0x1228/0x1ed8
Feb 11 14:17:06 pidesk.localdomain kernel: lr : copy_page_range+0x1228/0x1ed8
Feb 11 14:17:06 pidesk.localdomain kernel: sp : ffff800082e4b540
Feb 11 14:17:06 pidesk.localdomain kernel: x29: ffff800082e4b670 x28:
ffff000006fbdcb8 x27: ffff0000110fb000
Feb 11 14:17:06 pidesk.localdomain kernel: x26: ffff00000281ccc0 x25:
0000ff91b2e00000 x24: 0000ff91b2fe8fff
Feb 11 14:17:06 pidesk.localdomain kernel: x23: ffff0000110dd1c0 x22:
0000ff91b2fe9000 x21: 0000ff91b2fe8fff
Feb 11 14:17:06 pidesk.localdomain kernel: x20: 0000ff91b2fe9000 x19:
0000ff91b2fe9000 x18: ffff800082ae1050
Feb 11 14:17:06 pidesk.localdomain kernel: x17: 0000000000000000 x16:
0000000000000000 x15: 0000000000000000
Feb 11 14:17:06 pidesk.localdomain kernel: x14: 0000000000000000 x13:
0000000000000000 x12: 0000000000000000
Feb 11 14:17:06 pidesk.localdomain kernel: x11: 0000000000000000 x10:
0000000000000000 x9 : ffffa9a5e3c92660
Feb 11 14:17:06 pidesk.localdomain kernel: x8 : 0000000000000000 x7 :
0000000000000000 x6 : 0000000000000000
Feb 11 14:17:06 pidesk.localdomain kernel: x5 : 0000000000000000 x4 :
0000000000000000 x3 : 0000000000000000
Feb 11 14:17:06 pidesk.localdomain kernel: x2 : 0000000000000000 x1 :
0000000000000000 x0 : 0000000000000000
Feb 11 14:17:06 pidesk.localdomain kernel: Call trace:
Feb 11 14:17:06 pidesk.localdomain kernel: copy_page_range+0x1228/0x1ed8 (P)
Feb 11 14:17:06 pidesk.localdomain kernel: dup_mmap+0x354/0x9c0
Feb 11 14:17:06 pidesk.localdomain kernel: copy_process+0x1df0/0x2088
Feb 11 14:17:06 pidesk.localdomain kernel: kernel_clone+0xb0/0x530
Feb 11 14:17:06 pidesk.localdomain kernel: __do_sys_clone+0x7c/0xe0
Feb 11 14:17:06 pidesk.localdomain kernel: __arm64_sys_clone+0x30/0x60
Feb 11 14:17:06 pidesk.localdomain kernel: invoke_syscall.constprop.0+0x80/0xe8
Feb 11 14:17:06 pidesk.localdomain kernel: do_el0_svc+0x4c/0x118
Feb 11 14:17:06 pidesk.localdomain kernel: el0_svc+0x64/0x458
Feb 11 14:17:06 pidesk.localdomain kernel: el0t_64_sync_handler+0xc0/0x108
Feb 11 14:17:06 pidesk.localdomain kernel: el0t_64_sync+0x1b8/0x1c0
Feb 11 14:17:06 pidesk.localdomain kernel: Code: 97f2f2d8 17ffff16 aa1703e0
97ee24f7 (d4210000)
Feb 11 14:17:06 pidesk.localdomain kernel: ---[ end trace 0000000000000000 ]---
Feb 11 14:17:06 pidesk.localdomain kernel: note: sway[830] exited with irqs
disabled
Feb 11 14:17:06 pidesk.localdomain kernel: note: sway[830] exited with
preempt_count 1
Thanks for pushing all of this,
BR,
Ivan