All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] drm/bridge: Drop redundant drm_edid_valid() check in bridge_connector
@ 2026-12-04 10:11 Fei Shao
  2026-12-04 10:11 ` [PATCH 1/2] drm/bridge: nxp-ptn3460: Validate EDID and free buffer in edid_read Fei Shao
  2026-12-04 10:11 ` [PATCH 2/2] drm/display: bridge_connector: Drop redundant drm_edid_valid() check Fei Shao
  0 siblings, 2 replies; 4+ messages in thread
From: Fei Shao @ 2026-12-04 10:11 UTC (permalink / raw)
  To: Jani Nikula, Neil Armstrong, Dmitry Baryshkov, Robert Foss
  Cc: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
	Simona Vetter, dri-devel, Fei Shao

drm_bridge_connector_get_modes_edid() currently re-runs drm_edid_valid()
on the struct drm_edid returned by drm_bridge_edid_read().

The drm_edid_read() family already filters out invalid extension blocks
from an HF-EEODB EDID, and rerunning drm_edid_valid() rejects the valid
filtered EDID, leaving the connector with no modes.

Patch 1 fixes nxp-ptn3460, the only bridge driver returning an
unvalidated EDID from drm_edid_alloc(). It also fixes its temporary EDID
buffer leak.
(Note on anx7625: it validates via drm_edid_is_valid(), and another
patch is converting it to drm_edid_read_custom():
https://lore.kernel.org/all/20261116023740.2257699-1-anx-upstream@analogixsemi.com.cn/ )

Patch 2 drops the redundant drm_edid_valid() check in
drm_bridge_connector_get_modes_edid() and documents the validation
requirement for @edid_read callbacks.

Signed-off-by: Fei Shao <fshao@chromium.org>
---
Fei Shao (2):
      drm/bridge: nxp-ptn3460: Validate EDID and free buffer in edid_read
      drm/display: bridge_connector: Drop redundant drm_edid_valid() check

 drivers/gpu/drm/bridge/nxp-ptn3460.c           | 5 +++++
 drivers/gpu/drm/display/drm_bridge_connector.c | 4 +---
 include/drm/drm_bridge.h                       | 9 +++++----
 3 files changed, 11 insertions(+), 7 deletions(-)
---
base-commit: e5aad2bdbbee783611d32599f89cea3f12f9593d
change-id: 20261204-drm-bridge-edid-valid-074ccb5854fa


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-12-04 10:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04 10:11 [PATCH 0/2] drm/bridge: Drop redundant drm_edid_valid() check in bridge_connector Fei Shao
2026-12-04 10:11 ` [PATCH 1/2] drm/bridge: nxp-ptn3460: Validate EDID and free buffer in edid_read Fei Shao
2026-12-04 10:11 ` [PATCH 2/2] drm/display: bridge_connector: Drop redundant drm_edid_valid() check Fei Shao
2026-12-04 10:29   ` sashiko-bot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.