Skip to content

RFC drm: Add DRM module helpers for existing PCI drivers

Thomas Zimmermann dri-devel virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest10 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10drm: Provide PCI module-init macrosDocumentation/gpu/drm-internals.rst include/drm/drm_module.h+101 -00 replies
2/10drm/ast: Replace module-init boiler-plate code with DRM helpersdrivers/gpu/drm/ast/ast_drv.c+2 -160 replies
3/10drm/bochs: Replace module-init boiler-plate code with DRM helpersdrivers/gpu/drm/tiny/bochs.c+2 -180 replies
4/10drm/cirrus: Replace module-init boiler-plate code with DRM helpersdrivers/gpu/drm/tiny/cirrus.c+2 -150 replies
5/10drm/hisilicon/hibmc: Replace module initialization with DRM helpersdrivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c+2 -10 replies
6/10drm/mgag200: Replace module-init boiler-plate code with DRM helpersdrivers/gpu/drm/mgag200/mgag200_drv.c+2 -180 replies
7/10drm/qxl: Move ioctl array next to its only userdrivers/gpu/drm/qxl/qxl_drv.c drivers/gpu/drm/qxl/qxl_drv.h drivers/gpu/drm/qxl/qxl_ioctl.c+27 -390 replies
8/10drm/qxl: Replace module-init boiler-plate code with DRM helpersdrivers/gpu/drm/qxl/qxl_drv.c+2 -170 replies
9/10drm/vboxvideo: Replace module-init boiler-plate code with DRM helpersdrivers/gpu/drm/vboxvideo/vbox_drv.c+2 -180 replies
10/10drm/vmwgfx: Replace module-init boiler-plate code with DRM helpersdrivers/gpu/drm/vmwgfx/vmwgfx_drv.c+3 -210 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC][PATCH 00/10] drm: Add DRM module helpers for existing PCI drivers

This is an RFC patchset to complement the helper macros provided in [1]. The module helpers create module init and exit helpers that respect the kernel parameters that enable/disable DRM drivers.

There's one more patch that prepares qxl by moving some code around. It's required to make use of the helpers from within qxl.

Javier, please see if you find anything useful here and cherry-pick into your patchset. The driver changes should complement the ones in your patchset. The module macros are similar to yours and should be easily mergable.

I tested the macros with ast.

[1] https://patchwork.freedesktop.org/series/98162/

Thomas Zimmermann (10):
drm: Provide PCI module-init macros
drm/ast: Replace module-init boiler-plate code with DRM helpers drm/bochs: Replace module-init boiler-plate code with DRM helpers drm/cirrus: Replace module-init boiler-plate code with DRM helpers drm/hisilicon/hibmc: Replace module initialization with DRM helpers drm/mgag200: Replace module-init boiler-plate code with DRM helpers drm/qxl: Move ioctl array next to its only user
drm/qxl: Replace module-init boiler-plate code with DRM helpers drm/vboxvideo: Replace module-init boiler-plate code with DRM helpers drm/vmwgfx: Replace module-init boiler-plate code with DRM helpers

 Documentation/gpu/drm-internals.rst           |  6 ++
 drivers/gpu/drm/ast/ast_drv.c                 | 18 +---
 .../gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c   |  3 +-
 drivers/gpu/drm/mgag200/mgag200_drv.c         | 20 +---
 drivers/gpu/drm/qxl/qxl_drv.c                 | 31 +++---
 drivers/gpu/drm/qxl/qxl_drv.h                 | 13 ++-
 drivers/gpu/drm/qxl/qxl_ioctl.c               | 41 ++------
 drivers/gpu/drm/tiny/bochs.c                  | 20 +---
 drivers/gpu/drm/tiny/cirrus.c                 | 17 +---
 drivers/gpu/drm/vboxvideo/vbox_drv.c          | 20 +---
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c           | 24 +----
 include/drm/drm_module.h                      | 95 +++++++++++++++++++
 12 files changed, 145 insertions(+), 163 deletions(-)
 create mode 100644 include/drm/drm_module.h

base-commit: 3f422828221d9ceefcddef0be33561b1646a1cbe --
2.34.1

_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization