Skip to content

drm: Fill in default values for plane properties

Maxime Ripard amd-gfx dri-devel linux-arm-kernel linux-arm-msm linux-renesas-soc linux-samsung-soc linux-sunxi linux-tegra nouveau 2 versions – Applied

Status from this message: Applied to drm/drm-misc (drm-misc-next).

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest22 patches 21 repliesApplied
  2. v123 patches 19 repliesSuperseded

Changes in v2 from the cover letter

- Collected tags
- Squashed some patches

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/22drm/komeda: plane: switch to plane reset helperdrivers/gpu/drm/arm/display/komeda/komeda_plane.c+1 -52 replies
2/22drm/tegra: plane: switch to plane reset helperdrivers/gpu/drm/tegra/plane.c+1 -20 replies
3/22drm/tegra: hub: Fix zpos initial value mismatchdrivers/gpu/drm/tegra/hub.c+1 -10 replies
4/22drm/omap: plane: Fix zpos initial value mismatchdrivers/gpu/drm/omapdrm/omap_plane.c+11 -11 reply
5/22drm/amd/display: Fix color encoding mismatchdrivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c+1 -10 replies
6/22drm/object: Add drm_object_property_get_default_value() functiondrivers/gpu/drm/drm_mode_object.c include/drm/drm_mode_object.h+50 -101 reply
7/22drm/object: Add default zpos value at resetdrivers/gpu/drm/drm_atomic_state_helper.c+11 -01 reply
8/22drm/tegra: plane: Remove redundant zpos initialisationdrivers/gpu/drm/tegra/plane.c+0 -30 replies
9/22drm/komeda: plane: Remove redundant zpos initialisationdrivers/gpu/drm/arm/display/komeda/komeda_plane.c+0 -22 replies
10/22drm/exynos: plane: Remove redundant zpos initialisationdrivers/gpu/drm/exynos/exynos_drm_plane.c+1 -40 replies
11/22drm/imx: ipuv3-plane: Remove redundant zpos initialisationdrivers/gpu/drm/imx/ipuv3-plane.c+0 -30 replies
12/22drm/msm/mdp5: Remove redundant zpos initialisationdrivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c+8 -81 reply
13/22drm/nouveau/kms: Remove redundant zpos initialisationdrivers/gpu/drm/nouveau/dispnv50/wndw.c+0 -25 replies
14/22drm/omap: plane: Remove redundant zpos initialisationdrivers/gpu/drm/omapdrm/omap_plane.c+0 -71 reply
15/22drm/rcar: plane: Remove redundant zpos initialisationdrivers/gpu/drm/rcar-du/rcar_du_plane.c drivers/gpu/drm/rcar-du/rcar_du_vsp.c+0 -21 reply
16/22drm/sti: plane: Remove redundant zpos initialisationdrivers/gpu/drm/sti/sti_cursor.c drivers/gpu/drm/sti/sti_gdp.c drivers/gpu/drm/sti/sti_hqvdp.c +2 more+3 -101 reply
17/22drm/sun4i: layer: Remove redundant zpos initialisationdrivers/gpu/drm/sun4i/sun4i_layer.c+7 -91 reply
18/22drm/object: Add default color encoding and range value at resetdrivers/gpu/drm/drm_atomic_state_helper.c+14 -01 reply
19/22drm/komeda: plane: Remove redundant color encoding and range initialisationdrivers/gpu/drm/arm/display/komeda/komeda_plane.c+1 -42 replies
20/22drm/armada: overlay: Remove redundant color encoding and range initialisationdrivers/gpu/drm/armada/armada_overlay.c+0 -20 replies
21/22drm/imx: ipuv3-plane: Remove redundant color encoding and range initialisationdrivers/gpu/drm/imx/ipuv3-plane.c+1 -40 replies
22/22drm/omap: plane: Remove redundant color encoding and range initialisationdrivers/gpu/drm/omapdrm/omap_plane.c+0 -31 reply

Reviews trailers per patch

14 of 22 patches have a Reviewed-by or Acked-by.

PatchTomi ValkeinenDmitry BaryshkovHarry WentlandLaurent PinchartJernej SkrabecKieran BinghamAlain VolmatPhilippe CornuLyude PaulKarol HerbstLiviu Dudau
1/22A-b
2/22
3/22
4/22R-b
5/22
6/22R-b
7/22R-b R-b
8/22
9/22A-b
10/22
11/22
12/22R-b
13/22R-b R-b
14/22R-b
15/22R-b R-b
16/22R-b R-b
17/22R-b
18/22R-b
19/22A-b
20/22
21/22
22/22R-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 11 reviewers.

Read the v2 thread

Cover letter [PATCH v2 00/22] drm: Fill in default values for plane properties

Hi,

We have a bunch of functions that create planes properties that will take a default value, but it isn't actually enforced in the plane state.

This leads to drivers having multiple strategies to work around that issue, most of them being a variation of forcing a value at plane state reset time. Others work fine by luck, or have entirely ignored the issue.

This series aims at making sure the default value set by the call to the function isn't ignored, and then making sure all drivers behave consistently.

Let me know what you think,
Maxime

Changes from v1:
- Collected tags
- Squashed some patches

Dave Stevenson (3):
drm/object: Add drm_object_property_get_default_value() function drm/object: Add default zpos value at reset drm/object: Add default color encoding and range value at reset

Maxime Ripard (19):
drm/komeda: plane: switch to plane reset helper drm/tegra: plane: switch to plane reset helper drm/tegra: hub: Fix zpos initial value mismatch drm/omap: plane: Fix zpos initial value mismatch drm/amd/display: Fix color encoding mismatch drm/tegra: plane: Remove redundant zpos initialisation drm/komeda: plane: Remove redundant zpos initialisation drm/exynos: plane: Remove redundant zpos initialisation drm/imx: ipuv3-plane: Remove redundant zpos initialisation drm/msm/mdp5: Remove redundant zpos initialisation drm/nouveau/kms: Remove redundant zpos initialisation drm/omap: plane: Remove redundant zpos initialisation drm/rcar: plane: Remove redundant zpos initialisation drm/sti: plane: Remove redundant zpos initialisation drm/sun4i: layer: Remove redundant zpos initialisation drm/komeda: plane: Remove redundant color encoding and range
initialisation
drm/armada: overlay: Remove redundant color encoding and range
initialisation
drm/imx: ipuv3-plane: Remove redundant color encoding and range
initialisation
drm/omap: plane: Remove redundant color encoding and range
initialisation

 .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c |  2 +-
 .../gpu/drm/arm/display/komeda/komeda_plane.c | 13 +----
 drivers/gpu/drm/armada/armada_overlay.c       |  2 -
 drivers/gpu/drm/drm_atomic_state_helper.c     | 25 +++++++++
 drivers/gpu/drm/drm_mode_object.c             | 53 +++++++++++++++----
 drivers/gpu/drm/exynos/exynos_drm_plane.c     |  5 +-
 drivers/gpu/drm/imx/ipuv3-plane.c             |  8 +--
 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c    | 16 +++---
 drivers/gpu/drm/nouveau/dispnv50/wndw.c       |  2 -
 drivers/gpu/drm/omapdrm/omap_plane.c          | 22 ++++----
 drivers/gpu/drm/rcar-du/rcar_du_plane.c       |  1 -
 drivers/gpu/drm/rcar-du/rcar_du_vsp.c         |  1 -
 drivers/gpu/drm/sti/sti_cursor.c              |  2 +-
 drivers/gpu/drm/sti/sti_gdp.c                 |  2 +-
 drivers/gpu/drm/sti/sti_hqvdp.c               |  2 +-
 drivers/gpu/drm/sti/sti_plane.c               |  6 ---
 drivers/gpu/drm/sti/sti_plane.h               |  1 -
 drivers/gpu/drm/sun4i/sun4i_layer.c           | 16 +++---
 drivers/gpu/drm/tegra/hub.c                   |  2 +-
 drivers/gpu/drm/tegra/plane.c                 |  6 +--
 include/drm/drm_mode_object.h                 |  7 +++
 21 files changed, 111 insertions(+), 83 deletions(-)
Signature · 1 line
2.35.1