Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6078552rwr; Mon, 24 Apr 2023 13:23:23 -0700 (PDT) X-Google-Smtp-Source: AKy350Yi4lETyaplEU3+LvVHEgs88vGIfjRjIWl187iTYwG/3fERJwJJit1ofYPsG5j4LAHMn8yN X-Received: by 2002:a05:6a20:a11e:b0:eb:8833:c92f with SMTP id q30-20020a056a20a11e00b000eb8833c92fmr22516974pzk.5.1682367802631; Mon, 24 Apr 2023 13:23:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1682367802; cv=pass; d=google.com; s=arc-20160816; b=Hd2TUyLROn5uT22RfjPeeByHpaFFEJvvcvj9LqAFynQYTZYosJxUAuhzUzwVsRuMJG vV797IS6aZU0j9LQaVma7QHc5mVxdry9JJKitaEjXv6Tfp6PUiz852UKbml8PQ+4OFZ+ GMx1trCbaFDnfDxS7WfuSw1iXj3sJD9zg5CBBg1XfeuLZevPs3IsfGdzkKIbJIkECtoA gZuZxDNeCwRRK5ooI5dSx8ufwcWmQ2+/jHlcXfo/IAI2qAe0HrTm+xPbhi+ytd2kn78w +H0cLJNWsRxCqsmAMotFrWhlIR6hh7SgSEAkgoKqGzk4/rrcC8RTM1jbA+KyTYZPvU9c qxMA== 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:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=cTnNjZotmfTeQJm0GQGhiSOKfGexRbq+IeT/1Y0H2Gs=; b=fQGOtgTRVissMurqWNZ7AM9KJixPvSrGRsUQSISLy43jg7P5NK78qo8tMd6+5CtUy2 lEYkPC25u4N+8G2RUl241eNwmMHWxVR7zkgRt388PhUKuni9ja7uXE+6ka24jGbsu8Oi u5Th8813miBb23OfJwttGmv241bxVDoOHu4+OvUooXPQoFh9LG+PWIas8dJJrG6RtWIi 2sBrDSR/CrB/phUD4XZSZx6AwOVM+5tqd1G+xvMHuMbWgaIJtMwUFufgPKPl6mrkG11l wfDKKHT7p0yAsJDFZeBajgsUW/Xpd53cLmNxWAq2iNEe79efj4n7W5leDpuEFaqU/sZi omJw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=1NFnJK+F; 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 y15-20020a63494f000000b00524ca1b89f0si9967994pgk.596.2023.04.24.13.23.08; Mon, 24 Apr 2023 13:23:22 -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=1NFnJK+F; 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 S232442AbjDXUL6 (ORCPT + 99 others); Mon, 24 Apr 2023 16:11:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231751AbjDXUL4 (ORCPT ); Mon, 24 Apr 2023 16:11:56 -0400 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2053.outbound.protection.outlook.com [40.107.101.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3908F7680; Mon, 24 Apr 2023 13:11:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TZxvey+DniFi/umthgxsJ/nMixe4eUeBpO+hVmicjK7brIhvxhxNJ5VdYChvRQmBtv5qgeDVfEv/1/zeu98sjHy9Hff5nM4nhOrs70N0XGcPz5jIqBNrzDDBEtQVhtb3me6qmVP3XyUGOT2bpZ0Fs3M511GIAA9buZMFwABVe49tVUlJkocsAxoQOeUOiVchGRrAZlxSILqKloppkSAVnxD+mwILngXbKnpckySB+by0iR/rH4aVeLaBAi+ROZ1ujnvrHrRd3s1Ge9uSwur0dRDTmhxX8HzKII1/BXwQgK8mll2I1UC9EcjESVrMornrkbB9G1qKGlerqVpvKZa3gA== 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=cTnNjZotmfTeQJm0GQGhiSOKfGexRbq+IeT/1Y0H2Gs=; b=QQbBBCJWnCbNnujWgZtSKxR7WCi+zxvhIUR0x9dnUBawul+zc+S8WV/CCNCR2FU0dAuw9C2JyXKZliOhmzH8JB/GMPlOHja6H7sH4+R/sPXcVbDWC/M5RPe0Dy5FjuWI7BXae4aFjBjjTr3vjUD8eUCqV2sj4Rnl1FZpWS02melBeVwPnfVVa5eN6D/NL9Y3Kp8Gno5rAtDxOegYbFudHfXrJzQ8v+Z8NJ04p44FokUmP5B6p8EUnv2JthtYNiYPWWlXjER9xnfBhWYE42ZcrbkQXxoANt3w/xxwOOkPyH9j6X6zHOcj4i2vALz7uuQjE0EICJADoqN6OTiXiK3GcQ== 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=cTnNjZotmfTeQJm0GQGhiSOKfGexRbq+IeT/1Y0H2Gs=; b=1NFnJK+Fy/GIjYnSN/cn9JtZTx5QZyoY1RoUR813GHQfBhiAMsJReNjOeLNRCPEavCwWgRoNqPg8DSvmdMXzS1+KS4zbLivsVXQ155xwobZztDMQsYrjMFvhmsFsmwjr23o5W94Jrf7Ha6enQnTHQSD9fYpB9djgFYe+H+zz9/U= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from DM4PR12MB6280.namprd12.prod.outlook.com (2603:10b6:8:a2::11) by MW6PR12MB7072.namprd12.prod.outlook.com (2603:10b6:303:238::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.33; Mon, 24 Apr 2023 20:11:47 +0000 Received: from DM4PR12MB6280.namprd12.prod.outlook.com ([fe80::fe53:2742:10f9:b8f1]) by DM4PR12MB6280.namprd12.prod.outlook.com ([fe80::fe53:2742:10f9:b8f1%9]) with mapi id 15.20.6319.022; Mon, 24 Apr 2023 20:11:47 +0000 Message-ID: <0a9c2b8c-1c90-da11-1852-ff29550a7950@amd.com> Date: Mon, 24 Apr 2023 16:13:12 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH] drm/amd/display: Fix a test CalculatePrefetchSchedule() Content-Language: en-US To: Christophe JAILLET , Harry Wentland , Leo Li , Rodrigo Siqueira , Alex Deucher , =?UTF-8?Q?Christian_K=c3=b6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , Pavle Kotarac , Nevenko Stupar , Aric Cyr Cc: dri-devel@lists.freedesktop.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org References: <13ab79d7a6c7ec6292c803ce1e52c8ac12af320f.1681767298.git.christophe.jaillet@wanadoo.fr> From: Hamza Mahfooz In-Reply-To: <13ab79d7a6c7ec6292c803ce1e52c8ac12af320f.1681767298.git.christophe.jaillet@wanadoo.fr> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: YT4PR01CA0308.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:10e::19) To DM4PR12MB6280.namprd12.prod.outlook.com (2603:10b6:8:a2::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM4PR12MB6280:EE_|MW6PR12MB7072:EE_ X-MS-Office365-Filtering-Correlation-Id: 56e9a946-d85f-406b-bc4b-08db450021c9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: D/R9B2XE2D00+veocipxqzFFAvgo1We7dxji2XmHmpHwJOzOszeXfhjSSGJ0ByP+sqUFuUmbRrgW22YN+Hhe/Pap9gcteZiKkgyHXZMcfOB/pPaf6h/ovXBmaal9BkK8wOWWQPKKdwbB0SrZt+QaaB25FG0RBIYE8sSw5dryplhSDWmSBljnS/PXlHsA280ih4usLDosip2dgxARDb8E3A65ENIp0MbA3u2ixjqRYZqSwJUVC2ad7WSh5zcdE9agE+BkBVYEGsUH7ZGVUOsTyvDHLOqutVaRtpmq1gVFHXmR0L07KlCBuaAu8gIHfzmom5pU0sxQRYrrg1U/AfXbW2iK0RqSMT/gB7W5zbfVLgjWMnKX9dT2o0da5ETSIGMvc1xQhJHvr1ydXlxwjinZ0JuD8JFpy6R1Ck9gPsM0rCi+ePAnuXJ2f0qgUgynanRwt1zJO3mj5hpyVn7P6YEcbQsNtUjzRuO0oYreEn8jQ6bpQjVqjNti1nkQaBqF/Y1EOegzfsoSVvpw+7H8gdox/xBKAL8fUsDYyNmkQ3KSfiLY/lWz4GWoQ8y5RKc8Wv0ks8PplGMdxxiQPD0YgwEyWksdT8E+AK4LqlGPpwUAGlX1apg705bYzE9VFcCBfgeV6WbW33PVe4KozqDirpf8jlhS+2lqDsGsaTHoro0bUAY= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM4PR12MB6280.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(136003)(396003)(366004)(376002)(346002)(39860400002)(451199021)(41300700001)(31686004)(2616005)(478600001)(8676002)(8936002)(38100700002)(4326008)(66556008)(66946007)(31696002)(921005)(83380400001)(2906002)(316002)(66476007)(5660300002)(44832011)(86362001)(186003)(53546011)(6506007)(6512007)(110136005)(6636002)(26005)(6666004)(6486002)(36756003)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?MXJNa083T2RhOEQxR1dTMVZQeU5XcHBTcld4ZTI1WERYMkh4bDZTTFBOd0JS?= =?utf-8?B?bEhSVFpuRjRxRmFaRlp1c1haZ3hZTkxFaUU1R3lPRUIrQmpvM2JrK2Y5ZGl2?= =?utf-8?B?aW54akF1d2xYaVoyZWRUNGExRUJiSkhKajJ2VVNlOVZ2bFNyL2ZmeGpScTVK?= =?utf-8?B?SzBnZGR3WllDVFFHNFh4UUVmQkRicjNNNTJjWmowRDFRMWxBRFBHbmFlRFJm?= =?utf-8?B?b0VvRStudzVNVDFXeTlSeWdCcUdhUUJDdTNvM1B6cHBlb294S3BhNjM2eVRX?= =?utf-8?B?a3p3UUlseTlkYU11RmFxNmdrcFdFdE9EbWpYNXZhdGFaVU92eUd3U09QTnVJ?= =?utf-8?B?Kzl2Y1RzV0xPMHZ3QXVFU1A3dm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56e9a946-d85f-406b-bc4b-08db450021c9 X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB6280.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Apr 2023 20:11:47.4682 (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: tPcOlI2R7GARgrxAR040m9KVVtgcKMQIjuoLhzIUzq7kHrUqNXPNqRmNU9BvWMv6sTtmDZUNEIwKtH0bKKsSAg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW6PR12MB7072 X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE 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 On 4/17/23 17:35, Christophe JAILLET wrote: > It is likely Height was expected here, instead of Width. > > Test the correct variable. > > Fixes: 17529ea2acfa ("drm/amd/display: Optimizations for DML math") > Signed-off-by: Christophe JAILLET Applied, thanks! > --- > drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c b/drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c > index b7c2844d0cbe..f294f2f8c75b 100644 > --- a/drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c > +++ b/drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c > @@ -810,7 +810,7 @@ static bool CalculatePrefetchSchedule( > *swath_width_chroma_ub = dml_ceil(SwathWidthY / 2 - 1, myPipe->BlockWidth256BytesC) + myPipe->BlockWidth256BytesC; > } else { > *swath_width_luma_ub = dml_ceil(SwathWidthY - 1, myPipe->BlockHeight256BytesY) + myPipe->BlockHeight256BytesY; > - if (myPipe->BlockWidth256BytesC > 0) > + if (myPipe->BlockHeight256BytesC > 0) > *swath_width_chroma_ub = dml_ceil(SwathWidthY / 2 - 1, myPipe->BlockHeight256BytesC) + myPipe->BlockHeight256BytesC; > } > -- Hamza