Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp8518258rwi; Tue, 25 Oct 2022 07:37:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4XsgAxb1fkcHbl+f2n2c34VicBW811Q9+KCK+/5m0KxfIEytDJMVsiS8I14VfW8013qaTV X-Received: by 2002:a63:985:0:b0:46e:e3b7:65ca with SMTP id 127-20020a630985000000b0046ee3b765camr13894043pgj.331.1666708671663; Tue, 25 Oct 2022 07:37:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666708671; cv=pass; d=google.com; s=arc-20160816; b=Yb99AoWMGpDkA2UMgTs/SKfSGivHrCC2sKYFbDWRYvU4eK/H7jMXmY6rFYNEyolufU DpFjEjNAS121Cay7U34yEQLJcJTnvKgmMKQ+98+CtgchKYgGyWb7t75rKJWBrC3Kes5L r8z8+tslHx4GdWkGVJ010na2GJ1p4IxSJOtZxQ7YF0KLxBmuAlw7Wt9+ZUr1OK+njCrS 0wdRUGiihXye/gIuOA03sIhn+U4YYGVOjT8abj3MSWkfGneX/XOwyKIg7U23SwwUjp/B eU61iZXs7WpkuTMzBria+eWDMUuJ9qOr2cwNFdnP/+sLL2GDq7OXBaCRrmP9zUGV/L3p el7A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:content-language:references:cc:to:subject :user-agent:date:message-id:dkim-signature; bh=Ey1DDqcaBHDvDu28BkT4sxCxiEg7SdmeHI5KhMIfJjU=; b=paYqLvz6R90c+2dvjTx6wIEIF3T/KpGQvKotzYvh/gJmd2pOQt59EhPMsZN7qemV46 pybPdC9H2BrmMjMlOsq7Q+vnaQJvpQQyWON2ax57rBXtPFCwk/2AaVhEevKJfl0E3oRN 5e4I4Q7BGBxG1hRqQUBSqX5gE2BZfBvFnRH8iC1u2HDMTpHln4l6tS8p6zyZ2lw7p9Ea 8mTzNhV8j4TVI9XVF5/R8x+Y6KRmrfR4oAi6jr2HBAVaqrbJ9UvtIiv6IlhiTT1QFf2G bbRxB+/UOhkxeDDz0Ofq02Lr5moEyjEPrQcIEwl7j4wwSFPFJVl83qPv56FssyFYo4e0 xtYQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b="pJizr/34"; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 79-20020a630452000000b0043c594305besi2875902pge.500.2022.10.25.07.37.38; Tue, 25 Oct 2022 07:37:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b="pJizr/34"; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232107AbiJYOUy (ORCPT + 99 others); Tue, 25 Oct 2022 10:20:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231618AbiJYOUv (ORCPT ); Tue, 25 Oct 2022 10:20:51 -0400 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2041.outbound.protection.outlook.com [40.107.236.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51B9C5B52F for ; Tue, 25 Oct 2022 07:20:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RhtDk0rEfh2jTZtoGIcZLufEFXHX+qZnpIoKuHIpOXyDyT5z6iEN7OXDdk+UTd9AWQ/5eWqOl0nQVGk1BcPBWNs+FbHj4LY+PPQ3YQQ+nkSM+x/Yn+UEDwXvasnuVTAjPqw6ydPoo9Bms3/a3WPUdNt2J889qOOdbXFUvThm8tHZyFv5AHRJH8HbPHvPaCROKIcXfiXH09bkrK4eo25HXH1+Xr+KqU/huVR6ENLIl73jC2yxZiSMlV4sn3WkI8+IyaHtI0eHkWDCz3JNzJE7v5q8DPKq8S2OFRm5KiD/smrMySc+O89OhcmTxeq9wnIVNCh3RE+L+7uqusm6Hrdb/g== 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=Ey1DDqcaBHDvDu28BkT4sxCxiEg7SdmeHI5KhMIfJjU=; b=UR1ByySsg33v4iC8Om5TPwxsanvl8nG5sKfvIp9HoRCvHtbNs1Xa0tp9oWfQgj/XlWQJrfLd7QHWqQur3o1M3fAmrYPaJXaWtfehd5xwp+O7fTFOrbfyIm9XJiAghtwEnm48b5rG9IQxUF5R47yi3p1whl4QLOb/uRUP0YGUvR9495MsCwW3JUUp+yU/+2YrCAekA/2drJHCJ5LOg6ydnkW5nQ98JHYvPY6y1NE99zsy2VUWKmFENsWUqZgLv+UKU6MeWJEvvfjmamo49CyOr2+PpqRBVeZX+VLXMPMR//5tzcpUF3QdTcQ1Fp7180kaL/4gDd/5giNbCtuQpXqIfA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; 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=Ey1DDqcaBHDvDu28BkT4sxCxiEg7SdmeHI5KhMIfJjU=; b=pJizr/34+Bs840Xj6FmoxpX5nKMtb7vUnHqp3xny1uhMjeLvyF6ongB2lj2fSXMbRMPAzmgeTx26wkq8hDkMgNAwBRdEMFieHEM/LK8XNct1ISJCcPFDUpJIFVbZXh3X3dRnesXhXu+swas+Gj7sSzSRtAXNJ56Zr48OjGadwuI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CO6PR12MB5427.namprd12.prod.outlook.com (2603:10b6:5:358::13) by CH2PR12MB4955.namprd12.prod.outlook.com (2603:10b6:610:68::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.30; Tue, 25 Oct 2022 14:20:46 +0000 Received: from CO6PR12MB5427.namprd12.prod.outlook.com ([fe80::aef3:6aae:b904:e395]) by CO6PR12MB5427.namprd12.prod.outlook.com ([fe80::aef3:6aae:b904:e395%7]) with mapi id 15.20.5746.026; Tue, 25 Oct 2022 14:20:46 +0000 Message-ID: Date: Tue, 25 Oct 2022 10:20:38 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Subject: Re: [PATCH 3/3] Revert "drm/amd/display: Limit max DSC target bpp for specific monitors" To: Hamza Mahfooz , linux-kernel@vger.kernel.org Cc: Roman Li , Leo Li , Rodrigo Siqueira , Alex Deucher , =?UTF-8?Q?Christian_K=c3=b6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Nicholas Kazlauskas , Aurabindo Pillai , Wayne Lin , Fangzhi Zuo , Lyude Paul , Ian Chen , Bhawanpreet Lakha , Claudio Suarez , Colin Ian King , hersen wu , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org References: <20221024192224.180507-1-hamza.mahfooz@amd.com> <20221024192224.180507-3-hamza.mahfooz@amd.com> Content-Language: en-US From: Harry Wentland In-Reply-To: <20221024192224.180507-3-hamza.mahfooz@amd.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: YQBPR0101CA0254.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c01:68::21) To CO6PR12MB5427.namprd12.prod.outlook.com (2603:10b6:5:358::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO6PR12MB5427:EE_|CH2PR12MB4955:EE_ X-MS-Office365-Filtering-Correlation-Id: f5a425c7-9e69-4c31-820f-08dab6941b7d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DirKiSN0DSFOklWr+SEuO6Ngt8l/Udzt/cUfXeIvbYVwT+MS3Scem4FPoWKu6vCVZwoqIOuYLBOd1LJ1KezB+XWas3LMfBROgUKJfWHFuktLjf1JDhpXR5O/QJBbVe4eb3D17QIEUowdAz9F9LFWAcujudDtctkBFUXp/fk6zqUbBvkU84RVNpHnb72CRoRBRT8PTaGBa2UPlyl8NtUnFVWpnGwpcUHW1OeRimyawGOXF+kxDZP+yJuzf3zT1TJzz9FaxGqgTiz68RXYi7PTEg2DgL9XtmKMl8EDpLe+wY4PhCVr6pEQGqSsCYJ1pOcTIYmAH+96l1jr67c4V01tBGPsllnQnniKSt+3R8Ib1J9GVYVuvHNO99oVZrf0T75h1zUcMgE2Rr9/6Cu8PyDOqXI7jDwg8JOZgrXIkIy0FvL9MaXJ9yS24HFUm3GwVctP57R8956p+jpXhO3vIfU8v81LtCqmZky5EvJXRQnxsnPsUanGTcm4KjrgDZx2Hfq6zzRuf/JojiibpDDBc5xkjaFYUFRMb09JuI+MX9zEDWEtDF3huawb2F1wIUwOgG0vgUKo/c3IH+asJ0mP+SzRkVY7skkKEeD9Tut7/5Tl6TZd7EuHqYZmBiiZyPmlpt7ypEPNnuIH4vkJX7N86befoDXBAqAcjTbbjvu0T1b0OqAZgTpbEc4XEg2bgCMgsBNkikXKWjBxGiwgZ3qWxuEVo0YJu44Szs7Jb+34PaWLBEe4ZiNs0fSNca7eiQh7GBiMuEP+ncY9slhhVQBLOBFTQv1ohHIGeIBjYh5ZMzbrBCA= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO6PR12MB5427.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(346002)(376002)(366004)(136003)(39860400002)(396003)(451199015)(53546011)(54906003)(6486002)(8676002)(66556008)(4326008)(6506007)(66476007)(7416002)(186003)(66946007)(5660300002)(6666004)(41300700001)(86362001)(31696002)(8936002)(2906002)(4001150100001)(26005)(2616005)(36756003)(83380400001)(44832011)(316002)(6512007)(31686004)(478600001)(38100700002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?NXlDYWVCMDIvRUpDWm1rcmxVRGZXN1UrNkRBbWFmdkVuYkZOTFdjNjM5bnlt?= =?utf-8?B?TUF3SGVRaWowZXFWdzQ2UGh6ZnZiTEM5WTEvTWVKZlZVNXA3aklZRFc1TTFQ?= =?utf-8?B?aS8xQUdnd3ZZL3ZyU1lhUXhsYWFSY0hQelNwOHhwZG93QWV5OFc3L01tZ2hj?= =?utf-8?B?WlpXNC9TN2tEVlRTNDN1aStLaDExcysyOWJZdHZSNEJHSHN4a0FOSWkrUTBz?= =?utf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vTmk1eEdnU1o5Zmx4?= =?utf-8?B?RmNUWk0vOWVObTlXejZGWUVhcG1oWDU0dTZxWlMwVGZoVFQ4N25haWZzYTBz?= =?utf-8?Q?QyDlvxh1hPAlbMdxBym13v5PN?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: f5a425c7-9e69-4c31-820f-08dab6941b7d X-MS-Exchange-CrossTenant-AuthSource: CO6PR12MB5427.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Oct 2022 14:20:46.2252 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: GeOQm1m73tUaK2XIdl6r6MEVsCIqGmzS42aTxSRrRUKMNzfatOkriX8zGBaON+W/GRyneDse/52ci187QyuyCg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4955 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Series is Reviewed-by: Harry Wentland Harry On 2022-10-24 15:22, Hamza Mahfooz wrote: > This reverts commit 55eea8ef98641f6e1e1c202bd3a49a57c1dd4059. > > This quirk is now handled in the DRM core, so we can drop all of > the internal code that was added to handle it. > > Signed-off-by: Hamza Mahfooz > --- > .../amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 35 ------------------- > 1 file changed, 35 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c > index 4956a0118215..a21e2ba77ddb 100644 > --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c > +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c > @@ -41,39 +41,6 @@ > #include "dm_helpers.h" > #include "ddc_service_types.h" > > -struct monitor_patch_info { > - unsigned int manufacturer_id; > - unsigned int product_id; > - void (*patch_func)(struct dc_edid_caps *edid_caps, unsigned int param); > - unsigned int patch_param; > -}; > -static void set_max_dsc_bpp_limit(struct dc_edid_caps *edid_caps, unsigned int param); > - > -static const struct monitor_patch_info monitor_patch_table[] = { > -{0x6D1E, 0x5BBF, set_max_dsc_bpp_limit, 15}, > -{0x6D1E, 0x5B9A, set_max_dsc_bpp_limit, 15}, > -}; > - > -static void set_max_dsc_bpp_limit(struct dc_edid_caps *edid_caps, unsigned int param) > -{ > - if (edid_caps) > - edid_caps->panel_patch.max_dsc_target_bpp_limit = param; > -} > - > -static int amdgpu_dm_patch_edid_caps(struct dc_edid_caps *edid_caps) > -{ > - int i, ret = 0; > - > - for (i = 0; i < ARRAY_SIZE(monitor_patch_table); i++) > - if ((edid_caps->manufacturer_id == monitor_patch_table[i].manufacturer_id) > - && (edid_caps->product_id == monitor_patch_table[i].product_id)) { > - monitor_patch_table[i].patch_func(edid_caps, monitor_patch_table[i].patch_param); > - ret++; > - } > - > - return ret; > -} > - > /* dm_helpers_parse_edid_caps > * > * Parse edid caps > @@ -148,8 +115,6 @@ enum dc_edid_status dm_helpers_parse_edid_caps( > kfree(sads); > kfree(sadb); > > - amdgpu_dm_patch_edid_caps(edid_caps); > - > return result; > } >