drm/plane: Remove drm_plane_init(), plus other cleanups
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 15 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | drm/plane: Remove drm_plane_init()drivers/ drivers/ drivers/ +3 more | +17 | 3 replies | |
| 2/4 | drm/plane: Allocate planes with drm_universal_plane_alloc()drivers/ drivers/ drivers/ +1 more | +121 | 6 replies | |
| 3/4 | drm/plane-helper: Warn if atomic drivers call non-atomic helpersdrivers/ | +10 | 2 replies | |
| 4/4 | drm/plane-helper: Provide DRM_PLANE_NON_ATOMIC_FUNCS initializer macrodrivers/ drivers/ include/ | +14 | 2 replies |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Lyude Paul | Jyri Sarha | Javier Martinez Canillas | Laurent Pinchart |
|---|---|---|---|---|
| Series | R-b | A-b | ||
| 1/4 | R-b | R-b | R-b | |
| 2/4 | R-b | |||
| 3/4 | R-b | R-b | ||
| 4/4 | R-b | R-b R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.
Cover letter [PATCH 0/4] drm/plane: Remove drm_plane_init(), plus other cleanups
This patchset does cleanups to the plane code, most noteably it removes drm_plane_init(). The function is a small wrapper, which can easily be inlined into the few callers. Patch #1 fixes this.
The other clean-up patches #2 to #4 affect plane creation. Modesetting helpers and nouveau share some plane-allocation code that can be shared as helper function. While the function is already outdated, it's now at least well documented. As suggested by Daniel, patch #3 adds a warning to non-atomic plane helpers when they are being called from atomic drivers. Patch #4 adds an initializer macro for non-atomic plane functions. It should not be used in new drivers, but at least documents the current practice.
Tested with nouveau on Nvidia G72 hardware.
A possible next step would be the inlining of drm_crtc_init() and the removal of drm_plane.format_default.
Thomas Zimmermann (4):
drm/plane: Remove drm_plane_init()
drm/plane: Allocate planes with drm_universal_plane_alloc() drm/plane-helper: Warn if atomic drivers call non-atomic helpers drm/plane-helper: Provide DRM_PLANE_NON_ATOMIC_FUNCS initializer macro
drivers/gpu/drm/drm_modeset_helper.c | 68 +++++++++------------ drivers/gpu/drm/drm_plane.c | 70 ++++++++++++---------- drivers/gpu/drm/drm_plane_helper.c | 10 ++++ drivers/gpu/drm/nouveau/dispnv04/crtc.c | 45 +++++--------- drivers/gpu/drm/nouveau/dispnv04/overlay.c | 13 ++-- drivers/gpu/drm/shmobile/shmob_drm_plane.c | 7 ++- drivers/gpu/drm/tilcdc/tilcdc_plane.c | 9 ++- include/drm/drm_plane.h | 52 +++++++++++++--- include/drm/drm_plane_helper.h | 12 ++++ 9 files changed, 162 insertions(+), 124 deletions(-)
base-commit: f2c3a05d33693ad51996fa7d12d3b2d4b0f372eb
prerequisite-patch-id: c2b2f08f0eccc9f5df0c0da49fa1d36267deb11d
prerequisite-patch-id: c67e5d886a47b7d0266d81100837557fda34cb24
prerequisite-patch-id: 3f204510fcbf9530d6540bd8e6128cce598988b6
Signature · 1 line
2.37.2