drm/tests/modetest: Atomic page flipping doesn't work
Atomic page flip fixes:
- modetest testtool silently exit if no plane set (-P)
- Use flag DRM_MODE_PAGE_FLIP_EVENT and event DRM_EVENT_FLIP_COMPLETE
- Add solid-filled framebuffer to see flips
System information
- OS: Raspbian GNU/Linux 11 (bullseye)
- GPU: Broadcom BCM2711 VC4 on Raspberry Pi4b
- Kernel version: Linux raspberrypi 6.1.21-v8+ #1642 (closed) SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
- Mesa version: mesa-utils/stable 8.4.0-1+b1 armhf
- Xserver version (if applicable):
X.Org X Server 1.20.11
X Protocol Version 11, Revision 0
Build Operating System: linux Raspbian
Current Operating System: Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aa4
Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_headphones=0 snd_bcm2835.enables
Build Date: 30 March 2023 01:46:14PM
xorg-server 2:1.20.11-1+rpt3+deb11u6 (https://www.debian.org/support)
Current version of pixman: 0.40.0
- Desktop manager and compositor: lightdm
Describe the issue
- modetest testtool silently exit if no plane set (-P)
pi@raspberrypi:~$ modetest -M vc4 -s 48:#0 -v -a
pi@raspberrypi:~$
- Use flag DRM_MODE_PAGE_FLIP_EVENT and event DRM_EVENT_FLIP_COMPLETE
Perhaps the issue is not important for a common user, but useful for a developer.
- Add solid-filled framebuffer to see flips
Add one more framebuffer to make visible that page flips really occurs.
I can't make MR by myself, so put patch here. 0001-Fix-atomic-page-flipping.patch