Patch "drm/i915/cnp: Ignore VBT request for know invalid DDC pin." has been added to the 4.15-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
drm/i915/cnp: Ignore VBT request for know invalid DDC pin.
to the 4.15-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
drm-i915-cnp-ignore-vbt-request-for-know-invalid-ddc-pin.patch
and it can be found in the queue-4.15 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
f24c606c21a8cb6f75adc20edcd80b6d851991bfMon Sep 17 00:00:00 2001
From: Rodrigo Vivi <[email protected]>
Date: Tue, 23 Jan 2018 09:40:50 -0800
Subject: drm/i915/cnp: Ignore VBT request for know invalid DDC pin.
From: Rodrigo Vivi <[email protected]>
commit f24c606c21a8cb6f75adc20edcd80b6d851991bf upstream.
Let's ignore VBT request if the pin is clearly wrong.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104139
--- drivers/gpu/drm/i915/intel_bios.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/intel_bios.c +8 -3
@@ -1115,9 +1115,14 @@ static const u8 cnp_ddc_pin_map[] = {static u8 map_ddc_pin (struct drm_i915_private *dev_priv,u8 vbt_pin) { -if (HAS_PCH_CNP (dev_priv) && - vbt_pin >0 && vbt_pin <ARRAY_SIZE (cnp_ddc_pin_map)) -return cnp_ddc_pin_map[vbt_pin]; +if (HAS_PCH_CNP (dev_priv)) { +if (vbt_pin >0 && vbt_pin <ARRAY_SIZE (cnp_ddc_pin_map)) +return cnp_ddc_pin_map[vbt_pin]; +if (vbt_pin >GMBUS_PIN_4_CNP ) { +DRM_DEBUG_KMS ("Ignoring alternate pin: VBT claims DDC pin %d, which is not valid for this platform\n" , vbt_pin); +return 0 ; + } + }return vbt_pin; }
Patches currently in stable-queue which might be from [email protected] are
queue-4.15/drm-i915-cnp-properly-handle-vbt-ddc-pin-out-of-bounds.patch queue-4.15/drm-i915-cnp-ignore-vbt-request-for-know-invalid-ddc-pin.patch