Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/edid: Add 10 bpc quirk for LGD 764 panel in HP zBook 17 G2

The builtin eDP panel in the HP zBook 17 G2 supports 10 bpc,
as advertised by the Laptops product specs and verified via
injecting a fixed edid + photometer measurements, but edid
reports unknown depth, so drivers fall back to 6 bpc.

Add a quirk to get the full 10 bpc.

Cc: stable@vger.kernel.org
Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1492787108-23959-1-git-send-email-mario.kleiner.de@gmail.com

authored by

Mario Kleiner and committed by
Daniel Vetter
e345da82 8b03d1ed

+8
+8
drivers/gpu/drm/drm_edid.c
··· 80 80 #define EDID_QUIRK_FORCE_12BPC (1 << 9) 81 81 /* Force 6bpc */ 82 82 #define EDID_QUIRK_FORCE_6BPC (1 << 10) 83 + /* Force 10bpc */ 84 + #define EDID_QUIRK_FORCE_10BPC (1 << 11) 83 85 84 86 struct detailed_mode_closure { 85 87 struct drm_connector *connector; ··· 123 121 /* Funai Electronics PM36B */ 124 122 { "FCM", 13600, EDID_QUIRK_PREFER_LARGE_75 | 125 123 EDID_QUIRK_DETAILED_IN_CM }, 124 + 125 + /* LGD panel of HP zBook 17 G2, eDP 10 bpc, but reports unknown bpc */ 126 + { "LGD", 764, EDID_QUIRK_FORCE_10BPC }, 126 127 127 128 /* LG Philips LCD LP154W01-A5 */ 128 129 { "LPL", 0, EDID_QUIRK_DETAILED_USE_MAXIMUM_SIZE }, ··· 4248 4243 4249 4244 if (quirks & EDID_QUIRK_FORCE_8BPC) 4250 4245 connector->display_info.bpc = 8; 4246 + 4247 + if (quirks & EDID_QUIRK_FORCE_10BPC) 4248 + connector->display_info.bpc = 10; 4251 4249 4252 4250 if (quirks & EDID_QUIRK_FORCE_12BPC) 4253 4251 connector->display_info.bpc = 12;