Skip to content

Commit da922dc

Browse files
kleinermgregkh
authored andcommitted
drm/edid: Add 10 bpc quirk for LGD 764 panel in HP zBook 17 G2
commit e345da82bd6bdfa8492f80b3ce4370acfd868d95 upstream. 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. 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 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent bc428e9 commit da922dc

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

drivers/gpu/drm/drm_edid.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@
7575
#define EDID_QUIRK_FORCE_12BPC (1 << 9)
7676
/* Force 6bpc */
7777
#define EDID_QUIRK_FORCE_6BPC (1 << 10)
78+
/* Force 10bpc */
79+
#define EDID_QUIRK_FORCE_10BPC (1 << 11)
7880

7981
struct detailed_mode_closure {
8082
struct drm_connector *connector;
@@ -117,6 +119,9 @@ static struct edid_quirk {
117119
{ "FCM", 13600, EDID_QUIRK_PREFER_LARGE_75 |
118120
EDID_QUIRK_DETAILED_IN_CM },
119121

122+
/* LGD panel of HP zBook 17 G2, eDP 10 bpc, but reports unknown bpc */
123+
{ "LGD", 764, EDID_QUIRK_FORCE_10BPC },
124+
120125
/* LG Philips LCD LP154W01-A5 */
121126
{ "LPL", 0, EDID_QUIRK_DETAILED_USE_MAXIMUM_SIZE },
122127
{ "LPL", 0x2a00, EDID_QUIRK_DETAILED_USE_MAXIMUM_SIZE },
@@ -3834,6 +3839,9 @@ int drm_add_edid_modes(struct drm_connector *connector, struct edid *edid)
38343839
if (quirks & EDID_QUIRK_FORCE_8BPC)
38353840
connector->display_info.bpc = 8;
38363841

3842+
if (quirks & EDID_QUIRK_FORCE_10BPC)
3843+
connector->display_info.bpc = 10;
3844+
38373845
if (quirks & EDID_QUIRK_FORCE_12BPC)
38383846
connector->display_info.bpc = 12;
38393847

0 commit comments

Comments
 (0)