Skip to content

drm/connector: Handle connector property allocation failures

Alex Kazinsky amd-gfx dri-devel intel-gfx intel-xe stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5drm/connector: Check DP subconnector property before attaching itdrivers/gpu/drm/drm_connector.c+4 -30 replies
2/5drm/connector: Handle DVI-I property allocation failuresdrivers/gpu/drm/drm_connector.c drivers/gpu/drm/nouveau/nouveau_display.c+17 -30 replies
3/5drm/connector: Propagate content type property creation errorsdrivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_connector.c drivers/gpu/drm/drm_connector.c drivers/gpu/drm/i915/display/intel_dp.c +1 more+17 -81 reply
4/5drm/connector: Handle scaling mode property allocation failuresdrivers/gpu/drm/amd/amdgpu/amdgpu_display.c drivers/gpu/drm/drm_connector.c drivers/gpu/drm/gma500/cdv_device.c +5 more+30 -170 replies
5/5drm/connector: Handle privacy-screen property allocation failuresdrivers/gpu/drm/drm_connector.c include/drm/drm_connector.h+40 -160 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchAlbert Esteve
1/5
2/5
3/5R-b
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] drm/connector: Handle connector property allocation failures

This series improves allocation failure handling in DRM connector property helpers and their callers.

Patches 1, 2, 4 and 5 prevent NULL properties from reaching property attach or update paths. Patch 3 propagates content type property creation errors and reports failures in the Intel and AMDGPU callers while preserving initialization without this optional property.

Patch 4 reuses the Nouveau cleanup added by patch 2. Please apply the series in order.

Validation performed during development on the previous base:
- Compiled the affected DRM core and driver translation units using the existing x86 kernel configuration, including Nouveau, Intel display, AMDGPU, Radeon and GMA500 paths.
- Checked the diffs with git diff --check and scripts/checkpatch.pl.
- Exercised the extracted privacy-screen creation and provider functions with userspace stubs for allocation failures, rollback, retry, idempotence and provider reference ownership.

No full kernel link, hardware testing or in-kernel allocation fault injection was performed.

Alex Kazinsky (5):
drm/connector: Check DP subconnector property before attaching it drm/connector: Handle DVI-I property allocation failures drm/connector: Propagate content type property creation errors drm/connector: Handle scaling mode property allocation failures drm/connector: Handle privacy-screen property allocation failures

 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c   |  6 +-
 .../display/amdgpu_dm/amdgpu_dm_connector.c   |  3 +-
 drivers/gpu/drm/drm_connector.c               | 94 ++++++++++++++-----
 drivers/gpu/drm/gma500/cdv_device.c           |  2 -
 drivers/gpu/drm/gma500/framebuffer.c          | 17 ++--
 drivers/gpu/drm/gma500/psb_drv.c              |  4 +-
 drivers/gpu/drm/gma500/psb_drv.h              |  2 +-
 drivers/gpu/drm/i915/display/intel_dp.c       |  3 +-
 drivers/gpu/drm/i915/display/intel_hdmi.c     |  3 +-
 drivers/gpu/drm/nouveau/nouveau_display.c     | 11 ++-
 drivers/gpu/drm/radeon/radeon_display.c       |  6 +-
 include/drm/drm_connector.h                   |  2 +-
 12 files changed, 107 insertions(+), 46 deletions(-)

base-commit: 25faec9ce61c01fb45abf812a222c5b43c3cd5c5

Signature · 1 line
2.56.0