linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/10] drm/connector: add eld_mutex to protect connector->eld
@ 2024-11-30 23:55 Dmitry Baryshkov
  2024-11-30 23:55 ` [PATCH 01/10] drm/connector: add mutex to protect ELD from concurrent access Dmitry Baryshkov
                   ` (10 more replies)
  0 siblings, 11 replies; 20+ messages in thread
From: Dmitry Baryshkov @ 2024-11-30 23:55 UTC (permalink / raw)
  To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
	Simona Vetter, Harry Wentland, Leo Li, Rodrigo Siqueira,
	Alex Deucher, Christian König, Xinhui Pan, Andrzej Hajda,
	Neil Armstrong, Robert Foss, Laurent Pinchart, Jonas Karlman,
	Jernej Skrabec, Phong LE, Inki Dae, Seung-Woo Kim, Kyungmin Park,
	Krzysztof Kozlowski, Alim Akhtar, Jani Nikula, Rodrigo Vivi,
	Joonas Lahtinen, Tvrtko Ursulin, Rob Clark, Abhinav Kumar,
	Sean Paul, Marijn Suijten, Alain Volmat, Raphael Gallais-Pou,
	Dave Stevenson, Maíra Canal, Raspberry Pi Kernel Maintenance
  Cc: dri-devel, linux-kernel, amd-gfx, linux-arm-kernel,
	linux-samsung-soc, intel-gfx, intel-xe, linux-arm-msm, freedreno

The connector->eld is accessed by the .get_eld() callback. This access
can collide with the drm_edid_to_eld() updating the data at the same
time. Add drm_connector.eld_mutex to protect the data from concurrenct
access.

The individual drivers were just compile tested. I propose to merge the
drm_connector and bridge drivers through drm-misc, allowing other
maintainers either to ack merging through drm-misc or merging the
drm-misc into their tree and then picking up correcponding patch.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
---
Dmitry Baryshkov (10):
      drm/connector: add mutex to protect ELD from concurrent access
      drm/bridge: anx7625: use eld_mutex to protect access to connector->eld
      drm/bridge: ite-it66121: use eld_mutex to protect access to connector->eld
      drm/amd/display: use eld_mutex to protect access to connector->eld
      drm/exynos: hdmi: use eld_mutex to protect access to connector->eld
      drm/i915/audio: use eld_mutex to protect access to connector->eld
      drm/msm/dp: use eld_mutex to protect access to connector->eld
      drm/radeon: use eld_mutex to protect access to connector->eld
      drm/sti: hdmi: use eld_mutex to protect access to connector->eld
      drm/vc4: hdmi: use eld_mutex to protect access to connector->eld

 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 ++
 drivers/gpu/drm/bridge/analogix/anx7625.c         | 2 ++
 drivers/gpu/drm/bridge/ite-it66121.c              | 2 ++
 drivers/gpu/drm/drm_connector.c                   | 1 +
 drivers/gpu/drm/drm_edid.c                        | 4 ++++
 drivers/gpu/drm/exynos/exynos_hdmi.c              | 2 ++
 drivers/gpu/drm/i915/display/intel_audio.c        | 3 +++
 drivers/gpu/drm/msm/dp/dp_audio.c                 | 2 ++
 drivers/gpu/drm/radeon/radeon_audio.c             | 2 ++
 drivers/gpu/drm/sti/sti_hdmi.c                    | 2 ++
 drivers/gpu/drm/vc4/vc4_hdmi.c                    | 4 ++--
 include/drm/drm_connector.h                       | 5 ++++-
 12 files changed, 28 insertions(+), 3 deletions(-)
---
base-commit: 44cff6c5b0b17a78bc0b30372bcd816cf6dd282a
change-id: 20241201-drm-connector-eld-mutex-8a39a35e9a38

Best regards,
-- 
Dmitry Baryshkov <dmitry.baryshkov@linaro.org>



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

end of thread, other threads:[~2024-12-04 23:37 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-30 23:55 [PATCH 00/10] drm/connector: add eld_mutex to protect connector->eld Dmitry Baryshkov
2024-11-30 23:55 ` [PATCH 01/10] drm/connector: add mutex to protect ELD from concurrent access Dmitry Baryshkov
2024-12-02 10:23   ` Jani Nikula
2024-11-30 23:55 ` [PATCH 02/10] drm/bridge: anx7625: use eld_mutex to protect access to connector->eld Dmitry Baryshkov
2024-11-30 23:55 ` [PATCH 03/10] drm/bridge: ite-it66121: " Dmitry Baryshkov
2024-11-30 23:55 ` [PATCH 04/10] drm/amd/display: " Dmitry Baryshkov
2024-11-30 23:55 ` [PATCH 05/10] drm/exynos: hdmi: " Dmitry Baryshkov
2024-11-30 23:55 ` [PATCH 06/10] drm/i915/audio: " Dmitry Baryshkov
2024-12-03 14:56   ` Jani Nikula
2024-11-30 23:55 ` [PATCH 07/10] drm/msm/dp: " Dmitry Baryshkov
2024-12-03  3:27   ` Abhinav Kumar
2024-12-03 13:58     ` Dmitry Baryshkov
2024-12-04 23:26       ` Abhinav Kumar
2024-11-30 23:55 ` [PATCH 08/10] drm/radeon: " Dmitry Baryshkov
2024-11-30 23:55 ` [PATCH 09/10] drm/sti: hdmi: " Dmitry Baryshkov
2024-12-02 15:03   ` Raphaël Gallais-Pou
2024-11-30 23:55 ` [PATCH 10/10] drm/vc4: " Dmitry Baryshkov
2024-12-02 10:19 ` [PATCH 00/10] drm/connector: add eld_mutex to protect connector->eld Maxime Ripard
2024-12-02 11:03   ` Dmitry Baryshkov
2024-12-02 12:00     ` Maxime Ripard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).