Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3677041imw; Mon, 18 Jul 2022 12:28:38 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uHs7TTXKWIVcpOEZwgkBVxH66R9ofbvyulWZYV5bhfo5iLZr4kQJgqPfws56lzTVapQ0VU X-Received: by 2002:a63:2486:0:b0:412:9de2:eb49 with SMTP id k128-20020a632486000000b004129de2eb49mr26074278pgk.224.1658172517924; Mon, 18 Jul 2022 12:28:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658172517; cv=none; d=google.com; s=arc-20160816; b=eR3Mn0MTu65fS2gBbUTYJMFGqqW8wdgwZg1TC+MXfcH881bFkmmbzKBLfCxD6GZ2yH SVjaUcEuGj9DP6THvE7BFePaNl+vw0hHP2L6Pdk/ZqLcmkWF/gMZbLbq2rJ8CwjijsZy 1kZD0hqmOAS1q/lMgA9s9NfPRcXcErOqEy/ja1cvGZpLzWPATdtRbp6y2ZNSFoSQA4zI LKSGcLKyqdwQGzV146CESbPMgfT+FLmigH/13XwHKcFcdsWKI5+zRXEheI2HB9iWERxX WkLLnHz04jK3JwUfttBV8LkN8PHYcCIO7AWfhqiZQNylfV5yWv9AOGvTW751SqyjYbox s5Vw== 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=oGwjE6MIwO4ucRosF+8m5EnWnpdyb5yp48oQst1QNMs=; b=hX6OkTAP6XYNMgzUQkHJVwpqzR+OXK1dNlqPlSZdiBBagSkmhVBufK5qbr0ymRWDim cAeOZEe3+4GBUzeKZpBdNDHiNs0e5/hfDb/hWOYfON6FuDRag0L+IAjRohmuNv1zQ1YC 3lLaQhkJZx1IA0V7VldzmQDMzpPVKaD1kGyKReXtd0aLI7cpH5/tt7yw22CygjJSilRW XV208A7ywCxRdIlP0jLB+BMrc87fBKzHdceuBge5lJs6Dr/wwBfajk0Qoc3lYjU49ivW spl5ApvRWgc0/W70rXkhG6lAvKqO75fI2WT2MznbJ5IqYfCjopYGBnCbec6wnuNYiRis EVhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="Hw/cn955"; 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 m29-20020a63711d000000b00412a01e9b07si9920512pgc.847.2022.07.18.12.28.23; Mon, 18 Jul 2022 12:28:37 -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="Hw/cn955"; 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 S233811AbiGRSyl (ORCPT + 99 others); Mon, 18 Jul 2022 14:54:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231264AbiGRSyi (ORCPT ); Mon, 18 Jul 2022 14:54:38 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7CB32E9C9 for ; Mon, 18 Jul 2022 11:54:37 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id z23so22986396eju.8 for ; Mon, 18 Jul 2022 11:54:37 -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=oGwjE6MIwO4ucRosF+8m5EnWnpdyb5yp48oQst1QNMs=; b=Hw/cn955r/+L1mdh7/c5e/DT+5UqIfu0y3ea6tKR6CyaJ9S5iNsdwx+JFPhDHvAMAi pBAtYPvKlwTL6EJKbCJontOplOeipTpHFNlHopuvVaRAwz9lSjChwOl/kcmP13Yf/wAF 4Xf+Io0yb+Pn6H09XEqRRqTQXauDq88ix8d0WmnbxD30Lxh2Cn1dVUjLewfzlKy/ajKO /5xNRs+yZo33NRk400jh1IRcY1ijRv1opDzReGVUQxM3+aOWGEjTdYESbKBFrrHk5hMa 0YqwT4Gg4qmh6iYJSXxFfbJZLpZOBUiWXCw9SipgMxMF6fRi0uoR679GUzZfYRA+/B64 4IwA== 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=oGwjE6MIwO4ucRosF+8m5EnWnpdyb5yp48oQst1QNMs=; b=XpEl7Db6e82puhcQEmZBNFrfREsiYrls9A9J945JAg7TkXXHAVYkIW7EkQBMFCmC3u OH0dS87Zm11Mt0MugqVvCu4lhS8OrdBNR3GMgPZ9HuxLXFIW1XADZrrsW+dqDXwEvdTL MSsqsUU0lGhllVH6q+WKYtK5s9PAXRVOtVILVLuqdhPLInX/5/hYofBSpJ7cpDMmCTxY 3SOUK0lh6AZszrEDtEPWrV0Ca7ylKMOJuJF01bsQ6gznkepkexT/s9aLIPNmE5Gz82K8 KTiizzfUWGgS2onDLSMjDiacFXS9xEuiped+Qm++KPIKOBHqstO+NuEJPFtXTLLhy6+7 ph6A== X-Gm-Message-State: AJIora/qZ5i7fiu57vMT9hcDsK1UV/7ilnT79cMkG/DYqLW75atfGlrV 3vUdllfpzkj7PmgY7hvMuHpKjFaAWVgO9kd59K4= X-Received: by 2002:a17:906:58d5:b0:72f:2b21:eb20 with SMTP id e21-20020a17090658d500b0072f2b21eb20mr6790627ejs.508.1658170476337; Mon, 18 Jul 2022 11:54:36 -0700 (PDT) MIME-Version: 1.0 References: <20220714164507.561751-1-mairacanal@riseup.net> <20220714164507.561751-4-mairacanal@riseup.net> In-Reply-To: <20220714164507.561751-4-mairacanal@riseup.net> From: Alex Deucher Date: Mon, 18 Jul 2022 14:54:24 -0400 Message-ID: Subject: Re: [PATCH 04/12] drm/amd/display: Remove unused dml32_CalculatedoublePipeDPPCLKAndSCLThroughput function 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 Applied. Thanks! Alex On Thu, Jul 14, 2022 at 12:45 PM Ma=C3=ADra Canal w= rote: > > Remove dml32_CalculatedoublePipeDPPCLKAndSCLThroughput function, which is= not used in > the codebase. > > This was pointed by clang with the following warning: > > drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn32/display_mode_vba_util_= 32.c:393:6: > warning: no previous prototype for function > 'dml32_CalculatedoublePipeDPPCLKAndSCLThroughput' [-Wmissing-prototypes] > void dml32_CalculatedoublePipeDPPCLKAndSCLThroughput( > ^ > drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn32/display_mode_vba_util_= 32.c:393:1: > note: declare 'static' if the function is not intended to be used outside= of > this translation unit > void dml32_CalculatedoublePipeDPPCLKAndSCLThroughput( > ^ > static > 1 warning generated. > > Signed-off-by: Ma=C3=ADra Canal > --- > .../dc/dml/dcn32/display_mode_vba_util_32.c | 54 ------------------- > 1 file changed, 54 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_ut= il_32.c b/drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32= .c > index 5a701d9df0f7..4d62ab0c1a78 100644 > --- a/drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c > +++ b/drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c > @@ -390,60 +390,6 @@ void dml32_CalculateBytePerPixelAndBlockSizes( > #endif > } // CalculateBytePerPixelAndBlockSizes > > -void dml32_CalculatedoublePipeDPPCLKAndSCLThroughput( > - double HRatio, > - double HRatioChroma, > - double VRatio, > - double VRatioChroma, > - double MaxDCHUBToPSCLThroughput, > - double MaxPSCLToLBThroughput, > - double PixelClock, > - enum source_format_class SourcePixelFormat, > - unsigned int HTaps, > - unsigned int HTapsChroma, > - unsigned int VTaps, > - unsigned int VTapsChroma, > - > - /* output */ > - double *PSCL_THROUGHPUT, > - double *PSCL_THROUGHPUT_CHROMA, > - double *DPPCLKUsingdoubleDPP) > -{ > - double DPPCLKUsingdoubleDPPLuma; > - double DPPCLKUsingdoubleDPPChroma; > - > - if (HRatio > 1) { > - *PSCL_THROUGHPUT =3D dml_min(MaxDCHUBToPSCLThroughput, Ma= xPSCLToLBThroughput * HRatio / > - dml_ceil((double) HTaps / 6.0, 1.0)); > - } else { > - *PSCL_THROUGHPUT =3D dml_min(MaxDCHUBToPSCLThroughput, Ma= xPSCLToLBThroughput); > - } > - > - DPPCLKUsingdoubleDPPLuma =3D PixelClock * dml_max3(VTaps / 6 * dm= l_min(1, HRatio), HRatio * VRatio / > - *PSCL_THROUGHPUT, 1); > - > - if ((HTaps > 6 || VTaps > 6) && DPPCLKUsingdoubleDPPLuma < 2 * Pi= xelClock) > - DPPCLKUsingdoubleDPPLuma =3D 2 * PixelClock; > - > - if ((SourcePixelFormat !=3D dm_420_8 && SourcePixelFormat !=3D dm= _420_10 && SourcePixelFormat !=3D dm_420_12 && > - SourcePixelFormat !=3D dm_rgbe_alpha)) { > - *PSCL_THROUGHPUT_CHROMA =3D 0; > - *DPPCLKUsingdoubleDPP =3D DPPCLKUsingdoubleDPPLuma; > - } else { > - if (HRatioChroma > 1) { > - *PSCL_THROUGHPUT_CHROMA =3D dml_min(MaxDCHUBToPSC= LThroughput, MaxPSCLToLBThroughput * > - HRatioChroma / dml_ceil((double) = HTapsChroma / 6.0, 1.0)); > - } else { > - *PSCL_THROUGHPUT_CHROMA =3D dml_min(MaxDCHUBToPSC= LThroughput, MaxPSCLToLBThroughput); > - } > - DPPCLKUsingdoubleDPPChroma =3D PixelClock * dml_max3(VTap= sChroma / 6 * dml_min(1, HRatioChroma), > - HRatioChroma * VRatioChroma / *PSCL_THROU= GHPUT_CHROMA, 1); > - if ((HTapsChroma > 6 || VTapsChroma > 6) && DPPCLKUsingdo= ubleDPPChroma < 2 * PixelClock) > - DPPCLKUsingdoubleDPPChroma =3D 2 * PixelClock; > - *DPPCLKUsingdoubleDPP =3D dml_max(DPPCLKUsingdoubleDPPLum= a, DPPCLKUsingdoubleDPPChroma); > - } > -} > - > void dml32_CalculateSwathAndDETConfiguration( > unsigned int DETSizeOverride[], > enum dm_use_mall_for_pstate_change_mode UseMALLForPStateC= hange[], > -- > 2.36.1 >