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/cirrus: 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 cirrus driver requests the same client pixel format as the value
stored in struct drm_mode_config.preferred_depth. The fbdev client
also looks at this value for the default pixel format. Thus remove
the format selection from cirrus.

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-53-tzimmermann@suse.de

+4 -1
+1
drivers/gpu/drm/tiny/Kconfig
··· 26 26 config DRM_CIRRUS_QEMU 27 27 tristate "Cirrus driver for QEMU emulated device" 28 28 depends on DRM && PCI && MMU 29 + select DRM_CLIENT_SELECTION 29 30 select DRM_KMS_HELPER 30 31 select DRM_GEM_SHMEM_HELPER 31 32 help
+3 -1
drivers/gpu/drm/tiny/cirrus.c
··· 27 27 #include <drm/drm_atomic.h> 28 28 #include <drm/drm_atomic_helper.h> 29 29 #include <drm/drm_atomic_state_helper.h> 30 + #include <drm/drm_client_setup.h> 30 31 #include <drm/drm_connector.h> 31 32 #include <drm/drm_damage_helper.h> 32 33 #include <drm/drm_drv.h> ··· 663 662 664 663 .fops = &cirrus_fops, 665 664 DRM_GEM_SHMEM_DRIVER_OPS, 665 + DRM_FBDEV_SHMEM_DRIVER_OPS, 666 666 }; 667 667 668 668 static int cirrus_pci_probe(struct pci_dev *pdev, ··· 718 716 if (ret) 719 717 return ret; 720 718 721 - drm_fbdev_shmem_setup(dev, 16); 719 + drm_client_setup(dev, NULL); 722 720 return 0; 723 721 } 724 722