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/hisilicon/hibmc: 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 hibmc 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: Xinliang Liu <xinliang.liu@linaro.org>
Cc: Tian Tao <tiantao6@hisilicon.com>
Cc: Xinwei Kong <kong.kongxinwei@hisilicon.com>
Cc: Sumit Semwal <sumit.semwal@linaro.org>
Cc: Yongqin Liu <yongqin.liu@linaro.org>
Cc: John Stultz <jstultz@google.com>
Acked-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240924071734.98201-67-tzimmermann@suse.de

+4 -1
+1
drivers/gpu/drm/hisilicon/hibmc/Kconfig
··· 3 3 tristate "DRM Support for Hisilicon Hibmc" 4 4 depends on DRM && PCI && (ARM64 || COMPILE_TEST) 5 5 depends on MMU 6 + select DRM_CLIENT_SELECTION 6 7 select DRM_KMS_HELPER 7 8 select DRM_VRAM_HELPER 8 9 select DRM_TTM
+3 -1
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c
··· 16 16 17 17 #include <drm/drm_aperture.h> 18 18 #include <drm/drm_atomic_helper.h> 19 + #include <drm/drm_client_setup.h> 19 20 #include <drm/drm_drv.h> 20 21 #include <drm/drm_fbdev_ttm.h> 21 22 #include <drm/drm_gem_framebuffer_helper.h> ··· 64 63 .debugfs_init = drm_vram_mm_debugfs_init, 65 64 .dumb_create = hibmc_dumb_create, 66 65 .dumb_map_offset = drm_gem_ttm_dumb_map_offset, 66 + DRM_FBDEV_TTM_DRIVER_OPS, 67 67 }; 68 68 69 69 static int __maybe_unused hibmc_pm_suspend(struct device *dev) ··· 341 339 goto err_unload; 342 340 } 343 341 344 - drm_fbdev_ttm_setup(dev, 32); 342 + drm_client_setup(dev, NULL); 345 343 346 344 return 0; 347 345