linux-stable/drivers/gpu/drm/vkms
Thomas Zimmermann b43e2ec03b drm/vkms: Let shadow-plane helpers prepare the plane's FB
Replace vkms' prepare_fb and cleanup_fb functions with the generic
code for shadow-buffered planes. No functional changes.

This change also fixes a problem where IGT kms_flip tests would
create a segmentation fault within vkms. The driver's prepare_fb
function did not report an error if a BO's vmap operation failed.
The kernel later tried to operate on the non-mapped memory areas.
The shared shadow-plane helpers handle errors correctly, so that
the driver now avoids the segmantation fault.

v2:
	* include paragraph about IGT tests in commit message (Melissa)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Melissa Wen <melissa.srw@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210705074633.9425-4-tzimmermann@suse.de
2021-07-13 13:31:08 +02:00
..
Makefile drm/vkms: Switch to shmem helpers 2020-10-15 23:37:58 +02:00
vkms_composer.c drm/vkms: Inherit plane state from struct drm_shadow_plane_state 2021-07-13 13:31:05 +02:00
vkms_crtc.c drm/vkms: fix misuse of WARN_ON 2021-03-25 08:23:28 -03:00
vkms_drv.c drm/vkms: Create a debugfs file to get vkms config data 2021-07-08 21:44:13 +01:00
vkms_drv.h drm/vkms: Inherit plane state from struct drm_shadow_plane_state 2021-07-13 13:31:05 +02:00
vkms_output.c drm/vkms: add overlay support 2021-04-29 18:53:05 -03:00
vkms_plane.c drm/vkms: Let shadow-plane helpers prepare the plane's FB 2021-07-13 13:31:08 +02:00
vkms_writeback.c drm: Switch to %p4cc format modifier 2021-02-17 12:52:59 +01:00