Skip to contentSkip to conversation

drm: This patch fixes colour banding caused by wrong information passed by the Lenovo Thinkpad L540 panel.

PATCH In review Francesco Paolo Lovergine 2 participants 3 messages Sep 23, 2021 – Sep 29, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm: This patch fixes colour banding caused by wrong information passed by the Lenovo Thinkpad L540 panel.

Hi,

there is an issue with Lenovo Thinkpad L540 very similar to those described here:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749420 or here:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1788308
that is a bad looking color banding with dark colors mainly.
It happens with any kernel starting from 4.8 up to the current.

---
 drivers/gpu/drm/drm_edid.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/drm_edid.c +3 -0
index 6325877c5fd6..48e06cc33e4d 100644
@@ -141,6 +141,9 @@ static const struct edid_quirk {
 	/* LGD panel of HP zBook 17 G2, eDP 10 bpc, but reports unknown bpc */
 	{ "LGD", 764, EDID_QUIRK_FORCE_10BPC },
 
+	/* LGD panel of Lenovo L540 reports 8 bpc, but is a 6 bpc panel */
+	{ "LGD", 0x038e, EDID_QUIRK_FORCE_6BPC },
+
 	/* LG Philips LCD LP154W01-A5 */
 	{ "LPL", 0, EDID_QUIRK_DETAILED_USE_MAXIMUM_SIZE },
 	{ "LPL", 0x2a00, EDID_QUIRK_DETAILED_USE_MAXIMUM_SIZE },
Signature · 5 lines
2.30.2


-- 
Francesco P. Lovergine
#1 lore raw
Quoted 2 lines · Francesco Paolo Lovergine

Hi,

The patch title is a little long. How about something like:

drm: fix colour banding on Lenovo Thinkpad L540 panel

Quoted 6 lines

there is an issue with Lenovo Thinkpad L540 very similar to those described here:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749420 or here:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1788308
that is a bad looking color banding with dark colors mainly.
It happens with any kernel starting from 4.8 up to the current.

Bugs should be referenced like:

Otherwise looks good to me.

Alex

Quoted 26 lines
---
 drivers/gpu/drm/drm_edid.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/drm_edid.c +3 -1
index 6325877c5fd6..48e06cc33e4d 100644
@@ -141,6 +141,9 @@ static const struct edid_quirk {
        /* LGD panel of HP zBook 17 G2, eDP 10 bpc, but reports unknown bpc */
        { "LGD", 764, EDID_QUIRK_FORCE_10BPC },
 
+       /* LGD panel of Lenovo L540 reports 8 bpc, but is a 6 bpc panel */
+       { "LGD", 0x038e, EDID_QUIRK_FORCE_6BPC },
+
        /* LG Philips LCD LP154W01-A5 */
        { "LPL", 0, EDID_QUIRK_DETAILED_USE_MAXIMUM_SIZE },
        { "LPL", 0x2a00, EDID_QUIRK_DETAILED_USE_MAXIMUM_SIZE },
--

2.30.2

--
Francesco P. Lovergine

#2 lore raw

PATCH 1/1 drm: fix colour banding on Lenovo Thinkpad L540 panel

In reply to Francesco Paolo Lovergine

Hi,

there is an issue with Lenovo Thinkpad L540 panel i.e. a bad looking color banding with dark colors mainly, very similar to that present in other models as pointed in referenced bugs.
That happens with any kernel starting from 4.8 up to the current.

---
 drivers/gpu/drm/drm_edid.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/drm_edid.c +3 -0
index 6325877c5fd6..48e06cc33e4d 100644
@@ -141,6 +141,9 @@ static const struct edid_quirk {
 	/* LGD panel of HP zBook 17 G2, eDP 10 bpc, but reports unknown bpc */
 	{ "LGD", 764, EDID_QUIRK_FORCE_10BPC },
 
+	/* LGD panel of Lenovo L540 reports 8 bpc, but is a 6 bpc panel */
+	{ "LGD", 0x038e, EDID_QUIRK_FORCE_6BPC },
+
 	/* LG Philips LCD LP154W01-A5 */
 	{ "LPL", 0, EDID_QUIRK_DETAILED_USE_MAXIMUM_SIZE },
 	{ "LPL", 0x2a00, EDID_QUIRK_DETAILED_USE_MAXIMUM_SIZE },
Signature · 4 lines
2.30.2

-- 
Francesco P. Lovergine