Received: by 10.223.185.116 with SMTP id b49csp2546188wrg; Sun, 18 Feb 2018 00:59:04 -0800 (PST) X-Google-Smtp-Source: AH8x2266zLbo5pM7c1T5yehTgPRtOR+TDiFR576lamU7OgBquN2scEp4AnNjjVWbVYrAJlJvtNwD X-Received: by 10.98.76.215 with SMTP id e84mr1199280pfj.45.1518944344041; Sun, 18 Feb 2018 00:59:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518944344; cv=none; d=google.com; s=arc-20160816; b=QukBO3SPAmpB/fgF7H9rw3r2NzDvqxlQq7KvJ4A+Yv3YtcotFkbyHJxWJ2JbfK5JZs wun6pJjMf7RsLPEq+O015wTo5I5Urx2DE0gxknOxkZ1RupKeiQBgpa7CLrCK2Q1EQnlM 3LV+xGJMo7aaMfdC8aZCu87/1rU4P023f52VAhlr0a0em2rR24YVkFIfAosuTTnR97lq nTXUPEwQFpTn0al4wFk2tOp+Jp5H8mz+4klmbM8lZs5gTvHa5y5YUDHQ6n80UD7tqNaw kqhuTvdC7T5KN2QEAeQA4/F1PSDG1tG1B5EZ8WXU7x2WnZANx+sddmchn0LODdWlvDSC oOFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=Ao8qvHyJekQE/3+VC8YFEylHtSe+bDOKkubfGWPQ+Eo=; b=BBjt3vliwZP58+UvH3tvWi2piEbjweJ47AGV4FEup2LBuef65+e88s0BJVQrNz0Ci1 gdQh5g3c0Opp8C/9K3P+oTHh6mfD+GZMFJ/6Yoe1AHirrelBBeAaVuwEfDUQZQLSkTIX RBT3pFu8nMLmjhG/Dyx46qpq1cRDCAFpktkwmN0YgwWAaCaNqh+syWHTLoFJiF4iWsZ7 0OJUdvkieFgF4w9B+W12QxcuX/wXevCtrsExflp6QDrw1+Ek+c5TRlNOWJoRsLGYy+1O JIXBT2vpykL3SQfHB3xS1grPj60WPrDcdi6oG1V6riBxMiHTbZiYzg5WZl1xVsKhW1hA nDcw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ay2-v6si2102831plb.664.2018.02.18.00.58.11; Sun, 18 Feb 2018 00:59:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751330AbeBRIyP (ORCPT + 99 others); Sun, 18 Feb 2018 03:54:15 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:49772 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751163AbeBRIyO (ORCPT ); Sun, 18 Feb 2018 03:54:14 -0500 Received: from 114-32-108-117.hinet-ip.hinet.net ([114.32.108.117] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1enKjU-0003MV-SR; Sun, 18 Feb 2018 08:54:05 +0000 From: Kai-Heng Feng To: airlied@linux.ie Cc: mario.kleiner.de@gmail.com, daniel.vetter@intel.com, gustavo@padovan.org, seanpaul@chromium.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Kai-Heng Feng Subject: [PATCH] drm/edid: Add 6 bpc quirk for CPT panel in Asus UX303LA Date: Sun, 18 Feb 2018 16:53:59 +0800 Message-Id: <20180218085359.7817-1-kai.heng.feng@canonical.com> X-Mailer: git-send-email 2.15.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Similar to commit e10aec652f31 ("drm/edid: Add 6 bpc quirk for display AEO model 0."), the EDID reports "DFP 1.x compliant TMDS" but it support 6bpc instead of 8 bpc. Hence, use 6 bpc quirk for this panel. Fixes: 196f954e2509 ("drm/i915/dp: Revert "drm/i915/dp: fall back to 18 bpp when sink capability is unknown"") BugLink: https://bugs.launchpad.net/bugs/1749420 Signed-off-by: Kai-Heng Feng --- 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 ddd537914575..d9c8d718e261 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c @@ -113,6 +113,9 @@ static const struct edid_quirk { /* AEO model 0 reports 8 bpc, but is a 6 bpc panel */ { "AEO", 0, EDID_QUIRK_FORCE_6BPC }, + /* CPT panel of Asus UX303LA reports 8 bpc, but is a 6 bpc panel */ + { "CPT", 0x17df, EDID_QUIRK_FORCE_6BPC }, + /* Belinea 10 15 55 */ { "MAX", 1516, EDID_QUIRK_PREFER_LARGE_60 }, { "MAX", 0x77e, EDID_QUIRK_PREFER_LARGE_60 }, -- 2.15.1