drm/connector: Handle connector property allocation failures
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | drm/connector: Check DP subconnector property before attaching itdrivers/ | +4 | 0 replies | |
| 2/5 | drm/connector: Handle DVI-I property allocation failuresdrivers/ drivers/ | +17 | 0 replies | |
| 3/5 | drm/connector: Propagate content type property creation errorsdrivers/ drivers/ drivers/ +1 more | +17 | 1 reply | |
| 4/5 | drm/connector: Handle scaling mode property allocation failuresdrivers/ drivers/ drivers/ +5 more | +30 | 0 replies | |
| 5/5 | drm/connector: Handle privacy-screen property allocation failuresdrivers/ include/ | +40 | 0 replies |
Reviews trailers per patch
1 of 5 patches has a Reviewed-by or Acked-by.
| Patch | Albert Esteve |
|---|---|
| 1/5 | |
| 2/5 | |
| 3/5 | R-b |
| 4/5 | |
| 5/5 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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