From: Ville Syrjälä <[email protected]>
On some new systems we apparently have to use the
the DisplayID product ID block rather than the EDID
base block to find the correct panel entry in the VBT.
Implement that.
v2: Call it drm_edid_get_displayid_product_id()
Return errno from the get_product_id() functions
Also skip bogus EDID product IDs
Do one is_panel_type_valid_or_pnp() conversion while at it
Ville Syrjälä (5):
drm/edid: Introduce drm_edid_get_displayid_product_id()
drm/i915/bios: Attempt to match the VBT PnP ID against DisplayID first
drm/edid: Have drm_edid_get_product_id() tell us if it found something
drm/i915/bios: Skip VBT PnP ID match if there is no EDID product ID
drm/i915/bios: Use is_panel_type_valid_or_pnp() for the sanity check
drivers/gpu/drm/drm_displayid_internal.h | 11 +++
drivers/gpu/drm/drm_edid.c | 73 +++++++++++++++++--
drivers/gpu/drm/i915/display/intel_bios.c | 87 +++++++++++++++++------
include/drm/drm_edid.h | 14 +++-
4 files changed, 158 insertions(+), 27 deletions(-)
--
2.56.1