From patchwork Thu Nov 26 13:42:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 332991 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp155930ejs; Thu, 26 Nov 2020 05:43:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJwPR5fcycloGKj7g0VV0Fz0apRwHTbM+4utXcDs4SuQMhzdqsiQPd3pvf7ka71P8NAiV2Sl X-Received: by 2002:a17:90a:ca97:: with SMTP id y23mr3719420pjt.186.1606398210816; Thu, 26 Nov 2020 05:43:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398210; cv=none; d=google.com; s=arc-20160816; b=qsJAoXfBTlKcHh/3jX4Hz9RGEl2rJpX2bItp4b6XITxYDm6cKZ1vzFwLJreLNW942G 2lTzR6xtIBo4E4syayZ3ANyOM9gxQ+hWXWWJn/vL1J1I6c9zbCryoKiNyOXgaxeMi3+5 8ybpHTP+e6riz6pgBVtNC8Bty9+hEtoVv2q0Q/cPS6gkSSZVEcTpO+jMGoq4teeUNWx8 Ly+xzm93EQWBsmf0sAAwsPUgaljaUbmovZ7GU0qw64yPV6JNJj9b1IV6t0ff7pJbC1YI h1pPxCXwLRTFs3QpD7gQX+Za8aEBF8s99YFNgzhltVf52rXOf1ARxBf28C1zlDdFGxZo qgpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=ppYUaXuG0/xrNeauE1wL8i2yoVeLX5GBW7JIbgdXd5U=; b=0SejYka0zYGUABxegwSUYwoPl7t3mpgzsJLHXYabrqWMzXzWFIVyC1qnDDz758U/cC 4U3Oy5fXBx7mpMdC4RuRcP62ZuuL5tw+/PJbHcUZbBV4UhSQTqJR+fL681bqG30gwNPG H/HGTorc4q1e2dSvYZwaovcKduxBvIvnx4iPs0AAUdPWk0e0jkcGMVjqmBmvBS72bSZi NbB8saPcn0G6xYpY7ZbLLEuLEK75WM+tfPS7omloM5IKZwXYCnyg6jmKykPIl7XbAvgN I9IT6QpXT6R2vu80Fs252Dww3nYu+oFLZ5tAt1qrM8zOr+m/owafNy/CV7OCJHlNRMnl ilJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=jTnOPgnf; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id n188si5964459pgn.300.2020.11.26.05.43.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=jTnOPgnf; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5AFBB6E972; Thu, 26 Nov 2020 13:43:19 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by gabe.freedesktop.org (Postfix) with ESMTPS id 470616E957 for ; Thu, 26 Nov 2020 13:43:05 +0000 (UTC) Received: by mail-wm1-x344.google.com with SMTP id a3so2446572wmb.5 for ; Thu, 26 Nov 2020 05:43:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rnrdHuM/rWXAPsRk8sa0DBTjM6BaG4gFKqaiWF+hjeo=; b=jTnOPgnfrpvpHF84PHFE7DnpVaSfxOChEK41IUniXvhcZ/Bb0XWmeAg5q91br7B7BB o/mPFf5RNvzDZPdgbCeCfjHkRicpqsHLnv+y5bffqrxZZUdyvGsBtuXCDUP/GEaPUXJu NB0dpr8kGWnxtqqWkkLLkCmlMYI+vvkICtDD0gttaL+ml1SalHU5RUNy94tqoBXGVVd5 RZW+HpeXDAMcMX/2sJMADVt9kHDCsHDT1MRw5caLvQh8xyH6v4PoaM+N8MIBp1YZrVai MX/2DnCdkosdZBehROI0YzjK4zwU+GvTCjGRQUboCieyD8LBk/gg7kIGx4v0thQC11sJ +yIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rnrdHuM/rWXAPsRk8sa0DBTjM6BaG4gFKqaiWF+hjeo=; b=pozMPKo2RgOpi9PZdhwxcJKjAWDczt8CVtl0obTECIsIEf575WKb7qJFDcz8Hohc2A PhlIcEdQXOHTYjh/7zNQeGkiLllrxGdZppqp0XdD0FoUJCvGjPJK9Rsj9uN6JrQLXj1E GNKXbf6t+YILDckuY7BejqGwerx1C67oG0BhEbFhCvB2iD+M/WfIx1claC5RFyBtRFpm A0VErxKjrqALPey+FAacTnj1Kdhr73rwUk27vdRMAKI9tyvT7ixMKU0iGyl3xCvg05MQ kViEZBiOmU+u7cUmOqnsqYdd6xOawVx78x+Gb7MKjr/ipNTBcCZ5vObb6LiSAqfoa5Rj XFvA== X-Gm-Message-State: AOAM532Pl2ugmU/yY+yeYJvTZAmDE355FJl9xswW3NU97uKtkagXpO6Y 9+LvgKSWiIzVYHEQeBQ+qXGFqQ== X-Received: by 2002:a1c:2001:: with SMTP id g1mr3487005wmg.179.1606398183970; Thu, 26 Nov 2020 05:43:03 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:03 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 12/40] drm/amd/pm/powerplay/hwmgr/ppatomctrl: Remove unused variable 'fPowerDPMx' Date: Thu, 26 Nov 2020 13:42:12 +0000 Message-Id: <20201126134240.3214176-13-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201126134240.3214176-1-lee.jones@linaro.org> References: <20201126134240.3214176-1-lee.jones@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Alex Deucher , Evan Quan , =?utf-8?q?Christian_K=C3=B6nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): In file included from drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:31: drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c: In function ‘atomctrl_calculate_voltage_evv_on_sclk’: drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:702:22: warning: variable ‘fPowerDPMx’ set but not used [-Wunused-but-set-variable] Cc: Evan Quan Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c index c2fee6796bd93..2cb913ab77f26 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c @@ -699,7 +699,7 @@ int atomctrl_calculate_voltage_evv_on_sclk( fInt fMargin_RO_a, fMargin_RO_b, fMargin_RO_c, fMargin_fixed, fMargin_FMAX_mean, fMargin_Plat_mean, fMargin_FMAX_sigma, fMargin_Plat_sigma, fMargin_DC_sigma; fInt fLkg_FT, repeat; fInt fMicro_FMAX, fMicro_CR, fSigma_FMAX, fSigma_CR, fSigma_DC, fDC_SCLK, fSquared_Sigma_DC, fSquared_Sigma_CR, fSquared_Sigma_FMAX; - fInt fRLL_LoadLine, fPowerDPMx, fDerateTDP, fVDDC_base, fA_Term, fC_Term, fB_Term, fRO_DC_margin; + fInt fRLL_LoadLine, fDerateTDP, fVDDC_base, fA_Term, fC_Term, fB_Term, fRO_DC_margin; fInt fRO_fused, fCACm_fused, fCACb_fused, fKv_m_fused, fKv_b_fused, fKt_Beta_fused, fFT_Lkg_V0NORM; fInt fSclk_margin, fSclk, fEVV_V; fInt fV_min, fV_max, fT_prod, fLKG_Factor, fT_FT, fV_FT, fV_x, fTDP_Power, fTDP_Power_right, fTDP_Power_left, fTDP_Current, fV_NL; @@ -731,36 +731,28 @@ int atomctrl_calculate_voltage_evv_on_sclk( switch (dpm_level) { case 1: - fPowerDPMx = Convert_ULONG_ToFraction(le16_to_cpu(getASICProfilingInfo->usPowerDpm1)); fDerateTDP = GetScaledFraction(le32_to_cpu(getASICProfilingInfo->ulTdpDerateDPM1), 1000); break; case 2: - fPowerDPMx = Convert_ULONG_ToFraction(le16_to_cpu(getASICProfilingInfo->usPowerDpm2)); fDerateTDP = GetScaledFraction(le32_to_cpu(getASICProfilingInfo->ulTdpDerateDPM2), 1000); break; case 3: - fPowerDPMx = Convert_ULONG_ToFraction(le16_to_cpu(getASICProfilingInfo->usPowerDpm3)); fDerateTDP = GetScaledFraction(le32_to_cpu(getASICProfilingInfo->ulTdpDerateDPM3), 1000); break; case 4: - fPowerDPMx = Convert_ULONG_ToFraction(le16_to_cpu(getASICProfilingInfo->usPowerDpm4)); fDerateTDP = GetScaledFraction(le32_to_cpu(getASICProfilingInfo->ulTdpDerateDPM4), 1000); break; case 5: - fPowerDPMx = Convert_ULONG_ToFraction(le16_to_cpu(getASICProfilingInfo->usPowerDpm5)); fDerateTDP = GetScaledFraction(le32_to_cpu(getASICProfilingInfo->ulTdpDerateDPM5), 1000); break; case 6: - fPowerDPMx = Convert_ULONG_ToFraction(le16_to_cpu(getASICProfilingInfo->usPowerDpm6)); fDerateTDP = GetScaledFraction(le32_to_cpu(getASICProfilingInfo->ulTdpDerateDPM6), 1000); break; case 7: - fPowerDPMx = Convert_ULONG_ToFraction(le16_to_cpu(getASICProfilingInfo->usPowerDpm7)); fDerateTDP = GetScaledFraction(le32_to_cpu(getASICProfilingInfo->ulTdpDerateDPM7), 1000); break; default: pr_err("DPM Level not supported\n"); - fPowerDPMx = Convert_ULONG_ToFraction(1); fDerateTDP = GetScaledFraction(le32_to_cpu(getASICProfilingInfo->ulTdpDerateDPM0), 1000); }