From patchwork Wed May 26 08:46:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 448139 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp5016959jac; Wed, 26 May 2021 01:47:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOxSR/a3X1J/E+2zXg+gJJgtd8UUamFwtaGzfFdPYpM50SGtP/R1LoODn83k+7zL8RrgDi X-Received: by 2002:a17:90a:8e82:: with SMTP id f2mr2900995pjo.157.1622018862262; Wed, 26 May 2021 01:47:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622018862; cv=none; d=google.com; s=arc-20160816; b=xv5cqqP4yOGvSCEDjoa8JyQcUuClmyNTguuUkVeY28zyHMf1ZtyFViyyNwKjT5ARup ipl4HciW7Jnguv3hwLQVFiEvscN0oY+tjdeYvTpOpzOSZJZrk++MV1MlHmp+RH017qxE 3GceMiKOMvPgWB7ur79MMavF6/R8tknLlxpFCtRJL0cnzfYcHVi8QQ2A36OlamMCDf+0 KQUS9xSAbWdIJzZXn9WysDKb8D/JPK5kkVvNXXE9fg90UzBy3s34WRXaS0KlYiUlgRC6 +sNFI4VSnhvPzboGknqzvTMd1SmnESaMccB5CxCUvNR/qP8hIbK1dOMSaChZeXc5SfBp PBJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:delivered-to; bh=6noTtcFdzAM4mRtKAmNKqowB17kNzJ46dcIfcnLdMB8=; b=VF5c3zJFNQBKw93hOAQfQeiWK29+JWuTZicWo3o8vBeX1Bu5JfhtUvYi2JkO7+Zlct 6vawEvLkZQZMgG6OaWvJFkDreIs/pg8Z5SZ6rDOE3Mfv3tAVwm1HbIbh/xYkMp1N30pf OajOmm4yiILU1K+QMUoOGntvzaeGQpthkxlZnCfXLIeKQrY0a/fS08yiB3Jwt4rGjvSr bwvmbzlbW72b0ySs1Jr47EhF0x8+oAYPc3qstB9M/dU+EuSWCLZlqkIIZCqdSuTZ82v7 eycwUa33Tfi62y0vsXlo1I5EO15i0+vCCgFT6PKOPY/ZRMS/6E3RAcrB7ThMRvv70o/o naBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=RZRDWvzH; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 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. [131.252.210.177]) by mx.google.com with ESMTPS id h193si24528616pfe.171.2021.05.26.01.47.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 May 2021 01:47:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=RZRDWvzH; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 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 1615B6EC32; Wed, 26 May 2021 08:47:36 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by gabe.freedesktop.org (Postfix) with ESMTPS id E94876EC33 for ; Wed, 26 May 2021 08:47:32 +0000 (UTC) Received: by mail-wr1-x436.google.com with SMTP id n4so222684wrw.3 for ; Wed, 26 May 2021 01:47:32 -0700 (PDT) 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=6noTtcFdzAM4mRtKAmNKqowB17kNzJ46dcIfcnLdMB8=; b=RZRDWvzHNmKISbyL/y7tncGD6OlregtD8vbp5d/rmc0PNGq6sghfzAZpXIe2PuELFw Bl1gg68glEy2naNn9LnTRH2OEEqMjSt2RTKm/7jbmXscdFxuK8CWcUGb/vXCoQfWtJTk /aQCyRZ9whXV/5z0rECrM+Xhv7rb8OCYw5pWY7z9cnUp9F4RSx6QshjN30+bDnJ7f5/U FM45gqEUoo98DgxJer6yTzB/Razb2X3ch0zQNmp85X4rpnSrCDr8+ICEhSO3EPBjU5of GQMhOB5m59Zl9sLle9jZmHDPMyzPnptje0Xt7a9qjMhnYHHKm1eSSNeIPMNm2d2PrSMH boSg== 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=6noTtcFdzAM4mRtKAmNKqowB17kNzJ46dcIfcnLdMB8=; b=XEKqianPd84FcJkMaMr8ZfL04ecvndSni+wMs55TRAxtC+1g5G0K58m9gHf4XLdXVS U4i56lw6xwC2CdAHDyX+diOyzkSGdwFV1+tCRFw7aQeGGGxceDAsgH3pIF1TJzaslI8R T24JPe0IzhxQZHj9wLDKG53wkr2r61QAeoWO9njDE7GqszFikJQfVhgc5OxZFL9mCjst IGZskDP/D/8gTJdCQixBNah7my5zgkpc+bOoGivD9ZDmz+Uxf559xpNRnGl+BIq2xxkd FsDlJr9vcNHxxAHpioYIb4E1p/Q6EKV9/jfiZ2nH37bOFDy6xNgKH2G89tETPR/71vnN DdTQ== X-Gm-Message-State: AOAM531AfUzE1nk9JsGwG30Ot3HJMjDipajZd0kvpbsVYLvZI6I1HGFK UpB9RnMLw9Jdn6Hj0XfBhHqfyQ== X-Received: by 2002:adf:eacf:: with SMTP id o15mr31088295wrn.219.1622018851572; Wed, 26 May 2021 01:47:31 -0700 (PDT) Received: from dell.default ([91.110.221.223]) by smtp.gmail.com with ESMTPSA id l18sm18911918wrt.97.2021.05.26.01.47.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 May 2021 01:47:31 -0700 (PDT) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 01/34] drm/amd/pm/inc/smu_v13_0: Move table into the only source file that uses it Date: Wed, 26 May 2021 09:46:53 +0100 Message-Id: <20210526084726.552052-2-lee.jones@linaro.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210526084726.552052-1-lee.jones@linaro.org> References: <20210526084726.552052-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 , Kevin Wang , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Alex Deucher , =?utf-8?q?Christian_K=C3=B6?= =?utf-8?q?nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../pm/inc/smu_v13_0.h:54:43: warning: ‘smu13_thermal_policy’ defined but not used [-Wunused-const-variable=] Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Kevin Wang Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/amd/pm/inc/smu_v13_0.h | 6 ------ drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) -- 2.31.1 diff --git a/drivers/gpu/drm/amd/pm/inc/smu_v13_0.h b/drivers/gpu/drm/amd/pm/inc/smu_v13_0.h index 1687709507b3d..6119a36b2cba0 100644 --- a/drivers/gpu/drm/amd/pm/inc/smu_v13_0.h +++ b/drivers/gpu/drm/amd/pm/inc/smu_v13_0.h @@ -51,12 +51,6 @@ #define CTF_OFFSET_HOTSPOT 5 #define CTF_OFFSET_MEM 5 -static const struct smu_temperature_range smu13_thermal_policy[] = -{ - {-273150, 99000, 99000, -273150, 99000, 99000, -273150, 99000, 99000}, - { 120000, 120000, 120000, 120000, 120000, 120000, 120000, 120000, 120000}, -}; - struct smu_13_0_max_sustainable_clocks { uint32_t display_clock; uint32_t phy_clock; diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c index d62cc6bb1a305..d6ce665baaf3b 100644 --- a/drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c +++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c @@ -78,6 +78,12 @@ #define smnPCIE_ESM_CTRL 0x111003D0 +static const struct smu_temperature_range smu13_thermal_policy[] = +{ + {-273150, 99000, 99000, -273150, 99000, 99000, -273150, 99000, 99000}, + { 120000, 120000, 120000, 120000, 120000, 120000, 120000, 120000, 120000}, +}; + static const struct cmn2asic_msg_mapping aldebaran_message_map[SMU_MSG_MAX_COUNT] = { MSG_MAP(TestMessage, PPSMC_MSG_TestMessage, 0), MSG_MAP(GetSmuVersion, PPSMC_MSG_GetSmuVersion, 1),