Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/qxl: Run DRM default client setup

Call drm_client_setup() to run the kernel's default client setup
for DRM. Set fbdev_probe in struct drm_driver, so that the client
setup can start the common fbdev client.

The qxl driver specifies a preferred color mode of 32. As this
is the default if no format has been given, leave it out entirely.

v5:
- select DRM_CLIENT_SELECTION

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Dave Airlie <airlied@redhat.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240924071734.98201-70-tzimmermann@suse.de

+4 -1
+1
drivers/gpu/drm/qxl/Kconfig
··· 2 2 config DRM_QXL 3 3 tristate "QXL virtual GPU" 4 4 depends on DRM && PCI && MMU 5 + select DRM_CLIENT_SELECTION 5 6 select DRM_KMS_HELPER 6 7 select DRM_TTM 7 8 select DRM_TTM_HELPER
+3 -1
drivers/gpu/drm/qxl/qxl_drv.c
··· 36 36 #include <drm/drm.h> 37 37 #include <drm/drm_aperture.h> 38 38 #include <drm/drm_atomic_helper.h> 39 + #include <drm/drm_client_setup.h> 39 40 #include <drm/drm_drv.h> 40 41 #include <drm/drm_fbdev_ttm.h> 41 42 #include <drm/drm_file.h> ··· 119 118 if (ret) 120 119 goto modeset_cleanup; 121 120 122 - drm_fbdev_ttm_setup(&qdev->ddev, 32); 121 + drm_client_setup(&qdev->ddev, NULL); 123 122 return 0; 124 123 125 124 modeset_cleanup: ··· 294 293 .debugfs_init = qxl_debugfs_init, 295 294 #endif 296 295 .gem_prime_import_sg_table = qxl_gem_prime_import_sg_table, 296 + DRM_FBDEV_TTM_DRIVER_OPS, 297 297 .fops = &qxl_fops, 298 298 .ioctls = qxl_ioctls, 299 299 .num_ioctls = ARRAY_SIZE(qxl_ioctls),