Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3668019imw; Mon, 18 Jul 2022 12:17:36 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vqyGTfksuKljKqfvjU9tyqfqgtTHE1yE1qNOh8WBbI8G7bBljUVQ8OA0q/UgAM+xvdppde X-Received: by 2002:a17:903:1c8:b0:16c:4e2f:926f with SMTP id e8-20020a17090301c800b0016c4e2f926fmr29807810plh.76.1658171856529; Mon, 18 Jul 2022 12:17:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658171856; cv=none; d=google.com; s=arc-20160816; b=A6bMUdTZQzVTwD4HqrNyxNTiEdBqBQnY47fFdVgnEkVTrbxvbNEhCF5TiRvPnr8Sqw azQZzboxmMrba5S9uzPnPwyGlDJ5EIwuLeouBJHBtg1J3Kykd6xMBUtr8OtAkm+7k4Mu 6M27d8rC5BdfocrA++lZYetmChbI2/5y9KqPUqzBzV1FSdhCR6R1oM/GZf2AbWvTdY2O 8PJ8u//BZE2fnT8/pYGvf5kdFJ5hisu/TyrLN99Z9qIYzYLIZYTt3J0FofGCp39d0Y8v 4k2GcE8fY/n+SQ8O/iy1ka0T5vcsdvGKCQ4EIREaQB+Rw52xmy7UmefYNKouJeAqPOuZ JaQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=5eZUjMBlv+MHYtkWtM00Fh2DEyY+EQOvDm4200JOmkc=; b=Ny4FA1hjfEGEP0ng9EGZhc8yWBnh6X09V3R14S0Gx9R1kfQdQL2d4XZjf58e/nDsCe N9Mw/7U70+41hshtL/+nQoA3bN+UjIkPw+sZP1Gb3YO9W5zlV4JEs5DLcFTsJjdRjPwR 9TO1g2lUCVUfVxQAUxZoNO0AmGxDrcRuudAgQjjfRcF647wXrxfcPTZccf2X9lK5qGpk fD1aL1M3n1LjpJRebj8F4+60YwEYAakQ2FsxRQZHgQn9ETlbSvefVdOZbLTA8SYyCJpS oWcy7YndrW1hSviQL7mry53W8/r3iY2uLTYwZzCIQIWGr2J0qSE66n4iZMp95+owHonY Oz4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=QUNSfxy+; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q128-20020a632a86000000b004161e739b86si16285377pgq.731.2022.07.18.12.17.21; Mon, 18 Jul 2022 12:17:36 -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=@gmail.com header.s=20210112 header.b=QUNSfxy+; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234294AbiGRTCz (ORCPT + 99 others); Mon, 18 Jul 2022 15:02:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229890AbiGRTCy (ORCPT ); Mon, 18 Jul 2022 15:02:54 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 497BE2B278 for ; Mon, 18 Jul 2022 12:02:53 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id tk8so11672126ejc.7 for ; Mon, 18 Jul 2022 12:02:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=5eZUjMBlv+MHYtkWtM00Fh2DEyY+EQOvDm4200JOmkc=; b=QUNSfxy+Cb5amV/eOl1pSDwfWLs7tXgKRh9KTBSQ5AZzkYGjCQ0trWoeeOm+GhZFG2 Yvpz7/c9SzxH/gtw+ckQjPwhHlPgyact+idm7tj5XUJnqHkWShCGnTgAXjxUrkI6m0Ca 5OOcm0KMZbRafk3RUCKmf7KoQDrvxxnYl6LvGaWh5wmoLFCuYwhHqDXk6RKdLksG8KQJ 9dTP6VARVBnWD83LHsQnizjFJQt0lJOY2FYrssWyDkLU4qWkwm+O/FIuXd6ktR8ibp10 cZjeyZzlpWQ3fuhQz6sD90mtjLt9DsAdHAqeO9nsM0NXkRcgfT4MVHyLBHJNmmtmPiL0 SieA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=5eZUjMBlv+MHYtkWtM00Fh2DEyY+EQOvDm4200JOmkc=; b=butTqS5Wjdg1UodVsF0ipX7bFQqp9+Jxhb4ISRkIMK2pnvfWcWbaaF1s7/heizInbk a3Xry5UxXULZve/hg3Wgq/vcCgSbEJtP9et8JnPzOXUMpfss+UXZ21XlBN9rkIXjJOrD v2HmE/MRaOC8bO7BwiMlnfNp9YfFSPLudn2chPrA+TSqJhWBh20EGMirjxYKiriaDgYi B/14mxrLEKJc1XGr/Cril1Iys+9TtVgLUCJ2MDDnrtC+VwxWjofc7RjD7pI4eWz0kPcR bUlVJnPdbhkjdKlY+aP2N/qYw/AmpkaQ13mq9v/LKLDLIc8H1BAhkjMrYkDKIJEz+qVJ 0yrw== X-Gm-Message-State: AJIora/GIf2IVXNEiMvVJLKnN4zf7KiJjGNUZ+2NL4pxheRXwiLRbLYC ACG8rxmdlLYi4KVR7d9CfA+rFVgMwUZ4bgGuHEo= X-Received: by 2002:a17:906:9751:b0:72f:1b36:e1de with SMTP id o17-20020a170906975100b0072f1b36e1demr10911090ejy.451.1658170971881; Mon, 18 Jul 2022 12:02:51 -0700 (PDT) MIME-Version: 1.0 References: <20220714164507.561751-1-mairacanal@riseup.net> <20220714164507.561751-10-mairacanal@riseup.net> In-Reply-To: <20220714164507.561751-10-mairacanal@riseup.net> From: Alex Deucher Date: Mon, 18 Jul 2022 15:02:40 -0400 Message-ID: Subject: Re: [PATCH 10/12] drm/amd/display: Remove parameters from dml30_CalculateWriteBackDISPCLK To: =?UTF-8?B?TWHDrXJhIENhbmFs?= Cc: Harry Wentland , Leo Li , Rodrigo Siqueira , Alex Deucher , Christian Koenig , xinhui pan , David Airlie , Daniel Vetter , Nicholas Kazlauskas , Dmytro Laktyushkin , Aurabindo Pillai , Magali Lemes , Tales Lelo da Aparecida , LKML , amd-gfx list , Melissa Wen , Isabella Basso , andrealmeid@riseup.net Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Thu, Jul 14, 2022 at 12:46 PM Ma=C3=ADra Canal w= rote: > > The parameters WritebackPixelFormat and WritebackVRatio are removed as > they are not used on the function dml30_CalculateWriteBackDISPCLK. Maybe this is done for consistency with other dml code for other DCN blocks= ? Alex > > Signed-off-by: Ma=C3=ADra Canal > --- > drivers/gpu/drm/amd/display/dc/dml/dcn30/dcn30_fpu.c | 2 -- > .../gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c | 6 ------ > .../gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.h | 2 -- > 3 files changed, 10 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/dml/dcn30/dcn30_fpu.c b/drive= rs/gpu/drm/amd/display/dc/dml/dcn30/dcn30_fpu.c > index a8db1306750e..746bb93ade6c 100644 > --- a/drivers/gpu/drm/amd/display/dc/dml/dcn30/dcn30_fpu.c > +++ b/drivers/gpu/drm/amd/display/dc/dml/dcn30/dcn30_fpu.c > @@ -322,10 +322,8 @@ void dcn30_fpu_populate_dml_writeback_from_context( > * parameters per pipe > */ > writeback_dispclk =3D dml30_CalculateWrit= eBackDISPCLK( > - dout_wb.wb_pixel_format, > pipes[pipe_cnt].pipe.dest= .pixel_rate_mhz, > dout_wb.wb_hratio, > - dout_wb.wb_vratio, > dout_wb.wb_htaps_luma, > dout_wb.wb_vtaps_luma, > dout_wb.wb_src_width, > diff --git a/drivers/gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30= .c b/drivers/gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c > index 876b321b30ca..37049daaab4c 100644 > --- a/drivers/gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c > +++ b/drivers/gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c > @@ -1938,10 +1938,8 @@ static void DISPCLKDPPCLKDCFCLKDeepSleepPrefetchPa= rametersWatermarksAndPerforman > if (v->WritebackEnable[k]) { > v->WritebackDISPCLK =3D dml_max(v->WritebackDISPC= LK, > dml30_CalculateWriteBackDISPCLK( > - v->WritebackPixelFormat[k= ], > v->PixelClock[k], > v->WritebackHRatio[k], > - v->WritebackVRatio[k], > v->WritebackHTaps[k], > v->WritebackVTaps[k], > v->WritebackSourceWidth[k= ], > @@ -3284,10 +3282,8 @@ static double CalculateTWait( > } > > double dml30_CalculateWriteBackDISPCLK( > - enum source_format_class WritebackPixelFormat, > double PixelClock, > double WritebackHRatio, > - double WritebackVRatio, > unsigned int WritebackHTaps, > unsigned int WritebackVTaps, > long WritebackSourceWidth, > @@ -3794,10 +3790,8 @@ void dml30_ModeSupportAndSystemConfigurationFull(s= truct display_mode_lib *mode_l > if (v->WritebackEnable[k] =3D=3D true) { > v->WritebackRequiredDISPCLK =3D dml_max(v->Writeb= ackRequiredDISPCLK, > dml30_CalculateWriteBackDISPCLK( > - v->WritebackPixel= Format[k], > v->PixelClock[k], > v->WritebackHRati= o[k], > - v->WritebackVRati= o[k], > v->WritebackHTaps= [k], > v->WritebackVTaps= [k], > v->WritebackSourc= eWidth[k], > diff --git a/drivers/gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30= .h b/drivers/gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.h > index daaf0883b84d..12c070434eee 100644 > --- a/drivers/gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.h > +++ b/drivers/gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.h > @@ -29,10 +29,8 @@ > void dml30_recalculate(struct display_mode_lib *mode_lib); > void dml30_ModeSupportAndSystemConfigurationFull(struct display_mode_lib= *mode_lib); > double dml30_CalculateWriteBackDISPCLK( > - enum source_format_class WritebackPixelFormat, > double PixelClock, > double WritebackHRatio, > - double WritebackVRatio, > unsigned int WritebackHTaps, > unsigned int WritebackVTaps, > long WritebackSourceWidth, > -- > 2.36.1 >