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/ast: 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 ast 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: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Jocelyn Falempe <jfalempe@redhat.com>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240924071734.98201-51-tzimmermann@suse.de

+5 -2
+1
drivers/gpu/drm/ast/Kconfig
··· 2 2 config DRM_AST 3 3 tristate "AST server chips" 4 4 depends on DRM && PCI && MMU 5 + select DRM_CLIENT_SELECTION 5 6 select DRM_GEM_SHMEM_HELPER 6 7 select DRM_KMS_HELPER 7 8 select I2C
+4 -2
drivers/gpu/drm/ast/ast_drv.c
··· 32 32 33 33 #include <drm/drm_aperture.h> 34 34 #include <drm/drm_atomic_helper.h> 35 + #include <drm/drm_client_setup.h> 35 36 #include <drm/drm_drv.h> 36 37 #include <drm/drm_fbdev_shmem.h> 37 38 #include <drm/drm_gem_shmem_helper.h> ··· 65 64 .minor = DRIVER_MINOR, 66 65 .patchlevel = DRIVER_PATCHLEVEL, 67 66 68 - DRM_GEM_SHMEM_DRIVER_OPS 67 + DRM_GEM_SHMEM_DRIVER_OPS, 68 + DRM_FBDEV_SHMEM_DRIVER_OPS, 69 69 }; 70 70 71 71 /* ··· 362 360 if (ret) 363 361 return ret; 364 362 365 - drm_fbdev_shmem_setup(drm, 32); 363 + drm_client_setup(drm, NULL); 366 364 367 365 return 0; 368 366 }