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/vboxvideo: 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 vboxvideo 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: Hans de Goede <hdegoede@redhat.com>
Acked-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240924071734.98201-71-tzimmermann@suse.de

+4 -1
+1
drivers/gpu/drm/vboxvideo/Kconfig
··· 2 2 config DRM_VBOXVIDEO 3 3 tristate "Virtual Box Graphics Card" 4 4 depends on DRM && X86 && PCI 5 + select DRM_CLIENT_SELECTION 5 6 select DRM_KMS_HELPER 6 7 select DRM_VRAM_HELPER 7 8 select DRM_TTM
+3 -1
drivers/gpu/drm/vboxvideo/vbox_drv.c
··· 13 13 14 14 #include <drm/drm_aperture.h> 15 15 #include <drm/drm_atomic_helper.h> 16 + #include <drm/drm_client_setup.h> 16 17 #include <drm/drm_drv.h> 17 18 #include <drm/drm_fbdev_ttm.h> 18 19 #include <drm/drm_file.h> ··· 81 80 if (ret) 82 81 goto err_irq_fini; 83 82 84 - drm_fbdev_ttm_setup(&vbox->ddev, 32); 83 + drm_client_setup(&vbox->ddev, NULL); 85 84 86 85 return 0; 87 86 ··· 194 193 .patchlevel = DRIVER_PATCHLEVEL, 195 194 196 195 DRM_GEM_VRAM_DRIVER, 196 + DRM_FBDEV_TTM_DRIVER_OPS, 197 197 }; 198 198 199 199 drm_module_pci_driver_if_modeset(vbox_pci_driver, vbox_modeset);