diff mbox series

[2/3] drm/i915/dp: use opregion mailbox #5 EDID for eDP, if available

Message ID 20210524164719.6588-3-anisse@astier.eu (mailing list archive)
State New, archived
Headers show
Series GPD Win Max display fixes | expand

Commit Message

Anisse Astier May 24, 2021, 4:47 p.m. UTC
From: Jani Nikula <jani.nikula@intel.com>

If a panel's EDID is broken, there may be an override EDID set in the
ACPI OpRegion mailbox #5. Use it if available.

Fixes the GPD Win Max display.

Cc: Uma Shankar <uma.shankar@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Anisse Astier <anisse@astier.eu>

[Anisse changes: function name]
 drivers/gpu/drm/i915/display/intel_dp.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series


diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
index 5c9222283044..43fb485c0e02 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp.c
@@ -5191,6 +5191,9 @@  static bool intel_edp_init_connector(struct intel_dp *intel_dp,
 		goto out_vdd_off;
+	/* Set up override EDID, if any, from ACPI OpRegion */
+	intel_opregion_edid_probe(intel_connector);
 	edid = drm_get_edid(connector, &intel_dp->aux.ddc);
 	if (edid) {