Message ID | 20231012184927.133137-1-hamza.mahfooz@amd.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp1433147vqb; Thu, 12 Oct 2023 11:49:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFU+tuzD/ST7UfROWFOihn3tBS+BPDlLW/0nKDHDF0tzckhsjggDJv5QmNVEpn3Mvya+7PV X-Received: by 2002:a17:902:e74b:b0:1c7:1eed:10f2 with SMTP id p11-20020a170902e74b00b001c71eed10f2mr27981351plf.2.1697136598957; Thu, 12 Oct 2023 11:49:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697136598; cv=pass; d=google.com; s=arc-20160816; b=g2IcrUioI0+mGeYpLUAUum1zHjKX5I9wD+hiutB1+1qDO1F273zCJcR1Rd2vYBCEVT yAMuR3x/6Pqw7Af76voUTI3SHOq9A07tmMhrXZ5tcW+DY/N3rviyO7nyTRVNoSC35HBu zdBco+sMjoOMJYFWskLQuH+Ebka1/7LxUE4H9HHfdQzN8T/dqgl2+RYpA5iUpK8ETKDt asbojqTVqNaZ4f6JnGdvDm5OJhMtcx7s7JB8ndaVYd5Ut0+/B2LYpv5vSMRcIS5wTkgg b0Etos8GrntmsxrA0N7EGwxZpBS9C4L960dV6hCz3bwUqyHDYR0nhkJOyjWaxj9vnkAC KDJw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=UQnmE0MYzyprnHsNdCIPDideFxJT64FWxrekr3tqxf4=; fh=+MfQkZ8RgOMRKaT/DgASupw8jYjWuJVSMHfMmPjK0iE=; b=tkruNaxY3nVSvm8Z7srnVbV5yiKA65GLXn84lyZfp3P/yJecb5qABGui8xc60t4/Xc 7GGVivoLuE0Dd/9iVdFIA6VBUEz6dSU4QGQzT2umH8KlANz+wSKGBljZkNrLCfiVSTx5 BS0wFJrT+4K5xeJYZol2uU0B7ijBcJAa0c9U5anFcw4w5N2msWhDdi58S/kBWALuNuFB Q/xdFA+4tfJ0t4bV2nhE2sCI9vT377x1tscHJD7n/VbHXHZlZTNIxdyHYaWtzw/+lzWp ZRr+L5j3TAgDLqU9Btjznq8xdQyj0sSkDS64EnrPodPRgf0+pB8Ih4G4PICq9KtteDub dwZA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=pILIcb9Z; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id h5-20020a170902704500b001b3bd85f54bsi2519730plt.35.2023.10.12.11.49.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 11:49:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=pILIcb9Z; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id E833181C4A95; Thu, 12 Oct 2023 11:49:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1441973AbjJLStr (ORCPT <rfc822;rua109.linux@gmail.com> + 19 others); Thu, 12 Oct 2023 14:49:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379624AbjJLStp (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 12 Oct 2023 14:49:45 -0400 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2040.outbound.protection.outlook.com [40.107.95.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A01DB7; Thu, 12 Oct 2023 11:49:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iC1VWMeQL52d1o1nj2xiStOGEn7AKN6g7NBZxdq+TkRP490uehYBFBC7KPVXSJg+uS7xVywFZxT+jzuQ8aGBOGbudL+iRjz7VolbYj7v+u2136b3HpHcfAMG+3QOXt+85Pzm5251nNOLtdKB684bcJrwZfSvK3AP4pxK7FHtPw24zXAU2C0vfkJpBii3hDp9p8YXnQHFE/bTLEtFvsCDtsP+hxxs3TTgfwCX5vDKHDhmuKft24/r3oNwieS/oxLjlGdP+Rkw8lBTZJlXA7SpkY8JOImBalhAB/75+UaVCN/OM76woclP04ZeFwAYzQkUoLU5oHcQSmOgKTJrpk0ZQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=UQnmE0MYzyprnHsNdCIPDideFxJT64FWxrekr3tqxf4=; b=oLiaiera0mJoVOun1Oe910NbvSRleqshxjIY1lwFGTppV6wUW9JlDBjyz+dg4nxtkfQI6/1gC7zP6/9IkhOD76ei7mxsmgh1IsTmHg+Ki2sLivgU+Q0ZWb5YKLo+eWn+/v5UmetrioeSg9CkK8bWexnBlTVo8FqNeYzs1uU/mNhXW13tX+StHQNwnnfR8Mn7pmlIDefNo+2ZIpqjXUJjpV+2EwrUSjeryCN3Fm1hFFZ+8pWoSH4xbivoEHxlJjQWsnMTbz34XmJi6AGy+4QOWCN8HPYLWp4AWMjghOHNg1DTg0LUYavgRsb9ZjpOP+rRV12HIZ9qtd7MNA1Hiu7mpw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.freedesktop.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UQnmE0MYzyprnHsNdCIPDideFxJT64FWxrekr3tqxf4=; b=pILIcb9ZKOzLsSc1V/5PupXFPCV1YvWqRH0WSgpna/Ay6YnwP5F1tEqfYLYk+rvy6JSPljKH1YMQrukVZT5D4G4CIE+faFYKeKyuDhS7ja1tIc8b2ftm+Tku0wSoAseNnhRA7325f3ahsCc2qnv3UlDOiu8AQB2/qlsR0kihaWI= Received: from CH2PR17CA0017.namprd17.prod.outlook.com (2603:10b6:610:53::27) by SN7PR12MB6887.namprd12.prod.outlook.com (2603:10b6:806:261::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.38; Thu, 12 Oct 2023 18:49:41 +0000 Received: from DS3PEPF000099E2.namprd04.prod.outlook.com (2603:10b6:610:53:cafe::73) by CH2PR17CA0017.outlook.office365.com (2603:10b6:610:53::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6886.30 via Frontend Transport; Thu, 12 Oct 2023 18:49:41 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by DS3PEPF000099E2.mail.protection.outlook.com (10.167.17.201) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6838.22 via Frontend Transport; Thu, 12 Oct 2023 18:49:40 +0000 Received: from hamza-pc.localhost (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 12 Oct 2023 13:49:39 -0500 From: Hamza Mahfooz <hamza.mahfooz@amd.com> To: <dri-devel@lists.freedesktop.org> CC: <amd-gfx@lists.freedesktop.org>, Harry Wentland <harry.wentland@amd.com>, Alex Deucher <alexander.deucher@amd.com>, Hamza Mahfooz <hamza.mahfooz@amd.com>, <stable@vger.kernel.org>, Maarten Lankhorst <maarten.lankhorst@linux.intel.com>, Maxime Ripard <mripard@kernel.org>, Thomas Zimmermann <tzimmermann@suse.de>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, <linux-kernel@vger.kernel.org> Subject: [PATCH] drm/edid: add 8 bpc quirk to the BenQ GW2765 Date: Thu, 12 Oct 2023 14:49:27 -0400 Message-ID: <20231012184927.133137-1-hamza.mahfooz@amd.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS3PEPF000099E2:EE_|SN7PR12MB6887:EE_ X-MS-Office365-Filtering-Correlation-Id: 37f7bb4c-ce6f-4834-1b4b-08dbcb53fe1e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2HCZLPg++K7Xfm1gfhkoesnDYHpeyC0CcPSIxPcmb9L8QBMd/mzwpPL3D7QdIMkgp0YsNOMngJGWFim1tCrbfVHNsfcwKwcPTFl7KCpHiv2nYftumFA4Vv24IgnTncaeYw1+R4rnvm7w/jOxfDUDPzHbSdoJgl+m2xzgDIEVO9qhAPxL0JxDBLhAuOxv15o1mKImyooZTiaMrLeD5zJuL5cGhHPP2g3VnEIvESkr+V6otRM9N87vyjlKvJ/cBrW7/xuH6gzbYRvw8a6AuuF1UgbFwQgBsJJUr+ACX4tmETx3iP7TiBGoJqxMPwJGGX3bH4fi9hoi4IH8GApqjEbGO8AamquV/mzPcpXf+sBm/Q63UODlqD0oXbd7LsOB3k80qCnu9Dy2Kep02or4r/QI7hhDSjYEoiJlAygSORxD4t9yKRbyuZ8B8izkGJaVVImoU8O2OvqsIfNQxv2QUIt7Hqve0cEoTHXYj4E4qiVgs+luVZ8GUxAyvbyaO3V3WtSJarliohcKR1i4NHOZ9Gdt3+mCl1VuzXR8IwUmlAz/kRvqSe/s6leB0wE2RnoYjk9/eQ6cJPLbh1BsjdaWmbGy1OOK8vqB1fkWOT1tbYu4HTofXBBOwG5CBVj8BabnPxq3B8h9pLx7fqAj5/f0QwTQmcFnq0FgFh0K6pbJfhmNkOi4042ryROJ1jmV7AYhT+oXg4wxQ/Wd3GPiy8pyFNJcbRYSGv/sdOzCz8ldMUZ8S2wjmRosWkBwYhd1BQsk0zfjDj7tFolOWfDEmm9zoKYn1EgSiY1zXp/5/RMaAP7T8Lo= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(4636009)(136003)(376002)(346002)(396003)(39860400002)(230922051799003)(82310400011)(64100799003)(451199024)(186009)(1800799009)(36840700001)(40470700004)(46966006)(40460700003)(1076003)(478600001)(6666004)(8936002)(336012)(44832011)(426003)(83380400001)(4744005)(47076005)(2906002)(6916009)(2616005)(70206006)(54906003)(5660300002)(70586007)(4326008)(316002)(8676002)(41300700001)(26005)(356005)(81166007)(16526019)(36860700001)(82740400003)(40480700001)(86362001)(36756003)(966005)(36900700001)(16060500005);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Oct 2023 18:49:40.8229 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 37f7bb4c-ce6f-4834-1b4b-08dbcb53fe1e X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DS3PEPF000099E2.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB6887 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 12 Oct 2023 11:49:56 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779576706159483439 X-GMAIL-MSGID: 1779576706159483439 |
Series |
drm/edid: add 8 bpc quirk to the BenQ GW2765
|
|
Commit Message
Hamza Mahfooz
Oct. 12, 2023, 6:49 p.m. UTC
The BenQ GW2765 reports that it supports higher (> 8) bpc modes, but
when trying to set them we end up with a black screen. So, limit it to 8
bpc modes.
Cc: stable@vger.kernel.org # 6.5+
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2610
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
---
drivers/gpu/drm/drm_edid.c | 3 +++
1 file changed, 3 insertions(+)
Comments
On 2023-10-12 14:49, Hamza Mahfooz wrote: > The BenQ GW2765 reports that it supports higher (> 8) bpc modes, but > when trying to set them we end up with a black screen. So, limit it to 8 > bpc modes. > > Cc: stable@vger.kernel.org # 6.5+ > Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2610 > Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com> Reviewed-by: Harry Wentland <harry.wentland@amd.com> Harry > --- > 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 0454da505687..bca2af4fe1fc 100644 > --- a/drivers/gpu/drm/drm_edid.c > +++ b/drivers/gpu/drm/drm_edid.c > @@ -123,6 +123,9 @@ static const struct edid_quirk { > /* AEO model 0 reports 8 bpc, but is a 6 bpc panel */ > EDID_QUIRK('A', 'E', 'O', 0, EDID_QUIRK_FORCE_6BPC), > > + /* BenQ GW2765 */ > + EDID_QUIRK('B', 'N', 'Q', 0x78d6, EDID_QUIRK_FORCE_8BPC), > + > /* BOE model on HP Pavilion 15-n233sl reports 8 bpc, but is a 6 bpc panel */ > EDID_QUIRK('B', 'O', 'E', 0x78b, EDID_QUIRK_FORCE_6BPC), >
On Thu, Oct 12, 2023 at 02:49:27PM -0400, Hamza Mahfooz wrote: > The BenQ GW2765 reports that it supports higher (> 8) bpc modes, but > when trying to set them we end up with a black screen. So, limit it to 8 > bpc modes. Bad cable/etc was ruled out as the cause? > > Cc: stable@vger.kernel.org # 6.5+ > Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2610 > Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com> > --- > 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 0454da505687..bca2af4fe1fc 100644 > --- a/drivers/gpu/drm/drm_edid.c > +++ b/drivers/gpu/drm/drm_edid.c > @@ -123,6 +123,9 @@ static const struct edid_quirk { > /* AEO model 0 reports 8 bpc, but is a 6 bpc panel */ > EDID_QUIRK('A', 'E', 'O', 0, EDID_QUIRK_FORCE_6BPC), > > + /* BenQ GW2765 */ > + EDID_QUIRK('B', 'N', 'Q', 0x78d6, EDID_QUIRK_FORCE_8BPC), > + > /* BOE model on HP Pavilion 15-n233sl reports 8 bpc, but is a 6 bpc panel */ > EDID_QUIRK('B', 'O', 'E', 0x78b, EDID_QUIRK_FORCE_6BPC), > > -- > 2.42.0
On 10/13/23 06:30, Ville Syrjälä wrote: > On Thu, Oct 12, 2023 at 02:49:27PM -0400, Hamza Mahfooz wrote: >> The BenQ GW2765 reports that it supports higher (> 8) bpc modes, but >> when trying to set them we end up with a black screen. So, limit it to 8 >> bpc modes. > > Bad cable/etc was ruled out as the cause? Yup, the issue was also reproduced by two different people with same aforementioned monitor. > >> >> Cc: stable@vger.kernel.org # 6.5+ >> Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2610 >> Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com> >> --- >> 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 0454da505687..bca2af4fe1fc 100644 >> --- a/drivers/gpu/drm/drm_edid.c >> +++ b/drivers/gpu/drm/drm_edid.c >> @@ -123,6 +123,9 @@ static const struct edid_quirk { >> /* AEO model 0 reports 8 bpc, but is a 6 bpc panel */ >> EDID_QUIRK('A', 'E', 'O', 0, EDID_QUIRK_FORCE_6BPC), >> >> + /* BenQ GW2765 */ >> + EDID_QUIRK('B', 'N', 'Q', 0x78d6, EDID_QUIRK_FORCE_8BPC), >> + >> /* BOE model on HP Pavilion 15-n233sl reports 8 bpc, but is a 6 bpc panel */ >> EDID_QUIRK('B', 'O', 'E', 0x78b, EDID_QUIRK_FORCE_6BPC), >> >> -- >> 2.42.0 >
diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index 0454da505687..bca2af4fe1fc 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c @@ -123,6 +123,9 @@ static const struct edid_quirk { /* AEO model 0 reports 8 bpc, but is a 6 bpc panel */ EDID_QUIRK('A', 'E', 'O', 0, EDID_QUIRK_FORCE_6BPC), + /* BenQ GW2765 */ + EDID_QUIRK('B', 'N', 'Q', 0x78d6, EDID_QUIRK_FORCE_8BPC), + /* BOE model on HP Pavilion 15-n233sl reports 8 bpc, but is a 6 bpc panel */ EDID_QUIRK('B', 'O', 'E', 0x78b, EDID_QUIRK_FORCE_6BPC),