mbox series

[0/2] drm/i915: Prevent HW access during init from connector hooks

Message ID 20240206153910.1758057-1-imre.deak@intel.com (mailing list archive)
Headers show
Series drm/i915: Prevent HW access during init from connector hooks | expand

Message

Imre Deak Feb. 6, 2024, 3:39 p.m. UTC
Accessing the display HW from the connector get_modes hooks should be
prevented during driver init/shutdown similarly to how this is done in
the encoder detect hooks and modeset as explained in the following
commits:

drm/i915: Prevent modesets during driver init/shutdown
drm/i915: Disable hotplug detection works during driver init/shutdown
drm/i915: Disable hotplug detection handlers during driver init/shutdown

For the DP-SST/HDMI connectors the above is already ensured, since for
these the required HW access - to read out the display's EDID - happens
in the encoders' detect hook, however other connectors do a
corresponding detection/HW access from the connector get_modes hook.
Disable the access during init/shutdown from these hooks as well.

Imre Deak (2):
  drm/i915: Prevent HW access during init from SDVO TV get_modes hook
  drm/i915: Prevent HW access during init from connector get_modes hooks

 drivers/gpu/drm/i915/display/intel_crt.c    | 7 +++++++
 drivers/gpu/drm/i915/display/intel_dp_mst.c | 4 ++++
 drivers/gpu/drm/i915/display/intel_dvo.c    | 5 +++++
 drivers/gpu/drm/i915/display/intel_sdvo.c   | 8 ++++++++
 4 files changed, 24 insertions(+)