Skip to content

drm/i915: Convert fbdev to DRM client

Thomas Zimmermann dri-devel intel-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 1 replyIn review

v3 from the cover letter

* support module unloading (Jani, CI bot)
* as before, silently ignore devices without displays (CI bot)

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7drm/i915: Unregister in-kernel clientsdrivers/gpu/drm/i915/i915_driver.c+3 -00 replies
2/7drm/client: Do not acquire module referencedrivers/gpu/drm/drm_client.c+1 -110 replies
3/7drm/client: Export drm_client_dev_unregister()drivers/gpu/drm/drm_client.c+13 -00 replies
4/7drm/i915: Move fbdev functionsdrivers/gpu/drm/i915/display/intel_fbdev.c+77 -770 replies
5/7drm/i915: Initialize fbdev DRM client with callback functionsdrivers/gpu/drm/i915/display/intel_fbdev.c+39 -40 replies
6/7drm/i915: Implement fbdev client callbacksdrivers/gpu/drm/i915/display/intel_display_driver.c drivers/gpu/drm/i915/display/intel_fbdev.c drivers/gpu/drm/i915/display/intel_fbdev.h +1 more+9 -340 replies
7/7drm/i915: Implement fbdev emulation as in-kernel clientdrivers/gpu/drm/i915/display/intel_display.c drivers/gpu/drm/i915/display/intel_display_driver.c drivers/gpu/drm/i915/display/intel_fbdev.c +2 more+85 -1400 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/7] drm/i915: Convert fbdev to DRM client

Convert i915's fbdev code to struct drm_client. Replaces the current ad-hoc integration. The conversion includes a number of cleanups. The patchset also enables unloading of driver modules with in-kernel DRM clients; a feature required by i915.

As with the other drivers' fbdev emulation, fbdev in i915 is now an in-kernel DRM client that runs after the DRM device has been registered. This allows to remove the asynchronous initialization.

i915 is the last driver with an fbdev emulation that is not build upon struct drm_client. Once reviewed, the patches would ideally go into drm-misc-next, so that the old fbdev helper code can be removed. We can also attempt to add additional in-kernel clients. A DRM-based dmesg log or a bootsplash are commonly mentioned. DRM can then switch easily among the existing clients if/when required.

v3:
* support module unloading (Jani, CI bot)
* as before, silently ignore devices without displays (CI bot)
v2:
* fix error handling (Jani)
* fix non-fbdev builds
* various minor fixes and cleanups

Thomas Zimmermann (7):
drm/i915: Unregister in-kernel clients
drm/client: Do not acquire module reference drm/client: Export drm_client_dev_unregister() drm/i915: Move fbdev functions
drm/i915: Initialize fbdev DRM client with callback functions drm/i915: Implement fbdev client callbacks drm/i915: Implement fbdev emulation as in-kernel client

 drivers/gpu/drm/drm_client.c                  |  25 +-
 drivers/gpu/drm/i915/display/intel_display.c  |   1 -
 .../drm/i915/display/intel_display_driver.c   |  19 --
 drivers/gpu/drm/i915/display/intel_fbdev.c    | 250 ++++++++++--------
 drivers/gpu/drm/i915/display/intel_fbdev.h    |  29 +-
 drivers/gpu/drm/i915/i915_driver.c            |  27 +-
 6 files changed, 156 insertions(+), 195 deletions(-)
Signature · 1 line
2.42.0