Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8CC5EC433EF for ; Thu, 23 Sep 2021 18:15:42 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4D72E60F43 for ; Thu, 23 Sep 2021 18:15:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4D72E60F43 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A8A3F6ED98; Thu, 23 Sep 2021 18:15:41 +0000 (UTC) X-Greylist: delayed 1834 seconds by postgrey-1.36 at gabe; Thu, 23 Sep 2021 11:45:49 UTC Received: from rivendell.lovergine.com (rivendell.lovergine.com [51.15.207.90]) by gabe.freedesktop.org (Postfix) with ESMTPS id CEA426ED0B for ; Thu, 23 Sep 2021 11:45:49 +0000 (UTC) Received: from [109.115.230.26] (helo=legolas.home.lovergine.com) by rivendell.lovergine.com with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mTMcp-0001un-Cj; Thu, 23 Sep 2021 11:10:49 +0000 Received: from [::1] (helo=localhost) by legolas.home.lovergine.com with esmtp (Exim 4.94.2) (envelope-from ) id 1mTMco-000K90-GT; Thu, 23 Sep 2021 13:10:46 +0200 Date: Thu, 23 Sep 2021 13:10:46 +0200 From: Francesco Paolo Lovergine To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter Cc: dri-devel@lists.freedesktop.org Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-GPG-Fingerprint: 92E4 2D44 336F DF91 5508 23D5 A453 5199 E9F2 C747 X-GPG-Info: finger frankie@db.debian.org X-Advocacy: Those who use non-free software poison you too. Say them to stop. X-SA-Exim-Connect-IP: 109.115.230.26 X-SA-Exim-Mail-From: frankie@debian.org Subject: [PATCH 1/1] drm: This patch fixes colour banding caused by wrong information passed by the Lenovo Thinkpad L540 panel. X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on rivendell.lovergine.com) X-Mailman-Approved-At: Thu, 23 Sep 2021 18:15:41 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "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 --- 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