All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] drm: This patch fixes colour banding caused by wrong information passed by the Lenovo Thinkpad L540 panel.
@ 2021-09-23 11:10 Francesco Paolo Lovergine
  2021-09-23 18:49 ` Alex Deucher
  2021-09-29 14:48 ` [PATCH 1/1 REPOST] drm: fix colour banding on " Francesco P. Lovergine
  0 siblings, 2 replies; 3+ messages in thread
From: Francesco Paolo Lovergine @ 2021-09-23 11:10 UTC (permalink / raw)
  To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
	David Airlie, Daniel Vetter
  Cc: dri-devel

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.

Signed-off-by: Francesco Paolo Lovergine <frankie@debian.org>
---
 drivers/gpu/drm/drm_edid.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c
index 6325877c5fd6..48e06cc33e4d 100644
--- a/drivers/gpu/drm/drm_edid.c
+++ b/drivers/gpu/drm/drm_edid.c
@@ -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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] drm: This patch fixes colour banding caused by wrong information passed by the Lenovo Thinkpad L540 panel.
  2021-09-23 11:10 [PATCH 1/1] drm: This patch fixes colour banding caused by wrong information passed by the Lenovo Thinkpad L540 panel Francesco Paolo Lovergine
@ 2021-09-23 18:49 ` Alex Deucher
  2021-09-29 14:48 ` [PATCH 1/1 REPOST] drm: fix colour banding on " Francesco P. Lovergine
  1 sibling, 0 replies; 3+ messages in thread
From: Alex Deucher @ 2021-09-23 18:49 UTC (permalink / raw)
  To: Francesco Paolo Lovergine
  Cc: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
	David Airlie, Daniel Vetter, Maling list - DRI developers

On Thu, Sep 23, 2021 at 2:15 PM Francesco Paolo Lovergine
<frankie@debian.org> wrote:
>
> Hi,

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

drm: fix colour banding on Lenovo Thinkpad L540 panel

>
> 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:
Bug: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749420
Bug: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1788308

Otherwise looks good to me.

Alex

>
> Signed-off-by: Francesco Paolo Lovergine <frankie@debian.org>
> ---
>  drivers/gpu/drm/drm_edid.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c
> index 6325877c5fd6..48e06cc33e4d 100644
> --- a/drivers/gpu/drm/drm_edid.c
> +++ b/drivers/gpu/drm/drm_edid.c
> @@ -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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/1 REPOST] drm: fix colour banding on Lenovo Thinkpad L540 panel
  2021-09-23 11:10 [PATCH 1/1] drm: This patch fixes colour banding caused by wrong information passed by the Lenovo Thinkpad L540 panel Francesco Paolo Lovergine
  2021-09-23 18:49 ` Alex Deucher
@ 2021-09-29 14:48 ` Francesco P. Lovergine
  1 sibling, 0 replies; 3+ messages in thread
From: Francesco P. Lovergine @ 2021-09-29 14:48 UTC (permalink / raw)
  To: dri-devel
  Cc: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
	David Airlie, Daniel Vetter

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.

Bug: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749420
Bug: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1788308
Reviewed-by: Alex Deucher <alexdeucher@gmail.com> 
Signed-off-by: Francesco Paolo Lovergine <frankie@debian.org>
---
  drivers/gpu/drm/drm_edid.c | 3 +++
  1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c
index 6325877c5fd6..48e06cc33e4d 100644
--- a/drivers/gpu/drm/drm_edid.c
+++ b/drivers/gpu/drm/drm_edid.c
@@ -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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-09-29 14:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-23 11:10 [PATCH 1/1] drm: This patch fixes colour banding caused by wrong information passed by the Lenovo Thinkpad L540 panel Francesco Paolo Lovergine
2021-09-23 18:49 ` Alex Deucher
2021-09-29 14:48 ` [PATCH 1/1 REPOST] drm: fix colour banding on " Francesco P. Lovergine

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.