From patchwork Thu Nov 26 13:42:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 332978 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp155509ejs; Thu, 26 Nov 2020 05:42:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJwdVfkF9n+4FDnY5wX9ZTWGhbnIXaXKshe4GTUF/kxX5ZylZPKS/Ix/E9UFtW5TuUsXKJE/ X-Received: by 2002:a63:6341:: with SMTP id x62mr2614487pgb.93.1606398173547; Thu, 26 Nov 2020 05:42:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398173; cv=none; d=google.com; s=arc-20160816; b=nRrNGsd5LZuMuDhLGV39ADAEzIhmarxeIWbM6CZSBfPuXy5jYtcS080MiFScUJAFjR 43hMppcxnQ2mx2yV+dG+wdzl9ur4tQxnudS7K/ouG1fskTYoS7nmDGH+mXEwQW3xnZSb g2dVhI7D6WNzXnwWvmS2zeZqPC4EKjPLALGVjhjspD75Aj/KRvRkeDAJfqm0gUSoEQIZ D5i9hEbxC8DqEYlutg6Gw5R3euWRZ0joV1MTf/VHF/vkY/uXqCg+3gKRMtf36em171sq s2o9pC4zYHd9o4sMuexJstPWyrKfzjHF60gR3eK+mZvfl8Lyy3Pia+T1YVuAhPYCuZpb tpCQ== 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=TXB6+YXH3sAoBcPdXACbAqPeUBg347ZVdY6AV8HAiG4=; b=JB/szTPty1yY3vYFpkWZ8V0G1xvmqvL3a2RFf+SkiKh5dIL/bl2yvusvJkyecuxOHV ibkeskbjzkhUAiQssXGyvImDuxIuntk6jhF8yol2H7mNkPM01qb1G54dqh5Jk5jyXlhs 6Yc2HO3I9VvwzV8mJiQmZxYBU/Gm9lE5RzSCCqOAL/UHBdLNX6A4JBDefOvmhzFyq44E 6mSrwm0HPFdez7zSlmYMRl4oT1QRd5b+fpamIB5Rn/60c/YCfTkcI0XeYiz6Gcm/fVs1 dbesBymiZs7TcNrCjPIkTm8LN+gDvlbF1O+XqGtnV0gSMN3i/9rkRnMd3ge/G/bTFPpz 7gBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=sRGeaUQG; 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 c5si2057232pjn.84.2020.11.26.05.42.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:42:53 -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=sRGeaUQG; 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 54B7B6E950; Thu, 26 Nov 2020 13:42:50 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by gabe.freedesktop.org (Postfix) with ESMTPS id D4A186E950 for ; Thu, 26 Nov 2020 13:42:47 +0000 (UTC) Received: by mail-wm1-x341.google.com with SMTP id 1so2455285wme.3 for ; Thu, 26 Nov 2020 05:42:47 -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=YuzX4IvswDkJ8SA2+BkBhvbot5/c2/3wXnFFxZJ8VHQ=; b=sRGeaUQGfXY/xtrrAXDFNvJrX3YKVvXloSsB437HHje8kVce4ACPjCwY2I+mqD4Ntn R36M0zwVsj+jWH9K0pApQNqSDZXF9SNbtgkJiBPwo3+1Dp3oZew2onO4cF/ygdNH90i8 vLGPicCNcRFzYM5NkLCrj9rNXGTUnwxHYq+xeG56NMLOUvGZOgFBKSOL9m3DDDgQPQ3L zYo+cQnG6BEMvVyiquM9HL9I+WDDvXSJka74EwuqIxRA862k9s377J9nWHyMRAS2Zr+a cwVBb8x9aH+3e1v5ss4W8ZsDENgF0tKInWFDh3TT08apWnP+5+hfO3XmYMY/gaefgXdB NWsg== 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=YuzX4IvswDkJ8SA2+BkBhvbot5/c2/3wXnFFxZJ8VHQ=; b=Yq9d0zYTlpQiHMluG3vKozo8oUl93jFtXVRDeBSK+3ooGj6CiEHPmJic+2BxokuBXv 87fofDNmkxPBSjGcGqHKp0SCyyYiZmQwBPpcQV2+MxAOliT0/V6ADCM1nR7ayH4Euz72 JZPEB+r9uLpjM0qjxghJq7HnBxsNXlg6aggOIQlTRWoIgfMlx5mBUx3zRguwcavpqGVS 6rkYmLSPgMBCD5u3mwDG/EKFSYNbqDFXfyPCq4pdLXsDrpE6M+BfTczgW2kNhv6k9knY DfHdPtLu+LFdcrgbC4WgY2B21Ud2RVrroTLo69tripeGSc+bpChlCk959i80nOfHZS0z yJhg== X-Gm-Message-State: AOAM530tOJVxsc5bC66/9sRG7hmjVL9nmoJJwTsPkFH8onoJUkZPVwcc vmNVmWOyOkduAfxwJhSngTjkng== X-Received: by 2002:a1c:2284:: with SMTP id i126mr3459973wmi.43.1606398165341; Thu, 26 Nov 2020 05:42:45 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.42.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:42:44 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 01/40] drm/amd/pm/powerplay/smumgr/tonga_smumgr: Remove set but unused variable 'res' Date: Thu, 26 Nov 2020 13:42:01 +0000 Message-Id: <20201126134240.3214176-2-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): drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c: In function ‘tonga_thermal_setup_fan_table’: drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2469:6: warning: variable ‘res’ 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/smumgr/tonga_smumgr.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/smumgr/tonga_smumgr.c b/drivers/gpu/drm/amd/pm/powerplay/smumgr/tonga_smumgr.c index 4bfadb49521bc..c28f3e1299701 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/smumgr/tonga_smumgr.c +++ b/drivers/gpu/drm/amd/pm/powerplay/smumgr/tonga_smumgr.c @@ -2466,7 +2466,6 @@ static int tonga_thermal_setup_fan_table(struct pp_hwmgr *hwmgr) uint32_t t_diff1, t_diff2, pwm_diff1, pwm_diff2; uint16_t fdo_min, slope1, slope2; uint32_t reference_clock; - int res; uint64_t tmp64; if (!phm_cap_enabled(hwmgr->platform_descriptor.platformCaps, @@ -2539,11 +2538,9 @@ static int tonga_thermal_setup_fan_table(struct pp_hwmgr *hwmgr) fan_table.FanControl_GL_Flag = 1; - res = smu7_copy_bytes_to_smc(hwmgr, - smu_data->smu7_data.fan_table_start, - (uint8_t *)&fan_table, - (uint32_t)sizeof(fan_table), - SMC_RAM_END); + smu7_copy_bytes_to_smc(hwmgr, smu_data->smu7_data.fan_table_start, + (uint8_t *)&fan_table, + (uint32_t)sizeof(fan_table), SMC_RAM_END); return 0; } From patchwork Thu Nov 26 13:42:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 332979 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp155538ejs; Thu, 26 Nov 2020 05:42:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJwow58ohnenOJHl0P5/iM4eWosRUO3of0Qgh2MBn3k5i7XrGEOkDYaWF1dvE0MTE77Nzrhb X-Received: by 2002:a65:6649:: with SMTP id z9mr2684363pgv.156.1606398176067; Thu, 26 Nov 2020 05:42:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398176; cv=none; d=google.com; s=arc-20160816; b=F1myrv3fgqlCJhNwQEPrIw7rTUtTUPw1eKoxKHjpcIoSCog9qHMCxMMQFKRQ/j1zyo RqjxBmdjs74ceLjyMIUUu5J0vjL8ujijLCwxDoDSGMv1kgmJuCIy/AhvF8jvDmQxAcHI ESBVp0lKbWaAG5RE187WJawKp3hxbEQyDjbPnTyYmQJFM3TIJQB7X4yjD5cCskFtP4gI Xt3eZcskdsboT8BgMYfcxTzbpP+FnpQwFZstgUSsZGU/djkaQn6ca5jiN8Y4guK4nFTv GpzHTbVA3w9FQgCT9AKHxUzyYqh0a45+xSzpEjMyoF+q6bMIC49fzKAd7IhDbt7SGQKG Z/Aw== 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=u8uWJeorcuGeG2B7zRf8qsSTyJE+Eh3ZzdepcU/JOCY=; b=RQsjWL/aLQ08JkA+ItP3Dc97Z5R5nS1YY3V5hK9aGkv8A16jx8wJErdqRLjl91STLn GL0wBw6Zz54L8rAQUHunYKYeagQMcwe09tEml6hSp5Vn2WI0sV/Bay6XNZWK5LHu7y/X UI+KUPgoi+Wo3x5SL3221lPgPOudtNP19EPryjoAcrTp/23MNmZNQYPJDMN9Z9K9MOVV u9rtxpoezHUZsaaZSfa1RNLeOn3SQl8Zcc2tJPBpYvmPZDfkwTjqzUSgzZp05c/JJbZ+ Ij9bhDB1ocSNgM2KIZj46hK+g1+A7HJm9WQyBH6ADmtX297ErEN2DysSoHiB0Ls1P5ky BccQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=e1rVMTz6; 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 y7si5220788pfq.154.2020.11.26.05.42.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:42:56 -0800 (PST) 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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=e1rVMTz6; 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 5E1E26E951; Thu, 26 Nov 2020 13:42:50 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by gabe.freedesktop.org (Postfix) with ESMTPS id E76996E951 for ; Thu, 26 Nov 2020 13:42:47 +0000 (UTC) Received: by mail-wr1-x444.google.com with SMTP id r3so2213394wrt.2 for ; Thu, 26 Nov 2020 05:42:47 -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=dmY41ceyc6chYcpESZmZP3QGDnanFIcluGLqchr029A=; b=e1rVMTz6bLbCWASJmqUfDpitRKv9ISCBYaTNCD0SsSAd2EevlEBxrDdSKB+rQAYuFU 8rr0oxy3WkZj1teuHpAo7OhQRMfaVPWERVifkADPWDCscLCwxlhpbpAl2LORsJ9Ui0rg OObbVbb/IohqBdFI9IFOxkjXusCH1fFfn4hLae9Cnj+rpHn0caLy1qwtkD2LImtKrn8v 6tA0xY4l+ViFaqf7bT6YmrhuJQiz/rwJyTU8lb6/112ic37dwpE9bXfBwZeB9WBS9kIl hZIA2MDWZJQC0Hp2Lh0GAUnYFNRGY2M6211dL4sn+pPH9Jk9PvbofcF7LWhBFxx9C5BD /UTg== 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=dmY41ceyc6chYcpESZmZP3QGDnanFIcluGLqchr029A=; b=W/GSdSI5eux5i0My62PyIkhFWy3cNFMiYdDRr/G3Ur27FdIHBI7B4kSUPa+InBrooY ZpTg7GanKkbc0J6flNeMRxYGos/4uCR8GohRY2l2JaYzrKlNMkIDTfnYlgUMMxOihzSl wq1H69hNyWVS7VThxGWW4Tuflre/P0Q67fh7K9cGv1ElqkKMsnHLmas5y+Sn7XUCyQEQ xVvxoXPkCVfAN9vEGUSJhNE3MCPVKrk7mbGz4EhJHPOj+ZZdzHhpvWX1Oue+eiwn+iXp BqEB54OKL5bLgZcKisl8EwV7Vk8/Fzte4kCfwKW+x6qEwCM+/teWpUA+sRJPs2ufDmlL f2uw== X-Gm-Message-State: AOAM530FRTE3kvSqVnEZJLobQWBwWQ0Uh5rpmXk9DQEew8u4dk4j6N7L gvdC60wr2d+zU9NMMMF6q+TCCw== X-Received: by 2002:adf:f2c7:: with SMTP id d7mr3870152wrp.142.1606398166640; Thu, 26 Nov 2020 05:42:46 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.42.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:42:45 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 02/40] drm/amd/pm/powerplay/smumgr/polaris10_smumgr: Make function called by reference static Date: Thu, 26 Nov 2020 13:42:02 +0000 Message-Id: <20201126134240.3214176-3-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): drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/polaris10_smumgr.c:2145:5: warning: no previous prototype for ‘polaris10_thermal_avfs_enable’ [-Wmissing-prototypes] 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/smumgr/polaris10_smumgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/smumgr/polaris10_smumgr.c b/drivers/gpu/drm/amd/pm/powerplay/smumgr/polaris10_smumgr.c index 052bc88cf33c9..45214a364baa9 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/smumgr/polaris10_smumgr.c +++ b/drivers/gpu/drm/amd/pm/powerplay/smumgr/polaris10_smumgr.c @@ -2142,7 +2142,7 @@ static int polaris10_program_mem_timing_parameters(struct pp_hwmgr *hwmgr) return 0; } -int polaris10_thermal_avfs_enable(struct pp_hwmgr *hwmgr) +static int polaris10_thermal_avfs_enable(struct pp_hwmgr *hwmgr) { struct smu7_hwmgr *data = (struct smu7_hwmgr *)(hwmgr->backend); From patchwork Thu Nov 26 13:42:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 332980 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp155568ejs; Thu, 26 Nov 2020 05:42:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJxwYRzipPl+YckNFwVTEHk963G6NrXfwABMpBnrVmSOOFZhMe7av/kntz4TRE44535aqCCK X-Received: by 2002:a17:902:446:b029:d7:cdda:87 with SMTP id 64-20020a1709020446b02900d7cdda0087mr2772038ple.11.1606398178650; Thu, 26 Nov 2020 05:42:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398178; cv=none; d=google.com; s=arc-20160816; b=jAbcZT+v1aYv8PmYOgbtZ7hHP0P5KUamvOmiedquEtWvP3YEbsVETduClrNBmzYqcw p6Z7cesL+/va327MXN6KvpwawDo10+dHMuhypFrTdSYTjeVQ1tnota0TU0EF438SjhJk ADi+DdIMHBbEid5KJGbzjTjd7p7C+Kk8nQgbJptFyFcnHOhvjhS3vsQj02K9VXU4BA5m +8LCN/DUY3QcN11TjqMVaY+VkRe2AK4W2KKYBRV7/qloPmug34Bi9nP282kgF9CXZW/k S8Ot75Wqx4YaJakXwX+wXhwPClFpxCP617HtFBl+506EO79nZQUNjXni+5OzHpcLUdf4 iakQ== 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=4we8ASPZFJektW28Y27yLip5wBnOSqjQV0NS828KRRM=; b=J6fWqd6MlcXwMSU1MvuCupmjzNhOFD0pS7i52KV5vxCFbLA63D0ICg4xJ6uXeaWhXM yn15tchnfzjSKlNiNKuoWKOMX5wo9eJZrla9KAu4AbsaP5RLBrSt4MmC7MqjqUHk9iEP UPiZwGI5nQFhDAl6/8WNKHyiNXPdRHjrntdCACNiUHPCV6RuikZ5Wnn5h5nAlcOgArm1 wvwzAhaNigKQI/vLvd/CMIxSSO6TPlU4fH/mVfC9V5dWWxxwAPQP/UhLyXCQ+/LjvtUN 8NXZ1BIaZOqVmqQSY8F29KjmqtSWFof3kIG/z82z5pQN8BFO9cOsY/y+/1jllLn6eX/F 7ZJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="DCQv/x0D"; 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 w5si5483692pff.127.2020.11.26.05.42.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:42:58 -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="DCQv/x0D"; 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 16F476E954; Thu, 26 Nov 2020 13:42:57 +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 64A296E954 for ; Thu, 26 Nov 2020 13:42:49 +0000 (UTC) Received: by mail-wm1-x344.google.com with SMTP id p22so2193666wmg.3 for ; Thu, 26 Nov 2020 05:42:49 -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=L9lgGUDlM7py1bAmh0K2ReeB9Skou96C92LhLu83qxQ=; b=DCQv/x0DIszjvscBb36cxqtG1a0DErbfJW+KXTrIqfTU1euX2kddV9clliTxjLQ4QX CD9TG8I+DosTGJG8D8N6ITX1PgUIu1NNdKrtsutaSvoyePqg8JbRQtVEY/dT/ovpu65t m6Wn/oUGmKqJn4umqIpSlSHZNCi07Aw+LXEtTQ0R/XvZGz+K80m0H6JehoZQ7H3Ucckl FT3aGJnooxLNS+dmiqnxCC9awsK0OogkN/9pXro1UI8E6Pn7I/o4YH9Iy3wDxEApnVcF 5tCKExUMh1kXY3VsC5me7/hwHWsKOBNMPrbQVb25mW4mrCOcKmyvOHf9poBgNzBY0Orr HE3g== 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=L9lgGUDlM7py1bAmh0K2ReeB9Skou96C92LhLu83qxQ=; b=H0tiFjHEjEThrdtn5+Df2Wo2ZmGSEplLWJZXck6KcLXnOYQgggtgDGmYkEVnjBPGNB +IoizXhQjn8/ggn/kBT4RRm0CIEdGOrT9Vcs4VC4yaV7itcu8djulRwAuJW5m+CDKOFs 1z5JzJzd/8PAT2OrguhM91nf+/9xRccTupmNIMFbkU2b6IjfSeBwxN3CljpeoUbH43/H vjQTe/eFWCkX9CWdaXSSKrruA4c+Is11qoOsA13jSgdm49RQWLMUupnpgdX1r0GOnFhZ LQNruEI2R+/IFW8jFRiqaWyQyCjjbhZ9Eg+aKU1I6Cye07aEFp/QBcO7kEFHme+Ma7nB QP3Q== X-Gm-Message-State: AOAM530ahs6yhEP5eJoxbHxPwzxjB0GlVao6g4jiQE9IkSj5NsDjdOoK W6iedXAQK/xgfWYf0XIiqSfJdQ== X-Received: by 2002:a7b:cd10:: with SMTP id f16mr3526378wmj.69.1606398168126; Thu, 26 Nov 2020 05:42:48 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.42.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:42:47 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 03/40] drm/amd/pm/powerplay/smumgr/ci_smumgr: Remove set but unused variable 'res' Date: Thu, 26 Nov 2020 13:42:03 +0000 Message-Id: <20201126134240.3214176-4-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): drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/ci_smumgr.c: In function ‘ci_thermal_setup_fan_table’: drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/ci_smumgr.c:2132:6: warning: variable ‘res’ 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/smumgr/ci_smumgr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/smumgr/ci_smumgr.c b/drivers/gpu/drm/amd/pm/powerplay/smumgr/ci_smumgr.c index 329bf4d44bbce..c1d869b4c7a42 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/smumgr/ci_smumgr.c +++ b/drivers/gpu/drm/amd/pm/powerplay/smumgr/ci_smumgr.c @@ -2129,7 +2129,6 @@ static int ci_thermal_setup_fan_table(struct pp_hwmgr *hwmgr) uint32_t t_diff1, t_diff2, pwm_diff1, pwm_diff2; uint16_t fdo_min, slope1, slope2; uint32_t reference_clock; - int res; uint64_t tmp64; if (!phm_cap_enabled(hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_MicrocodeFanControl)) @@ -2191,7 +2190,7 @@ static int ci_thermal_setup_fan_table(struct pp_hwmgr *hwmgr) fan_table.TempSrc = (uint8_t)PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, CG_MULT_THERMAL_CTRL, TEMP_SEL); - res = ci_copy_bytes_to_smc(hwmgr, ci_data->fan_table_start, (uint8_t *)&fan_table, (uint32_t)sizeof(fan_table), SMC_RAM_END); + ci_copy_bytes_to_smc(hwmgr, ci_data->fan_table_start, (uint8_t *)&fan_table, (uint32_t)sizeof(fan_table), SMC_RAM_END); return 0; } From patchwork Thu Nov 26 13:42:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 332981 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp155596ejs; Thu, 26 Nov 2020 05:43:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJxrVku6sMrOmxk8W/gDb01dFT6/3Tx0Fqz5z/Re85ipkCaDeuGXWqCQJbCJSC9Ie6vS58Mu X-Received: by 2002:aa7:93cc:0:b029:19a:8aba:97d5 with SMTP id y12-20020aa793cc0000b029019a8aba97d5mr2743182pff.66.1606398181288; Thu, 26 Nov 2020 05:43:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398181; cv=none; d=google.com; s=arc-20160816; b=SHZuEP8zDQqINRRoCFJsfvgRf4ovl8MJweIs3fJGuD9ZlV09BLcBWxDoJyBWQxSZtp iJX/4N24WX4jlCdML33ujVKXo/q8jHV9gEyW1kSCzfNhfmJpUztu6W7O1i3m8EI65SCA qN45TM/tMeZ9FHxxwJWCjZhSmwaQKVlR3fW3L4RM7o7M2Frt/HiPKhTYXGUui2asy79T teMpC+Sbsgg1KsFlrIV04Y0zLBxHyOX/2O6abjzWxvDy2bDqZdzb7Je8CTO5na+4RqdQ cbjLDffc9aAG19Jz6yEpuX75bOp0j0V+zEqKTjf0WiKIec0bbPFopq0LfitXalAZi/ye zyyw== 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=TYYHxdUFO4qbc+ZkUAiF46SbismHtZf/G95SK4lgeMc=; b=Ks8Q6p4vWpE8WuRT/e4MbNzYSygoYHpj95FS4YWZ//O+fN8+etmsLk+2AbA/cV+9Ck Mly6WM8n8vS6rAmyNh0GNtIpbx/hNR96SyrWK0MAtUi0dZEcF85WXwgb69VUhYb01gY1 BDO32J0lCl5xNiqdq8aEXk0l3g8XXMzk5OUsIDm5fjrHVMmrAKo8wP8MmC1xPkvhsZSk IVzzZdRLy+JMp6bZOYbRmpaeOlEQ0WwEpslwHxG1exqgg7pBpWr3awT9sI8cKnbwbaKU 9S3PqiYJ7EHnMAo7YxFvGE4jQuJDzPva7Pw8GNU7igk1+MFNHzDiYGNCAjm/WzhAkhQy 7lHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=xos3Z235; 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 b7si5532397pjz.9.2020.11.26.05.43.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:01 -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=xos3Z235; 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 7A98E6E959; Thu, 26 Nov 2020 13:42:57 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4601B6E959 for ; Thu, 26 Nov 2020 13:42:51 +0000 (UTC) Received: by mail-wr1-x443.google.com with SMTP id s8so2175572wrw.10 for ; Thu, 26 Nov 2020 05:42:51 -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=vyYJASeUbOt9Oc/Vofw1C6Y2+olsU2h1O7WPPXgsjDg=; b=xos3Z235V+VsqrBuBxOR03HMkZts5GlDVhKuNYxI9eBaJOP4w0ktVn+uMzH1tBWjfk byRyaOCDL1JFpJGS8bPQ3Gi6wNGWUzMFVyKehbMjLq4XZbqs0e6Vm283fuy449VUhHzq uabcAfhlVvxLBGKuT0/noqU+UrE4hDCD5pYzsf2zGRAsSLuMznc4lmRy/MobItxFEMZ+ c1yY6TvwQIkDcdCBuzNLnwbBm8Jafkhc2/BZcHMSVM+q8ReotyLF/vK9d2kPxvHNr41B N1ShZuoFxfdbMqOlyNx1t5DBsHrpLTTri54fYcWjr8GYnNnmxXQKBiip9id1VtEJySel XTYw== 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=vyYJASeUbOt9Oc/Vofw1C6Y2+olsU2h1O7WPPXgsjDg=; b=AldbEpxDUM+DADZOe3J2d69/YsEVyaat/+MOHqq1LEQVzh0RIOEJjqYvSWdik5/Cem HtTpIMFh71wcijpMbh3+Fmb8250gltTTywPXWojskA5tsNF+mJTPQpQa7MVFMZEukMVU CA2qsNl2xWpRiVe970XFQy/FMhQrv8wIgVkjx6Q0plAyUSh8CDNgC1aKx2rskuHjlgtG gi8k6q10l3o574+BpZned1jHJ/X68QBQsvhuytveAueZDXnJY3wMlxk4Pid+3PaifybD uuzXk4OLnwBSqgpOlf9tpY+FyLKMyXE08gP7Y6v37wyvRRs4TwXJb4Rq/3EALWbS/03w rLGg== X-Gm-Message-State: AOAM531HsDiCGenVOW+oXGdAOiX/QEMEgiljeJacECOhYYgiV1HrEELb xRcx6Ntz7tLMRNYEFRIaWbxAyQ== X-Received: by 2002:adf:902d:: with SMTP id h42mr3878260wrh.175.1606398169992; Thu, 26 Nov 2020 05:42:49 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.42.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:42:48 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 04/40] drm/amd/pm/powerplay/smumgr/iceland_smumgr: Make function called by reference static Date: Thu, 26 Nov 2020 13:42:04 +0000 Message-Id: <20201126134240.3214176-5-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, Huang Rui , 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): drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/iceland_smumgr.c:2085:5: warning: no previous prototype for ‘iceland_thermal_setup_fan_table’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/iceland_smumgr.c: In function ‘iceland_thermal_setup_fan_table’: drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/iceland_smumgr.c:2093:6: warning: variable ‘res’ 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: Huang Rui Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/amd/pm/powerplay/smumgr/iceland_smumgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/smumgr/iceland_smumgr.c b/drivers/gpu/drm/amd/pm/powerplay/smumgr/iceland_smumgr.c index 431ad2fd38df1..6a0f581de999b 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/smumgr/iceland_smumgr.c +++ b/drivers/gpu/drm/amd/pm/powerplay/smumgr/iceland_smumgr.c @@ -2082,7 +2082,7 @@ static int iceland_init_smc_table(struct pp_hwmgr *hwmgr) return 0; } -int iceland_thermal_setup_fan_table(struct pp_hwmgr *hwmgr) +static int iceland_thermal_setup_fan_table(struct pp_hwmgr *hwmgr) { struct smu7_smumgr *smu7_data = (struct smu7_smumgr *)(hwmgr->smu_backend); SMU71_Discrete_FanTable fan_table = { FDO_MODE_HARDWARE }; From patchwork Thu Nov 26 13:42:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 332984 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp155655ejs; Thu, 26 Nov 2020 05:43:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJxVSVYwJK2Kx/ZJgnJnzWaZjYFHMZGvNWVJSlR7+QOOozlo1Ddm0pmbDyclbeNQKY9Xi1hj X-Received: by 2002:a17:90a:f288:: with SMTP id fs8mr867545pjb.184.1606398186344; Thu, 26 Nov 2020 05:43:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398186; cv=none; d=google.com; s=arc-20160816; b=hn8cK4Blw9Dbv/ANxy7+p5BmNN8DMJnDgDKb9hEUfmPTyRfMk9GAl7HJYRLJTHEENw O1wKibpRtO45oDMhEvf/TZOrmB64wvySiDkNBlQhOK/ocN5n4j1328ayxO4rOQLJSzlM GL9F/AhVp4k2GDTBggtagrp9MFTHii8mmMOCh2CTYOg625uoopPB3cd+zgjDh4vTkXvw o5qx77ee1mrnkB8yZCJIiqYjIoar9jF8jW7e9j/xS9xui/r9VCeWJWxngeNfDJxOWqoI 6OKfKOyPv4OEK6tZ1h20/0+74lS0L5M10SFHKgSLpMXXuHi1LQsGkVPGIPNW/NSu2bsc 7N5Q== 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=7u+g7HV82PWj0TE5NV7TgVpTfTwpTZ9hJMCVF71OWLE=; b=iiJBPRpc2F8I8sNlQpRlT+CxhEMdJx1FKAsAMxzJ57SKjQk4cGlsY4tLrrkP6kw/RA RIYJ1FxRej9XJKBsNfYrDjly1U2wEpt+4CZZppgRa8YZC2S92IFvfrY5HMmXL9bBibVw +ZpHKWsB+HzyoBpY5bK6tHUCL7LSux7zHochkdGEBxsZ1jPzPSzjJ4LSjMi17Loc1PnF s8bHWqH88QFEyrseRuFEBu0SO6VyTu2hFhI68N5W/l7gkNmaD7aawfFyWgT10gkqLbx9 ZeA1SC9LrEAWxOsdpMTF3mdACc9JCV1u1E/xVohsfR8noNDkg+qcOJ1aZ+UJllUsFDn6 Mjwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=nReHHg4y; 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 q4si5682455pjq.94.2020.11.26.05.43.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:06 -0800 (PST) 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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=nReHHg4y; 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 5BF116E95E; Thu, 26 Nov 2020 13:42:58 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by gabe.freedesktop.org (Postfix) with ESMTPS id 40FD96E954 for ; Thu, 26 Nov 2020 13:42:54 +0000 (UTC) Received: by mail-wr1-x443.google.com with SMTP id l1so2189117wrb.9 for ; Thu, 26 Nov 2020 05:42:54 -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=ldsB1ybseYMp8ZBJ12vzzY4XQciSVJ5HSbnDxd3OzfI=; b=nReHHg4y2GwBg+ELtmf6FKwwwAdv6FVyF8TSlch4nRCGTQIlzqgbmoe8jOy65PUNtC QZA85Hl+za8IH3wCN1maDRJBzWHgekSGAWVe1ujb9l0mJ381TiuS7MAOxETiefpPaXal 9KUA/uc82NsiO5ek53XTMgL87wJZNqP4j9zolH/e0trnLg8vMZAdBBQ60k5vrk2DVMTi pIHLlgDKi+Tirc5Ix9rsVwi/D+KCuXckmZQ8l9Lmqw8WRADwOMXChgsKEm8RyaVVTuzl /LpSYMLRqRuuddUIUGJ1zrrqYv5ymqV1+9f3PEdlgwfMFp0IvAjV7Vw32h1noxdmD2v/ rVRQ== 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=ldsB1ybseYMp8ZBJ12vzzY4XQciSVJ5HSbnDxd3OzfI=; b=DCqQvlH4u7w7TnnhP/AXJmI0AD5EHaI+9RGFeu/QZFVz2AwG1RZRf1LgrxQhvDdCwW YDPthlpBrfNdNXTWw5mR4J0k7DSzYecqd5x8EG6v6/q+NUo8qeeW8X0TnYaoxphV4M8n pFNWH2AEb/0onxTrG0OXdFze6FCG7fLh+Mgj7husjjZVRBSgUoC1+6wFPmSa/bbtK4Qv fw7eYbWmzyRJvGjcYAT3VQSFYB5PzZyEKVxdg8lnE0o3ZYluN1kkdj6HuE5izeCogEjx ycD7r1a0rtymu+oFOZa7V4Yva3vDbp3opTgDHIrWS9XENq4HBusHOf7VN1y73kek3hqo 2jQg== X-Gm-Message-State: AOAM533R3k67KfrgI9yK14/nOG2w92WaDky4MtMAFjivUheoA5HBIimW VbfNq47lhDEBu+wzKDrbYAjSww== X-Received: by 2002:a5d:4586:: with SMTP id p6mr4114461wrq.308.1606398171231; Thu, 26 Nov 2020 05:42:51 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.42.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:42:50 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 05/40] drm/amd/pm/powerplay/smumgr/vegam_smumgr: Make function called by reference static Date: Thu, 26 Nov 2020 13:42:05 +0000 Message-Id: <20201126134240.3214176-6-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): drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/vegam_smumgr.c:2249:5: warning: no previous prototype for ‘vegam_thermal_avfs_enable’ [-Wmissing-prototypes] 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/smumgr/vegam_smumgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/smumgr/vegam_smumgr.c b/drivers/gpu/drm/amd/pm/powerplay/smumgr/vegam_smumgr.c index 38a5cdcf58967..7d024d3facef0 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/smumgr/vegam_smumgr.c +++ b/drivers/gpu/drm/amd/pm/powerplay/smumgr/vegam_smumgr.c @@ -2246,7 +2246,7 @@ static int vegam_update_sclk_threshold(struct pp_hwmgr *hwmgr) return result; } -int vegam_thermal_avfs_enable(struct pp_hwmgr *hwmgr) +static int vegam_thermal_avfs_enable(struct pp_hwmgr *hwmgr) { struct smu7_hwmgr *data = (struct smu7_hwmgr *)(hwmgr->backend); int ret; From patchwork Thu Nov 26 13:42:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 332982 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp155613ejs; Thu, 26 Nov 2020 05:43:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJxSHzQTcjAV++rfPmDuuxZ83PXTXjnoNxrQHK6MuUrfu8a6vt7mQjSHs98h57Rs6hqzmwE/ X-Received: by 2002:a17:902:6acc:b029:d8:c6ee:6d6c with SMTP id i12-20020a1709026accb02900d8c6ee6d6cmr2837326plt.7.1606398182985; Thu, 26 Nov 2020 05:43:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398182; cv=none; d=google.com; s=arc-20160816; b=GkW6+AUJC0j/k2IRIphVQpM6utzT5OL6plFbPb13a4SzG/6n3vee7CdCgM5Kngat5M 6+xipRz/50Xx+I6I9aomnuEh+fo3nuHvOvvQhSawWtwc+GwEjIuvTRBrGkWH12tNpWQd Pp3a4XjnW/6RcL6aNaH5G6GIag1E45R7Fu0pmeS3QdJcrqZCgbwBQZdo1XUAUT2KwMpR qAVfHisQHsa5lkZcFbmAsdERJO7hWFyMcCeUDWxGYud7KktO6rbNWg5MGPfw8wAQhYjy FgoSgaFQH7V4THqfKSzouyOZHV3NiMs4R0r7SxIn7x9x9xVSMVWMZYhpB6Nb8CTxMbTh caug== 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=aMW9eTm1QG6yluxu073EVOfjMZYpc/1Nx+/6fp0KNJ8=; b=alOg2LswVpIkoVOgh+MCpkI4J215mMhVCrRUELwNp4Gsy9eHJruckGnrXNlYEGoF1Y HfpukVRzTgJI3kiHv9lwaNiz7i2DOl/MnzgvJVi8Q0e5nmW9TPa14wFR4dpBE2qeDwDk /LS/yaODwJE1mrtdOg44rMQ+tiAzpgSO8mxRcWejS0qHPuF3tnolpj94xiZxO2WVgqg8 lRGaZ9+ElR0aqy4H47ge/s1JcHLkh9ssmEIvSlIiFZbaNkohON/K95JQGfl7rcacdOa5 GIcPNrA/Owj7ep5s6reju+9slBEzlrE4LtR723EAoXwYVB2re/8/GPa7ofOMmOddSv3+ 3+sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="npJUR/Db"; 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 b187si5134060pfb.257.2020.11.26.05.43.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:02 -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="npJUR/Db"; 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 1476F6E95C; Thu, 26 Nov 2020 13:42:58 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by gabe.freedesktop.org (Postfix) with ESMTPS id 91D2D6E957 for ; Thu, 26 Nov 2020 13:42:55 +0000 (UTC) Received: by mail-wr1-x441.google.com with SMTP id p8so2191866wrx.5 for ; Thu, 26 Nov 2020 05:42:55 -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=JRGzsr7E+IJLlqxa5D+IrFAdZhiFdGYpEedhVyk6GiY=; b=npJUR/DbxvX22PhhvsddHD3XwoyyDVf+g0XRN8KgbhT11qHmB4zphgQBWSBHNqNjr/ 8Vo0vv65NfZ9JCW8L/2SMi1OI6FMPbNOzBTW/o/VfmojKflzjEGWCqSYTC7rPf98wwMv mSK7VJ0LcB9+AQPMEzZtIq1VLY8QK6X9GkV8LJGK+XMVPn3+lE2rsA/0S10wsQww0dax gOzL2JHYgBqZPD72m+1EvomBH7ybMYA10Bci7AkXEShO9cuvmxBL+VMQn7rB6Nholahm 0H7D+pNpH/VIKwt5Lzsklllify4PiA1rjNC+VV0Q6JzUxkKrm3UyRNkoGvpwqigXwObt QsRg== 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=JRGzsr7E+IJLlqxa5D+IrFAdZhiFdGYpEedhVyk6GiY=; b=VvNgNqXWH/SB7qd/WjtLt/2y78yoMw7/NX6ZI+9e4lLs/9YZZKpH9MEMtaLnSLhDnw kqYZbE35OCJL4b4b6lddbZBroCJb3vbxrHW8rrpUhMe9uYDjMa5J+8vKDQ/6D1EOMK1f ulfRTxEuaa3W5nlRqQCeWdMjx8jYwT9LalPCMKQ8DlCE9pVuWHPhYzFh8l5IG7RMOJm+ K+Uiy+e34W+JgsBxCM5mffk/Ui25swuguwXIoLoZyZJn6n7OYQ0rVklMaYVApBRrL6NT TArtF0pcXmzHoiUiBajcVMRtPDCzrdgZKPaHvPO+DsMJoD/Qah5/jr0h07m5AdXJz6VY RZEw== X-Gm-Message-State: AOAM532Pghq9ObQtDSjsW4iXyVmGpmS6lBgme+69uV8LG6K3Mpwgl/ka sLQFlRMJdd9KYRuLtJ9d+S78Fw== X-Received: by 2002:a5d:4408:: with SMTP id z8mr4111560wrq.204.1606398174228; Thu, 26 Nov 2020 05:42:54 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.42.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:42:53 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 06/40] drm/amd/pm/powerplay/smumgr/smu9_smumgr: Include our own header containing our prototypes Date: Thu, 26 Nov 2020 13:42:06 +0000 Message-Id: <20201126134240.3214176-7-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): drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/smu9_smumgr.c:38:6: warning: no previous prototype for ‘smu9_is_smc_ram_running’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/smu9_smumgr.c:112:5: warning: no previous prototype for ‘smu9_send_msg_to_smc’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/smu9_smumgr.c:140:5: warning: no previous prototype for ‘smu9_send_msg_to_smc_with_parameter’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/smu9_smumgr.c:165:10: warning: no previous prototype for ‘smu9_get_argument’ [-Wmissing-prototypes] 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/smumgr/smu9_smumgr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/pm/powerplay/smumgr/smu9_smumgr.c b/drivers/gpu/drm/amd/pm/powerplay/smumgr/smu9_smumgr.c index 8a9aee85043ec..23e5de3c4ec16 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/smumgr/smu9_smumgr.c +++ b/drivers/gpu/drm/amd/pm/powerplay/smumgr/smu9_smumgr.c @@ -22,6 +22,7 @@ */ #include "smumgr.h" +#include "smu9_smumgr.h" #include "vega10_inc.h" #include "soc15_common.h" #include "pp_debug.h" From patchwork Thu Nov 26 13:42:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 332983 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp155634ejs; Thu, 26 Nov 2020 05:43:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJy2hhnuRQzydcVm77XmKl7zRZnAwZTdQNAQw5ge53/OysdNHZ/BaggNc+bEvsi5PmByu2sX X-Received: by 2002:a63:211:: with SMTP id 17mr2688922pgc.56.1606398184698; Thu, 26 Nov 2020 05:43:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398184; cv=none; d=google.com; s=arc-20160816; b=BKjKDgEajJ+MWD/XoUtRmsbyZLHgLAEBBffYPzwArh1IN32QIaAvvwbQJAexnvkY96 x7L5OhavX1gZ4eXWUp+qXd68aBGI/0xRBFmUy7ML0j3FL4PpGROAzxOE+Qmh5vXwQ8Dj 1QR13z2Q+XEAoywOJyCOVF3YnR5S4NRDfjBSW/qhVCINoCe3wj1DrO8U6+hwRxE080iC lMJZMaDqsJ4NJNKSUjxGy9cDE3Snaf/rzJDUR6Y8QXy4munyYOC2ymW0jnQWnz1Z726f c0/3kys+cldZg2iwgGeXoSq+ObgIJNJnr7+F1qUjNlyGoxSxFtlAuC6aj886lud3Qqp2 zzdw== 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=EJvUFbjFbhUDLV5pLwINo3O/VYGtPtn38EzKWoRAmxk=; b=vqQ3lX2uNfklfwgVbuNH5Xwo9o7WTJNO/vgYbb4NBWzF6HC50DyDjRPLSnjISvARD1 kdw2CJ4sXb3shVwXzGFaHN6sMU3IIqaVcGOy8R2PdJSPLExxeSj+7ehmqysWbOxmTH5x Ub5UydqNBXXQVl88t/fXSrfUTQGQZAraLeoy+xc4VS/oeiUAhXJFw1lPqkdlK2stG984 CKtmDmXW/y7L5i+vArkfXt6EcA1xLmMHvn5FNUy8Uecpz1j3DuOHcOLZwY8Kguq29If/ Z4Ze9ZBmIAAN0x+gZrLSSUXlt5Az628UNQmNE8JTOIug6k9OTkN0md78L9GaQHHQtuST 2UaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=F2cBuUey; 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 w185si5605205pgb.269.2020.11.26.05.43.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:04 -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=F2cBuUey; 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 E1E986E95B; Thu, 26 Nov 2020 13:42:57 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by gabe.freedesktop.org (Postfix) with ESMTPS id C4A4C6E954 for ; Thu, 26 Nov 2020 13:42:56 +0000 (UTC) Received: by mail-wr1-x443.google.com with SMTP id g14so2160897wrm.13 for ; Thu, 26 Nov 2020 05:42:56 -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=OVaLmyvacPrY1rDoSMt/9G1ek5c/J/kPXEt2r1H/RjI=; b=F2cBuUeywubkOSdIZeQQGSOkWu7bs2lvYsnoh/sMGgtoODB+x3nOzrprIw4bW+NOhC 1HArIKXo5vW+OQ827Tml7/kmK9Q5iXrEOhIU1LTaiwJJgCo2D2VV6u/5cI3BzmzPKo8L dxzGm1Z5ZWfFHWMwWyIZauQV1ZDzwm6vHRVMkrXmPtyCxcsTwuBj0cUsbf9iUNkTvcbE xTMgeqcxaGa3H4pLwbHbD4QvzZnNl4LhAj/2rOFjLjhmxKaRTZQnBKPd7uMFlzbHuoHi Q2lzTkJiYhrcjM9WpL6pUdQAEwXmYDU90a5gi9HzoDIZ34X3+FTwbxugBc9iTWbywbPj d37g== 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=OVaLmyvacPrY1rDoSMt/9G1ek5c/J/kPXEt2r1H/RjI=; b=iLU1zYVW2atubBp5uEIbjEbbv0FOJiPvZW+b31VArCZY758gBVshr2DzIWWhs2KyQO 762av7SxrolFZycQhBfUHLhCmaDzPgBV63fxxfWgvVnEEik/ox8h+fcyoOT+Dk8a4lWT 7eZszQMcBDyKEg2AQEn5IQI6/YX/WumxmeHq8uguKx4vGglk4ljpHVM8h29SvWhn+EOe wqtV0rruRdqfIHehsoOZNKxWwnNTO/WabfOZPndBuGMQZiFdADCYAMGw1JP242MRhURS G2VuA+UW23dsi/qye+8H1e2JjKAjhOzAPeQepA7YVRgddtihcSYIim6PmaN1Z/ZfQiNF xw8Q== X-Gm-Message-State: AOAM5309x5jMOLctiOtd0Il2O3azBxzKrfZtb2fDInTBMcQkM7xPXwQh pMbpkpfpr27wGiALfzjN7S3UhA== X-Received: by 2002:adf:dd04:: with SMTP id a4mr3979594wrm.77.1606398175472; Thu, 26 Nov 2020 05:42:55 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.42.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:42:54 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 07/40] drm/amd/pm/powerplay/smumgr/fiji_smumgr: Demote kernel-doc format abuse Date: Thu, 26 Nov 2020 13:42:07 +0000 Message-Id: <20201126134240.3214176-8-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): drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1107: warning: Function parameter or member 'mem_clock' not described in 'fiji_get_mclk_frequency_ratio' 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/smumgr/fiji_smumgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/smumgr/fiji_smumgr.c b/drivers/gpu/drm/amd/pm/powerplay/smumgr/fiji_smumgr.c index fea008cc1f254..02c094a06605d 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/smumgr/fiji_smumgr.c +++ b/drivers/gpu/drm/amd/pm/powerplay/smumgr/fiji_smumgr.c @@ -1090,7 +1090,7 @@ static int fiji_populate_all_graphic_levels(struct pp_hwmgr *hwmgr) } -/** +/* * MCLK Frequency Ratio * SEQ_CG_RESP Bit[31:24] - 0x0 * Bit[27:24] \96 DDR3 Frequency ratio From patchwork Thu Nov 26 13:42:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 332985 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp155669ejs; Thu, 26 Nov 2020 05:43:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJz23BY6w42ceow/tvfoHzD+p4oSPRB3sNccimAy08yNoVg4Z6bjP82oI2ByG/3Br8CyC3ne X-Received: by 2002:a62:7cc8:0:b029:198:5ab4:4fb9 with SMTP id x191-20020a627cc80000b02901985ab44fb9mr2775927pfc.63.1606398187785; Thu, 26 Nov 2020 05:43:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398187; cv=none; d=google.com; s=arc-20160816; b=ZITt/zaz5pRj8mK3wf6IOiiSrHp2bijfnA3oEfwcG0u1ldp8qyJFu7z2ntmM4h7HQC aWLt03NX5rJKZomMYl7APFmGCJKOLfgNBTTrAUPQ4f2F1Nl1SL3DUEfw9aq4OlBuNkHX RPQVdW/ZaGLTzDbregPVosx18sXKHUU9LW1rmfniYV+Vi7gsAAZz4B9/9cxJ25qQfN7n trDt6dgmXJV2otBgMsS1USoTHtBgKYGLvpb4nkT2V+uAXgEhWi5LoLipxuem6bAkhBq7 fqfdQ7sxUmja32r5BRSWo4UEwYAh5P1pFDjd45gm/W7Ab8aTTqB7pwLY/cE2ax9MlI3l vsTA== 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=H+8GaKQ+DXkncxzybfOMjxhi8YqqXMH+jQZ6OUof53U=; b=cann57QDE9oPKz9XtGD31ux7yfab+3PoGJcVa/TcEQH0Am66bET8rqGSIWhOmcum1o DaWHX/ce+98Zd+lefnNNiUA9+JTl/FAYPPaDbetodAfDynhuy5SCOm2gA1wzMjwtjzbR JiQiPk0FwAd77lowswkhopaI+I+FSohQTk4ux4zm+07vjlD78daUrZm7HPWHy5uO8u0n 14umz0uwHCllgpgOisvMWGkQ6IRNDWWRLG8yd3bWj217cIEeaMXI0sLh7yZ8WzxUMuWi wqDcRgjZ1ep9M++WtIoftoskY5MX8IUEZSVZE4oxAj8ZbPwvlVusd6NiwSUEimdMVFCj qXTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ZrrrsDoz; 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 bg10si5692516plb.427.2020.11.26.05.43.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:07 -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=ZrrrsDoz; 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 601546E963; Thu, 26 Nov 2020 13:42:59 +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 3AAEF6E95D for ; Thu, 26 Nov 2020 13:42:58 +0000 (UTC) Received: by mail-wm1-x344.google.com with SMTP id p19so3692162wmg.0 for ; Thu, 26 Nov 2020 05:42:58 -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=NHPe3Mn8cbArsPPQt69rySCnIbjXwyEYsPDbwO3FTTg=; b=ZrrrsDoz87EZgy+M2aL51jy5fVNnRT9Ooj/mOazxarq50HhmO8uE9haPCFapX0NTg9 x6bITVxxMy2ceyMIwwlvVmfWhLohKVIHaifZYvD564ABfgOPiHpkcZAbNCqT3gCiBxRH imzJ74y7rbX2hhwcFh9PdH9ckSdhgs9smHWe8Tx/tFs4BfKX7eww65fmFdde3p7JFBTQ ry69c8PoPC0zzTqFcvuG7NWha5f4adD59UdUYcyH7Yn6EZ8wG8/T5Smq0V+PfDRSZvlZ Z2SczZBNrlqd51wVoJ/qGri9TQGx9wCE+/ihHS3qMxVbsFChNME1JW6ADJCox2oValvD 4kYw== 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=NHPe3Mn8cbArsPPQt69rySCnIbjXwyEYsPDbwO3FTTg=; b=uE+pd0BmC5M2AIFQ/ul+naQ8hym0IvQMYltzCt2fdxP5krO2oruM1fPKRbN5cWwGkf HRKuE6dn9OPjmvbeIEl1/5dRNccm80mZcc0ns5FUIgE1sjZMfP9DHc9xiwQ5Do47WAgi QMrqFrC+CIh+46OwHlBKtKBDi/xbgM7m4OwrGInxv/v6dujTpKxo1UXKD79Nxks6NISC yQYXDHDd0VJ5f4IjPCzKyce5a4sdte8/RQS/fgxvrQ+85AoVKREAA50Cuy6bk+PHn+6P A8T5Sf9dCidRzACssOHz5R4ISeroQcciHFZgRhiOzpdp83yXeCgPbpQ1cwqI3q5/eSe7 pK5A== X-Gm-Message-State: AOAM53158SKF9eoWGOH2PAYeiwJBbU3w9HOhQmHtkn+Z29Z7GdOOGyl7 yBPvshVUEa2Xcb/VfFwrw2H5DQ== X-Received: by 2002:a7b:c055:: with SMTP id u21mr3512224wmc.130.1606398176747; Thu, 26 Nov 2020 05:42:56 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.42.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:42:56 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 08/40] drm/amd/pm/powerplay/hwmgr/hardwaremanager: Remove unused 'phm_set_*()' functions Date: Thu, 26 Nov 2020 13:42:08 +0000 Message-Id: <20201126134240.3214176-9-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): drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/hardwaremanager.c:518:5: warning: no previous prototype for ‘phm_set_min_deep_sleep_dcefclk’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/hardwaremanager.c:528:5: warning: no previous prototype for ‘phm_set_hard_min_dcefclk_by_freq’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/hardwaremanager.c:538:5: warning: no previous prototype for ‘phm_set_hard_min_fclk_by_freq’ [-Wmissing-prototypes] 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 --- .../amd/pm/powerplay/hwmgr/hardwaremanager.c | 31 ------------------- 1 file changed, 31 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hardwaremanager.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hardwaremanager.c index 1f9b9facdf1f4..45dde3e74b578 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hardwaremanager.c +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hardwaremanager.c @@ -514,34 +514,3 @@ int phm_set_active_display_count(struct pp_hwmgr *hwmgr, uint32_t count) return hwmgr->hwmgr_func->set_active_display_count(hwmgr, count); } - -int phm_set_min_deep_sleep_dcefclk(struct pp_hwmgr *hwmgr, uint32_t clock) -{ - PHM_FUNC_CHECK(hwmgr); - - if (!hwmgr->hwmgr_func->set_min_deep_sleep_dcefclk) - return -EINVAL; - - return hwmgr->hwmgr_func->set_min_deep_sleep_dcefclk(hwmgr, clock); -} - -int phm_set_hard_min_dcefclk_by_freq(struct pp_hwmgr *hwmgr, uint32_t clock) -{ - PHM_FUNC_CHECK(hwmgr); - - if (!hwmgr->hwmgr_func->set_hard_min_dcefclk_by_freq) - return -EINVAL; - - return hwmgr->hwmgr_func->set_hard_min_dcefclk_by_freq(hwmgr, clock); -} - -int phm_set_hard_min_fclk_by_freq(struct pp_hwmgr *hwmgr, uint32_t clock) -{ - PHM_FUNC_CHECK(hwmgr); - - if (!hwmgr->hwmgr_func->set_hard_min_fclk_by_freq) - return -EINVAL; - - return hwmgr->hwmgr_func->set_hard_min_fclk_by_freq(hwmgr, clock); -} - From patchwork Thu Nov 26 13:42:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 332990 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp155909ejs; Thu, 26 Nov 2020 05:43:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJwD2CJEdSpjk2RzvbYMNwjFNlQ0zR0S0IoiHenZRsX74qGoc+mcpP3Ikz4ocR2VzLdQ+/3g X-Received: by 2002:a17:902:7612:b029:d6:ee36:4e42 with SMTP id k18-20020a1709027612b02900d6ee364e42mr2928275pll.38.1606398209791; Thu, 26 Nov 2020 05:43:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398209; cv=none; d=google.com; s=arc-20160816; b=zbm4732OX8T3WN+CORuRWjt94hpDMoyIr38/zbKy4s7i1cuIWiEr8odSDLAdgCkaJ3 wlPxO4GUH4LuHscIkc+x/YkSnfEp1eR26UDFdG9APv0s7P+p1QFM9Qcu5y9x5hFGR1TJ cSrtKJ3ZPPFa9EY6P2XLK4rI9KZ9qAbYUlMwFSPlcMx9ujL6aK6nc2GjYBB+tXcNXFU0 MH6qUgLdiMvqT8HT/luYp3GIPtCHSia76XWWOOyd+tjfUjKYHF5fyuX/M/InwOnVpEbU COANlJ3Hb36hBm6Q/1AgBJk9KqfLYrH71hIKQHW7eUbodIz6qhjg1tzbDtdG8/Ssk0iZ lhPg== 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=TkRzix0GAPFmC4as8V7hJw+htO9CAM+geeS+DOB2rqg=; b=cmXhrDES0VfYsti4uSKZir+vXt3Y1ANIw6fTo/3hIBzSh4bU+YFI13lVBsKFbN+tDJ DHx8uNpCsVAVSvbFJ3l+POsv2xPozdE8RkEoLYdtpvFBvdd65TPEgPqcu7ZWvbzsR6ui qwFoGp9pKL5sLPi3PByRvkF5rNzOVh58wb0Li1uoDYPmhk7F7/i7mNk7nJoIxVwQMUfg 7kyuxWGScfBKqLmAeYrhnF+RlfwPHpPZ3rTT6YureSVOOCeWK3SbGpISz2KXtTjlrWz6 jNA6d3cILRQnBsdNio4xNoBp74CCrr+48fUI914sQLRQhXZuowE7p3XMLMx9fR6LSblW I9Yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=fqPPgyNW; 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 w135si5267691pfc.183.2020.11.26.05.43.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:29 -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=fqPPgyNW; 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 7FFA96E962; Thu, 26 Nov 2020 13:43:18 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by gabe.freedesktop.org (Postfix) with ESMTPS id BD1B36E957 for ; Thu, 26 Nov 2020 13:43:03 +0000 (UTC) Received: by mail-wm1-x341.google.com with SMTP id a186so2199184wme.1 for ; Thu, 26 Nov 2020 05:43:03 -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=gri5Q1ZsHo+JoBxGfrJZZW9SZIInF5/xkJvef28TzCQ=; b=fqPPgyNW5YpmOSE71xHIKuvM+xg9IUILLUjRvO1hWX8/333x8W4QT67NPv+C8bozIy tFMqF9icDS0zvyTYZgWA/m1fP0mCA7OTmHoUE2MDnIiXC9C3s2c+eDGlVzXLXwjGsVe+ IDFwppI5i0UFrRo0NZjZ70MKdLrBCl7IB8cqFEMoqacGdKqEUpy4PeNmvBdiVrp/5mXA AyPY1L3++JBVT/rTM+8v2z9lupnMBLt5Y+1T1592dGIa4JCSyREVc8Nf1t1JHL7NPbfL 8xYftyKeq7YlGfWS2xkpEPVttx7SNLBqIcMnMACyPyTAB1kpH27piWLOWJ+DylNcrA9Q K0Mg== 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=gri5Q1ZsHo+JoBxGfrJZZW9SZIInF5/xkJvef28TzCQ=; b=psG2Tmr2caFwwt8EtougfdyYRSNjK3aJV9W1b7InTbVD/CLrFBozT8eAN7yyVmKrWN cMV7WgM0URHDWgd2dmoy3fNcIuW14JXYeYafTGpoy18ZO/JMXAIOMx5Z3AaH3PUWptCt Y9WlRCexU9O9MyEUvgZoX/kdpMqISID2QGLV931smrL8fBpMMPCnSYRRlGFUMwGAu8ch rkVEhaPGm9o2f7q53l2usbCan77xZouoTgp2Rno63Pk4dXNpgkzgNav6522nS/HliYSh /CuqVJlms3UNAIQBjN49xh4PsCg3ZfJ+cBLA0HSIQEijIsenyiBXyNRKbvV7sI+E/o7T zOfw== X-Gm-Message-State: AOAM532ApYgfla8/Yx5ZsRpDpRm6tBBEecC3q7ENdqlgDSkrpKYx7WAn KaCOJMtyZzt5nACJszzT2Y0nOw== X-Received: by 2002:a7b:c1ce:: with SMTP id a14mr3493478wmj.169.1606398177946; Thu, 26 Nov 2020 05:42:57 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.42.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:42:57 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 09/40] drm/amd/pm/powerplay/hwmgr/hwmgr: Move 'smu8_init_function_pointers()' prototype to shared header Date: Thu, 26 Nov 2020 13:42:09 +0000 Message-Id: <20201126134240.3214176-10-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): 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/inc/hwmgr.h | 1 + drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/inc/hwmgr.h b/drivers/gpu/drm/amd/pm/inc/hwmgr.h index 1bb379498a121..0e22cba3ce3a6 100644 --- a/drivers/gpu/drm/amd/pm/inc/hwmgr.h +++ b/drivers/gpu/drm/amd/pm/inc/hwmgr.h @@ -828,5 +828,6 @@ int hwmgr_handle_task(struct pp_hwmgr *hwmgr, #define PHM_ENTIRE_REGISTER_MASK 0xFFFFFFFFU +int smu8_init_function_pointers(struct pp_hwmgr *hwmgr); #endif /* _HWMGR_H_ */ diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c index 739e215ec8b7f..ec17a3e63ea02 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c @@ -47,7 +47,6 @@ extern const struct pp_smumgr_func smu10_smu_funcs; extern const struct pp_smumgr_func vega20_smu_funcs; extern int smu7_init_function_pointers(struct pp_hwmgr *hwmgr); -extern int smu8_init_function_pointers(struct pp_hwmgr *hwmgr); extern int vega10_hwmgr_init(struct pp_hwmgr *hwmgr); extern int vega12_hwmgr_init(struct pp_hwmgr *hwmgr); extern int vega20_hwmgr_init(struct pp_hwmgr *hwmgr); From patchwork Thu Nov 26 13:42:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 332992 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp155956ejs; Thu, 26 Nov 2020 05:43:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJz2Ast1/bTu7J7yrXlQiFx44cPcCATNPgp15Qj8EoWCjxDH4aoHg8f8+qc/80QYoEYhSk7z X-Received: by 2002:a63:6882:: with SMTP id d124mr2563379pgc.197.1606398212706; Thu, 26 Nov 2020 05:43:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398212; cv=none; d=google.com; s=arc-20160816; b=P+3KmeKrmmVszX3gCAUpqa5/Fa96GJFtYz5wsQNgBkYu5MvH55j6D7Ckx6n5Jm2bij RMfQODCuEFICIb9Lhg6aCO8fv5ziw0hGcljEpcOXPlrijR7WPZVHDrP6KUgv/EOFLEmw xc/SAn0x0kjQ9qKwdts8gZjXQ3RmDCqCce7a1ADioMFrwdxjWtdkGchyZD5OS9/7B7F4 U4vVvx+noMf689TXXvPm8rQO1YxwaD4iy4S6zLNTLXZ/DiqbWja/nfo81v8//6XAwFt3 3MbkdWwY4lFzfI6n/veRPQ5oV+LqxlTUsHDUNL8Yj1fsmx1ezxKfhmASCKGtM1cE1P58 Lusg== 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=KnGhEwS+5Y+0MSmxZo9I6wRbADdKPRLnUWHMX2CU2Rk=; b=O84WNwFWBdIIEbFBrnfMypJebF8TY8TPP8ridIqYXHvyDCQw9MDfHSbocFzLfXZPW3 7qbaat//0aMXg0rS0xNJP4AEgSpsIFY+oNaakd42phRtB+b7w/Sv7e4O+oXoMvXfKRBn zb+K/dy1r/GuoH9U1td2RKB1Jl9yZOzT/L1ppNl02XTS03yXtzztL3WMZxGfWWTIyn2S br8lH56rPLHnFkhM2IkRhXCvWGcryQi0iLbzQCSNb9Mm2gsqRyq2qV+brVWcOq7f4960 CCmWyIg12Sy1ZYConcrr8qjEiYkt09dUNVBCSwaK7AiZpibotmg8CZ6Uvx2hIrOBnCnB vwLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="vvu/UfVh"; 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 o12si5735225plk.115.2020.11.26.05.43.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:32 -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="vvu/UfVh"; 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 85B056E964; Thu, 26 Nov 2020 13:43:18 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by gabe.freedesktop.org (Postfix) with ESMTPS id C28BF6E957 for ; Thu, 26 Nov 2020 13:43:02 +0000 (UTC) Received: by mail-wr1-x444.google.com with SMTP id 64so2173888wra.11 for ; Thu, 26 Nov 2020 05:43:02 -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=BcIKnQpZCXBlyLSzrwnOmG7IOwmHB9eXMhCgCsu56Io=; b=vvu/UfVh3sr3D9noct/cWTDN1mgiOnOg+oz22TAslEDpt+lPXAvTgH8gcxoZukTdnI Vnpm0xYCfE3rdiTsH5sOg/KSKJ3NMoqKZcaC7Be9cl+xfq1X2bU0YqiskJyOIufoynQu S4QArlHwAi+5WJOdFiqyKoH0JJt8nVKUprx6hv4CK132R6K80EdI77/nheAVXWsrASQp VVgAMybtmsm9QLSwb+amML5CCZvWtdhgEi+LX7LWIJrIiY6/AnsZqNwrtEEoq0B//9wa yFJjSe9lKZfAWlELH/KQ1DhxPTr+N2FUupYp84sW4gyLdH3uCnk77FFNdU5rMvEEybA3 5IqQ== 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=BcIKnQpZCXBlyLSzrwnOmG7IOwmHB9eXMhCgCsu56Io=; b=LSckWqMHMd1mqlrggA43UoFBd3UVI24ceQWKsAn4tIi5Jp1u1EzApkNVrE/U6f3X2F BP+jCYnoC/uc2thaBMNdQnE4Pc6PN5rMGlPkfiHIbw+T7OlF2es8A1gmZ6sPSLDBxbc+ 3EvQ761aFBmrzzbnj0nv3ehQ95iiXFafyOk/eBiSJuTL9N6Ubkedt/F9+qEH+lDpMSN2 yjZvVoc2NXO62fB8mFTbjUbsLatD6SxeDuezljQltEu9ChB9cDwhtMokIf0530mjNo6b shPsnLX04wv69/hPungh3Y+18pVUqjg94lMacv49A+WXKkOUZOMglka3JP3nhste8sU/ t3gQ== X-Gm-Message-State: AOAM531jevE/Mb94kwVHx8F3a+TcjKqaJ+d4EwpE7RLEJQupddg3U1K1 fhBCRFB7EDJxW2OrX4dqi+aVoQ== X-Received: by 2002:a5d:668d:: with SMTP id l13mr3838073wru.279.1606398181420; Thu, 26 Nov 2020 05:43:01 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:00 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 10/40] drm/amd/pm/inc/pp_thermal: Mark 'SMU7Thermal{WithDelay}Policy' as __maybe_unused Date: Thu, 26 Nov 2020 13:42:10 +0000 Message-Id: <20201126134240.3214176-11-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" They are used by some source files which include pp_thermal.h, but not all. Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../pm/inc/pp_thermal.h:28:41: warning: ‘SMU7ThermalWithDelayPolicy’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../pm/inc/pp_thermal.h:28:41: warning: ‘SMU7ThermalWithDelayPolicy’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../pm/inc/pp_thermal.h:34:41: warning: ‘SMU7ThermalPolicy’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../pm/inc/pp_thermal.h:34:41: warning: ‘SMU7ThermalPolicy’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../pm/inc/pp_thermal.h:34:41: warning: ‘SMU7ThermalPolicy’ defined but not used [-Wunused-const-variable=] Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Evan Quan Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/amd/pm/inc/pp_thermal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/inc/pp_thermal.h b/drivers/gpu/drm/amd/pm/inc/pp_thermal.h index 3e30768f9e1cc..f7c41185097e4 100644 --- a/drivers/gpu/drm/amd/pm/inc/pp_thermal.h +++ b/drivers/gpu/drm/amd/pm/inc/pp_thermal.h @@ -25,13 +25,13 @@ #include "power_state.h" -static const struct PP_TemperatureRange SMU7ThermalWithDelayPolicy[] = +static const struct PP_TemperatureRange __maybe_unused SMU7ThermalWithDelayPolicy[] = { {-273150, 99000, 99000, -273150, 99000, 99000, -273150, 99000, 99000}, { 120000, 120000, 120000, 120000, 120000, 120000, 120000, 120000, 120000}, }; -static const struct PP_TemperatureRange SMU7ThermalPolicy[] = +static const struct PP_TemperatureRange __maybe_unused SMU7ThermalPolicy[] = { {-273150, 99000, 99000, -273150, 99000, 99000, -273150, 99000, 99000}, { 120000, 120000, 120000, 120000, 120000, 120000, 120000, 120000, 120000}, From patchwork Thu Nov 26 13:42:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 332986 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp155834ejs; Thu, 26 Nov 2020 05:43:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJy68F7mPxtCuP9xOBZ3fItZgvstZqVNpVHuwVVmNCsom2d8SvUT3KrbLFX00rOTo72RxhBF X-Received: by 2002:a17:90a:154a:: with SMTP id y10mr3870114pja.6.1606398203317; Thu, 26 Nov 2020 05:43:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398203; cv=none; d=google.com; s=arc-20160816; b=NhsJERuo3kHt/oX5KOKE35dFGYS3YYWlnRXgyCVGpXZ9vSWRKU3A4ocva+hsZoO/eZ cPowt80L+wGZsCSRzqTinvOq8C+dZT8Ny5acrd9fMDeO4L46eN1nQQsB6t9AWefX159F jYwXpkgM41EQjutxqE6vWx0QgYugHqq3Z9HK1YXNoE2ay5nsJz/aap98ZiAOhyZRvf6D 6TIbpw92ffFwHwYyHU12+L1x/pkarGNAESEQ8+T2/FitTwYoVbGwsen3T3VBUoksCPCt oYzvZ99GKsxaCSrcgmJcff57K1Ai9AmCfoYS2/IoezhhfvGJZ+vToKM1nhGHdxiyQmQ9 lpfQ== 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=IBAGyCwiRiTDxTyg9xABrwn/Rkn8hPtI9p0YaGI8mK0=; b=vHnPTYTuHregvLDiQ0Wsi+ZgmtuADW4vW/1PlxoEpyqLUvvdZm4SECkwpcRbsrFIes YVRR8F907o3qngttVPpiHQRI+ttwQGK01wQgmKHoaxa9CylME/OfReKC0vIV+8FXjktd WVsaKOEAUt8jsxhbxhA7OLpvgjVpndeE2VwO6He6uIOJmsxb0gbujAeBeQeej2I00azU uz4PneIaUHO/eRqcAugkwTpvZslEt3b9A5c4Bpw8iBKHWIwxt+cj3EyyKndtboPkzxx1 UH2CZcE3QtbTj6m5eI/qffaLZPK9L9yXUGu8WE4VD6lqH+WEWPalB6HG7vN9F5jVNLbl GRyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="p/G/xj32"; 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 x184si5326317pgd.468.2020.11.26.05.43.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:23 -0800 (PST) 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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="p/G/xj32"; 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 22D4F6E95D; Thu, 26 Nov 2020 13:43:18 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by gabe.freedesktop.org (Postfix) with ESMTPS id 310CC6E957 for ; Thu, 26 Nov 2020 13:43:04 +0000 (UTC) Received: by mail-wm1-x341.google.com with SMTP id p22so2194337wmg.3 for ; Thu, 26 Nov 2020 05:43:04 -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=4AJIopnyfhF0y4BTkzIBWxHJHanpp5V1ikes9pxc/Xc=; b=p/G/xj32n4i/rb4oTibOM955Wb2c2JuAT8/JEPsK6Cet/M6nBAM0aqReY56K/J5Et7 amy2F2/m374sjvAeSfHZ8NLJgd13zRPeaQUlDXgMF1RhJwaEI4iiddP5r//znBH0/s5c TiI6Okc/1wVVTlo3aEA7Hw5I/qlTKkG4SUsXYGRMPQSpCLbvg3c/N5Zp05LXoZUmogOx Q4vmRAs7ruIFA1BW/PIWhKhEpRtw0Sd1GVCt9I66oXJHblxbu+IPgisDe2ydduSg6sI2 AG33/49mDz/9ILeFURIg75jJR2NGWpP06Mlv6OdF08VX9CNy61y0qHqdhlQcX05y+4yZ 1gOA== 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=4AJIopnyfhF0y4BTkzIBWxHJHanpp5V1ikes9pxc/Xc=; b=RtDBmsoGMeqInf29KUeofC7cu7kTxuEM8cvK1rQzp51rrkdJkq/y9Ap+1sCWmOUw0N 06sbceCh2m1FVzMWM9wlKqb3p5NZRbP+YfjBxBwg7hAvJbwNf0EBT85B/b0GdpUPyqLM CX/ffA6nea/X5nOQqbdu1XlpwF/PQXHHI9EGHoyLuuRflZIucmel8DDXKgJiT6KMU4iY Aqdpb0bgrjk494ASsUUVWTF2BkQMYM/LLzMJqc33Gr5XsVcYHRMP4ON477SXeX8nDNAA R+X31XQfY+p0ZIQo02sUywqnitDvy1mRkh6kFIqzMx9c/5xrpAprl3qLgqXcSxeJnSiE Atkw== X-Gm-Message-State: AOAM532HFAkIF+z5aGA2WLJ7tQSf+BeLFPtPXneM7hoGWlfIFUGO5lMF J6ETNeU/8l0nwvHChCwpSw3w5g== X-Received: by 2002:a7b:cf0a:: with SMTP id l10mr3530508wmg.103.1606398182874; Thu, 26 Nov 2020 05:43:02 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:02 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 11/40] drm/amd/pm/powerplay/hwmgr/ppevvmath: Place variable declaration under same clause as its use Date: Thu, 26 Nov 2020 13:42:11 +0000 Message-Id: <20201126134240.3214176-12-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): drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppevvmath.h: In function ‘fMultiply’: drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppevvmath.h:336:22: warning: variable ‘Y_LessThanOne’ set but not used [-Wunused-but-set-variable] drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppevvmath.h:336:7: warning: variable ‘X_LessThanOne’ 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/ppevvmath.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppevvmath.h b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppevvmath.h index 8f50a038396ce..dac29fe6cfc6f 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppevvmath.h +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppevvmath.h @@ -333,14 +333,14 @@ static fInt fMultiply (fInt X, fInt Y) /* Uses 64-bit integers (int64_t) */ { fInt Product; int64_t tempProduct; + + /*The following is for a very specific common case: Non-zero number with ONLY fractional portion*/ + /* TEMPORARILY DISABLED - CAN BE USED TO IMPROVE PRECISION bool X_LessThanOne, Y_LessThanOne; X_LessThanOne = (X.partial.real == 0 && X.partial.decimal != 0 && X.full >= 0); Y_LessThanOne = (Y.partial.real == 0 && Y.partial.decimal != 0 && Y.full >= 0); - /*The following is for a very specific common case: Non-zero number with ONLY fractional portion*/ - /* TEMPORARILY DISABLED - CAN BE USED TO IMPROVE PRECISION - if (X_LessThanOne && Y_LessThanOne) { Product.full = X.full * Y.full; return Product 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); } From patchwork Thu Nov 26 13:42:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 332993 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp155968ejs; Thu, 26 Nov 2020 05:43:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJwXq8x7nGd3wC/dilr0fys9UBic/BHEPVMB6vqdP3+YKvYq04BiXs3L7Umisgj2xyvmx/F/ X-Received: by 2002:a63:1b46:: with SMTP id b6mr2657776pgm.92.1606398214054; Thu, 26 Nov 2020 05:43:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398214; cv=none; d=google.com; s=arc-20160816; b=Yavi7cA1OJG6n+Izyvh8RWjXoyXg8j0HhBVNMcM9HTE94C9ODqWydq0GfAGnzYHZUE NxwS/h5S2OXmnhf5AOzYw43pkF/zHVlhQH2pVqB1eYTmWYl6H+zWYlvwuZ6sbCXrPGjl Xyo/U3/wqeAUsDjJ3m1GnfoYjB4fBg3mfTQ6o66F/drpy/BFrgXdPckqJTp7LbeWbpus 3rgJvWolxrKR0WFT2oQF6fnxsPP81cB82xcJAWBiHpb4CrkcWWR68ll3zX0WAK6qc0Oz 5vz0eNSjYC2/I/qgkKhq+WDK4ltagF5BeSqOKQytoYiW62uUrxd7pdk0W6WACsJ2QdjE QOnQ== 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=973T7/wwLyJonktLY3mKe+ZHnjAVNQu3NHpNIAnC/F0=; b=CadV7vZVKFl2DFIENOQuiZja3AK4s1q/QnW5hfZ1zACUcQy1wzSKvMZqh9fhM6ON9v Ale0DwYM0JrHRld3D5KCPUmcf3yHxZcZpwanRWcvd1G9vWqp1lV0YpztLqjefyswvTDL byROL9zz7QgGO7qWAUgg3pdf1Wgdv4KzARra1b1bhBdL6Z/VKHNGd2h1OeX89w6+7hXu RPv9FhipuTho6UdYtAfYW8NoFtOAZnaPOayQppm66ytqpvgb4i+aOYGlJCsn+uEIqZqz GaPfQHkOwTH2mXDy0ccn2BDIpqH9SIAZdHdyY10MZm8nhJSRhE9RYKUzj49QdMAiRuRA QmPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=pDltQRsb; 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 e188si5035240pfa.347.2020.11.26.05.43.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:34 -0800 (PST) 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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=pDltQRsb; 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 421C96E971; 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-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8BF046E95D for ; Thu, 26 Nov 2020 13:43:06 +0000 (UTC) Received: by mail-wr1-x442.google.com with SMTP id t4so2167643wrr.12 for ; Thu, 26 Nov 2020 05:43:06 -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=zctwnJbPr/3TheGemqq6daAKnhm6ZrMfRQU0PGJhDOc=; b=pDltQRsbWl/HhtFyKynIgVHjgGqhl8RyOCVAoakl6T2/8wQPLspSu3Oa1tiDcnfopy e9D3OF04dD82YCqF5viq37JgLD1HapAh5shN7dH6FVZnGYgYbc0Nr9n5wp71x9uyA763 hyVzYQIDCSKZ3qg7AUYKz2AUUOxhJCBcdKTAPiiEogEBCt6VifYy3y7fiWtoAvYKOqMI Tfc9eqOdOIM9Zu537WK38RgCB3nxr4F7F7MLFjrUEbq0WGiUq2ArU1o8ynd243lFu6vm Q1F4RwWUGcFs24XS6hUYjYtSpz/1ARAh6nm2izEluG7BUhlkfK9Eh6L/d7/JnUIEHLN2 FxBQ== 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=zctwnJbPr/3TheGemqq6daAKnhm6ZrMfRQU0PGJhDOc=; b=ATqLxmU4g+cLopCuIhK2dWywUCWHk03Yd4+1Bf2ROARO+yhgqcQrTtIbPlz4BxF88k Nso7epVOSF+rAKMs2sz/fENPtPAK5pPhqsnCX7XIwj2zLu8fbCZkGQcFJC32gGBJ1fDL o2ZNiSOzLmIA88bDpfsSl0cepddFY2cr/h7G7L8NdfNdmWeeKRXlEiwHbWzZpAlpT5cG BSsOWSspXOo/3VqD7jdH55Mn7lQNrKd7jEcnMDotZAStjrULK8yhGz2PvnQlqo52Do3C AuS8dB9N1wZtWAaCk0RL3ioUNNRvjas1OPRK5B2cV7mw7pTYZaD7kd225fYITnochJ3t Yhsg== X-Gm-Message-State: AOAM531g4P1qBfReNo8p+pNuEPArUr+adTnSIo1W722wuFTG/txIDE6R yyg36yZfza/lmcP3fvU8H54beQ== X-Received: by 2002:adf:ec8a:: with SMTP id z10mr4054719wrn.113.1606398185299; Thu, 26 Nov 2020 05:43:05 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:04 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 13/40] drm/amd/pm/powerplay/hwmgr/hwmgr: Move 'smu7_init_function_pointers()'s prototype to header Date: Thu, 26 Nov 2020 13:42:13 +0000 Message-Id: <20201126134240.3214176-14-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): drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:5696:5: warning: no previous prototype for ‘smu7_init_function_pointers’ [-Wmissing-prototypes] 5696 | int smu7_init_function_pointers(struct pp_hwmgr *hwmgr) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/inc/hwmgr.h | 1 + drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/inc/hwmgr.h b/drivers/gpu/drm/amd/pm/inc/hwmgr.h index 0e22cba3ce3a6..393e4e76a8961 100644 --- a/drivers/gpu/drm/amd/pm/inc/hwmgr.h +++ b/drivers/gpu/drm/amd/pm/inc/hwmgr.h @@ -828,6 +828,7 @@ int hwmgr_handle_task(struct pp_hwmgr *hwmgr, #define PHM_ENTIRE_REGISTER_MASK 0xFFFFFFFFU +int smu7_init_function_pointers(struct pp_hwmgr *hwmgr); int smu8_init_function_pointers(struct pp_hwmgr *hwmgr); #endif /* _HWMGR_H_ */ diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c index ec17a3e63ea02..7999091cca16e 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c @@ -46,7 +46,6 @@ extern const struct pp_smumgr_func vega12_smu_funcs; extern const struct pp_smumgr_func smu10_smu_funcs; extern const struct pp_smumgr_func vega20_smu_funcs; -extern int smu7_init_function_pointers(struct pp_hwmgr *hwmgr); extern int vega10_hwmgr_init(struct pp_hwmgr *hwmgr); extern int vega12_hwmgr_init(struct pp_hwmgr *hwmgr); extern int vega20_hwmgr_init(struct pp_hwmgr *hwmgr); From patchwork Thu Nov 26 13:42:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 332987 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp155825ejs; Thu, 26 Nov 2020 05:43:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJyVpXKNW+ySh6BdRm4GHxY2c918Rxwu1ipeMfLSxtrjyInZOkzGX/BJ8S3WcdVxVDoOzdeu X-Received: by 2002:a62:27c1:0:b029:196:59dc:8e6 with SMTP id n184-20020a6227c10000b029019659dc08e6mr2754965pfn.72.1606398202582; Thu, 26 Nov 2020 05:43:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398202; cv=none; d=google.com; s=arc-20160816; b=MGvOBXxp+o9PU3dC1pZFpxiRuJCKFKZHK2tjZB59/9NvwW2OtAspKw/VEtk9UEB8/3 fQIbKn9dfv4/aR73je073TARLVUY+/FSHcLB2aF6KZVECeBzIfo8I2ChdStnQQYbh4vt /6NYkbHfzaIdflZvGRtLB+N+X5fgtoGyUxJH+13hzhoOHYeAnL8q/FmQqm+NUZBVhegm DIsR2IxPj8P9MTe+dobZ8gxxemuLfoRmmgQWgyceLKi5NjOZmfycE6fm9v3Kpv7pPdcd 1UKljkdHwCcN36ehS/AIvn6auQUFfIw3rZJ1igr0a9arZOecXx/vZjrlYN8s9XHl6UUV I8bA== 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=0hOO/mAogAw+WYJvxfRocP2AuzScJ11gQWyCoqIUMdg=; b=HNxI9tE0gVnL1iw3gkr/6CQKoYFihq5VkDyFMDNh2SBj3GOoLlCQa/erRrsp0A3y6H F1lsLIf8mp8cQO6cL6Qv7mmypKu1tBMHcD3WzDmvov8/dkMfNFyKa/4wCtnEboT6nPLG HQIoUAC+Tmk4qR66cBghhyYj2d60M0Dwm3BJzIuNqv31XTvlgGvRBlHqvMpx6+wpaLr0 uz2ihya4gwzzaBuYQVQC+b4Dk77Q0dNone9h5KB1zdgTcifslvcmhe+o331gyTBQp7jp N3jluqTUGAsP8Cj9y3l9waxLUyRvmG1Vyo1sk7VeEfLawKFZBiZbz7Qon7mz5yNmEWOz nVvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=BdELhwgg; 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 p6si5327536plk.401.2020.11.26.05.43.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:22 -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=BdELhwgg; 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 F279D6E948; Thu, 26 Nov 2020 13:43:17 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by gabe.freedesktop.org (Postfix) with ESMTPS id DF5466E95D for ; Thu, 26 Nov 2020 13:43:07 +0000 (UTC) Received: by mail-wr1-x441.google.com with SMTP id g14so2161468wrm.13 for ; Thu, 26 Nov 2020 05:43:07 -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=b5HKCJC8iv4gibbIS6cltBxMH+DAVlqg/H12nTJ1XPY=; b=BdELhwgg2aXDCVPZiMApozkS+dDFnAj41prA+beMmkmtq5w/7jzoUYaN79lGhPg+b5 Ao1NeiAYusWBvAPnbIbFxw256w0sjzeS37NG3I/ArloBXx9UsQGzPCHaZ7eq5GMUa9Hq xblCmIPAb04gorBKak04DKwX5Ouw95gD99jYEeYF5/t8k6AlIurKssHp9FLsnG/gfuKR 3bHvkYd8LpUPEBgWAJLoljaerBRARKDD7Z6hdxEPL1xUgeKW/drJy7CKcIkZgzlF8b5V 1clDkzXxjZPiHr0yHQ1cy4uKZyP94uOV98wuUeATSfrG5vyfKtu3Xud6idIgT8PSTifK F7fA== 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=b5HKCJC8iv4gibbIS6cltBxMH+DAVlqg/H12nTJ1XPY=; b=UaNjhSDbu4ff88mjHuroNoY30BGOaswy54JyfieTPRmFM3vrSSvy0sIf0urp8wat++ 4HgKexyZEUE4h1pG4wAtSzylq2jl1zJDs8LSkQs+Qk3zWfgWKw3m2PCBjkvCzErhFzaA q5e9JecMEtYARRvwfzXMlQN6PdHuLjtSmt3jQYFmuQzOgTYHAkdNuwHUFuYTyRsQSduy cHt66vSmS6eVXyxzWbmpEi3iiPIBuM2HW6gQ38S9WwZvBSe94YTo+w8v75qti9T8eJlF t1abtG7D7Jdmuf+L4OgpdtxtsBRXi6WS/y9UEZyiIX71FLvMzR1EqrSP6S8CQdS3mUAY 9Yqg== X-Gm-Message-State: AOAM530AH71Gk2ePo/V08aLyfIb5m2zt4mtDITqBR5p5FvKRwdm/pRVJ 8xbRf5kPyxAI+RLCwr75yTLGZw== X-Received: by 2002:adf:e54f:: with SMTP id z15mr4046751wrm.159.1606398186510; Thu, 26 Nov 2020 05:43:06 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:05 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 14/40] drm/amd/pm/powerplay/hwmgr/ppatomfwctrl: Demote kernel-doc formatting abuses Date: Thu, 26 Nov 2020 13:42:14 +0000 Message-Id: <20201126134240.3214176-15-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): drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomfwctrl.c:78: warning: Function parameter or member 'hwmgr' not described in 'pp_atomfwctrl_is_voltage_controlled_by_gpio_v4' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomfwctrl.c:78: warning: Function parameter or member 'voltage_type' not described in 'pp_atomfwctrl_is_voltage_controlled_by_gpio_v4' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomfwctrl.c:78: warning: Function parameter or member 'voltage_mode' not described in 'pp_atomfwctrl_is_voltage_controlled_by_gpio_v4' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomfwctrl.c:211: warning: Function parameter or member 'hwmgr' not described in 'pp_atomfwctrl_get_pp_assign_pin' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomfwctrl.c:211: warning: Function parameter or member 'pin_id' not described in 'pp_atomfwctrl_get_pp_assign_pin' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomfwctrl.c:211: warning: Function parameter or member 'gpio_pin_assignment' not described in 'pp_atomfwctrl_get_pp_assign_pin' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomfwctrl.c:232: warning: Function parameter or member 'hwmgr' not described in 'pp_atomfwctrl_enter_self_refresh' 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 --- .../drm/amd/pm/powerplay/hwmgr/ppatomfwctrl.c | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomfwctrl.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomfwctrl.c index 615cf2c09e54e..a47a47238e2b9 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomfwctrl.c +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomfwctrl.c @@ -68,11 +68,11 @@ static struct atom_voltage_objects_info_v4_1 *pp_atomfwctrl_get_voltage_info_tab return (struct atom_voltage_objects_info_v4_1 *)table_address; } -/** -* Returns TRUE if the given voltage type is controlled by GPIO pins. -* voltage_type is one of SET_VOLTAGE_TYPE_ASIC_VDDC, SET_VOLTAGE_TYPE_ASIC_MVDDC, SET_VOLTAGE_TYPE_ASIC_MVDDQ. -* voltage_mode is one of ATOM_SET_VOLTAGE, ATOM_SET_VOLTAGE_PHASE -*/ +/* + * Returns TRUE if the given voltage type is controlled by GPIO pins. + * voltage_type is one of SET_VOLTAGE_TYPE_ASIC_VDDC, SET_VOLTAGE_TYPE_ASIC_MVDDC, SET_VOLTAGE_TYPE_ASIC_MVDDQ. + * voltage_mode is one of ATOM_SET_VOLTAGE, ATOM_SET_VOLTAGE_PHASE + */ bool pp_atomfwctrl_is_voltage_controlled_by_gpio_v4(struct pp_hwmgr *hwmgr, uint8_t voltage_type, uint8_t voltage_mode) { @@ -202,9 +202,9 @@ static bool pp_atomfwctrl_lookup_gpio_pin( return false; } -/** -* Returns TRUE if the given pin id find in lookup table. -*/ +/* + * Returns TRUE if the given pin id find in lookup table. + */ bool pp_atomfwctrl_get_pp_assign_pin(struct pp_hwmgr *hwmgr, const uint32_t pin_id, struct pp_atomfwctrl_gpio_pin_assignment *gpio_pin_assignment) @@ -224,10 +224,10 @@ bool pp_atomfwctrl_get_pp_assign_pin(struct pp_hwmgr *hwmgr, return ret; } -/** -* Enter to SelfRefresh mode. -* @param hwmgr -*/ +/* + * Enter to SelfRefresh mode. + * @param hwmgr + */ int pp_atomfwctrl_enter_self_refresh(struct pp_hwmgr *hwmgr) { /* 0 - no action From patchwork Thu Nov 26 13:42:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 332988 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp155861ejs; Thu, 26 Nov 2020 05:43:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJwdEH9ZiQ3bi0a5reH70g3LU2kDaYdoHjLRqZAuNagIMLtOD7uFUObQFBG8KKLJ27TpnOjw X-Received: by 2002:a17:90b:4b87:: with SMTP id lr7mr3735156pjb.40.1606398205491; Thu, 26 Nov 2020 05:43:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398205; cv=none; d=google.com; s=arc-20160816; b=iHDicoswNXWj4ZteO+VXrvRdSJTL18HuI+eASNMREfPAKYBYMHJI9KY7xVm2PiMebI JPhDEkemAgDjR5neKoNey++aWJZN7f31+yPonGfdHpmNGL2aY1i9ulO7DX+jL1prf7A3 u8RfRaoP0BxMGwHR9nw5R5EuHa7p5BjpmsFKmcWT203ohA1vj0DgLnm1C1SyqWiBuNZh Zb6MX2LaDx4dYRGUxKuhhq3xRiO8T/aL+MdM9wwVIYwbbbeVQAVWP5myA+5h3ZiZT7eA wC24WnAd0vDbdAt4Vj6Sb769qVwvTBaLUwr5YzQQGnsjyOY01f3oSUHxXIZtXwdZiU2c 6Ueg== 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=OEUucOOjyo5tM108U1Ng3iSuP1BYi3tOEcwNgeL0iFg=; b=TfYKNGKwvx0UqIyBpKgxY7VvrNXi+RS8G9jGaXx/+5k6mAe6M/Hh+PeDwgoA9XCDsg aZNSCyqux7IhaTASmGb5DpL3MXNmfh8TnFwqDTDiuiOota3skw2HJTYPpD2VKD/P1Z2g qeyWZDWlHu/UP3BqmKTHnYLGWbvVbZFfOv7nqy7CDZdIDv4WBY4JXjvgYd/mwDA7G+lZ NOPDDRGfcnKsJvu+ZhGePkoDBItYbbzEoBkQB4+TFlAoCJA0jLqymhH2n7Ta5uhJBX/F PQWuNUyc/Qwa1QcCkEcIETCpjlcqfgkNlX1VjPMGWExZhmhT5WtiGF20+Dp7dYjAjAHC 3h0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=rk6rWnUC; 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 x76si5227431pfd.155.2020.11.26.05.43.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:25 -0800 (PST) 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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=rk6rWnUC; 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 BE6176E969; Thu, 26 Nov 2020 13:43:18 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0BEF66E957 for ; Thu, 26 Nov 2020 13:43:09 +0000 (UTC) Received: by mail-wr1-x444.google.com with SMTP id l1so2189917wrb.9 for ; Thu, 26 Nov 2020 05:43:08 -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=jh3Zn1ResYGUShWTof3m2Q8rRwpV0wK8w2BTM5dDuqo=; b=rk6rWnUC9jqDQyGdupgrLNKrRSul0EHQaNGK+50NcidJxDqAvVUj56R5RyfXPBaGcW bSBgt/Ie1likRXGMHTQK+17lYRwCLYfSq3BJCLm2XxwMb8WXepCS7ge8/eZVo7gr/XGq kCuJM1R00G7RuwWlRH578S74u+AFIcbgHv3NFW66QOirRez6hZequRYFtFmwdFbg4jMK 863oGkc9U1L7MDiHaIB9G4cRf6dOoqblbB/lUyg/otJbW4APSRCqt0ohAP2dgt2kagdA XI8RlvPRmdMATCk3eqe/Xzypb6nIQ8pzFcx6S/gzizO08IQOCYIyaI3A+dQLX9ehNMoK 2wyA== 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=jh3Zn1ResYGUShWTof3m2Q8rRwpV0wK8w2BTM5dDuqo=; b=cvN0zljLa5wRpftC0eH1daTjexn7GAiOgRceUrhe3UIb5rHohJvg2Jx+XPyk9+emlx sSxuU9uJPMnp+R59FWipjovOv1W9EjkOYBZNkI0sCcOPExaVGCrlxDvLCehpJgKS2eZj Pbvx5qcbzaFk0coaNLjlT9G6n2w3zjov3wptTbVbQGSE+jw4d0AKQsVF0g27JJWR+iBI 6vXcGRS8KyueXuIJsQvpB469gcJloK2lablM+qRoBhiIiDxvExKUhIx1ar1cO0haa7C7 Mvp0IK9J1dWvAhkrJczegx3dOU2mhB221kKNgTW3cQIm25re4v0dpSHdbtry4r9K5F/a P0cg== X-Gm-Message-State: AOAM532qx4pu3iOe2McNvBOUtEu5GLnM9VXOnt/CfiEQ8le/jyaNf5Oi vdCTQD+TOwE40iqf1SeiuQsc9g== X-Received: by 2002:adf:ee51:: with SMTP id w17mr3923479wro.373.1606398187789; Thu, 26 Nov 2020 05:43:07 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:07 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 15/40] drm/msm/disp/dpu1/dpu_hw_interrupts: Demote kernel-doc formatting misuse Date: Thu, 26 Nov 2020 13:42:15 +0000 Message-Id: <20201126134240.3214176-16-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: freedreno@lists.freedesktop.org, Shubhashree Dhar , David Airlie , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Sean Paul Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c:246: error: Cannot parse struct or union! drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c:756: error: Cannot parse struct or union! Cc: Rob Clark Cc: Sean Paul Cc: David Airlie Cc: Daniel Vetter Cc: Shubhashree Dhar Cc: linux-arm-msm@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Cc: freedreno@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.25.1 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel Reviewed-by: Abhinav Kumar diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c index 38482b1047745..5c521de715670 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c @@ -189,7 +189,7 @@ struct dpu_irq_type { u32 reg_idx; }; -/** +/* * struct dpu_intr_reg - List of DPU interrupt registers */ static const struct dpu_intr_reg dpu_intr_set[] = { @@ -245,7 +245,7 @@ static const struct dpu_intr_reg dpu_intr_set[] = { } }; -/** +/* * struct dpu_irq_type - IRQ mapping table use for lookup an irq_idx in this * table that have a matching interface type and * instance index. From patchwork Thu Nov 26 13:42:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 332989 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp155879ejs; Thu, 26 Nov 2020 05:43:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJy2vtJSgWzwXC1qjRYH6NUOIA/tT6qjhv4u9jaPUVKjjIGr43rL8AO38okfbu4aI6W+0yMR X-Received: by 2002:a17:90a:1bcb:: with SMTP id r11mr3647649pjr.27.1606398207224; Thu, 26 Nov 2020 05:43:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398207; cv=none; d=google.com; s=arc-20160816; b=YsvNfU1/lWshBlV7SI1cQhT77/whXp6s9lgtRA8JCUVrfs3fTO9xQkeKTOKVtce5qy SxHcSJvzb18zAItSaUwYKhXUH2nJFYNsB9Y3kNT85vSf6PMGNJ0hWX+MufmB0nWieLYK 014i+p0u4kXpMzvVgm8pVoLpVq/9VUL2H4LQUiWQ4EwbWY2BmOcP9k2eW+AKX19PUEL6 NTZLvb+fy+r4BYFyAGetZ6y4vJlKjAnCGAlBQAYarhZNZ30Ddi8wavr98wPAQt2E/B6Q JIgm3IyqUGqnr9RYGZ8HhuKpEqpPZykhHe4ixhB8utuUPVtv09TqusjoZRUEIaUArpvT S0mQ== 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=E5Jvj/RUOcmzUchzebi7wFsYoh9e4uExoFmkm+B6uMA=; b=Nt9DnDNDKo215Y5jB+Sa9/KgwLQVuWB0L0QOU6ajsdmrUkOKSyBLNAYtEKeRznaKNH cGSxDolHYy2S6gvbvvzs417CZco+xu+Uho9HnHD//dnR06FZNiNYMTNN1Hn48cjAj/N8 9fzk/qyK0iSbgb3FZdW97meVSQiAYU1+FV7j7+KXHt1eqHoAvMLFloKyp0+hnU82ba7b lcNzQNHXbTZ5p1tsSIIJVWxHhjK8mn9l4jIH/nFcJVIMPFkDoBOukj4E5kkrLqh9GrWV aGdtnacLoZ1OCtUQa7Voena//UFlIzIwTGX6vLdGcIr5j5iW8s5a4j8EsOO/T6eC5VDi EAcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=UD3E9VdW; 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 j1si5139463pjt.47.2020.11.26.05.43.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:27 -0800 (PST) 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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=UD3E9VdW; 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 C74276E96A; Thu, 26 Nov 2020 13:43:18 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by gabe.freedesktop.org (Postfix) with ESMTPS id 451946E95A for ; Thu, 26 Nov 2020 13:43:10 +0000 (UTC) Received: by mail-wr1-x443.google.com with SMTP id i2so2193854wrs.4 for ; Thu, 26 Nov 2020 05:43:10 -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=5FFGLkzHxg+N+3tJLNsR8x54qcIEfrnjhf2NeR7gfvQ=; b=UD3E9VdWiOH8HHc3mcXJWQ6FheicN8TOMXfJTzBr2/uw6O3ZHKp7O+vhFI7xhmTbti PnCNSdhJn0Nnc9gsst8K+q9FHVakkCUBsYBTIZDxQI1iRVwNJhMeCqLm7QrAGKIb9fFU KrJZopwnbKHCGVB3l7KeG+zh3mX0fEzcPov/agJqwxK1ZEyhvsllFm7vtv/3L9X/vAhh U48twSGTnWelRLeaexz1rVrP6PtvVjEH77mOmVuoJTvbqHrK4EUafXvnNmMEPV6hZVoX 360i4ts/gFwfRc6WawpK3hDLBA6+Ujppx2dH005gklhp6n8F5EIwagA+XJa/SRuGEOQB ZSfA== 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=5FFGLkzHxg+N+3tJLNsR8x54qcIEfrnjhf2NeR7gfvQ=; b=S/vtyk0Zj5zDN77LYkAi2Zp1kwaozzryZBdWbV+7R8UMAjQ/IEaLcE5JH12MH50uf3 hIi2ba5kM6fGMLG7fWQKwWcAkx7694pPCWMcX6h9zu3WP8smbfn08Bbg8y4oaYQMnhAo q1tQNM6yEAyvXtvqK5yM63fkDFwCpKXpLuIQKm9hIycZZNh2FR9JV++22zYAKwBLFaJ/ nI49vhpPODZw8LGZj2P+/Ar/CB9aUGJw0TKNhrXazqGGxDD40hAkotErKrXWBxfjb2Nv 8WIIOEA11pBDcwY7LyaLeqIplS2pLRwvZeI8GyXyrhn/I2jXw1reQEJmIEawC7VF/7qM 4jVQ== X-Gm-Message-State: AOAM530ZRdwo/HbOWTqO9R5nlIE14cWdOPTkcnN41gg8AOnR2e53WUiy qxE7Fe7gb2ok9D2bgDnIZg+Xog== X-Received: by 2002:a5d:4d86:: with SMTP id b6mr3883469wru.369.1606398188990; Thu, 26 Nov 2020 05:43:08 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:08 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 16/40] drm/amd/pm/powerplay/smumgr/iceland_smumgr: Remove unused variable 'res' Date: Thu, 26 Nov 2020 13:42:16 +0000 Message-Id: <20201126134240.3214176-17-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, Huang Rui , 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): drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/iceland_smumgr.c: In function ‘iceland_thermal_setup_fan_table’: drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/iceland_smumgr.c:2093:6: warning: variable ‘res’ 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: Huang Rui Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/amd/pm/powerplay/smumgr/iceland_smumgr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/smumgr/iceland_smumgr.c b/drivers/gpu/drm/amd/pm/powerplay/smumgr/iceland_smumgr.c index 6a0f581de999b..2da5225eafbb8 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/smumgr/iceland_smumgr.c +++ b/drivers/gpu/drm/amd/pm/powerplay/smumgr/iceland_smumgr.c @@ -2090,7 +2090,6 @@ static int iceland_thermal_setup_fan_table(struct pp_hwmgr *hwmgr) uint32_t t_diff1, t_diff2, pwm_diff1, pwm_diff2; uint16_t fdo_min, slope1, slope2; uint32_t reference_clock; - int res; uint64_t tmp64; if (!phm_cap_enabled(hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_MicrocodeFanControl)) @@ -2154,7 +2153,7 @@ static int iceland_thermal_setup_fan_table(struct pp_hwmgr *hwmgr) /* fan_table.FanControl_GL_Flag = 1; */ - res = smu7_copy_bytes_to_smc(hwmgr, smu7_data->fan_table_start, (uint8_t *)&fan_table, (uint32_t)sizeof(fan_table), SMC_RAM_END); + smu7_copy_bytes_to_smc(hwmgr, smu7_data->fan_table_start, (uint8_t *)&fan_table, (uint32_t)sizeof(fan_table), SMC_RAM_END); return 0; } From patchwork Thu Nov 26 13:42:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 332995 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp156000ejs; Thu, 26 Nov 2020 05:43:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJz6u5w09eTnPcfnfL0dl6nuWBCQEyGmScSatCIBL2dv6nO6tQ60J+GczIiJv0MMBmwEbpNN X-Received: by 2002:a62:5e81:0:b029:197:baa5:1792 with SMTP id s123-20020a625e810000b0290197baa51792mr2802707pfb.80.1606398216892; Thu, 26 Nov 2020 05:43:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398216; cv=none; d=google.com; s=arc-20160816; b=eOlsw7jFWH20gkSSHDDfv+8IQFICmi6+s6ivh6232eSANZByyXsXSpizkcKQgGN6O+ fyXnE/z8nBe08W6hFICIfxIczuSIxBxPeHt6GFom3BOqOzoCjIi8R7EkcDfYn/2Ctb5L AMWegkdvmO8p8sOSrSJe3StVrdcVuMyF83e9/J015Z9upWv2xZx2Ymsfgxa+CUjIsZu6 tr4Gt3qkNbbOmvZZfwu3cQTae+Gw83YMZvEx8LlAEfhZ2WlXJzm6L1VdbBzk1EdPIm9h 6QiGkHJDQDYYeGCu78ecU31swGuElyqvrSBDYuRLEcVsUUkIDx8a42wQ22XoOj5vrF1H B1Dw== 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=PL+yIQUkMeVSFr0k269/ZEn57IzWYh2CZGIa2B/Yg+0=; b=mHR+Zo1ZTQA3POdRL+m/OaQ8yFn3ewj5RyFtDGtyq/ctniLLDKBhf13FIW+fzIJCYS +5HDK0CJgY/cgNb6h88MyzKtSdW15A8jCSYdDd3DknSo/vXL1B1hQqwAFfQ97ZCkund8 2sWexdYhkSTvboKea9xKL7g1x8HtG91wnZim0vY2DLbrNXQ2va92FaXHWM6V4CH0VA85 sEBbLcKMWEHNGfSPOZEZfq3tqWiTlSV+yGNfzkzVax/XeFsa2lEYPclC4NOFkVp31ZUo ygdTSYOgNSwju6kiIMmTlB6SIJz3tSUsCxEn1rTTz0cjcmJryRF6XgEL8ERasjVhSdCT vBxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=GcPofYX9; 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 e29si5558810pgn.524.2020.11.26.05.43.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:36 -0800 (PST) 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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=GcPofYX9; 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 91D996E978; 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 A305D6E948 for ; Thu, 26 Nov 2020 13:43:13 +0000 (UTC) Received: by mail-wm1-x344.google.com with SMTP id 1so2456474wme.3 for ; Thu, 26 Nov 2020 05:43:13 -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=ldaBPFUn0rO8pzl0GTJMRaUTSpPfHm0TP7NYAeN6NJM=; b=GcPofYX9Qv1V/2JRRf6eBMcmKMvq/1Y31zzXUpFv5WiZOV9yJh+i6XHPOojgh//o24 KG7wZ049wcgMys0vZlZPxdX+UUR+E7ss+DRmBqf4q8VM0UmyhYYehvLzU79YMDMvLfh4 beMPEE0h/cHkQRbNEH+m4dUgZ+FiqFn8GubSAKi1eSTWQtQTfJxpSQXt14tg5Sx92KxE oewKv4hUveIzavl5EUkEqL2xkXlqMmFvlo8xkY9ps7OQrqk2IhlcI+6mYMWNRcAYqo2w 1lvd3wlv9+U1TYKUBGDlKd+SVhhuTxlUdeWrZxDiI5sno5LOEGLXlYrmRi1Lo/VZcd48 zD/A== 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=ldaBPFUn0rO8pzl0GTJMRaUTSpPfHm0TP7NYAeN6NJM=; b=Nw0um5i02tqQrztSVkAzpqKYBYf7n+WRU2L+NJ6QsXw3WUTLkThDSt+IDAmAmFVq9v lLpPxdChYKbz+Zd5y6WIdvxpYhZr2dW9zTgG8PVYI/Zyo/joMkbwEAld8Mx6BI7YEL85 zzC9onenkvjiXzas3QJvRjseh9c4X7klSNuzzOw4lJP710p0uQmzV+zytafFLEdNUVCb XEoZtm5KarMmz++WqKMkhC7kXNTwzoLEOeSh3UNhufWPvocBCmlH37c77lNpxU49kYy9 V+kjonKuLh+DHA3T5QByoBEVaoGwQDyBXqk0RA1AhInV8psvc6Ty+aTbxE+MKoR2FXwr JMHw== X-Gm-Message-State: AOAM533Cw8Af0AtakQ4nibToENMC6qOOc9mH3MvvOoyt789T1cSVrW7T CJnD5aZqZjfblQVoxtRcgr8bUg== X-Received: by 2002:a1c:1b06:: with SMTP id b6mr3459206wmb.101.1606398190290; Thu, 26 Nov 2020 05:43:10 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:09 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 17/40] drm/amd/pm/powerplay/hwmgr/hardwaremanager: Fix function header related formatting issues Date: Thu, 26 Nov 2020 13:42:17 +0000 Message-Id: <20201126134240.3214176-18-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): drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/hardwaremanager.c:232: warning: Function parameter or member 'hwmgr' not described in 'phm_start_thermal_controller' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/hardwaremanager.c:383: warning: Function parameter or member 'hwmgr' not described in 'phm_get_clock_info' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/hardwaremanager.c:383: warning: Function parameter or member 'state' not described in 'phm_get_clock_info' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/hardwaremanager.c:383: warning: Function parameter or member 'pclock_info' not described in 'phm_get_clock_info' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/hardwaremanager.c:383: warning: Function parameter or member 'designation' not described in 'phm_get_clock_info' 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 --- .../amd/pm/powerplay/hwmgr/hardwaremanager.c | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hardwaremanager.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hardwaremanager.c index 45dde3e74b578..25b5831a15cd2 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hardwaremanager.c +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hardwaremanager.c @@ -223,11 +223,11 @@ int phm_register_irq_handlers(struct pp_hwmgr *hwmgr) } /** -* Initializes the thermal controller subsystem. -* -* @param pHwMgr the address of the powerplay hardware manager. -* @exception PP_Result_Failed if any of the paramters is NULL, otherwise the return value from the dispatcher. -*/ + * phm_start_thermal_controller - Initializes the thermal controller subsystem. + * + * @hwmgr: the address of the powerplay hardware manager. + * Exception PP_Result_Failed if any of the paramters is NULL, otherwise the return value from the dispatcher. + */ int phm_start_thermal_controller(struct pp_hwmgr *hwmgr) { int ret = 0; @@ -371,13 +371,14 @@ int phm_get_performance_level(struct pp_hwmgr *hwmgr, const struct pp_hw_power_s /** -* Gets Clock Info. -* -* @param pHwMgr the address of the powerplay hardware manager. -* @param pPowerState the address of the Power State structure. -* @param pClockInfo the address of PP_ClockInfo structure where the result will be returned. -* @exception PP_Result_Failed if any of the paramters is NULL, otherwise the return value from the back-end. -*/ + * phm_get_clock_info + * + * @hwmgr: the address of the powerplay hardware manager. + * @state: the address of the Power State structure. + * @pclock_info: the address of PP_ClockInfo structure where the result will be returned. + * @designation: PHM performance level designation + * Exception PP_Result_Failed if any of the paramters is NULL, otherwise the return value from the back-end. + */ int phm_get_clock_info(struct pp_hwmgr *hwmgr, const struct pp_hw_power_state *state, struct pp_clock_info *pclock_info, PHM_PerformanceLevelDesignation designation) { From patchwork Thu Nov 26 13:42:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 332997 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp156047ejs; Thu, 26 Nov 2020 05:43:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJxuMlqv8oEqIR2iLXXaOF8787sNQoh9fdtbn0Ly6NGucb2IgLSpR1FXR5vej3uM8B5pck2b X-Received: by 2002:a17:90a:a781:: with SMTP id f1mr3921604pjq.50.1606398221276; Thu, 26 Nov 2020 05:43:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398221; cv=none; d=google.com; s=arc-20160816; b=k/OU3vi9mM1xztAN1zGkwgOKTVGEjKfWGGOWWF12gfi78y978qJ4xJiTaHFDl2Y256 6XkOUnpChF9GJyV606pdoeELkOodkM483F5xSD9++htA+3oAeawW43FuJY04n7NAcCxF u3DpeX+pEQoMib328yyTWQPHfq0bdO9dCaZ7cUC/1oWf3E1kfj67L0UPNPEYxN6Fd+F2 hwwsWZL/eazd6snfw4P69chQmmzN7ciacosivOMD14Rc3TZCrUlUsbrgVj5C7bqQrRKB 4lr2Pu3G+mW98+ZHRLWMEokuZjxwp+6qDAH5rss/7yymqC8fN+9ejbTIVBYjAI3M116S Uy2Q== 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=wbhsxQ8KevppDae2lZUTRXkN7QYqvPrwJLeB62zYWd4=; b=ME5icVEs/FD4e+r9t7KVilMm+UH06c6HMeyHqlzdFubLuR/yZ00UbmXz4Feelv+P0t uDmkLRmmlY+WTZ7/YhFlM4WfGTXdyNmqdt3U4zJck7DtXb1dE+71Vdw/BCcf6Po4g/N7 20x5S/46VE/9Ze557ktYQlxIVeNkzbR/pKAyha5AjNbfml/KuMOO9pyfQMifdtQJtrxA hWqxAN10NjM885U4ZJltSUEdfuAdaHSOzIIxmfjkue91mtU8fjJbVM9XKZc4i8PpMkg4 +tPLms4r3CG7F+rgPL9FjxwlMv/80ZQgTeNOx/KQJhUY34ZdEmOyVxozPwJOLX87n1g4 drEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=irhFLR+D; 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 r67si5396842pfr.47.2020.11.26.05.43.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:41 -0800 (PST) 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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=irhFLR+D; 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 430066E991; Thu, 26 Nov 2020 13:43:21 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by gabe.freedesktop.org (Postfix) with ESMTPS id 899456E948 for ; Thu, 26 Nov 2020 13:43:15 +0000 (UTC) Received: by mail-wr1-x444.google.com with SMTP id m6so2185060wrg.7 for ; Thu, 26 Nov 2020 05:43:15 -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=jJ48BnAFuIYXRbLOjlTsHmoQNdzeeMH8+iEVcNp9LRw=; b=irhFLR+D7PHiZmn27CayKxpHC+pspRcPPxBdS39NIWI1a1AtvgPFGv1+GKKx7263iY OF6nv8G3JtBO5NxqtncSSzSt0O5Kxp54ywhxmA/qVsGyeNSpdfYQyURlg8Dll8XkVSuh 0GTu5Ok7Oll9qvpzpd+tL20UWO0nKxHiBJv9lGLVykcWC73tOgo4PbxN0U5XVazzA6KD 2TzPexCvYD2WiKh84ClrArAA8ixmghure9qvs8p6u/f+XIEVoBZwhRrl0PZnwO/RcbmE vO4xFDL7xwqjciD/I8NYHJ+PcUhxtnQbH3HtpfRiLn595SDbPYOnYvBQYqgx/b7nZh5w hHAQ== 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=jJ48BnAFuIYXRbLOjlTsHmoQNdzeeMH8+iEVcNp9LRw=; b=Ve6SUElk7Yk14Hvddi5eagEWghbbq2sydu8fBhZcu2MQkyja4YS/epTkjq7IenQ8FN aHVkxj0SEmYMM2n2+0jYElZdl6Myy3e+Pf8/0KO1R2+8htmqUTtBzfU7ol19oRvm+mQb iINm5XHM2+0WfzCDsfUZF50hZ9lSHrqFF0zGKb9fIMLSFQZEoREyBPPW2TsBPhha+E/w 1SQdAhx64o74wND5oFttt4gDyZXi7zOtl4F/5vvQZeu6iKx01iSMal4APPx/CvWdoLTS boSVmPVLh5L0UoG3N7ueC5YsBnHOr5o1QbqkzAo81Ctnn+GNsely3HeCdrpzeg8NXVpK 5l6g== X-Gm-Message-State: AOAM530FS29NevPrRw/XwgRqsr5FJdMHXIF2Bqm1IJLm+7uaJfo6omHX Wj1XfLdVPBh3Rc3rU5AV97W9UQ== X-Received: by 2002:adf:f608:: with SMTP id t8mr4051594wrp.72.1606398193594; Thu, 26 Nov 2020 05:43:13 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:12 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 18/40] drm/amd/pm/powerplay/hwmgr/process_pptables_v1_0: Convert to proper kernel-doc format Date: Thu, 26 Nov 2020 13:42:18 +0000 Message-Id: <20201126134240.3214176-19-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): drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/process_pptables_v1_0.c:41: warning: Function parameter or member 'hwmgr' not described in 'set_hw_cap' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/process_pptables_v1_0.c:41: warning: Function parameter or member 'setIt' not described in 'set_hw_cap' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/process_pptables_v1_0.c:41: warning: Function parameter or member 'cap' not described in 'set_hw_cap' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/process_pptables_v1_0.c:56: warning: Function parameter or member 'hwmgr' not described in 'set_platform_caps' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/process_pptables_v1_0.c:56: warning: Function parameter or member 'powerplay_caps' not described in 'set_platform_caps' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/process_pptables_v1_0.c:135: warning: Function parameter or member 'hwmgr' not described in 'get_powerplay_table' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/process_pptables_v1_0.c:202: warning: Function parameter or member 'hwmgr' not described in 'get_platform_power_management_table' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/process_pptables_v1_0.c:202: warning: Function parameter or member 'atom_ppm_table' not described in 'get_platform_power_management_table' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/process_pptables_v1_0.c:246: warning: Function parameter or member 'hwmgr' not described in 'init_dpm_2_parameters' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/process_pptables_v1_0.c:246: warning: Function parameter or member 'powerplay_table' not described in 'init_dpm_2_parameters' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/process_pptables_v1_0.c:791: warning: Function parameter or member 'hwmgr' not described in 'init_clock_voltage_dependency' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/process_pptables_v1_0.c:791: warning: Function parameter or member 'powerplay_table' not described in 'init_clock_voltage_dependency' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/process_pptables_v1_0.c:911: warning: Function parameter or member 'hwmgr' not described in 'init_thermal_controller' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/process_pptables_v1_0.c:911: warning: Function parameter or member 'powerplay_table' not described in 'init_thermal_controller' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/process_pptables_v1_0.c:1121: warning: Function parameter or member 'hwmgr' not described in 'check_powerplay_tables' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/process_pptables_v1_0.c:1121: warning: Function parameter or member 'powerplay_table' not described in 'check_powerplay_tables' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/process_pptables_v1_0.c:1263: warning: Function parameter or member 'hwmgr' not described in 'make_classification_flags' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/process_pptables_v1_0.c:1263: warning: Function parameter or member 'classification' not described in 'make_classification_flags' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/process_pptables_v1_0.c:1263: warning: Function parameter or member 'classification2' not described in 'make_classification_flags' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/process_pptables_v1_0.c:1370: warning: Function parameter or member 'hwmgr' not described in 'get_powerplay_table_entry_v1_0' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/process_pptables_v1_0.c:1370: warning: Function parameter or member 'entry_index' not described in 'get_powerplay_table_entry_v1_0' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/process_pptables_v1_0.c:1370: warning: Function parameter or member 'power_state' not described in 'get_powerplay_table_entry_v1_0' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/process_pptables_v1_0.c:1370: warning: Function parameter or member 'call_back_func' not described in 'get_powerplay_table_entry_v1_0' 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 --- .../powerplay/hwmgr/process_pptables_v1_0.c | 81 ++++++++++--------- 1 file changed, 41 insertions(+), 40 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/process_pptables_v1_0.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/process_pptables_v1_0.c index 801a565026703..741e03ad5311f 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/process_pptables_v1_0.c +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/process_pptables_v1_0.c @@ -32,10 +32,10 @@ #include "pptable_v1_0.h" /** - * Private Function used during initialization. - * @param hwmgr Pointer to the hardware manager. - * @param setIt A flag indication if the capability should be set (TRUE) or reset (FALSE). - * @param cap Which capability to set/reset. + * set_hw_cap - Private Function used during initialization. + * @hwmgr: Pointer to the hardware manager. + * @setIt: A flag indication if the capability should be set (TRUE) or reset (FALSE). + * @cap: Which capability to set/reset. */ static void set_hw_cap(struct pp_hwmgr *hwmgr, bool setIt, enum phm_platform_caps cap) { @@ -47,10 +47,10 @@ static void set_hw_cap(struct pp_hwmgr *hwmgr, bool setIt, enum phm_platform_cap /** - * Private Function used during initialization. - * @param hwmgr Pointer to the hardware manager. - * @param powerplay_caps the bit array (from BIOS) of capability bits. - * @exception the current implementation always returns 1. + * set_platform_caps - Private Function used during initialization. + * @hwmgr: Pointer to the hardware manager. + * @powerplay_caps: the bit array (from BIOS) of capability bits. + * Exception: the current implementation always returns 1. */ static int set_platform_caps(struct pp_hwmgr *hwmgr, uint32_t powerplay_caps) { @@ -128,7 +128,7 @@ static int set_platform_caps(struct pp_hwmgr *hwmgr, uint32_t powerplay_caps) return 0; } -/** +/* * Private Function to get the PowerPlay Table Address. */ static const void *get_powerplay_table(struct pp_hwmgr *hwmgr) @@ -191,10 +191,10 @@ static int get_vddc_lookup_table( } /** - * Private Function used during initialization. + * get_platform_power_management_table - Private Function used during initialization. * Initialize Platform Power Management Parameter table - * @param hwmgr Pointer to the hardware manager. - * @param atom_ppm_table Pointer to PPM table in VBIOS + * @hwmgr: Pointer to the hardware manager. + * @atom_ppm_table: Pointer to PPM table in VBIOS */ static int get_platform_power_management_table( struct pp_hwmgr *hwmgr, @@ -234,10 +234,10 @@ static int get_platform_power_management_table( } /** - * Private Function used during initialization. + * init_dpm_2_parameters - Private Function used during initialization. * Initialize TDP limits for DPM2 - * @param hwmgr Pointer to the hardware manager. - * @param powerplay_table Pointer to the PowerPlay Table. + * @hwmgr: Pointer to the hardware manager. + * @powerplay_table: Pointer to the PowerPlay Table. */ static int init_dpm_2_parameters( struct pp_hwmgr *hwmgr, @@ -779,10 +779,10 @@ static int get_gpio_table(struct pp_hwmgr *hwmgr, return 0; } /** - * Private Function used during initialization. + * init_clock_voltage_dependency - Private Function used during initialization. * Initialize clock voltage dependency - * @param hwmgr Pointer to the hardware manager. - * @param powerplay_table Pointer to the PowerPlay Table. + * @hwmgr: Pointer to the hardware manager. + * @powerplay_table: Pointer to the PowerPlay Table. */ static int init_clock_voltage_dependency( struct pp_hwmgr *hwmgr, @@ -871,15 +871,16 @@ static int init_clock_voltage_dependency( return result; } -/** Retrieves the (signed) Overdrive limits from VBIOS. +/** + * init_over_drive_limits - Retrieves the (signed) Overdrive limits from VBIOS. * The max engine clock, memory clock and max temperature come from the firmware info table. * * The information is placed into the platform descriptor. * - * @param hwmgr source of the VBIOS table and owner of the platform descriptor to be updated. - * @param powerplay_table the address of the PowerPlay table. + * @hwmgr: source of the VBIOS table and owner of the platform descriptor to be updated. + * @powerplay_table: the address of the PowerPlay table. * - * @return 1 as long as the firmware info table was present and of a supported version. + * Return: 1 as long as the firmware info table was present and of a supported version. */ static int init_over_drive_limits( struct pp_hwmgr *hwmgr, @@ -898,11 +899,11 @@ static int init_over_drive_limits( } /** - * Private Function used during initialization. + * init_thermal_controller - Private Function used during initialization. * Inspect the PowerPlay table for obvious signs of corruption. - * @param hwmgr Pointer to the hardware manager. - * @param powerplay_table Pointer to the PowerPlay Table. - * @exception This implementation always returns 1. + * @hwmgr: Pointer to the hardware manager. + * @powerplay_table: Pointer to the PowerPlay Table. + * Exception: This implementation always returns 1. */ static int init_thermal_controller( struct pp_hwmgr *hwmgr, @@ -1108,11 +1109,11 @@ static int init_thermal_controller( } /** - * Private Function used during initialization. + * check_powerplay_tables - Private Function used during initialization. * Inspect the PowerPlay table for obvious signs of corruption. - * @param hwmgr Pointer to the hardware manager. - * @param powerplay_table Pointer to the PowerPlay Table. - * @exception 2 if the powerplay table is incorrect. + * @hwmgr: Pointer to the hardware manager. + * @powerplay_table: Pointer to the PowerPlay Table. + * Exception: 2 if the powerplay table is incorrect. */ static int check_powerplay_tables( struct pp_hwmgr *hwmgr, @@ -1255,9 +1256,9 @@ int get_number_of_powerplay_table_entries_v1_0(struct pp_hwmgr *hwmgr) return (uint32_t)(state_arrays->ucNumEntries); } -/** -* Private function to convert flags stored in the BIOS to software flags in PowerPlay. -*/ +/* + * Private function to convert flags stored in the BIOS to software flags in PowerPlay. + */ static uint32_t make_classification_flags(struct pp_hwmgr *hwmgr, uint16_t classification, uint16_t classification2) { @@ -1356,13 +1357,13 @@ static int ppt_get_vce_state_table_entry_v1_0(struct pp_hwmgr *hwmgr, uint32_t i } /** -* Create a Power State out of an entry in the PowerPlay table. -* This function is called by the hardware back-end. -* @param hwmgr Pointer to the hardware manager. -* @param entry_index The index of the entry to be extracted from the table. -* @param power_state The address of the PowerState instance being created. -* @return -1 if the entry cannot be retrieved. -*/ + * get_powerplay_table_entry_v1_0 - Create a Power State out of an entry in the PowerPlay table. + * This function is called by the hardware back-end. + * @hwmgr: Pointer to the hardware manager. + * @entry_index: The index of the entry to be extracted from the table. + * @power_state: The address of the PowerState instance being created. + * Return: -1 if the entry cannot be retrieved. + */ int get_powerplay_table_entry_v1_0(struct pp_hwmgr *hwmgr, uint32_t entry_index, struct pp_power_state *power_state, int (*call_back_func)(struct pp_hwmgr *, void *, From patchwork Thu Nov 26 13:42:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 332996 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp156028ejs; Thu, 26 Nov 2020 05:43:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJxfIt1cxtbKkH/6udc4rTO0jY1SW/JDFt/LYMzay84eLRj4Dzgv83L1aM5H/uxHo0+pylmY X-Received: by 2002:a17:902:b115:b029:d8:f87e:c30c with SMTP id q21-20020a170902b115b02900d8f87ec30cmr2842539plr.36.1606398220008; Thu, 26 Nov 2020 05:43:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398220; cv=none; d=google.com; s=arc-20160816; b=OapjtfOVP8s4S4Dn4QZg6E72cnfdOo7/fDmW2+8UnYMerZ++xMAC5gKfz0hkrNjMYi SEGz5Am3SKV6TQ0QYJvTkmK82v7zVbuTzahX/ooGZaZYaax4E4bB7HCN1H1ZgzKrR11r /5c76hGbf5blLpQixCfe3RAdo7jEUfZ6AS9pvdLLw7Ht3WlXSt2y432IfVnKD5VTOmoN ElfW7RVM7MzNrpz9Wg2qYaVVsxdY7ymlHIe4CueE2xmhFGPKCTjRt4ITlPnzYoqUimj7 0ZeiyDUp+KGfVVIENKTyF+SfFRoiUjAXmvGq+v9bSlweDE4vCgENgilyI3A1H6XtBTXa sFyA== 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=7ZzbXagpWfN+Y+6AAp/IN4FpiKx96AuyEBzRKsmjXaM=; b=c9R2X1/lUu16rTpRovhfJ/Seo5phyjedT64iA77sVy1SuRFsFD5jS5/VtOXJKJHmVo zQQoU3tB2Th72xNAcd3ilsElxD0RH7nha7R1Z49ZUjPDIZJIAMcEBbo8Ou5pDZCm4n5w cFT6xlykp2TkvzeBTNmomJPzgEZdt7Ba19zur/+tQPL6DWs6arX2pFNCLvguvUO8wnRP EYwQ9djbblSfEG3YbVvgs58XZvcdfDI/qvn5OGiDU1SmmusBYa+uWwu0qvzCPabIgd5I N3CtrqzfJK46xMMh21WgEx/JmgsQrrddf08tIa7pMkSeeVUXnkzg7Dn1KEDbsQTOv+p6 /R/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Yh1V280H; 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 2si5747906plb.193.2020.11.26.05.43.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:39 -0800 (PST) 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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Yh1V280H; 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 63DFE6E967; Thu, 26 Nov 2020 13:43:20 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by gabe.freedesktop.org (Postfix) with ESMTPS id 297616E95D for ; Thu, 26 Nov 2020 13:43:16 +0000 (UTC) Received: by mail-wr1-x441.google.com with SMTP id 64so2174633wra.11 for ; Thu, 26 Nov 2020 05:43:16 -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=tHkmifUCbIBOfDozUuzbPpd9+rHglUI4NupilVtjZ78=; b=Yh1V280HmCQD+zBZqYDnmH9yyoevWopyCFULzHuZD5/ZTWq709dW3oI0V9GAxPPtxx eCCoDGOJN3YGnrkr2OlcUMwNrUyR3rKwJqXY/kFjveAAbuwhWdpsoX1w9HhPOZmFlz4N FjyNr8orPeKdAGxHh03q1gCxOZj1+geaaEiSpjVgz+PsuuEO1s4bfjcUnGh4uD69FJvv VZUMgql3lzbVBB/R/UtLcCrRKSWE3VYvkc1WSgVrg3WcaRBkKEE5qcgbj6wUP/e6miwU AyLDxXe2IH2PA/FXEE/Iju3twBIEVmQxXfuU1JzIfWp7no8nmQXxhD5LlZH/1FRnfyx5 OwCA== 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=tHkmifUCbIBOfDozUuzbPpd9+rHglUI4NupilVtjZ78=; b=qAk0EZg11sbDExMhSB8M80qMQFalLMUA2lEEqGx9XX+Kvh6q0tArIdAQeIgpr9KP5s hSxKB46JZFr0E937nAsqOYCkamG74WHAmwnSK8rhHfOrygJErp8xz9cDK/PoyVk9WFDA KEdGDD06N4i6hMWSgKkVbr0sSrNQdvxtnZFwrs2nePC8+2SXu5yGMFhzlpu55u9hzmb8 3+SxMAMjiBcllZKCYOVi/+xULSilvW0cbW6s/puFp+y2RBzbdNMf/awZ37S2mzXBtjjU hU3gnFEdJFq86kODD3JZKEX48gHRrUKk2I4GVEUisnkNsfTqKavC6z5sdVoKj8lfhD5I yXzw== X-Gm-Message-State: AOAM533pRMgQi4xwvj9BWD+P0cjIsg9Hcu/fetNX4eg01e9j5wzfAz7f 7ggD3fpJ5zXKxCcPO06dOrge5g== X-Received: by 2002:adf:f2c7:: with SMTP id d7mr3872623wrp.142.1606398194838; Thu, 26 Nov 2020 05:43:14 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:14 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 19/40] drm/amd/pm/powerplay/hwmgr/ppatomctrl: Fix a myriad of kernel-doc issues Date: Thu, 26 Nov 2020 13:42:19 +0000 Message-Id: <20201126134240.3214176-20-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): drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:104: warning: Function parameter or member 'reg_block' not described in 'atomctrl_set_mc_reg_address_table' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:104: warning: Function parameter or member 'table' not described in 'atomctrl_set_mc_reg_address_table' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:213: warning: Function parameter or member 'hwmgr' not described in 'atomctrl_set_engine_dram_timings_rv770' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:213: warning: Function parameter or member 'engine_clock' not described in 'atomctrl_set_engine_dram_timings_rv770' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:213: warning: Function parameter or member 'memory_clock' not described in 'atomctrl_set_engine_dram_timings_rv770' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:239: warning: Function parameter or member 'device' not described in 'get_voltage_info_table' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:519: warning: Function parameter or member 'hwmgr' not described in 'atomctrl_get_reference_clock' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:548: warning: Function parameter or member 'hwmgr' not described in 'atomctrl_is_voltage_controlled_by_gpio_v3' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:548: warning: Function parameter or member 'voltage_type' not described in 'atomctrl_is_voltage_controlled_by_gpio_v3' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:548: warning: Function parameter or member 'voltage_mode' not described in 'atomctrl_is_voltage_controlled_by_gpio_v3' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:640: warning: Function parameter or member 'device' not described in 'get_gpio_lookup_table' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:663: warning: Function parameter or member 'hwmgr' not described in 'atomctrl_get_pp_assign_pin' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:663: warning: Function parameter or member 'pinId' not described in 'atomctrl_get_pp_assign_pin' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:663: warning: Function parameter or member 'gpio_pin_assignment' not described in 'atomctrl_get_pp_assign_pin' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:1152: warning: Function parameter or member 'hwmgr' not described in 'atomctrl_get_voltage_evv' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:1152: warning: Function parameter or member 'virtual_voltage_id' not described in 'atomctrl_get_voltage_evv' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:1152: warning: Function parameter or member 'voltage' not described in 'atomctrl_get_voltage_evv' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:1194: warning: Function parameter or member 'hwmgr' not described in 'atomctrl_get_mpll_reference_clock' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:1227: warning: Function parameter or member 'device' not described in 'asic_internal_ss_get_ss_table' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:1258: warning: Function parameter or member 'hwmgr' not described in 'asic_internal_ss_get_ss_asignment' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:1258: warning: Function parameter or member 'clockSource' not described in 'asic_internal_ss_get_ss_asignment' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:1258: warning: Function parameter or member 'clockSpeed' not described in 'asic_internal_ss_get_ss_asignment' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:1258: warning: Function parameter or member 'ssEntry' not described in 'asic_internal_ss_get_ss_asignment' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:1321: warning: Function parameter or member 'hwmgr' not described in 'atomctrl_get_memory_clock_spread_spectrum' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:1321: warning: Function parameter or member 'memory_clock' not described in 'atomctrl_get_memory_clock_spread_spectrum' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:1321: warning: Function parameter or member 'ssInfo' not described in 'atomctrl_get_memory_clock_spread_spectrum' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:1332: warning: Function parameter or member 'hwmgr' not described in 'atomctrl_get_engine_clock_spread_spectrum' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:1332: warning: Function parameter or member 'engine_clock' not described in 'atomctrl_get_engine_clock_spread_spectrum' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:1332: warning: Function parameter or member 'ssInfo' not described in 'atomctrl_get_engine_clock_spread_spectrum' 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 --- .../drm/amd/pm/powerplay/hwmgr/ppatomctrl.c | 74 ++++++++++--------- 1 file changed, 39 insertions(+), 35 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c index 2cb913ab77f26..83a6504e093cb 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c @@ -92,11 +92,11 @@ static int atomctrl_retrieve_ac_timing( } /** - * Get memory clock AC timing registers index from VBIOS table + * atomctrl_set_mc_reg_address_table - Get memory clock AC timing registers index from VBIOS table * VBIOS set end of memory clock AC timing registers by ucPreRegDataLength bit6 = 1 - * @param reg_block the address ATOM_INIT_REG_BLOCK - * @param table the address of MCRegTable - * @return 0 + * @reg_block: the address ATOM_INIT_REG_BLOCK + * @table: the address of MCRegTable + * Return: 0 */ static int atomctrl_set_mc_reg_address_table( ATOM_INIT_REG_BLOCK *reg_block, @@ -203,7 +203,7 @@ int atomctrl_initialize_mc_reg_table_v2_2( return result; } -/** +/* * Set DRAM timings based on engine clock and memory clock. */ int atomctrl_set_engine_dram_timings_rv770( @@ -229,7 +229,7 @@ int atomctrl_set_engine_dram_timings_rv770( (uint32_t *)&engine_clock_parameters); } -/** +/* * Private Function to get the PowerPlay Table Address. * WARNING: The tabled returned by this function is in * dynamically allocated memory. @@ -274,12 +274,13 @@ static const ATOM_VOLTAGE_OBJECT_V3 *atomctrl_lookup_voltage_type_v3( return NULL; } -/** atomctrl_get_memory_pll_dividers_si(). +/** + * atomctrl_get_memory_pll_dividers_si(). * - * @param hwmgr input parameter: pointer to HwMgr - * @param clock_value input parameter: memory clock - * @param dividers output parameter: memory PLL dividers - * @param strobe_mode input parameter: 1 for strobe mode, 0 for performance mode + * @hwmgr: input parameter: pointer to HwMgr + * @clock_value: input parameter: memory clock + * @dividers: output parameter: memory PLL dividers + * @strobe_mode: input parameter: 1 for strobe mode, 0 for performance mode */ int atomctrl_get_memory_pll_dividers_si( struct pp_hwmgr *hwmgr, @@ -326,11 +327,12 @@ int atomctrl_get_memory_pll_dividers_si( return result; } -/** atomctrl_get_memory_pll_dividers_vi(). +/** + * atomctrl_get_memory_pll_dividers_vi(). * - * @param hwmgr input parameter: pointer to HwMgr - * @param clock_value input parameter: memory clock - * @param dividers output parameter: memory PLL dividers + * @hwmgr: input parameter: pointer to HwMgr + * @clock_value: input parameter: memory clock + * @dividers: output parameter: memory PLL dividers */ int atomctrl_get_memory_pll_dividers_vi(struct pp_hwmgr *hwmgr, uint32_t clock_value, pp_atomctrl_memory_clock_param *mpll_param) @@ -512,7 +514,7 @@ int atomctrl_get_dfs_pll_dividers_vi( return result; } -/** +/* * Get the reference clock in 10KHz */ uint32_t atomctrl_get_reference_clock(struct pp_hwmgr *hwmgr) @@ -535,7 +537,7 @@ uint32_t atomctrl_get_reference_clock(struct pp_hwmgr *hwmgr) return clock; } -/** +/* * Returns true if the given voltage type is controlled by GPIO pins. * voltage_type is one of SET_VOLTAGE_TYPE_ASIC_VDDC, * SET_VOLTAGE_TYPE_ASIC_MVDDC, SET_VOLTAGE_TYPE_ASIC_MVDDQ. @@ -630,7 +632,7 @@ static bool atomctrl_lookup_gpio_pin( return false; } -/** +/* * Private Function to get the PowerPlay Table Address. * WARNING: The tabled returned by this function is in * dynamically allocated memory. @@ -653,7 +655,7 @@ static ATOM_GPIO_PIN_LUT *get_gpio_lookup_table(void *device) return (ATOM_GPIO_PIN_LUT *)table_address; } -/** +/* * Returns 1 if the given pin id find in lookup table. */ bool atomctrl_get_pp_assign_pin( @@ -1101,14 +1103,15 @@ int atomctrl_calculate_voltage_evv_on_sclk( return result; } -/** atomctrl_get_voltage_evv_on_sclk gets voltage via call to ATOM COMMAND table. - * @param hwmgr input: pointer to hwManager - * @param voltage_type input: type of EVV voltage VDDC or VDDGFX - * @param sclk input: in 10Khz unit. DPM state SCLK frequency - * which is define in PPTable SCLK/VDDC dependence - * table associated with this virtual_voltage_Id - * @param virtual_voltage_Id input: voltage id which match per voltage DPM state: 0xff01, 0xff02.. 0xff08 - * @param voltage output: real voltage level in unit of mv +/** + * atomctrl_get_voltage_evv_on_sclk gets voltage via call to ATOM COMMAND table. + * @hwmgr: input: pointer to hwManager + * @voltage_type: input: type of EVV voltage VDDC or VDDGFX + * @sclk: input: in 10Khz unit. DPM state SCLK frequency + * which is define in PPTable SCLK/VDDC dependence + * table associated with this virtual_voltage_Id + * @virtual_voltage_Id: input: voltage id which match per voltage DPM state: 0xff01, 0xff02.. 0xff08 + * @voltage: output: real voltage level in unit of mv */ int atomctrl_get_voltage_evv_on_sclk( struct pp_hwmgr *hwmgr, @@ -1142,9 +1145,9 @@ int atomctrl_get_voltage_evv_on_sclk( /** * atomctrl_get_voltage_evv gets voltage via call to ATOM COMMAND table. - * @param hwmgr input: pointer to hwManager - * @param virtual_voltage_id input: voltage id which match per voltage DPM state: 0xff01, 0xff02.. 0xff08 - * @param voltage output: real voltage level in unit of mv + * @hwmgr: input: pointer to hwManager + * @virtual_voltage_id: input: voltage id which match per voltage DPM state: 0xff01, 0xff02.. 0xff08 + * @voltage: output: real voltage level in unit of mv */ int atomctrl_get_voltage_evv(struct pp_hwmgr *hwmgr, uint16_t virtual_voltage_id, @@ -1187,7 +1190,7 @@ int atomctrl_get_voltage_evv(struct pp_hwmgr *hwmgr, return result; } -/** +/* * Get the mpll reference clock in 10KHz */ uint32_t atomctrl_get_mpll_reference_clock(struct pp_hwmgr *hwmgr) @@ -1220,7 +1223,7 @@ uint32_t atomctrl_get_mpll_reference_clock(struct pp_hwmgr *hwmgr) return clock; } -/** +/* * Get the asic internal spread spectrum table */ static ATOM_ASIC_INTERNAL_SS_INFO *asic_internal_ss_get_ss_table(void *device) @@ -1248,7 +1251,7 @@ bool atomctrl_is_asic_internal_ss_supported(struct pp_hwmgr *hwmgr) return false; } -/** +/* * Get the asic internal spread spectrum assignment */ static int asic_internal_ss_get_ss_asignment(struct pp_hwmgr *hwmgr, @@ -1311,7 +1314,7 @@ static int asic_internal_ss_get_ss_asignment(struct pp_hwmgr *hwmgr, return entry_found ? 0 : 1; } -/** +/* * Get the memory clock spread spectrum info */ int atomctrl_get_memory_clock_spread_spectrum( @@ -1322,7 +1325,8 @@ int atomctrl_get_memory_clock_spread_spectrum( return asic_internal_ss_get_ss_asignment(hwmgr, ASIC_INTERNAL_MEMORY_SS, memory_clock, ssInfo); } -/** + +/* * Get the engine clock spread spectrum info */ int atomctrl_get_engine_clock_spread_spectrum( From patchwork Thu Nov 26 13:42:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 332994 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp155985ejs; Thu, 26 Nov 2020 05:43:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJwHRp1Tbtq3MfocIz5LlrD/VujCvcndq2tNZgL0W3wZ9kUs1SP8qopA9fMSfM4/QRwipBpG X-Received: by 2002:a17:902:778f:b029:da:2f5:ed6e with SMTP id o15-20020a170902778fb02900da02f5ed6emr2810437pll.52.1606398215383; Thu, 26 Nov 2020 05:43:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398215; cv=none; d=google.com; s=arc-20160816; b=jBlmrXPGuniHUuIhOiWkEI+tGRTbzUpycF8SJ49L33kOg90pccpJpWCkLs7VVeUsNr 51qEFfw1vpjIKcoVo7JZ7WZr8GEBeQ0dpv6R49Bj7ld4b6JxvF8/NYaJ2cUBS2glEnhi dNYbJljvtx4f7Xk6AgUYVvQSbhk23YsD8rXHKzkwfLmTqwI+9l8t9InRBk1KrAsZj2NZ UBshjCPAyFdsLHEJcwurcsXjbpGW+S/JhMfNbmv3DQSIUNdTEuTxxgKO3MduIKnrp3zl c2G7yPz+q3jO4e8hn8qR/ln3/Dd5j51f5lh0QhME5jhFv69XqZ7zScY12gZkBpQ/5mQM ++EA== 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=Npt+VSjjBGQnQ9ArbDm68Fe7U+kNL5lbpVZmbdl8DUk=; b=iW952QaMvhmpYFFLDxFOgE8QyZmoeyUEWNRwQOgR9TSxyLHvgGyxnMP1vu1+yoZ8Zd 91/zLqULWIN4FPbG+o2V5dQgJEUDQ8yVjaC2Q9l3L6iy1RpqJ8KV+7X65z43cI6HkIha JHhEqd0SUsnj/pMbaaxq8xijxso4wcKV8cyF0J6A20+eliJHcze/Q7buCVt6SWm3rfcb WN4TtnTQyEV/pzhGxhgqAJeKIHP7+j8Uxxo18LzSQ+HFEZX7cVGrMuLEbFaQpJapTZ1q dpDfHmBADD818HeNBN9bHaTS23GoffxorkxweUVKx97Fl3zJIZaaa9ev1CpWdnqoMbhZ q2mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=lhUckZuA; 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 az5si5468434plb.325.2020.11.26.05.43.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:35 -0800 (PST) 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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=lhUckZuA; 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 422EC6E988; Thu, 26 Nov 2020 13:43:20 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by gabe.freedesktop.org (Postfix) with ESMTPS id 63CF66E95D for ; Thu, 26 Nov 2020 13:43:17 +0000 (UTC) Received: by mail-wr1-x443.google.com with SMTP id u12so2219834wrt.0 for ; Thu, 26 Nov 2020 05:43:17 -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=AsUlZcyK9oDSYfP7aoF4k5mpqGBHBlqjcNJ6DNrVjtQ=; b=lhUckZuAchBUkEww102CZlmtg7ZDdRdMNObIae7NG11Fh5nIJxysDWj0BqvK17jNrv DYy9m2oKxLW1Fq9PTcR5kfARz1z3tXycyJMK46eHeePCtKMEJdUbSKlzu3XJKBjMoamf bUapKZWnMGvaSmW4aL1UA1kIJ8L4S5q7Fm7VncMBM9HnlN1Gmav9EOfrSNVvvzuHvQ2C DPvybRAuRRbvvUpsEE3Tamu47wGUBrepeNVKTlG5HmVSEq2RQjcpMlHgWTyVCaO12V6z 9nOgkzjVza7g9eOwLNv+D5f8ynNDWyWQG+zybg+6hM10t67YMnenfQDPa9zA3swElhzT kBFA== 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=AsUlZcyK9oDSYfP7aoF4k5mpqGBHBlqjcNJ6DNrVjtQ=; b=Xq4W5mFP09UKTKIvnj2wqXhYFWRO0GlRiwcCgmEt4UblVjjGt3cYg0q7GsAR4eOLps mctB7Gdaviz+eah7rKXzadWftQcJ8k5EBHL6lOlvuZ5WAhGKATSsvdT0K1HqLpFvc5LL bHHZRYRdGqQA0CbbevvvdGETuRVO2+sEDMGerZ4B3edWq95k3ZpopO3GwXFSuDnG7wME U5Sz8fUH2jpHPQuvN6cFvciv9XtX3msQP7zCYAGhZya7h+PlALj/CtW7s9mkgjN87HHx XZfctR5yjR8ZlX0mn1wYNscjSF5ak6p+4B9DWfT5Q5G6RAk6Ni6SRJ8CXPeMVVVZBWJe IpTg== X-Gm-Message-State: AOAM533GrvsRQQrbFEsr6/+O1S7XyFJtmAJ3awGounrcoZaBFyhqvOQ/ RNvBSd9nEJ6mg1jdx1xC9YN6Ag== X-Received: by 2002:a5d:4408:: with SMTP id z8mr4113531wrq.204.1606398196124; Thu, 26 Nov 2020 05:43:16 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:15 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 20/40] drm/amd/pm/powerplay/hwmgr/vega10_processpptables: Make function invoked by reference static Date: Thu, 26 Nov 2020 13:42:20 +0000 Message-Id: <20201126134240.3214176-21-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, "Gustavo A. R. Silva" , 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): drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_processpptables.c:1148:5: warning: no previous prototype for ‘vega10_pp_tables_initialize’ [-Wmissing-prototypes] Cc: Evan Quan Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: "Gustavo A. R. Silva" Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_processpptables.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_processpptables.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_processpptables.c index 535404de78a20..95b988823f50f 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_processpptables.c +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_processpptables.c @@ -1145,7 +1145,7 @@ static int init_dpm_2_parameters( return result; } -int vega10_pp_tables_initialize(struct pp_hwmgr *hwmgr) +static int vega10_pp_tables_initialize(struct pp_hwmgr *hwmgr) { int result = 0; const ATOM_Vega10_POWERPLAYTABLE *powerplay_table; From patchwork Thu Nov 26 13:42:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 332998 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp156065ejs; Thu, 26 Nov 2020 05:43:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJwEyUMRspIBeCUmIzsUYUh/pqyYQz7Ysdqz0HzXahCDIgCeZtDSSS2qfOVo3/CcZtJm+JCb X-Received: by 2002:a17:902:ee0b:b029:da:1856:72c2 with SMTP id z11-20020a170902ee0bb02900da185672c2mr2871678plb.0.1606398223007; Thu, 26 Nov 2020 05:43:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398223; cv=none; d=google.com; s=arc-20160816; b=eIO/Eteikn0D2F7gYviN8j362EVJOFiI9cKfZ1gH2YiFf+0+Z0QeXcrzkn9yPXtAm5 D8WxeueQfWe82ffFB12nFA4kFswoqSKwJrx7Cz/a/Zel7pCSTTttUJuymIHz+QwmyLmz cDDAa9Q7NlhecW9NzjC3iumYnkeT5Juq6fgnPmIxVx7oi0eB+DqAkmhWAVVEo9zqngO7 4vcVvRUb3Z5xXMr7oGouS00leqvzBoTI6Fs42kioFnQhGw19HhV3PRgpZXARkpTOt2y1 5Hq/TNwaLyyn198NBXwu4NTiO8rTv/A/0kDXxfslzopebru9GlTU5ypDKjx7Qa70SHMP mKbA== 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=wYpaoViKQopMaWjmdBl0p4EzrH99iIfGnE7mfr/NQDY=; b=yA+GBm07h8ROQ0VOeoCOBvZXdEshFPoPLEkZ9HLo+VbaP/h6NdCT4QAYpUdsBEmMUF wKh/tN7s52U5YzDbTl46RtekglL5+gDnYAs0NVEW7O7k1eD3wNyeffKomGsucCSA4AiM jMEzfvjyf3loTCYj5KtOt7Vo/4fIgnsfZkOnmIMyLuBj8PKYSFOGGHHEqyPAPs6Uu0r/ pzC/rLh1zl01JiHIC334D5R16pUBIvM6AWkV0jCmK4/kab6lPCNW/SdXn7qbbsqlmHhW Ifrd6WBAAGexN0EakofHQJ7wtqs59i3MoCNlA+NstjRCD85vggIdaR8uF5VqFjeBLDb6 Ax7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=m4MLMv6a; 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 f4si5581453plo.296.2020.11.26.05.43.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:42 -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=m4MLMv6a; 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 C6E016E997; Thu, 26 Nov 2020 13:43:21 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by gabe.freedesktop.org (Postfix) with ESMTPS id E2F9D6E96F for ; Thu, 26 Nov 2020 13:43:18 +0000 (UTC) Received: by mail-wr1-x441.google.com with SMTP id g14so2162062wrm.13 for ; Thu, 26 Nov 2020 05:43:18 -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=tcv54opR3guyUjReddilrm2onRQ/qq0NFbIUHP0UJnM=; b=m4MLMv6anLctH65sLpvjCk4pit6/v6TUakiOYqwt3KEWKaf7uEdmbitzf4/gB71l+p mjdo3Sm5xMoHcRrZTey6J6s0dlqjqi1mwGiZivUhgOCU7nViqXDHytrdx1WrhhuOsyOD 3cq3J1UQAMW7ET7NX08i0viEOs97Ija8EcmT4rPEe9AMg62z08Z+vNjO4trD85bad56M wUrBLaOkSjuT1CoAKzSLmVbcnpPk90uOInqhrVdkQsfvc06ciYs9+VYmGv40obDqgHVD hLawUKi0eI9c+a0gO6bRJ8TosZzcmYFp1wUYrLlkDUxg9TAK0Bk8NRktRDZr8pJXrvWF twAw== 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=tcv54opR3guyUjReddilrm2onRQ/qq0NFbIUHP0UJnM=; b=oi2EfGD87tGPSM41ygvn9rNmw49C3jnbGZzODTVI8xyd0TAaZUTXsXRvZhlT7/u5jt ILZU2SsMzXItcieP5lAKWVXm3vUYLdU4nepxT/+gF/RhfY16p4ORByuIiwzpbi+BmNv4 2O15hz0uig4JCQrdzMl/xOUjQzhA38TRuFy/3pPDG/+RPki8m08+2+h2GQrp9EHvlW2g 5JfSZtq0XQZg/t9J3j2qgK9+MA3dQRwHrigSIvKx5HsGx1cBCL0XdjameHeKIhFilbGu G8eeawdEtX40QXN8SKvrbLv6CTIWrXUXl6AI0zVwzgGo/oTyOYImnLOiUr3yc9Ra3uLW ISpg== X-Gm-Message-State: AOAM532r05GfNyHY81Bu3fHOUbtcPbXP3lVnlMFptwtxNxwjlsGsxr5o Uu9vb+yvywbHKnYwnVBsHnZ2G51sd+c/UhWa X-Received: by 2002:adf:fc01:: with SMTP id i1mr4130964wrr.250.1606398197507; Thu, 26 Nov 2020 05:43:17 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:16 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 21/40] drm/amd/pm/powerplay/hwmgr/smu7_hwmgr: Fix a whole bunch of historical function doc issues Date: Thu, 26 Nov 2020 13:42:21 +0000 Message-Id: <20201126134240.3214176-22-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): drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:202: warning: Function parameter or member 'hwmgr' not described in 'smu7_get_mc_microcode_version' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:242: warning: Function parameter or member 'hwmgr' not described in 'smu7_enable_smc_voltage_controller' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:263: warning: Function parameter or member 'hwmgr' not described in 'smu7_voltage_control' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:277: warning: Function parameter or member 'hwmgr' not described in 'smu7_enable_voltage_control' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:315: warning: Function parameter or member 'hwmgr' not described in 'smu7_construct_voltage_tables' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:428: warning: Function parameter or member 'hwmgr' not described in 'smu7_program_static_screen_threshold_parameters' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:450: warning: Function parameter or member 'hwmgr' not described in 'smu7_enable_display_gap' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:474: warning: Function parameter or member 'hwmgr' not described in 'smu7_program_voting_clients' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:570: warning: Function parameter or member 'hwmgr' not described in 'smu7_initial_switch_from_arbf0_to_f1' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:1926: warning: Function parameter or member 'hwmgr' not described in 'smu7_get_evv_voltages' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:2028: warning: Function parameter or member 'hwmgr' not described in 'smu7_patch_ppt_v1_with_vdd_leakage' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:2028: warning: Function parameter or member 'voltage' not described in 'smu7_patch_ppt_v1_with_vdd_leakage' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:2028: warning: Function parameter or member 'leakage_table' not described in 'smu7_patch_ppt_v1_with_vdd_leakage' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:2056: warning: Function parameter or member 'hwmgr' not described in 'smu7_patch_lookup_table_with_leakage' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:2056: warning: Function parameter or member 'lookup_table' not described in 'smu7_patch_lookup_table_with_leakage' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:2056: warning: Function parameter or member 'leakage_table' not described in 'smu7_patch_lookup_table_with_leakage' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:2511: warning: Function parameter or member 'hwmgr' not described in 'smu7_patch_ppt_v0_with_vdd_leakage' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:2511: warning: Function parameter or member 'voltage' not described in 'smu7_patch_ppt_v0_with_vdd_leakage' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:2511: warning: Function parameter or member 'leakage_table' not described in 'smu7_patch_ppt_v0_with_vdd_leakage' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:4449: warning: Function parameter or member 'hwmgr' not described in 'smu7_program_display_gap' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:4508: warning: Function parameter or member 'hwmgr' not described in 'smu7_set_max_fan_rpm_output' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:4508: warning: Function parameter or member 'us_max_fan_rpm' not described in 'smu7_set_max_fan_rpm_output' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:4707: warning: Function parameter or member 'hwmgr' not described in 'smu7_get_memory_type' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:4723: warning: Function parameter or member 'hwmgr' not described in 'smu7_enable_acpi_power_management' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:4737: warning: Function parameter or member 'hwmgr' not described in 'smu7_init_power_gate_state' 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 --- .../drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c | 166 +++++++++--------- 1 file changed, 83 insertions(+), 83 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c index 53111c6bbcc91..82676c086ce46 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c @@ -193,10 +193,10 @@ static const struct smu7_power_state *cast_const_phw_smu7_power_state( } /** - * Find the MC microcode version and store it in the HwMgr struct + * smu7_get_mc_microcode_version - Find the MC microcode version and store it in the HwMgr struct * - * @param hwmgr the address of the powerplay hardware manager. - * @return always 0 + * @hwmgr: the address of the powerplay hardware manager. + * Return: always 0 */ static int smu7_get_mc_microcode_version(struct pp_hwmgr *hwmgr) { @@ -233,11 +233,11 @@ static int smu7_get_current_pcie_lane_number(struct pp_hwmgr *hwmgr) } /** -* Enable voltage control -* -* @param pHwMgr the address of the powerplay hardware manager. -* @return always PP_Result_OK -*/ + * smu7_enable_smc_voltage_controller - Enable voltage control + * + * @hwmgr the address of the powerplay hardware manager. + * Return: always PP_Result_OK + */ static int smu7_enable_smc_voltage_controller(struct pp_hwmgr *hwmgr) { if (hwmgr->chip_id >= CHIP_POLARIS10 && @@ -255,10 +255,10 @@ static int smu7_enable_smc_voltage_controller(struct pp_hwmgr *hwmgr) } /** -* Checks if we want to support voltage control -* -* @param hwmgr the address of the powerplay hardware manager. -*/ + * smu7_voltage_control - Checks if we want to support voltage control + * + * @hwmgr: the address of the powerplay hardware manager. + */ static bool smu7_voltage_control(const struct pp_hwmgr *hwmgr) { const struct smu7_hwmgr *data = @@ -268,11 +268,11 @@ static bool smu7_voltage_control(const struct pp_hwmgr *hwmgr) } /** -* Enable voltage control -* -* @param hwmgr the address of the powerplay hardware manager. -* @return always 0 -*/ + * smu7_enable_voltage_control - Enable voltage control + * + * @hwmgr: the address of the powerplay hardware manager. + * Return: always 0 + */ static int smu7_enable_voltage_control(struct pp_hwmgr *hwmgr) { /* enable voltage control */ @@ -306,11 +306,11 @@ static int phm_get_svi2_voltage_table_v0(pp_atomctrl_voltage_table *voltage_tabl /** -* Create Voltage Tables. -* -* @param hwmgr the address of the powerplay hardware manager. -* @return always 0 -*/ + * smu7_construct_voltage_tables - Create Voltage Tables. + * + * @hwmgr: the address of the powerplay hardware manager. + * Return: always 0 + */ static int smu7_construct_voltage_tables(struct pp_hwmgr *hwmgr) { struct smu7_hwmgr *data = (struct smu7_hwmgr *)(hwmgr->backend); @@ -418,11 +418,11 @@ static int smu7_construct_voltage_tables(struct pp_hwmgr *hwmgr) } /** -* Programs static screed detection parameters -* -* @param hwmgr the address of the powerplay hardware manager. -* @return always 0 -*/ + * smu7_program_static_screen_threshold_parameters - Programs static screed detection parameters + * + * @hwmgr: the address of the powerplay hardware manager. + * Return: always 0 + */ static int smu7_program_static_screen_threshold_parameters( struct pp_hwmgr *hwmgr) { @@ -441,11 +441,11 @@ static int smu7_program_static_screen_threshold_parameters( } /** -* Setup display gap for glitch free memory clock switching. -* -* @param hwmgr the address of the powerplay hardware manager. -* @return always 0 -*/ + * smu7_enable_display_gap - Setup display gap for glitch free memory clock switching. + * + * @hwmgr: the address of the powerplay hardware manager. + * Return: always 0 + */ static int smu7_enable_display_gap(struct pp_hwmgr *hwmgr) { uint32_t display_gap = @@ -465,11 +465,11 @@ static int smu7_enable_display_gap(struct pp_hwmgr *hwmgr) } /** -* Programs activity state transition voting clients -* -* @param hwmgr the address of the powerplay hardware manager. -* @return always 0 -*/ + * smu7_program_voting_clients - Programs activity state transition voting clients + * + * @hwmgr: the address of the powerplay hardware manager. + * Return: always 0 + */ static int smu7_program_voting_clients(struct pp_hwmgr *hwmgr) { struct smu7_hwmgr *data = (struct smu7_hwmgr *)(hwmgr->backend); @@ -560,12 +560,12 @@ static int smu7_reset_to_default(struct pp_hwmgr *hwmgr) } /** -* Initial switch from ARB F0->F1 -* -* @param hwmgr the address of the powerplay hardware manager. -* @return always 0 -* This function is to be called from the SetPowerState table. -*/ + * smu7_initial_switch_from_arbf0_to_f1 - Initial switch from ARB F0->F1 + * + * @hwmgr: the address of the powerplay hardware manager. + * Return: always 0 + * This function is to be called from the SetPowerState table. + */ static int smu7_initial_switch_from_arbf0_to_f1(struct pp_hwmgr *hwmgr) { return smu7_copy_and_switch_arb_sets(hwmgr, @@ -1917,11 +1917,11 @@ static int smu7_calculate_ro_range(struct pp_hwmgr *hwmgr) } /** -* Get Leakage VDDC based on leakage ID. -* -* @param hwmgr the address of the powerplay hardware manager. -* @return always 0 -*/ + * smu7_get_evv_voltages - Get Leakage VDDC based on leakage ID. + * + * @hwmgr: the address of the powerplay hardware manager. + * Return: always 0 + */ static int smu7_get_evv_voltages(struct pp_hwmgr *hwmgr) { struct smu7_hwmgr *data = (struct smu7_hwmgr *)(hwmgr->backend); @@ -2017,11 +2017,11 @@ static int smu7_get_evv_voltages(struct pp_hwmgr *hwmgr) } /** - * Change virtual leakage voltage to actual value. + * smu7_patch_ppt_v1_with_vdd_leakage - Change virtual leakage voltage to actual value. * - * @param hwmgr the address of the powerplay hardware manager. - * @param pointer to changing voltage - * @param pointer to leakage table + * @hwmgr: the address of the powerplay hardware manager. + * @voltage: pointer to changing voltage + * @leakage_table: pointer to leakage table */ static void smu7_patch_ppt_v1_with_vdd_leakage(struct pp_hwmgr *hwmgr, uint16_t *voltage, struct smu7_leakage_voltage *leakage_table) @@ -2043,13 +2043,13 @@ static void smu7_patch_ppt_v1_with_vdd_leakage(struct pp_hwmgr *hwmgr, } /** -* Patch voltage lookup table by EVV leakages. -* -* @param hwmgr the address of the powerplay hardware manager. -* @param pointer to voltage lookup table -* @param pointer to leakage table -* @return always 0 -*/ + * smu7_patch_lookup_table_with_leakage - Patch voltage lookup table by EVV leakages. + * + * @hwmgr: the address of the powerplay hardware manager. + * @lookup_table: pointer to voltage lookup table + * @leakage_table: pointer to leakage table + * Return: always 0 + */ static int smu7_patch_lookup_table_with_leakage(struct pp_hwmgr *hwmgr, phm_ppt_v1_voltage_lookup_table *lookup_table, struct smu7_leakage_voltage *leakage_table) @@ -2500,11 +2500,11 @@ static int smu7_thermal_parameter_init(struct pp_hwmgr *hwmgr) } /** - * Change virtual leakage voltage to actual value. + * smu7_patch_ppt_v0_with_vdd_leakage - Change virtual leakage voltage to actual value. * - * @param hwmgr the address of the powerplay hardware manager. - * @param pointer to changing voltage - * @param pointer to leakage table + * @hwmgr: the address of the powerplay hardware manager. + * @voltage: pointer to changing voltage + * @leakage_table: pointer to leakage table */ static void smu7_patch_ppt_v0_with_vdd_leakage(struct pp_hwmgr *hwmgr, uint32_t *voltage, struct smu7_leakage_voltage *leakage_table) @@ -4440,11 +4440,11 @@ smu7_notify_smc_display_config_after_ps_adjustment(struct pp_hwmgr *hwmgr) } /** -* Programs the display gap -* -* @param hwmgr the address of the powerplay hardware manager. -* @return always OK -*/ + * smu7_program_display_gap - Programs the display gap + * + * @hwmgr: the address of the powerplay hardware manager. + * Return: always OK + */ static int smu7_program_display_gap(struct pp_hwmgr *hwmgr) { struct smu7_hwmgr *data = (struct smu7_hwmgr *)(hwmgr->backend); @@ -4498,12 +4498,12 @@ static int smu7_display_configuration_changed_task(struct pp_hwmgr *hwmgr) } /** -* Set maximum target operating fan output RPM -* -* @param hwmgr: the address of the powerplay hardware manager. -* @param usMaxFanRpm: max operating fan RPM value. -* @return The response that came from the SMC. -*/ + * smu7_set_max_fan_rpm_output - Set maximum target operating fan output RPM + * + * @hwmgr: the address of the powerplay hardware manager. + * @usMaxFanRpm: max operating fan RPM value. + * Return: The response that came from the SMC. + */ static int smu7_set_max_fan_rpm_output(struct pp_hwmgr *hwmgr, uint16_t us_max_fan_rpm) { hwmgr->thermal_controller. @@ -4698,10 +4698,10 @@ static int smu7_read_clock_registers(struct pp_hwmgr *hwmgr) } /** - * Find out if memory is GDDR5. + * smu7_get_memory_type - Find out if memory is GDDR5. * - * @param hwmgr the address of the powerplay hardware manager. - * @return always 0 + * @hwmgr: the address of the powerplay hardware manager. + * Return: always 0 */ static int smu7_get_memory_type(struct pp_hwmgr *hwmgr) { @@ -4714,10 +4714,10 @@ static int smu7_get_memory_type(struct pp_hwmgr *hwmgr) } /** - * Enables Dynamic Power Management by SMC + * smu7_enable_acpi_power_management - Enables Dynamic Power Management by SMC * - * @param hwmgr the address of the powerplay hardware manager. - * @return always 0 + * @hwmgr: the address of the powerplay hardware manager. + * Return: always 0 */ static int smu7_enable_acpi_power_management(struct pp_hwmgr *hwmgr) { @@ -4728,10 +4728,10 @@ static int smu7_enable_acpi_power_management(struct pp_hwmgr *hwmgr) } /** - * Initialize PowerGating States for different engines + * smu7_init_power_gate_state - Initialize PowerGating States for different engines * - * @param hwmgr the address of the powerplay hardware manager. - * @return always 0 + * @hwmgr: the address of the powerplay hardware manager. + * Return: always 0 */ static int smu7_init_power_gate_state(struct pp_hwmgr *hwmgr) { From patchwork Thu Nov 26 13:42:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 332999 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp156083ejs; Thu, 26 Nov 2020 05:43:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJwlbDUxXrPn/+GwfXAUP3KLbtnX5IWc0PPIDLa3tupibtTjYk1n9OU+Vcik5QRB6fCPO5mw X-Received: by 2002:a62:5c87:0:b029:197:5f13:b66c with SMTP id q129-20020a625c870000b02901975f13b66cmr2765421pfb.73.1606398224603; Thu, 26 Nov 2020 05:43:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398224; cv=none; d=google.com; s=arc-20160816; b=NaL125iNjPYYSEE0bitk8m/x6VsojiAB5jtNbJ+/g2hA75iGxs3yx8d16uRe9sCUnl TfamUN5iq99Ua0Y8zV16dymEm+oWT20UiJkovVLtVdH+2qWJb9dwLpahjixQje6ywpSR kJbfvM4YZfL5ItOHaDLlpHa41tMxXH71mJtbwwugMPxYExowyGRdYvgPL82lq2NdFIVo f9IGcrNrTAA6nY5VcrwTcOlri01oSrveR7XzYZ7r7iVWFdX3lA0fVNaSNqnus529Irs8 qSI05Nhtah53k3aWJaHX36LSRZqk4NnzZ7YFuPsE07e9DKe5Umm5hdszNWAfcrjDhn8y 4wXg== 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=Ft0LtoGptmw8s/ELqIQEYR3+WSfLqBdRf192+5zv1h0=; b=jSgdZNK4GeywflSmDD9DmDNigfMAFB6vQcfvLG1y3KjRSzPmgeSo6hMb/07+S26Ozp Cn5M6Qy/KFv0a88/Yfh7F3/0bINu6ubWgokoDY8iAP3O+QRhQPk18+HzW+o4VhqP5yap yignvAF3WHrRzUZOe/82ZUyDb4W4jpR8wY5ZmVmk8MEhwaf8nq/jRD5p0fB+AeyCldDt le/i9HvRsaxCSZkJUjEEznV4/rEj8wpBJDXcbaG3vN4770Nk3WUUsMje03gUYfGfjSvE ex7rnYOGbfRhae/2THFrYIZZGyJ8/4f9j+njoedGjUgp3UOpFGzEdN8NujZaXbjUCU7J 1qwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=WIR3eyDW; 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 t34si5846677pgm.304.2020.11.26.05.43.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:44 -0800 (PST) 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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=WIR3eyDW; 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 72CDE6E965; Thu, 26 Nov 2020 13:43:22 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2E9A96E987 for ; Thu, 26 Nov 2020 13:43:20 +0000 (UTC) Received: by mail-wr1-x442.google.com with SMTP id e7so2196931wrv.6 for ; Thu, 26 Nov 2020 05:43:20 -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=lyYzloTK2PfirZ1Vnz7WwlEZaviGAn+VoMQZs9r0bNo=; b=WIR3eyDWyT0TNYDqtte4PXcGFnQ/Bzb+Asak+yqUlKdmVUKM+P8LwCz+pF8EULE5+/ fZinsvtDeDUkdROR8iwoQhYwsSpfiBSnsb53I/X1vvIN1Ovi2g+yPYoMopGnxjN9F/5W UPpITbQrGcPw7TF5WKmjqU7aWG2LUNkXqw+rOumjd+sUPX+oNN1dZqZDXypi2Vq2jrow RaZzKKxoYhCq/0w8IziaR/LEYYfT53WrwsrZPhrkhCz0TAwqYXXhH6zt6pnn1UWk8B8T BrAWROua9zKbFRYr3mYl4639FFMoyPQbjJhykn44Qtv5NyKrcezEoXpjDYlKciQTk8fh bFUQ== 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=lyYzloTK2PfirZ1Vnz7WwlEZaviGAn+VoMQZs9r0bNo=; b=jyOv44vLkjMUItFnF9DeR37CHsMu/gj1HtWbSIQd/Ob0Bnjt3/sMROLLZuJHjZG7ZR KaFt3xszZC4rrGcRChoIMilI8h3ERRxti1+pM08er6XgQ4qlUhbsn7kbmCOJ+VL8D6kN dMBMRaTVD/CX1FxiUeyOJhv9OT6b5DvE0Ax/PH1eVm/GvpqnOvb+XV1GBH37Ex+IQMGb Ci8WoR50KcYTFo6IqAL3QE21T7IFcyxpUf3URhNX2Khmvgr8YHns8xIwh0MK8HfvZl7V 8LnGUbpVVzhkP9erqoiP3U91jG9aT96fyrXrF6+fxpIdq5Lft0jzUiQdtTl+I2B9GcI7 KrXw== X-Gm-Message-State: AOAM532nDeoFElI7lpe9P77fDQzp6IxajO/Lnd3p4LMpVGfyUuSsxlQj kQLXH1tu69U9uRswmC9pI2Y5yQ== X-Received: by 2002:a5d:668d:: with SMTP id l13mr3839571wru.279.1606398198653; Thu, 26 Nov 2020 05:43:18 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:17 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 22/40] drm/amd/pm/powerplay/hwmgr/vega10_hwmgr: Remove set but unused variable 'result' Date: Thu, 26 Nov 2020 13:42:22 +0000 Message-Id: <20201126134240.3214176-23-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): drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c: In function ‘vega10_get_pp_table_entry’: drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:3135:6: warning: variable ‘result’ 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/vega10_hwmgr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c index 7eada3098ffcc..ac88f5483ef70 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c @@ -3132,14 +3132,13 @@ static int vega10_get_pp_table_entry_callback_func(struct pp_hwmgr *hwmgr, static int vega10_get_pp_table_entry(struct pp_hwmgr *hwmgr, unsigned long entry_index, struct pp_power_state *state) { - int result; struct vega10_power_state *ps; state->hardware.magic = PhwVega10_Magic; ps = cast_phw_vega10_power_state(&state->hardware); - result = vega10_get_powerplay_table_entry(hwmgr, entry_index, state, + vega10_get_powerplay_table_entry(hwmgr, entry_index, state, vega10_get_pp_table_entry_callback_func); /* From patchwork Thu Nov 26 13:42:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 333000 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp156100ejs; Thu, 26 Nov 2020 05:43:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJywtj2F3raDUGht6FCjSSLjQIFrau9FjqHEDr/YOjqsurgu3BZcX3vhGlLKN8UBGHLszb8d X-Received: by 2002:a63:a62:: with SMTP id z34mr2574052pgk.193.1606398226341; Thu, 26 Nov 2020 05:43:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398226; cv=none; d=google.com; s=arc-20160816; b=VQG5qm3Je9hiEl4KaEGloV7A53iIwZKFj8s6kZP1T7Acs8gNazJWzTcTeZutjUbkAw f1Dk7kJtDjbW8roo0F7s5p5VFK/Rwgf3kOhsKXpsRZnbOY74hYFZ6KfMqw77cV4ID+u4 AiH87S3dtsc6LZ6tyiUGd3HeMpAvRmcpCparyx8JrX6zlr0771FGsCCFb1VgVBnZaxc1 OxU2RmvUCYzhloFTvuUUMxU3n4tpgZV+S6sSD1/0ZkWBkSI0ANu3IFn/+fReE5nJza4X slsxdt7lG8ZoCWmdWUgje/sNCveCzPdaE3DB/uo4Z12E3M+YMC/tJGtUJjIia/hPiFvh 70UA== 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=TJntUeBt4nukcYEDKfTkFfTdkjfnV5HkZu1HwusE+mI=; b=KAcT8Nm1UkTKrLy6LqwGLbSrPFtQWI53HyY9c1LRSZmyf/AgbJQup8OMCgaHkenVwa AuYESyqnZ4gHU9fJtRg53JZFiAulSiAfhUMXcV7YhwkLSzfhXhNMZHkcMCtCtdO1EBcM p+ds+8NSHWugKK0j4daU+CpxtPAf3P7H3NYFUzWxjmI9GbK68dk0z7HLxXUQ3vwRXxVu XZvpzUSkOMl9y2y+FPZHnVFFozGFzXlqveaCaMmbOCnWX2+SIXhH7PphvyeGTUTgo0Zn ytGg477rH33d4nJChZM260MykMIs3bF14KHFECB04yCztrH5wDv8BlzBUQWVWzBA19SE IsrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=VtiwfNtP; 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 a15si5979954pgi.1.2020.11.26.05.43.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:46 -0800 (PST) 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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=VtiwfNtP; 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 E56A86E970; Thu, 26 Nov 2020 13:43:24 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by gabe.freedesktop.org (Postfix) with ESMTPS id 494236E980 for ; Thu, 26 Nov 2020 13:43:23 +0000 (UTC) Received: by mail-wr1-x444.google.com with SMTP id p8so2193419wrx.5 for ; Thu, 26 Nov 2020 05:43:23 -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=ksLsRkpw8nSvnfAUMxCRA9ZKMD1k8dq6JXdPEa6WSRc=; b=VtiwfNtPrh27PbYTrLPPboMnok0IvMSGdd/iN7rsBt7uFkPmExfba0Tw+yNCseKUj9 pWl+URLgEzp0KVTSVGyaR9fb5G1QETo7EQfp929dCFYGr72vUEhy2gmfpci/oP9rDbqk XlOgFn5IfcutiF8ZhbW6aPQZSHnojno6daJ2d/T0Aosj1SY1vOEPN+9lknysCXVAG6gR RV6ZT+s5jGpfZMMDvXq9SqeLYqc913mfSp0mGAhmWWrCPAORKwurPnf60KxI28A4DiH1 kfFJEjG1tkxiUcxHtyhr8rQaN/GmwDgKrSwpVYiyK36lGq4BOvtiRyHInWBCJCvsKvdh m1eA== 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=ksLsRkpw8nSvnfAUMxCRA9ZKMD1k8dq6JXdPEa6WSRc=; b=pIyCxDcXo0bRxpJgXj1M9XFR2cnWVr7KfeYVHKUvrSFCD13brK+3PLScodgev5S81t Ed1+DzkfNNIxDte694yDdzXGRzh28ShIdltxHBeJol71TYs+ssUr4Wn35JzFyoZwUP/9 phmRVE4s9AlsgqupiG+YsXSNKwTJy4NhyvgphCII/3zohHMuUKqeIUHJ4LMG0VpDOnpj K/5lqqYhp3oaGWb81H7O1hD1kjfYU7KIcxrIICu5qL9OuIgrJOgJOzMBaiHwQ0peFrqs 3NpMV0G1KPiMl0Ybfd0s/2TPwVKHpWVoXD4+XuTWXASlUHp6DSC8Y/kQxcfoBcuiN2KE yDyg== X-Gm-Message-State: AOAM533Q76Vtven7MR3vbgmSZ8rUHhB6gl+mwjWZPlumzqjNrJNT5euM iV6DggK0idrcsne1iDanPkpwP75vvEBeBYVi X-Received: by 2002:adf:f651:: with SMTP id x17mr3880693wrp.185.1606398200231; Thu, 26 Nov 2020 05:43:20 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:19 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 23/40] drm/amd/pm/powerplay/hwmgr/smu7_thermal: Repair formatting in a bunch of function docs Date: Thu, 26 Nov 2020 13:42:23 +0000 Message-Id: <20201126134240.3214176-24-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): drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_thermal.c:112: warning: Function parameter or member 'hwmgr' not described in 'smu7_fan_ctrl_set_static_mode' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_thermal.c:112: warning: Function parameter or member 'mode' not described in 'smu7_fan_ctrl_set_static_mode' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_thermal.c:137: warning: Function parameter or member 'hwmgr' not described in 'smu7_fan_ctrl_set_default_mode' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_thermal.c:209: warning: Function parameter or member 'hwmgr' not described in 'smu7_fan_ctrl_set_fan_speed_percent' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_thermal.c:209: warning: Function parameter or member 'speed' not described in 'smu7_fan_ctrl_set_fan_speed_percent' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_thermal.c:245: warning: Function parameter or member 'hwmgr' not described in 'smu7_fan_ctrl_reset_fan_speed_to_default' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_thermal.c:268: warning: Function parameter or member 'hwmgr' not described in 'smu7_fan_ctrl_set_fan_speed_rpm' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_thermal.c:268: warning: Function parameter or member 'speed' not described in 'smu7_fan_ctrl_set_fan_speed_rpm' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_thermal.c:299: warning: Function parameter or member 'hwmgr' not described in 'smu7_thermal_get_temperature' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_thermal.c:325: warning: Function parameter or member 'hwmgr' not described in 'smu7_thermal_set_temperature_range' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_thermal.c:325: warning: Function parameter or member 'low_temp' not described in 'smu7_thermal_set_temperature_range' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_thermal.c:325: warning: Function parameter or member 'high_temp' not described in 'smu7_thermal_set_temperature_range' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_thermal.c:358: warning: Function parameter or member 'hwmgr' not described in 'smu7_thermal_initialize' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_thermal.c:377: warning: Function parameter or member 'hwmgr' not described in 'smu7_thermal_enable_alert' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_thermal.c:395: warning: Function parameter or member 'hwmgr' not described in 'smu7_thermal_disable_alert' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_thermal.c:414: warning: Function parameter or member 'hwmgr' not described in 'smu7_thermal_stop_thermal_controller' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_thermal.c:433: warning: Function parameter or member 'hwmgr' not described in 'smu7_thermal_start_smc_fan_control' 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 --- .../drm/amd/pm/powerplay/hwmgr/smu7_thermal.c | 103 +++++++++--------- 1 file changed, 50 insertions(+), 53 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_thermal.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_thermal.c index e3d9d969d86ac..0d38d4206848a 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_thermal.c +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_thermal.c @@ -103,11 +103,11 @@ int smu7_fan_ctrl_get_fan_speed_rpm(struct pp_hwmgr *hwmgr, uint32_t *speed) } /** -* Set Fan Speed Control to static mode, so that the user can decide what speed to use. -* @param hwmgr the address of the powerplay hardware manager. -* mode the fan control mode, 0 default, 1 by percent, 5, by RPM -* @exception Should always succeed. -*/ + * smu7_fan_ctrl_set_static_mode - Set Fan Speed Control to static mode, so that the user can decide what speed to use. + * @hwmgr: the address of the powerplay hardware manager. + * @mode: the fan control mode, 0 default, 1 by percent, 5, by RPM + * Exception: Should always succeed. + */ int smu7_fan_ctrl_set_static_mode(struct pp_hwmgr *hwmgr, uint32_t mode) { if (hwmgr->fan_ctrl_is_in_default_mode) { @@ -130,8 +130,8 @@ int smu7_fan_ctrl_set_static_mode(struct pp_hwmgr *hwmgr, uint32_t mode) /** * Reset Fan Speed Control to default mode. -* @param hwmgr the address of the powerplay hardware manager. -* @exception Should always succeed. +* @hwmgr: the address of the powerplay hardware manager. +* Exception: Should always succeed. */ int smu7_fan_ctrl_set_default_mode(struct pp_hwmgr *hwmgr) { @@ -199,11 +199,11 @@ int smu7_fan_ctrl_stop_smc_fan_control(struct pp_hwmgr *hwmgr) } /** -* Set Fan Speed in percent. -* @param hwmgr the address of the powerplay hardware manager. -* @param speed is the percentage value (0% - 100%) to be set. -* @exception Fails is the 100% setting appears to be 0. -*/ + * smu7_fan_ctrl_set_fan_speed_percent - Set Fan Speed in percent. + * @hwmgr: the address of the powerplay hardware manager. + * @speed: is the percentage value (0% - 100%) to be set. + * Exception: Fails is the 100% setting appears to be 0. + */ int smu7_fan_ctrl_set_fan_speed_percent(struct pp_hwmgr *hwmgr, uint32_t speed) { @@ -237,9 +237,9 @@ int smu7_fan_ctrl_set_fan_speed_percent(struct pp_hwmgr *hwmgr, } /** -* Reset Fan Speed to default. -* @param hwmgr the address of the powerplay hardware manager. -* @exception Always succeeds. +* smu7_fan_ctrl_reset_fan_speed_to_default - Reset Fan Speed to default. +* @hwmgr: the address of the powerplay hardware manager. +* Exception: Always succeeds. */ int smu7_fan_ctrl_reset_fan_speed_to_default(struct pp_hwmgr *hwmgr) { @@ -259,11 +259,11 @@ int smu7_fan_ctrl_reset_fan_speed_to_default(struct pp_hwmgr *hwmgr) } /** -* Set Fan Speed in RPM. -* @param hwmgr the address of the powerplay hardware manager. -* @param speed is the percentage value (min - max) to be set. -* @exception Fails is the speed not lie between min and max. -*/ + * smu7_fan_ctrl_set_fan_speed_rpm - Set Fan Speed in RPM. + * @hwmgr: the address of the powerplay hardware manager. + * @speed: is the percentage value (min - max) to be set. + * Exception: Fails is the speed not lie between min and max. + */ int smu7_fan_ctrl_set_fan_speed_rpm(struct pp_hwmgr *hwmgr, uint32_t speed) { uint32_t tach_period; @@ -291,10 +291,10 @@ int smu7_fan_ctrl_set_fan_speed_rpm(struct pp_hwmgr *hwmgr, uint32_t speed) } /** -* Reads the remote temperature from the SIslands thermal controller. -* -* @param hwmgr The address of the hardware manager. -*/ + * smu7_thermal_get_temperature - Reads the remote temperature from the SIslands thermal controller. + * + * @hwmgr: The address of the hardware manager. + */ int smu7_thermal_get_temperature(struct pp_hwmgr *hwmgr) { int temp; @@ -314,12 +314,13 @@ int smu7_thermal_get_temperature(struct pp_hwmgr *hwmgr) } /** -* Set the requested temperature range for high and low alert signals -* -* @param hwmgr The address of the hardware manager. -* @param range Temperature range to be programmed for high and low alert signals -* @exception PP_Result_BadInput if the input data is not valid. -*/ + * smu7_thermal_set_temperature_range - Set the requested temperature range for high and low alert signals + * + * @hwmgr: The address of the hardware manager. + * @low_temp: Temperature to be programmed for high alert signals + * @high_temp: Temperature to be programmed for low alert signals + * Exception: PP_Result_BadInput if the input data is not valid. + */ static int smu7_thermal_set_temperature_range(struct pp_hwmgr *hwmgr, int low_temp, int high_temp) { @@ -350,10 +351,10 @@ static int smu7_thermal_set_temperature_range(struct pp_hwmgr *hwmgr, } /** -* Programs thermal controller one-time setting registers -* -* @param hwmgr The address of the hardware manager. -*/ + * smu7_thermal_initialize - Programs thermal controller one-time setting registers + * + * @hwmgr: The address of the hardware manager. + */ static int smu7_thermal_initialize(struct pp_hwmgr *hwmgr) { if (hwmgr->thermal_controller.fanInfo.ucTachometerPulsesPerRevolution) @@ -369,10 +370,10 @@ static int smu7_thermal_initialize(struct pp_hwmgr *hwmgr) } /** -* Enable thermal alerts on the RV770 thermal controller. -* -* @param hwmgr The address of the hardware manager. -*/ + * smu7_thermal_enable_alert - Enable thermal alerts on the RV770 thermal controller. + * + * @hwmgr: The address of the hardware manager. + */ static void smu7_thermal_enable_alert(struct pp_hwmgr *hwmgr) { uint32_t alert; @@ -388,9 +389,9 @@ static void smu7_thermal_enable_alert(struct pp_hwmgr *hwmgr) } /** -* Disable thermal alerts on the RV770 thermal controller. -* @param hwmgr The address of the hardware manager. -*/ + * smu7_thermal_disable_alert - Disable thermal alerts on the RV770 thermal controller. + * @hwmgr: The address of the hardware manager. + */ int smu7_thermal_disable_alert(struct pp_hwmgr *hwmgr) { uint32_t alert; @@ -406,10 +407,10 @@ int smu7_thermal_disable_alert(struct pp_hwmgr *hwmgr) } /** -* Uninitialize the thermal controller. -* Currently just disables alerts. -* @param hwmgr The address of the hardware manager. -*/ + * smu7_thermal_stop_thermal_controller - Uninitialize the thermal controller. + * Currently just disables alerts. + * @hwmgr: The address of the hardware manager. + */ int smu7_thermal_stop_thermal_controller(struct pp_hwmgr *hwmgr) { int result = smu7_thermal_disable_alert(hwmgr); @@ -421,14 +422,10 @@ int smu7_thermal_stop_thermal_controller(struct pp_hwmgr *hwmgr) } /** -* Start the fan control on the SMC. -* @param hwmgr the address of the powerplay hardware manager. -* @param pInput the pointer to input data -* @param pOutput the pointer to output data -* @param pStorage the pointer to temporary storage -* @param Result the last failure code -* @return result from set temperature range routine -*/ + * smu7_thermal_start_smc_fan_control - Start the fan control on the SMC. + * @hwmgr: the address of the powerplay hardware manager. + * Return: result from set temperature range routine + */ static int smu7_thermal_start_smc_fan_control(struct pp_hwmgr *hwmgr) { /* If the fantable setup has failed we could have disabled From patchwork Thu Nov 26 13:42:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 333002 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp156132ejs; Thu, 26 Nov 2020 05:43:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJwhYOHcX+er6YZX28EQKtxPvEmE1mmEHTmfhYXjoOFEFNnnc2TB+Xw8a4qTr5RFF2J9cNJL X-Received: by 2002:a17:902:70c1:b029:d9:2d09:69e with SMTP id l1-20020a17090270c1b02900d92d09069emr2776432plt.59.1606398229643; Thu, 26 Nov 2020 05:43:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398229; cv=none; d=google.com; s=arc-20160816; b=lTEhRYM2t6v0LkFfDr8RG5/Hu/p710hX+dSwp9iop44B17fWCc85mdIttME017/NXt BPJSSxsWD3hFMCR5Fh1YczN8x6tpI+AFgnNTnAvJE6h7EtFFxuzoJv7I+pvyhjRXaL5R 2C3IU0KdaLbXJ4Z/qBGVgu5IVXuDogmM2zIpD6NXAqYij4Xbjr5Jctgl5UxWC8NLG3xR WR/7rVGyMCgnhzY+bgbQHBxhKoCsA3+3zHko2K97YAqMMRm69bVIO7g9Iz7iaOV48iBk Zy0h813d5AfLhqTDcMJrdyQIHtbIszsZSKQEUTvQ+17cnBiPXQC5CjuYKQX3aDatS/Oa 2qMg== 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=It0XyD/mp/NaoNtD2SSRdeKskcljqO8UNOAv6ZKkZYo=; b=gJLdAXMvjt9zlhTp/gOh1nii2imNXcFqTyO9DLPiRkG2D+IpdStZsB96AwPOtfNNlZ /KvHrsz3PBZ/Xfv+xhwko3PcTOGuQ0k+RuvM8HbXN+0q8qmqJFw0CvxDj5MAxRlLK8gc +HbjVJ0VwDmnHdQkMHpJUSjUEg0V7WxLeIGwR3UOCFwfqvUSFlW4Z42pKq02sZCnpT9Q 2rHc48bPAroYbtwiojWKZRCkWhUTGZvKAP18sCcoqumKtdMUj7tkWYSj8p9lp4vYR8kG Msg+47feURqPluDy1nPaWh/6Xbi/Izpokn2UnGXxtGp9MZX/2WxUMNrjnKNyLW+hIlut 2XPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=w1mzgqSt; 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 i27si6172284pgb.104.2020.11.26.05.43.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:49 -0800 (PST) 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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=w1mzgqSt; 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 87E1F6E97D; Thu, 26 Nov 2020 13:43:25 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by gabe.freedesktop.org (Postfix) with ESMTPS id D098F6E970 for ; Thu, 26 Nov 2020 13:43:22 +0000 (UTC) Received: by mail-wr1-x442.google.com with SMTP id r3so2215291wrt.2 for ; Thu, 26 Nov 2020 05:43:22 -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=vd4FfIpLZd0vMeRpec4AlI8lNTFUtrKLQ6GMMme39yM=; b=w1mzgqSt756ZauAhQ+5zmWtutj9JrZq9R1I7NSGxXNPYszT1fDP2TYxKUVQR9xN5S3 wT3ly2HYN02sQIuqE5SxiM/Ei0+xzrcieEQiRhgClmTn2/2Odm+XEb6VOMUsxMkkGb8s 9GB//ICphpYFuv3ghiSvds7CZFl6zKTcvF0BPrOavLUojDTlgidbjuK16TU5P9t1738Q 4gFEkaIduj2orSFmdMsFgcr4l7p2IBnzNaJODDnoYw8Zd1xb7rd67YuOdYkA01PiNInp qtuA3DtYqFEXzpWn+EwcqrZrGxiXfsfVobXwFLM/md7/9oEUgP7dJWfR9OuQTBG0inTz gDiQ== 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=vd4FfIpLZd0vMeRpec4AlI8lNTFUtrKLQ6GMMme39yM=; b=dQhTEkG517dr/MILRVjnjlihfbzTAcGHCbPpySET6j+k/kR97aO0QshNinkZsqCniV XqBKCxAnOo+fklm39hnkAxacHBs32BU3OrtEmk3EyYPRuG1/i7RFYp0Btkh1iDQm1SfR 8h75e1AHcrSx6ChJSM7Jo8Fm5lhkKZtgcvKgPb3Etk4ubYmsMzqL6lvgIaweP2tiUvAQ RapdWxn1ksTNZi7tUwTFKg/LhwsjBOk/lrfV84l+OwBYqV2JwMDEHrjiBAR2YanBhMrf gRjiG/kxNzEG4j6Uiu17Wab3NqNSquJJFHSybhF6Id/I+WhR0ub2dFk73IrpFNqMBx6h VfJw== X-Gm-Message-State: AOAM53392f52pw6LTtqNBJrhcjwrTGcvgv5+lZUU598JtvwSEPm0+cLv nlOpw7zIi3N5xIPvG455NLrX9A== X-Received: by 2002:adf:f608:: with SMTP id t8mr4052254wrp.72.1606398201414; Thu, 26 Nov 2020 05:43:21 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:20 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 24/40] drm/amd/pm/powerplay/hwmgr/vega10_thermal: Fix a bunch of dated function doc formatting Date: Thu, 26 Nov 2020 13:42:24 +0000 Message-Id: <20201126134240.3214176-25-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): drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_thermal.c:128: warning: Function parameter or member 'hwmgr' not described in 'vega10_fan_ctrl_set_static_mode' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_thermal.c:128: warning: Function parameter or member 'mode' not described in 'vega10_fan_ctrl_set_static_mode' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_thermal.c:157: warning: Function parameter or member 'hwmgr' not described in 'vega10_fan_ctrl_set_default_mode' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_thermal.c:176: warning: Cannot understand * @fn vega10_enable_fan_control_feature drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_thermal.c:252: warning: Function parameter or member 'hwmgr' not described in 'vega10_fan_ctrl_set_fan_speed_percent' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_thermal.c:252: warning: Function parameter or member 'speed' not described in 'vega10_fan_ctrl_set_fan_speed_percent' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_thermal.c:290: warning: Function parameter or member 'hwmgr' not described in 'vega10_fan_ctrl_reset_fan_speed_to_default' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_thermal.c:307: warning: Function parameter or member 'hwmgr' not described in 'vega10_fan_ctrl_set_fan_speed_rpm' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_thermal.c:307: warning: Function parameter or member 'speed' not described in 'vega10_fan_ctrl_set_fan_speed_rpm' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_thermal.c:339: warning: Function parameter or member 'hwmgr' not described in 'vega10_thermal_get_temperature' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_thermal.c:365: warning: Function parameter or member 'hwmgr' not described in 'vega10_thermal_set_temperature_range' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_thermal.c:365: warning: Function parameter or member 'range' not described in 'vega10_thermal_set_temperature_range' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_thermal.c:414: warning: Function parameter or member 'hwmgr' not described in 'vega10_thermal_initialize' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_thermal.c:437: warning: Function parameter or member 'hwmgr' not described in 'vega10_thermal_enable_alert' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_thermal.c:468: warning: Function parameter or member 'hwmgr' not described in 'vega10_thermal_disable_alert' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_thermal.c:496: warning: Function parameter or member 'hwmgr' not described in 'vega10_thermal_stop_thermal_controller' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_thermal.c:515: warning: Function parameter or member 'hwmgr' not described in 'vega10_thermal_setup_fan_table' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_thermal.c:618: warning: Function parameter or member 'hwmgr' not described in 'vega10_thermal_start_smc_fan_control' 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 --- .../amd/pm/powerplay/hwmgr/vega10_thermal.c | 131 ++++++++---------- 1 file changed, 61 insertions(+), 70 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_thermal.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_thermal.c index 952cd3d7240e3..9b46b27bd30c4 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_thermal.c +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_thermal.c @@ -118,12 +118,12 @@ int vega10_fan_ctrl_get_fan_speed_rpm(struct pp_hwmgr *hwmgr, uint32_t *speed) } /** -* Set Fan Speed Control to static mode, -* so that the user can decide what speed to use. -* @param hwmgr the address of the powerplay hardware manager. -* mode the fan control mode, 0 default, 1 by percent, 5, by RPM -* @exception Should always succeed. -*/ + * vega10_fan_ctrl_set_static_mode - Set Fan Speed Control to static mode, + * so that the user can decide what speed to use. + * @hwmgr: the address of the powerplay hardware manager. + * @mode: the fan control mode, 0 default, 1 by percent, 5, by RPM + * Exception: Should always succeed. + */ int vega10_fan_ctrl_set_static_mode(struct pp_hwmgr *hwmgr, uint32_t mode) { struct amdgpu_device *adev = hwmgr->adev; @@ -149,10 +149,10 @@ int vega10_fan_ctrl_set_static_mode(struct pp_hwmgr *hwmgr, uint32_t mode) } /** -* Reset Fan Speed Control to default mode. -* @param hwmgr the address of the powerplay hardware manager. -* @exception Should always succeed. -*/ + * vega10_fan_ctrl_set_default_mode - Reset Fan Speed Control to default mode. + * @hwmgr: the address of the powerplay hardware manager. + * Exception: Should always succeed. + */ int vega10_fan_ctrl_set_default_mode(struct pp_hwmgr *hwmgr) { struct amdgpu_device *adev = hwmgr->adev; @@ -173,11 +173,10 @@ int vega10_fan_ctrl_set_default_mode(struct pp_hwmgr *hwmgr) } /** - * @fn vega10_enable_fan_control_feature - * @brief Enables the SMC Fan Control Feature. + * vega10_enable_fan_control_feature - Enables the SMC Fan Control Feature. * - * @param hwmgr - the address of the powerplay hardware manager. - * @return 0 on success. -1 otherwise. + * @hwmgr: the address of the powerplay hardware manager. + * Return: 0 on success. -1 otherwise. */ static int vega10_enable_fan_control_feature(struct pp_hwmgr *hwmgr) { @@ -242,11 +241,11 @@ int vega10_fan_ctrl_stop_smc_fan_control(struct pp_hwmgr *hwmgr) } /** -* Set Fan Speed in percent. -* @param hwmgr the address of the powerplay hardware manager. -* @param speed is the percentage value (0% - 100%) to be set. -* @exception Fails is the 100% setting appears to be 0. -*/ + * vega10_fan_ctrl_set_fan_speed_percent - Set Fan Speed in percent. + * @hwmgr: the address of the powerplay hardware manager. + * @speed: is the percentage value (0% - 100%) to be set. + * Exception: Fails is the 100% setting appears to be 0. + */ int vega10_fan_ctrl_set_fan_speed_percent(struct pp_hwmgr *hwmgr, uint32_t speed) { @@ -282,10 +281,10 @@ int vega10_fan_ctrl_set_fan_speed_percent(struct pp_hwmgr *hwmgr, } /** -* Reset Fan Speed to default. -* @param hwmgr the address of the powerplay hardware manager. -* @exception Always succeeds. -*/ + * vega10_fan_ctrl_reset_fan_speed_to_default - Reset Fan Speed to default. + * @hwmgr: the address of the powerplay hardware manager. + * Exception: Always succeeds. + */ int vega10_fan_ctrl_reset_fan_speed_to_default(struct pp_hwmgr *hwmgr) { if (hwmgr->thermal_controller.fanInfo.bNoFan) @@ -298,11 +297,11 @@ int vega10_fan_ctrl_reset_fan_speed_to_default(struct pp_hwmgr *hwmgr) } /** -* Set Fan Speed in RPM. -* @param hwmgr the address of the powerplay hardware manager. -* @param speed is the percentage value (min - max) to be set. -* @exception Fails is the speed not lie between min and max. -*/ + * vega10_fan_ctrl_set_fan_speed_rpm - Set Fan Speed in RPM. + * @hwmgr: the address of the powerplay hardware manager. + * @speed: is the percentage value (min - max) to be set. + * Exception: Fails is the speed not lie between min and max. + */ int vega10_fan_ctrl_set_fan_speed_rpm(struct pp_hwmgr *hwmgr, uint32_t speed) { struct amdgpu_device *adev = hwmgr->adev; @@ -331,10 +330,10 @@ int vega10_fan_ctrl_set_fan_speed_rpm(struct pp_hwmgr *hwmgr, uint32_t speed) } /** -* Reads the remote temperature from the SIslands thermal controller. -* -* @param hwmgr The address of the hardware manager. -*/ + * vega10_thermal_get_temperature - Reads the remote temperature from the SIslands thermal controller. + * + * @hwmgr: The address of the hardware manager. + */ int vega10_thermal_get_temperature(struct pp_hwmgr *hwmgr) { struct amdgpu_device *adev = hwmgr->adev; @@ -353,13 +352,13 @@ int vega10_thermal_get_temperature(struct pp_hwmgr *hwmgr) } /** -* Set the requested temperature range for high and low alert signals -* -* @param hwmgr The address of the hardware manager. -* @param range Temperature range to be programmed for -* high and low alert signals -* @exception PP_Result_BadInput if the input data is not valid. -*/ + * vega10_thermal_set_temperature_range - Set the requested temperature range for high and low alert signals + * + * @hwmgr: The address of the hardware manager. + * @range: Temperature range to be programmed for + * high and low alert signals + * Exception: PP_Result_BadInput if the input data is not valid. + */ static int vega10_thermal_set_temperature_range(struct pp_hwmgr *hwmgr, struct PP_TemperatureRange *range) { @@ -406,10 +405,10 @@ static int vega10_thermal_set_temperature_range(struct pp_hwmgr *hwmgr, } /** -* Programs thermal controller one-time setting registers -* -* @param hwmgr The address of the hardware manager. -*/ + * vega10_thermal_initialize - Programs thermal controller one-time setting registers + * + * @hwmgr: The address of the hardware manager. + */ static int vega10_thermal_initialize(struct pp_hwmgr *hwmgr) { struct amdgpu_device *adev = hwmgr->adev; @@ -429,10 +428,10 @@ static int vega10_thermal_initialize(struct pp_hwmgr *hwmgr) } /** -* Enable thermal alerts on the RV770 thermal controller. -* -* @param hwmgr The address of the hardware manager. -*/ + * vega10_thermal_enable_alert - Enable thermal alerts on the RV770 thermal controller. + * + * @hwmgr: The address of the hardware manager. + */ static int vega10_thermal_enable_alert(struct pp_hwmgr *hwmgr) { struct amdgpu_device *adev = hwmgr->adev; @@ -461,9 +460,9 @@ static int vega10_thermal_enable_alert(struct pp_hwmgr *hwmgr) } /** -* Disable thermal alerts on the RV770 thermal controller. -* @param hwmgr The address of the hardware manager. -*/ + * vega10_thermal_disable_alert - Disable thermal alerts on the RV770 thermal controller. + * @hwmgr: The address of the hardware manager. + */ int vega10_thermal_disable_alert(struct pp_hwmgr *hwmgr) { struct amdgpu_device *adev = hwmgr->adev; @@ -488,10 +487,10 @@ int vega10_thermal_disable_alert(struct pp_hwmgr *hwmgr) } /** -* Uninitialize the thermal controller. -* Currently just disables alerts. -* @param hwmgr The address of the hardware manager. -*/ + * vega10_thermal_stop_thermal_controller - Uninitialize the thermal controller. + * Currently just disables alerts. + * @hwmgr: The address of the hardware manager. + */ int vega10_thermal_stop_thermal_controller(struct pp_hwmgr *hwmgr) { int result = vega10_thermal_disable_alert(hwmgr); @@ -503,14 +502,10 @@ int vega10_thermal_stop_thermal_controller(struct pp_hwmgr *hwmgr) } /** -* Set up the fan table to control the fan using the SMC. -* @param hwmgr the address of the powerplay hardware manager. -* @param pInput the pointer to input data -* @param pOutput the pointer to output data -* @param pStorage the pointer to temporary storage -* @param Result the last failure code -* @return result from set temperature range routine -*/ + * vega10_thermal_setup_fan_table - Set up the fan table to control the fan using the SMC. + * @hwmgr: the address of the powerplay hardware manager. + * Return: result from set temperature range routine + */ static int vega10_thermal_setup_fan_table(struct pp_hwmgr *hwmgr) { int ret; @@ -606,14 +601,10 @@ int vega10_enable_mgpu_fan_boost(struct pp_hwmgr *hwmgr) } /** -* Start the fan control on the SMC. -* @param hwmgr the address of the powerplay hardware manager. -* @param pInput the pointer to input data -* @param pOutput the pointer to output data -* @param pStorage the pointer to temporary storage -* @param Result the last failure code -* @return result from set temperature range routine -*/ + * vega10_thermal_start_smc_fan_control - Start the fan control on the SMC. + * @hwmgr: the address of the powerplay hardware manager. + * Return: result from set temperature range routine + */ static int vega10_thermal_start_smc_fan_control(struct pp_hwmgr *hwmgr) { /* If the fantable setup has failed we could have disabled From patchwork Thu Nov 26 13:42:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 333001 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp156114ejs; Thu, 26 Nov 2020 05:43:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwmDxQARnm32/TJJ2jtm53pwHBFL9Y5XU0xW0v4eIYcwVCFHeAUZi8s1eqUXIkFFh98r8pl X-Received: by 2002:a63:c944:: with SMTP id y4mr2660589pgg.435.1606398227812; Thu, 26 Nov 2020 05:43:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398227; cv=none; d=google.com; s=arc-20160816; b=hwoqJlF6XU3fpOxUKCxF+fYox7NWQ/KeIyArwdw3X74mxPgMjN31fpWurgxnf1e1HQ 4aRpqSRYuQ1uyHoNLjmlsPFhC6aCbb/l70tp6hAvpaICUZ825PZn8m00Vavb4cTne9op WbhmAKMdI8tz9ng4Tdg29nyG7MTEXzA3DmREkOe01vs9U5NwZHge4BCU9xE3wM5wnBah nF5z8b+V/cP96kWlD020fqx+KW3ozQMsWz8uLitePYmiVcMgmVhfe3qnAuNZIX3oJTFb S66z+w6m9ZBeCjSkcUFWtzRswsO6B2CGAHU3XsVJrx6rODXmuyZkKBXVNSa9KLu76Wm6 d6cw== 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=k56TTzaJyyd8JqyrdTwWfTQCzp48YxB/ifU/jDXQeac=; b=MnFWd64656/5qImjesOj/iKzxXGAM3VyXKLIX45bN3KJz4DXlOTv6xfx6usPV4x78H xjsNEVc58dNQr25NItXTCN5DjiufiJz3dhkhFhmBImsSIueSn8hHa0uE3sjvcRvJ1F05 u0yvqcgb9AqSX+YsVVFXM3xGE5GeFUv/toyEJ14zlIgf0XjT2ataq7EvezeZE0sBZBGU xA0o2bhWMgV9eYXd/mf7tWMArdnfs4UUaVXlpRpy7vQEdimL6aA0Pb3GSy+X7WXo10Qo 0gi1uX+SP9kmyFDWyzbWmfuwGDnnoe8LJKyjYgROUEOVwU+YvdEk2uYtFIcShftM7nPo c2NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ALUCxbMF; 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 h7si6056871plr.251.2020.11.26.05.43.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:47 -0800 (PST) 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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ALUCxbMF; 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 132486E97E; Thu, 26 Nov 2020 13:43:27 +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 1A2FF6E96F for ; Thu, 26 Nov 2020 13:43:24 +0000 (UTC) Received: by mail-wm1-x344.google.com with SMTP id x22so2181630wmc.5 for ; Thu, 26 Nov 2020 05:43:24 -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=4u/cyGzH+u9QQSq+abd2+vyaNq4rk53k+eLSNkiBjf0=; b=ALUCxbMFgNl6Y+EGHLaMLveA4sRcf9yCJbgqBxya1G860rH7lp/E4PAVEFWm3w5icv 9G24r0Oq157EV/uUl3o8/Lxg/+i3kM1QXvSGpEkwSr2dNxQDTLMenKc0UCsAzx+wQh2C EksXweKKsnY37CHf/m+bXwaoBiak2cE5b4nkMfVCuHQhcPinfwjMspCz/z2wLWfXt4+3 Gifj73DXGNlj/XJseSfcCL9KjCYva6s6+/gsp2FnrpLQ303wLU7jTLG60GVLQ/EZKVD+ 5GBSJPY4QXHLwNNk5SJYvQk1jS/Z9KPf+uA7JutzXP3S1EXjYV2Mfmcc7K3PVDo+Vipg iLHw== 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=4u/cyGzH+u9QQSq+abd2+vyaNq4rk53k+eLSNkiBjf0=; b=nI3ctyqLojV5m3s7FymsMiv+kqdsFUl4rUVTsENuJ4Oq4T3PbSvXz/+FxsfbI0EXFa er/7h9OUUCzk53A0lC2Zjx+MKq2mv4eYlcKzP7bHezZr27X2R9KfKUTO2F1nukQI0M1W 5JJJ+lAIVbwZjp7KGP4JewYyqr42HwN9FHZ+cYcQ3xHwIbkwWSe+7CwwbDflq3Wbrh/J dVIwL2U08GXT15mtZWm63ixU1g7P8536G/AIIRLTHYBHuxeQVAWAjEO2UvtRSFRoQmpp S70V5X5BaBSkY6phv69iDgI8iE4/kunjpEpbVBBMr19bjP+wKqvhseLioBuQmLlF6GdO pd5g== X-Gm-Message-State: AOAM530AS4XAQXxyq2FY6Sg18RjFLXDsquu1oEbpUA4Q2fqWqTVLKf3Y FpDR7Bq6qOwhsUh5D7TKtXdzUA== X-Received: by 2002:a7b:cc95:: with SMTP id p21mr3486592wma.92.1606398202703; Thu, 26 Nov 2020 05:43:22 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:21 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 25/40] drm/amd/pm/powerplay/hwmgr/pp_psm: Remove unused variable 'result' Date: Thu, 26 Nov 2020 13:42:25 +0000 Message-Id: <20201126134240.3214176-26-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): drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/pp_psm.c: In function ‘psm_init_power_state_table’: drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/pp_psm.c:31:6: warning: variable ‘result’ 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/pp_psm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/pp_psm.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/pp_psm.c index 31a32a79cfc20..328e87f6c9bcd 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/pp_psm.c +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/pp_psm.c @@ -28,7 +28,6 @@ int psm_init_power_state_table(struct pp_hwmgr *hwmgr) { - int result; unsigned int i; unsigned int table_entries; struct pp_power_state *state; @@ -73,7 +72,7 @@ int psm_init_power_state_table(struct pp_hwmgr *hwmgr) state = hwmgr->ps; for (i = 0; i < table_entries; i++) { - result = hwmgr->hwmgr_func->get_pp_table_entry(hwmgr, i, state); + hwmgr->hwmgr_func->get_pp_table_entry(hwmgr, i, state); if (state->classification.flags & PP_StateClassificationFlag_Boot) { hwmgr->boot_ps = state; From patchwork Thu Nov 26 13:42:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 333003 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp156148ejs; Thu, 26 Nov 2020 05:43:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJy6rdsmwGcErWlVcPz3sRFx5fkBl72IndZ/vthSH+jGx7QYt1Qp+6Gt4FlbFl+q8oK1Hs0b X-Received: by 2002:a17:902:6b8c:b029:d6:d32e:4a8c with SMTP id p12-20020a1709026b8cb02900d6d32e4a8cmr2875682plk.28.1606398231112; Thu, 26 Nov 2020 05:43:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398231; cv=none; d=google.com; s=arc-20160816; b=oxcOvsK9bCHNIT/IlotVSdQj5Hw0o+6K7u+lWOutT3wrSz5Xo61Xc1ORqpRmM0rQ03 9JWDssSknRObd/JZMzRRC5QeeBInPreLUESMUls19gHykHyPLiCjh/Vn3aKSxDq2IRTW 2iHK3tceAWe/lDwaTyqLb7jyOIdm1BIrMRwtvuCYJjoxeMnSRc2EZrMScGpRxRHOuBo3 pQQF+LSdNqFqh+41NGs65/1cwpwrRSnR+eYK6bD9e1Onrs/DthTptyjky91dht4LZULj IVs1QzRV+1wuCIyzlwYdJARnC1Irx7Wh9djlNQCg0hhNKJiP0d6MQBcq5iTMgUGqhEFZ y4lw== 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=sELqM/vU44uAVzuIGrBs8V4dD30a2fllX+yUmhovGbI=; b=ac+NDRn7xatxnnjbXv5bM59nLngnRg2DR0huBVynzF0vSwhZxweW+/yhB4L5HQkLvo wCslTCUY0Sx+9LCTd7nSxfvRclIY6PMJFAZWFsHdHqLPjrOrOqK3FxSOhrPKluCUGUGX M9P4bwFWeX3oNBts5mr5HPU9TWnXbl3ij9aXDHtaNzEkT7moy4+00bvKybqDWR9HHlim awDGpCont6MGjvCSPp9Tym5WcHg76jIAnHRseoNvmArPp9Q/bKlJJeH6yLS3JTgojyRw LFogr6Avkfm/5kF0cNeMErMN6WO7CEJhiruw6g0MJfzvKOYK0x1IR6zQlSAvw36VWCZ5 YP7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=YVnwZsrr; 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 f10si4923084pjq.5.2020.11.26.05.43.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:51 -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=YVnwZsrr; 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 813416E95A; Thu, 26 Nov 2020 13:43:26 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by gabe.freedesktop.org (Postfix) with ESMTPS id 67AC36E976 for ; Thu, 26 Nov 2020 13:43:25 +0000 (UTC) Received: by mail-wm1-x343.google.com with SMTP id 1so2457077wme.3 for ; Thu, 26 Nov 2020 05:43:25 -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=zMzTR5vhzo4BdnrJCmrInB6ds6XJwPsog3Z9fF6R2ds=; b=YVnwZsrr7sG3BHYwtr4MQW0aFJrpyD1AMT0vIyWvKcE71Md7uD7/R1HGxpYrZ+mLGc LeFTtH/ouu+XRI7m5k3wKbRSAWdT5hheLq1/QuRnxmNDiTlgIFJrrhudBnl8EV/RLAMr wWnX0ysGFBkhWiW/dGtbfC21e0xIXHmByq6e5otpAD420wMf+55cFJRcDnp6qajBpAZ4 n87ywLwxtWbV8AiwIdfNBlpxykEfpASJ5MNiA0hqqd4t602Rt0Xo//VKfwTDbymFhPd0 1144Nr5rim3Iu8GIBe+FjKnKVgabvyK9pIRGoq0tYp4NYkA5aZApC60sSMGcrkzNUDuU TKoA== 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=zMzTR5vhzo4BdnrJCmrInB6ds6XJwPsog3Z9fF6R2ds=; b=TWEFFbtESZh2oivRni/OQgE3Lw+HVb3H2VG6ukiNiHfX5OSq8QgfNEwEVSn3MTCc4V +PU1WPwcMGvKumvqX82pnzFAVq9HO2eJPVh1fLPJpttbAV4O38KtlZa7GN5tgwvJiWL4 jCtjfltnjT/VaSWhrV7ZMu/osEvIgbw3YRi9hcqlKDbXnFDlrvvjJtuujHO9Ty40+xeW yBieOxLD+55BxPshGJBdwFlIWGpzJQj5pxJ1U3cVN/rme/UselLBQMh/H/ucsGb4SoDt t8Efhl8f+/UiMSAuBo6gwfXKBqd00GfS1h+mb1YZ4jbUosqldnKJwZFX+EgCC+PncMZj Kx/g== X-Gm-Message-State: AOAM532S+6tD8M3zsOgpzuW3Vhqjk0tRktb7JVvhhoLWE5K/iwaV1qH3 lDIhOGduQEUBsg+A40tsodIW5g== X-Received: by 2002:a7b:c950:: with SMTP id i16mr3536392wml.136.1606398204018; Thu, 26 Nov 2020 05:43:24 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:23 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 26/40] drm/amd/pm/powerplay/hwmgr/hwmgr: Move 'vega12_hwmgr_init()'s prototype to shared header Date: Thu, 26 Nov 2020 13:42:26 +0000 Message-Id: <20201126134240.3214176-27-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): drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega12_hwmgr.c:2862:5: warning: no previous prototype for ‘vega12_hwmgr_init’ [-Wmissing-prototypes] 2862 | int vega12_hwmgr_init(struct pp_hwmgr *hwmgr) | ^~~~~~~~~~~~~~~~~ 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/inc/hwmgr.h | 1 + drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/inc/hwmgr.h b/drivers/gpu/drm/amd/pm/inc/hwmgr.h index 393e4e76a8961..499f2520b1aa3 100644 --- a/drivers/gpu/drm/amd/pm/inc/hwmgr.h +++ b/drivers/gpu/drm/amd/pm/inc/hwmgr.h @@ -830,5 +830,6 @@ int hwmgr_handle_task(struct pp_hwmgr *hwmgr, int smu7_init_function_pointers(struct pp_hwmgr *hwmgr); int smu8_init_function_pointers(struct pp_hwmgr *hwmgr); +int vega12_hwmgr_init(struct pp_hwmgr *hwmgr); #endif /* _HWMGR_H_ */ diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c index 7999091cca16e..49f8a331eb02e 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c @@ -47,7 +47,6 @@ extern const struct pp_smumgr_func smu10_smu_funcs; extern const struct pp_smumgr_func vega20_smu_funcs; extern int vega10_hwmgr_init(struct pp_hwmgr *hwmgr); -extern int vega12_hwmgr_init(struct pp_hwmgr *hwmgr); extern int vega20_hwmgr_init(struct pp_hwmgr *hwmgr); extern int smu10_init_function_pointers(struct pp_hwmgr *hwmgr); From patchwork Thu Nov 26 13:42:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 333004 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp156157ejs; Thu, 26 Nov 2020 05:43:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJy+Am9TFqvHSleejUfk98whGLQqvqegJcKWIsN5kv6XGtci7g2Rb+xX7DmFiFdJi/qNDtM2 X-Received: by 2002:a63:385e:: with SMTP id h30mr2612390pgn.181.1606398232366; Thu, 26 Nov 2020 05:43:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398232; cv=none; d=google.com; s=arc-20160816; b=x5wSgZEhRb4w6fVZHPMG705fF7o3kK8pVkqmhwz8X8CfjbZOftxUkAg6/+IqjnjebE hvOE1zgNY1gormP85FpHiaqR4zQnrpIutSPrUkiA8F2M4kp5uZSlPFKcKMj76n0XzM5q 3t9Z99uJR4gaN73+9p5BsYABR5asXS1bPIs9Nhq66FNCQ4z9lPzVV2PpvV+IJvBqkJIA cI6hsUsR/UqJThjrRu5HjKUjIIbZETmGQ8tnqUumNyjNfQ55w5ZihHyzjfQBURiy3PQQ g+OP4ZvHNZPTt0ohOeQKETZsrAvuBzBIVYW2H7v2iRyFE1H8gj2xPUC6HSorzi0PFv80 Sehw== 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=FWlPQ8e2vwFj7oSwPiOYry72C4/rQnKkuTxLejWHriw=; b=Xh6lVWtOMHVvaf15WzAnLhi3mTBYGgupGtjkZsGes03ZsAbdrd6MtHHDeiDZEZoDJk g4LZB9nFRzS9EIPQ9CEZuo9kaf21lx9tWETFWXcyOYrTPA+kY+cOSCKCYLNDG8KgTdsU Of/4oarOCIVrfBApZsiKkB5wuP93qLGJY1giZCrZozW5gAt3+Gad03piBsRFdxuWKMjt +XuxJgC/WXilWENU5uaZ3FWwQWMYdFDpqCh733PjbUoWP2KFlhtATngN65z4FytQLiF/ 2bkjaKOREjADGduTExGVW/GKw+iQkDxVEhK8A3Y0kB9eI9cuzJ3N3SYh2sKUBHgPgifC TeQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=GEo2EsSt; 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 d21si5851859pls.140.2020.11.26.05.43.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:52 -0800 (PST) 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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=GEo2EsSt; 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 2B8CE6E96F; Thu, 26 Nov 2020 13:43:30 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by gabe.freedesktop.org (Postfix) with ESMTPS id BBA266E985 for ; Thu, 26 Nov 2020 13:43:27 +0000 (UTC) Received: by mail-wm1-x342.google.com with SMTP id s13so2449522wmh.4 for ; Thu, 26 Nov 2020 05:43:27 -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=FHee2zrW6mojQNSNJ9XRSA5F6LyijJ6hVMNlAaUjhbE=; b=GEo2EsStv13X9m/Tsj4m2jpkSmdMGO2t7vaRwB28WuHahv54Zru6Pq30ubqib2P4Wo ACkQZ7JrvpNLHUTv7oTvmgoVXkEwYckfsZQspiFUVlp0XajeT9CoQQt5Pbjf5EwuEN6D RlYoNlJrzOwYqErn8RfUXGMijS+BwjtOgRMnpYRx++o5YM0H4367xMtK7gzs82IAyos5 iQrBA233rIoyolzxOWOhFFUdnZ47L8NZq895xrRKd/hnWU6S8SAmr3Z2aFFCOAD2/Q/A iIGzRYPc2j1MBqeQwJD72uHh7Zlv5BPbVr/AwjD8oNGEh+cgL9os1KYP2ICPL66LEMrc 4jcg== 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=FHee2zrW6mojQNSNJ9XRSA5F6LyijJ6hVMNlAaUjhbE=; b=rjrVC8xFm0LvvE3o6WhojVfBphlvgAtJVjRBEWHfR+GsQr429aLgFyRLFJGrdkf9jQ WrHEbvL6Bgo/QURWQHeJeDqXRqUCHIvov7a8uFScCPrI8GayEDh6ETAz/LloQSlDqkYo ZzNwSGqQfYmVGf/ledm00XV13tZhKrQUvIGkIBZop+Muwnd2QR0+F2UmcKam4Eqihsgz c3ELCHhXrVzhbOygiurp5wR1zrd4ZWqoSpUuztckgBdhVzp8OX8BBh5dyHz/BYiGWM7F yW5ysJ2gXtS6JTflJIt9XJ+fnzHRoRGg6LCPbLbTu8RUjzVK98Q2H45SmAOzwacMF6dq i1/g== X-Gm-Message-State: AOAM531IeJtkOy+yIXJxBlYSI/HB9McaQ2HpbNlABpPGdT5f2MSHbk1K p9OT7zHYiSr3ee8Hbj+GaVEV6Q== X-Received: by 2002:a1c:2001:: with SMTP id g1mr3488686wmg.179.1606398205360; Thu, 26 Nov 2020 05:43:25 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:24 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 27/40] drm/amd/pm/powerplay/hwmgr/hwmgr: Move 'vega20_hwmgr_init()'s prototype to shared header Date: Thu, 26 Nov 2020 13:42:27 +0000 Message-Id: <20201126134240.3214176-28-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): drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega20_hwmgr.c:4403:5: warning: no previous prototype for ‘vega20_hwmgr_init’ [-Wmissing-prototypes] 4403 | int vega20_hwmgr_init(struct pp_hwmgr *hwmgr) | ^~~~~~~~~~~~~~~~~ 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/inc/hwmgr.h | 1 + drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/inc/hwmgr.h b/drivers/gpu/drm/amd/pm/inc/hwmgr.h index 499f2520b1aa3..490371bd25201 100644 --- a/drivers/gpu/drm/amd/pm/inc/hwmgr.h +++ b/drivers/gpu/drm/amd/pm/inc/hwmgr.h @@ -831,5 +831,6 @@ int hwmgr_handle_task(struct pp_hwmgr *hwmgr, int smu7_init_function_pointers(struct pp_hwmgr *hwmgr); int smu8_init_function_pointers(struct pp_hwmgr *hwmgr); int vega12_hwmgr_init(struct pp_hwmgr *hwmgr); +int vega20_hwmgr_init(struct pp_hwmgr *hwmgr); #endif /* _HWMGR_H_ */ diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c index 49f8a331eb02e..6a7de8b898faf 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c @@ -47,7 +47,6 @@ extern const struct pp_smumgr_func smu10_smu_funcs; extern const struct pp_smumgr_func vega20_smu_funcs; extern int vega10_hwmgr_init(struct pp_hwmgr *hwmgr); -extern int vega20_hwmgr_init(struct pp_hwmgr *hwmgr); extern int smu10_init_function_pointers(struct pp_hwmgr *hwmgr); static int polaris_set_asic_special_caps(struct pp_hwmgr *hwmgr); From patchwork Thu Nov 26 13:42:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 333005 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp156170ejs; Thu, 26 Nov 2020 05:43:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJx1AR6ZERdNXcAWwLO7pkV6/OXUpg6jfUWaanc55zqCZS0WT26gk2OguoW0n7kZzvyk4Np9 X-Received: by 2002:a17:90b:4b0a:: with SMTP id lx10mr3576421pjb.205.1606398233653; Thu, 26 Nov 2020 05:43:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398233; cv=none; d=google.com; s=arc-20160816; b=bLMnRTOUeefFIWZ+7u/RA243pAxKD3vx9hP3BkNjjy8cAjBE32Ey+A3PhLjeeo/YMb UJvkkfbZXLAngFFHaCAcsbZUU6Bt6WNF1Ygg+RKBcWXQ8Kw5lYpWZq4NUcvdnkaXBQeE 2Bqh6g337LiLEkklGbqsrNc0SG49mqC4byg06NQsQY2s28nHQSP8W8WRX3BBcjGD7Nw5 B15HcAnE5o+XUQphH9ZRqEgTCCKeGBpDQ66gwS8xflp5XROy2gPwm6J2Rt+pS4lTsdqf JvaWdQSDgMJfurM0nQxOJrr6ilK7IG+GiKYadQvS3l+qzoVtuql1PETUketQjx1bsS6y LKAA== 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=RCNmbFD1lW+AvRMiW/a/YFVWHr/KzB3l/kEMAM1VM5k=; b=E5NtY2mrvf1KxdUUQB8Trs8ehhc82vbr+sUMyWthrCrWsjM6nRAKeyaBkccizkwqmI XbTLyjNX6EkInRxhOSZZRg0ve+zL+q3VYvh421MHP04SXcyMB7nZVJIKDObjdK+PQus1 g9Jsv9k/uk9PhUhbBJqHwSPUj5/DjcwR7Ku4heBWGEeh14oTvF9pRDSR2txYD0XMMGrs n74cae0zpa3Ztc2gPuzX3XuEJYCRd3hjg9XuU66wEzNtgKdQYBpfPbdC83LxoI4oOHZh Rnm7/QAejhsQayZ9eT3bpckLCntlq2OhqG8WhllB8nfqGvD895INMmD50GhxTpo7cUz6 J4fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=R+ke7JtZ; 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 h16si5276014pgg.533.2020.11.26.05.43.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:53 -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=R+ke7JtZ; 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 D55D96E97F; Thu, 26 Nov 2020 13:43:30 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by gabe.freedesktop.org (Postfix) with ESMTPS id 16CD16E96C for ; Thu, 26 Nov 2020 13:43:29 +0000 (UTC) Received: by mail-wm1-x343.google.com with SMTP id h21so2460599wmb.2 for ; Thu, 26 Nov 2020 05:43:29 -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=g0apstHJcdeOJJW9Rp51CgUS07wmlnhOot/Yb8U7ShY=; b=R+ke7JtZPgsc78EmFR6U0OdvfKYXOPVsJWKDRwLe3Ib/J8HQUt/IyO9zTCBy6ycOwp 3W6aObfhdCgvjBaLbR9kCaf+DYxtlxZGQ1ThIPq8Vds/1uNBJWazJO23cK6YqcZ3c+Yc MqfvUgwieLkQBpToE6a7CdkpYbfdLiWr5VWEPlODGD5Zk31w7mwaLI/kjS7sA2rMeum0 1S3ERwYCziOtrYZLOk9P+xCMMFHkzDKyBpVRoDA4vmDWdGi9vr0zYxIMCGF3GF85HU6U EuaaisE1ndR/xqpCDhrU3qdVwT5AsQIhI1HHu6GIos3y7XyF9T0c5b90tmIIEGgwTWJ8 621Q== 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=g0apstHJcdeOJJW9Rp51CgUS07wmlnhOot/Yb8U7ShY=; b=tfoKjulGrGWFfvrrQgHM8BaSeE5Ox79O1PFSdzbmZdIHpb80dcAilqHP/bbjypZyyV 1vkkrd2UOhkm43LOufnK7MHi64B4+A4GyDZ67qSOaXIyjFbSchcTtREhaaacBDZq1CvX EnzuhpPaFtmODHaTBYuF+16Rmx4rjN+5XKBz15gtRs7hyeNFi4S41orbYrzQrlr/FvSu 8gQ6q2iANeXOsKMSfll8ZRccPTzwjncI3IRaMBAvIkyPJ0YJ8c/Ca49ylHbsRMyHTqIP znd8XrPAIsymMMFYuW3QzFye7u5NU2ZsWckvV3v9BMvleWIQPn2GOd4xhj93MvcMrW90 NOiw== X-Gm-Message-State: AOAM532I4xtm3E/iEq3wra22h7xSQpSEjQnb4jH/WGLzNjLDyW3jPKk9 rka9JjjqFgL13aQfLTG8e9ZKQw== X-Received: by 2002:a7b:c397:: with SMTP id s23mr3666442wmj.36.1606398207768; Thu, 26 Nov 2020 05:43:27 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:27 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 28/40] drm/amd/pm/powerplay/hwmgr/smu_helper: Demote or fix kernel-doc headers Date: Thu, 26 Nov 2020 13:42:28 +0000 Message-Id: <20201126134240.3214176-29-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): drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu_helper.c:112: warning: Function parameter or member 'hwmgr' not described in 'phm_wait_on_register' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu_helper.c:112: warning: Function parameter or member 'index' not described in 'phm_wait_on_register' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu_helper.c:112: warning: Function parameter or member 'value' not described in 'phm_wait_on_register' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu_helper.c:112: warning: Function parameter or member 'mask' not described in 'phm_wait_on_register' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu_helper.c:145: warning: Function parameter or member 'hwmgr' not described in 'phm_wait_on_indirect_register' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu_helper.c:145: warning: Function parameter or member 'indirect_port' not described in 'phm_wait_on_indirect_register' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu_helper.c:145: warning: Function parameter or member 'index' not described in 'phm_wait_on_indirect_register' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu_helper.c:145: warning: Function parameter or member 'value' not described in 'phm_wait_on_indirect_register' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu_helper.c:145: warning: Function parameter or member 'mask' not described in 'phm_wait_on_indirect_register' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu_helper.c:494: warning: Function parameter or member 'hwmgr' not described in 'phm_initializa_dynamic_state_adjustment_rule_settings' 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/smu_helper.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu_helper.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu_helper.c index 2a0ca5194bbe9..bfe80ac0ad8c8 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu_helper.c +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu_helper.c @@ -103,7 +103,7 @@ uint32_t phm_set_field_to_u32(u32 offset, u32 original_data, u32 field, u32 size return original_data; } -/** +/* * Returns once the part of the register indicated by the mask has * reached the given value. */ @@ -132,7 +132,7 @@ int phm_wait_on_register(struct pp_hwmgr *hwmgr, uint32_t index, } -/** +/* * Returns once the part of the register indicated by the mask has * reached the given value.The indirect space is described by giving * the memory-mapped index of the indirect index register. @@ -486,9 +486,9 @@ int phm_get_sclk_for_voltage_evv(struct pp_hwmgr *hwmgr, } /** - * Initialize Dynamic State Adjustment Rule Settings + * phm_initializa_dynamic_state_adjustment_rule_settings - Initialize Dynamic State Adjustment Rule Settings * - * @param hwmgr the address of the powerplay hardware manager. + * @hwmgr: the address of the powerplay hardware manager. */ int phm_initializa_dynamic_state_adjustment_rule_settings(struct pp_hwmgr *hwmgr) { From patchwork Thu Nov 26 13:42:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 333009 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp156231ejs; Thu, 26 Nov 2020 05:43:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJyOQ4lvHjROrFgi4XhZrVQTfDgcv9sDgl3W/aX6CaAr3hONlNZL79XkjvNJ1u44fHI6js9E X-Received: by 2002:a63:540c:: with SMTP id i12mr2687989pgb.32.1606398238752; Thu, 26 Nov 2020 05:43:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398238; cv=none; d=google.com; s=arc-20160816; b=yRHJxtqaIsolF+w+QI7v58o65Zqoux9HPhf7DQ46D5zhpxgQBYxJMhZOcRUMPVMCWH 6AdYaqueloPge6hacn1Qqgp1nc2tLz2F0a02COCAsn1glJiYVbOLBD48qHwx8eEdfbpA sFPTRCLDrUhpfYfxa5gA0TGUnoMzLjO82l8fUIB8TwSdpqKwuWTAHk5ip2As6YJ2I5s3 2duH3yn3j6b2totAdzhsLBSF+PAkw8Dv/UKMwmMIU/KGasPy5eqU7+eE1nMOR/SuWQ3E MNF/s1YRBE3g4nAVnkMHv+W3dDB3y7nORw3SIfGsB/jZuw5rCNjAUfpccxR2fdPxSsDK uvDA== 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=r7R778DdB/kMnBLPe4LiVK/+fdUMud5o4BAvQnJ9JiY=; b=LPBcLV8nA1/XkTb7/4dI5Q0DU6uKwe0KmgJfDmQkQak31ih644Som9eAdFEGh5zJha NIzYxDOsgswKIN5w8um1/3GcrN5CqAx90lWttemUwu8JxoZPIuuLYNC9uckbMlIfNPMI LBCRv2AeIJaLIn1IdnTSNble1x+E1PS9+YI9as1VdBbSMji0jKS6p78u+dZwwCZxSaQ7 3MyItlFzplEANnVlEFTno6ZtCsEliRzx86NCpas9Fs4cEfMEJHMBce2RnrP6p1tNU68V geAipXdFoUtnh0n3HtwNZr51sRvgotLv23Swew8P5DaeynMU6IN1a1EU/Vr69T9xM5A/ TwCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="BL/MSEaJ"; 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 x13si5535765pgq.161.2020.11.26.05.43.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:58 -0800 (PST) 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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="BL/MSEaJ"; 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 8CD556E976; Thu, 26 Nov 2020 13:43:36 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1FE2A6E957 for ; Thu, 26 Nov 2020 13:43:32 +0000 (UTC) Received: by mail-wm1-x343.google.com with SMTP id a3so2447876wmb.5 for ; Thu, 26 Nov 2020 05:43:32 -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=VvOq+Zi/CHrahUTvogxV5HI9MG7ly8TSlygcZpw2NKU=; b=BL/MSEaJ1vyfc+neXkZo3m2nXS6eZ0aJq2FC5IT/mKUL820jhA/u5feEKiEunlhQRe zQrtJgdxtDbBbMGMltY+M+UE1ZOxrt6k/gNz9P0FfECY5oyB4sDDv7+66Ae46DZz4Qp0 b1Ar6OuLKkVNwStteZF2zRBJeM/zrcA0Mtl5wYiafW4xHVcUtedPiY5MYyHCl7cR04vj mb9nYE8psZSo9d2mVOkW2q7GN5lvN+nEfn8jAA06B1euZfaZhEISLXjJ715JbAA/JzHX 3kJc56w90k8d1spd6D5S+No6Ueg3J+iR9U5lQiZXI/MZ+1ZjWTOQgvohp8+OCdo56Whl n3BA== 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=VvOq+Zi/CHrahUTvogxV5HI9MG7ly8TSlygcZpw2NKU=; b=JCJn8PgW5uTZTvn99hhsFQVX4m8Aq97BP/HbaEWO8Iko2Zmt6i/ohNPSEGGwis8XFg kXqh1UT+7hIpug82cMCnU3joa2Z0nIRI0pxZ4k4u/u4J86HseBn8Q98L0Asi0DzK7WYq ZiUdjNIjyb8QGWOeCJeaTxBRm05KZn3kfHo3K3TKU3sVhAi6jWaKVf2kTZxRZjNeVVOb m4AcwaaLy+gfPinjSnbcGMBBV1IdRPxCzcNQv3Sxi6z81b4wfgn1mWna16ZSOLUtZzDZ BJ6vYC5C/1661BqvgwBYIWNijw3HzAWM6ypgyACSn0c+Jl8TSO/QqiCwMXY6ldeIy/Nj qnQw== X-Gm-Message-State: AOAM530EpXvPATB4UiHYAHeCGULhuCnxfb3vMisaCv+uRsS3VaOEtR4r myVDMhDBgZ8mQTwV8Nv532Z1zA== X-Received: by 2002:a1c:ba0b:: with SMTP id k11mr3451218wmf.37.1606398209121; Thu, 26 Nov 2020 05:43:29 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:28 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 29/40] drm/amd/pm/powerplay/hwmgr/vega20_thermal: Fix some outdated function documentation Date: Thu, 26 Nov 2020 13:42:29 +0000 Message-Id: <20201126134240.3214176-30-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): drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega20_thermal.c:217: warning: Function parameter or member 'hwmgr' not described in 'vega20_thermal_get_temperature' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega20_thermal.c:242: warning: Function parameter or member 'hwmgr' not described in 'vega20_thermal_set_temperature_range' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega20_thermal.c:242: warning: Function parameter or member 'range' not described in 'vega20_thermal_set_temperature_range' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega20_thermal.c:278: warning: Function parameter or member 'hwmgr' not described in 'vega20_thermal_enable_alert' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega20_thermal.c:296: warning: Function parameter or member 'hwmgr' not described in 'vega20_thermal_disable_alert' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega20_thermal.c:310: warning: Function parameter or member 'hwmgr' not described in 'vega20_thermal_stop_thermal_controller' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega20_thermal.c:326: warning: Function parameter or member 'hwmgr' not described in 'vega20_thermal_setup_fan_table' 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 --- .../amd/pm/powerplay/hwmgr/vega20_thermal.c | 54 +++++++++---------- 1 file changed, 24 insertions(+), 30 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_thermal.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_thermal.c index 364162ddaa9c6..269dd7e95a445 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_thermal.c +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_thermal.c @@ -209,10 +209,10 @@ int vega20_fan_ctrl_set_fan_speed_rpm(struct pp_hwmgr *hwmgr, uint32_t speed) } /** -* Reads the remote temperature from the SIslands thermal controller. -* -* @param hwmgr The address of the hardware manager. -*/ + * vega20_thermal_get_temperature - Reads the remote temperature from the SIslands thermal controller. + * + * @hwmgr: The address of the hardware manager. + */ int vega20_thermal_get_temperature(struct pp_hwmgr *hwmgr) { struct amdgpu_device *adev = hwmgr->adev; @@ -230,13 +230,12 @@ int vega20_thermal_get_temperature(struct pp_hwmgr *hwmgr) } /** -* Set the requested temperature range for high and low alert signals -* -* @param hwmgr The address of the hardware manager. -* @param range Temperature range to be programmed for -* high and low alert signals -* @exception PP_Result_BadInput if the input data is not valid. -*/ + * vega20_thermal_set_temperature_range - Set the requested temperature range for high and low alert signals + * + * @hwmgr: The address of the hardware manager. + * @range: Temperature range to be programmed for high and low alert signals + * Exception: PP_Result_BadInput if the input data is not valid. + */ static int vega20_thermal_set_temperature_range(struct pp_hwmgr *hwmgr, struct PP_TemperatureRange *range) { @@ -270,10 +269,10 @@ static int vega20_thermal_set_temperature_range(struct pp_hwmgr *hwmgr, } /** -* Enable thermal alerts on the RV770 thermal controller. -* -* @param hwmgr The address of the hardware manager. -*/ + * vega20_thermal_enable_alert - Enable thermal alerts on the RV770 thermal controller. + * + * @hwmgr: The address of the hardware manager. + */ static int vega20_thermal_enable_alert(struct pp_hwmgr *hwmgr) { struct amdgpu_device *adev = hwmgr->adev; @@ -289,9 +288,9 @@ static int vega20_thermal_enable_alert(struct pp_hwmgr *hwmgr) } /** -* Disable thermal alerts on the RV770 thermal controller. -* @param hwmgr The address of the hardware manager. -*/ + * vega20_thermal_disable_alert - Disable thermal alerts on the RV770 thermal controller. + * @hwmgr: The address of the hardware manager. + */ int vega20_thermal_disable_alert(struct pp_hwmgr *hwmgr) { struct amdgpu_device *adev = hwmgr->adev; @@ -302,10 +301,10 @@ int vega20_thermal_disable_alert(struct pp_hwmgr *hwmgr) } /** -* Uninitialize the thermal controller. -* Currently just disables alerts. -* @param hwmgr The address of the hardware manager. -*/ + * vega20_thermal_stop_thermal_controller - Uninitialize the thermal controller. + * Currently just disables alerts. + * @hwmgr: The address of the hardware manager. + */ int vega20_thermal_stop_thermal_controller(struct pp_hwmgr *hwmgr) { int result = vega20_thermal_disable_alert(hwmgr); @@ -314,14 +313,9 @@ int vega20_thermal_stop_thermal_controller(struct pp_hwmgr *hwmgr) } /** -* Set up the fan table to control the fan using the SMC. -* @param hwmgr the address of the powerplay hardware manager. -* @param pInput the pointer to input data -* @param pOutput the pointer to output data -* @param pStorage the pointer to temporary storage -* @param Result the last failure code -* @return result from set temperature range routine -*/ + * vega20_thermal_setup_fan_table - Set up the fan table to control the fan using the SMC. + * @hwmgr: the address of the powerplay hardware manager. + */ static int vega20_thermal_setup_fan_table(struct pp_hwmgr *hwmgr) { int ret; From patchwork Thu Nov 26 13:42:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 333006 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp156184ejs; Thu, 26 Nov 2020 05:43:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJyQFlyuQIrx4SV+lTxd4AFxEwC+mSQI5cGMuXE6cLKuOP/asInPMSydhWRJw4/s2GgfrC3/ X-Received: by 2002:a17:90a:d58e:: with SMTP id v14mr3793197pju.191.1606398234884; Thu, 26 Nov 2020 05:43:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398234; cv=none; d=google.com; s=arc-20160816; b=q9ijCbPOmGP36EFkV0lUKc+kAmlD4kP3I7rCUySakEjoKXrZNGGt/QWPcmMluw9j1U vKrYneH2Aih3nNH18LitkcEvfe1mU/wyJzs4zasEkjXolG344u5WWnnkkYZdIlBa6x12 pvJMCI2Tw8ByXNxzp04pCN1kLA2IcltSNvfMC6j6Yjf1mO1w6LndMnwSJhFd8RNTq4Ay QLfKkCLGkARZrDHbvXhtDFBBROY8gfSeQcQ0R1RZIGSM/4EHUjD1qEwDwsuLcDhAE9xu xJ4wX2dkld1mlFymCBGc78rZOXoXpvOD9up6Fi/wtlzedqSNaeI4ZdJD/I5qE9d88jM1 4NRg== 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=DxKYTDpmHo2qFv0eTxIRRu7RoDoEGwA/Vzh4rkwdPiQ=; b=kK00vxPrzDhYfZDV4lAb8EhBoJAD/4ER9JKJbE4CInGtHJmlD+0q39NnnDPRK+Hz/C kwrYUpC9j147NI5cgC8eb3rDBqm2Y9GIFoxLY/dgqVF97qPU7L6ReUxQnnMObqRiikar KK67Km3NqC+GSyH5qiD0b9cs3Gi+M4hiogjX3n/B+o5tDkJL8qoz7eyfj82Fz7rnfTxL tYC6o7q8JY2aDoMfGeh6/NVaoLAss3kCCCaV1RllESbHUrbQ97NAtXzkONXt8LebELvp EfiFrBeL2XVuhnjX+HNYFJa3/1rgga8+jBF4193+l/uBbuky6j80trGcE5xYBmirliqo b3sQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="h7/b7Q13"; 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 k2si5035878pgb.277.2020.11.26.05.43.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:54 -0800 (PST) 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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="h7/b7Q13"; 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 313AD6E97C; Thu, 26 Nov 2020 13:43:35 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by gabe.freedesktop.org (Postfix) with ESMTPS id CB5886E976 for ; Thu, 26 Nov 2020 13:43:31 +0000 (UTC) Received: by mail-wr1-x443.google.com with SMTP id e7so2197547wrv.6 for ; Thu, 26 Nov 2020 05:43:31 -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=noGA3E/AB1B64F/JwbdkWEfwXVhCmBFBJIPeh1+Apks=; b=h7/b7Q13ulVO3nAVpIgUkaCmxcL2QCAFnLIMbYQfhHQheIy5qqTibv2rMfHWV6f9XQ HZZK/c/tXEttTZe8ktoiWGX+RjM/4IlREpcV6HbTomyYnjJ74N7M4U48ahTK61qX94vF o9hEXLXGjGwZVhxf9rDSLVUIkDBFRZzQnigiPYL3qJpPlQw6R0WLLRdoNc2rf8yoTgZw 9deI72uqwb39WlHzAJwTdcQR6aWgh2+rARQf6Kig5kmnsDyrfVpQyZyNCHV1WsrMHDnn OKEmEckh42lnWp4dXRqczSV6V8VInFXNXSh0+5L5XYn0yrMdMGXwjUe/5mm+KmZu5ywf Wlew== 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=noGA3E/AB1B64F/JwbdkWEfwXVhCmBFBJIPeh1+Apks=; b=Pwvx2o5MHPQWHcvI2OywOsk58SF6VOeInlD0bm3noWZ5Lf7kABnAtwui5uhVY++0bP Md21Asn+yosi0V1PlBa5Rvri8dFf/ZJ1Av3l2YvKkqo9tWmuVO0nSWftm0cAxBhzvviS 7JuorfruaSR87TGvrBtfqU4X2LPAozlH3bL0pS2dNaIj+s6h0eAdZEU8OaYfpXZfBE9L vLHdJbsA0KITeCmA9DB3d6FTRAR0791BmG2ekJSZx668fHcGvpTdvva965YVxpIs9D07 QL1Vz3/oN6YWFper4gItbko3WOWUzzzuGl5VvinbwopsUj4yZ81AdkT0LxuLpofElVrd 3hVA== X-Gm-Message-State: AOAM532o/7wTOrgQNWNxLi++Z1zYYZjR4rPBkzjKo+PZZLzLcTXydDAH mBYAAf4QMkvnaqn7NXyUk3Ld5w== X-Received: by 2002:a5d:654b:: with SMTP id z11mr3865038wrv.291.1606398210469; Thu, 26 Nov 2020 05:43:30 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:29 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 30/40] drm/amd/pm/powerplay/hwmgr/vega12_thermal: Fix some outdated function documentation Date: Thu, 26 Nov 2020 13:42:30 +0000 Message-Id: <20201126134240.3214176-31-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): drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega12_thermal.c:63: warning: Cannot understand * @fn vega12_enable_fan_control_feature drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega12_thermal.c:137: warning: Function parameter or member 'hwmgr' not described in 'vega12_fan_ctrl_reset_fan_speed_to_default' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega12_thermal.c:147: warning: Function parameter or member 'hwmgr' not described in 'vega12_thermal_get_temperature' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega12_thermal.c:172: warning: Function parameter or member 'hwmgr' not described in 'vega12_thermal_set_temperature_range' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega12_thermal.c:172: warning: Function parameter or member 'range' not described in 'vega12_thermal_set_temperature_range' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega12_thermal.c:208: warning: Function parameter or member 'hwmgr' not described in 'vega12_thermal_enable_alert' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega12_thermal.c:226: warning: Function parameter or member 'hwmgr' not described in 'vega12_thermal_disable_alert' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega12_thermal.c:240: warning: Function parameter or member 'hwmgr' not described in 'vega12_thermal_stop_thermal_controller' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega12_thermal.c:256: warning: Function parameter or member 'hwmgr' not described in 'vega12_thermal_setup_fan_table' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega12_thermal.c:279: warning: Function parameter or member 'hwmgr' not described in 'vega12_thermal_start_smc_fan_control' 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 --- .../amd/pm/powerplay/hwmgr/vega12_thermal.c | 82 ++++++++----------- 1 file changed, 36 insertions(+), 46 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_thermal.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_thermal.c index 7ace439dcde7a..0dc16f25a463b 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_thermal.c +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_thermal.c @@ -60,11 +60,10 @@ int vega12_fan_ctrl_get_fan_speed_rpm(struct pp_hwmgr *hwmgr, uint32_t *speed) } /** - * @fn vega12_enable_fan_control_feature - * @brief Enables the SMC Fan Control Feature. + * vega12_enable_fan_control_feature -Enables the SMC Fan Control Feature. * - * @param hwmgr - the address of the powerplay hardware manager. - * @return 0 on success. -1 otherwise. + * @hwmgr: the address of the powerplay hardware manager. + * Return: 0 on success. -1 otherwise. */ static int vega12_enable_fan_control_feature(struct pp_hwmgr *hwmgr) { @@ -129,20 +128,20 @@ int vega12_fan_ctrl_stop_smc_fan_control(struct pp_hwmgr *hwmgr) } /** -* Reset Fan Speed to default. -* @param hwmgr the address of the powerplay hardware manager. -* @exception Always succeeds. -*/ + * vega12_fan_ctrl_reset_fan_speed_to_default - Reset Fan Speed to default. + * @hwmgr: the address of the powerplay hardware manager. + * Exception Always succeeds. + */ int vega12_fan_ctrl_reset_fan_speed_to_default(struct pp_hwmgr *hwmgr) { return vega12_fan_ctrl_start_smc_fan_control(hwmgr); } /** -* Reads the remote temperature from the SIslands thermal controller. -* -* @param hwmgr The address of the hardware manager. -*/ + * vega12_thermal_get_temperature - Reads the remote temperature from the SIslands thermal controller. + * + * @hwmgr: The address of the hardware manager. + */ int vega12_thermal_get_temperature(struct pp_hwmgr *hwmgr) { struct amdgpu_device *adev = hwmgr->adev; @@ -160,13 +159,13 @@ int vega12_thermal_get_temperature(struct pp_hwmgr *hwmgr) } /** -* Set the requested temperature range for high and low alert signals -* -* @param hwmgr The address of the hardware manager. -* @param range Temperature range to be programmed for -* high and low alert signals -* @exception PP_Result_BadInput if the input data is not valid. -*/ + * Set the requested temperature range for high and low alert signals + * + * @hwmgr: The address of the hardware manager. + * @range: Temperature range to be programmed for + * high and low alert signals + * Exception: PP_Result_BadInput if the input data is not valid. + */ static int vega12_thermal_set_temperature_range(struct pp_hwmgr *hwmgr, struct PP_TemperatureRange *range) { @@ -200,10 +199,10 @@ static int vega12_thermal_set_temperature_range(struct pp_hwmgr *hwmgr, } /** -* Enable thermal alerts on the RV770 thermal controller. -* -* @param hwmgr The address of the hardware manager. -*/ + * vega12_thermal_enable_alert - Enable thermal alerts on the RV770 thermal controller. + * + * @hwmgr: The address of the hardware manager. + */ static int vega12_thermal_enable_alert(struct pp_hwmgr *hwmgr) { struct amdgpu_device *adev = hwmgr->adev; @@ -219,9 +218,9 @@ static int vega12_thermal_enable_alert(struct pp_hwmgr *hwmgr) } /** -* Disable thermal alerts on the RV770 thermal controller. -* @param hwmgr The address of the hardware manager. -*/ + * vega12_thermal_disable_alert - Disable thermal alerts on the RV770 thermal controller. + * @hwmgr: The address of the hardware manager. + */ int vega12_thermal_disable_alert(struct pp_hwmgr *hwmgr) { struct amdgpu_device *adev = hwmgr->adev; @@ -232,10 +231,10 @@ int vega12_thermal_disable_alert(struct pp_hwmgr *hwmgr) } /** -* Uninitialize the thermal controller. -* Currently just disables alerts. -* @param hwmgr The address of the hardware manager. -*/ + * vega12_thermal_stop_thermal_controller - Uninitialize the thermal controller. + * Currently just disables alerts. + * @hwmgr: The address of the hardware manager. + */ int vega12_thermal_stop_thermal_controller(struct pp_hwmgr *hwmgr) { int result = vega12_thermal_disable_alert(hwmgr); @@ -244,14 +243,9 @@ int vega12_thermal_stop_thermal_controller(struct pp_hwmgr *hwmgr) } /** -* Set up the fan table to control the fan using the SMC. -* @param hwmgr the address of the powerplay hardware manager. -* @param pInput the pointer to input data -* @param pOutput the pointer to output data -* @param pStorage the pointer to temporary storage -* @param Result the last failure code -* @return result from set temperature range routine -*/ + * vega12_thermal_setup_fan_table - Set up the fan table to control the fan using the SMC. + * @hwmgr: the address of the powerplay hardware manager. + */ static int vega12_thermal_setup_fan_table(struct pp_hwmgr *hwmgr) { int ret; @@ -267,14 +261,10 @@ static int vega12_thermal_setup_fan_table(struct pp_hwmgr *hwmgr) } /** -* Start the fan control on the SMC. -* @param hwmgr the address of the powerplay hardware manager. -* @param pInput the pointer to input data -* @param pOutput the pointer to output data -* @param pStorage the pointer to temporary storage -* @param Result the last failure code -* @return result from set temperature range routine -*/ + * vega12_thermal_start_smc_fan_control - Start the fan control on the SMC. + * @hwmgr: the address of the powerplay hardware manager. + * Return: result from set temperature range routine + */ static int vega12_thermal_start_smc_fan_control(struct pp_hwmgr *hwmgr) { /* If the fantable setup has failed we could have disabled From patchwork Thu Nov 26 13:42:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 333008 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp156218ejs; Thu, 26 Nov 2020 05:43:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJz7vHchuyeWovqiHtBce+/vNu8VXCZd0/SEWUv7AerxFeuw/WmQDkMEb9A08P4TmCgPsIR1 X-Received: by 2002:a17:90b:88b:: with SMTP id bj11mr3786425pjb.229.1606398237488; Thu, 26 Nov 2020 05:43:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398237; cv=none; d=google.com; s=arc-20160816; b=GPH3uqA5TkYvuhEjzoxT/k0CtVn4pjzv4kSeuAJTdzc8NzxPS/aTMDrPvXWaMkCVor T0PMNTl4d75TWqIk9COM5qwUR0c3uV1veKcAc8Rxj9/IFl9Ib/l8XoXWKEjTdIermLgK gCkazj01wwR02TIN+whCSBPYEa5dmpqjz1hvifBDhzs+zGGi/2jL343sAt+KAJH/Fmnf X674yDAuwC5I6t20pmzsakYbGC8MolnIntKyj72ttJmVyTPBZ/TqYETHyi4H20+p7KIb r2QbmEPjH+Pmq2R2TAVNspeFICA8cKvJTAlocIVfpw4SIbJ8D3AHpcUdUsq/GiJjFh7H tdNQ== 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=+Pm900iIykQ5Og2NtsEdXo1Z9W3YHA8c+hfk9FoCrQQ=; b=kbM6hu+EXeZqnAoz/xXLzJAI9AYn/JRpGI4v28JEXktHz7/kZdiPpesJusjIn2BwdN rG3oj7GQp4NAJqIps1LFxigJukvoZYlafiY70LTbzApm+Azn8v808zs95GkCC1cikwL5 DP1QctgkRYLl4KqNXtr6D4gu9Q4uCWKrrOTXBlc8fJBAdZBUlppGLPn9gdpf/bFkIPx7 nzIB2/R7Q6JH95c8eJjIAXQ5faFaegShOqwjI8kdDRRzGqmaGiaWLwuUfRwz3p6mHV8a m57EUfgC+jkBU3d17X4EDarNWzn6U1g0iZWjKn1vu/ouG1XWnN6md9yra8nKCTIBoh+4 WJFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=KS9rezDP; 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 z22si5581664pfk.277.2020.11.26.05.43.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:57 -0800 (PST) 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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=KS9rezDP; 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 8DBE96E984; Thu, 26 Nov 2020 13:43:35 +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 2A4C36E96C for ; Thu, 26 Nov 2020 13:43:33 +0000 (UTC) Received: by mail-wm1-x344.google.com with SMTP id c198so2212134wmd.0 for ; Thu, 26 Nov 2020 05:43:33 -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=aby0rkFSc8Z8n2GfbnJMGwcXmsbKBW3Qw486TCADV5Q=; b=KS9rezDPHF4lJPHeXTEzQv//j6gJAj01Y9abTsVhXJGUNfMvvq61u2fvx8NkTyvSvz 5PNXYeVNUVn/eLVZLLaGtU2hWozWLb2zxKeozOenCwJcRMfeqPsx6RsCqIStffOPrn8w UjJ/fbBDLbG5uyFaoyIx/uuero3LTMuoZbifOmkIcYB78DPAogQWaLFs9/+UyaXlpJFk Ywd72NT2ORdTOevBH1ID3BhUV2FDC6zfpZM4fqGkwaGyZUqGZ+62+vzUOqS6IcxppsWG JNFRR34u0WMmm40gsVuNbO6hOjagpyiV0yCSi1OPu4gmH9jbFk2JMSuv2mBCD9zK0Cc5 qaeA== 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=aby0rkFSc8Z8n2GfbnJMGwcXmsbKBW3Qw486TCADV5Q=; b=PeoMyaXOeo45WE71WtIM+jg+iRLzjkEI0veSzpa4spo87mNTVlAo8vSuAwfUng/r0E p7ySV5iKkfirYsLkOp+o2scUsn3g+gbetelwuX0cN+RtDZgOjowJldFFjE7ue9vZaAid g7rSxYUPp6ux8PCO0QLchtfErsSW4gEsLNww4UXKGVxYeHV/JyUtnM7HiKdX8nsqBp3D kHFhF2LrC836wDslNKe8lRoJK3TmMELG97jK8klY/VVUUXlKsCSY+eme4jkROyZh5WJD rFQtENQ4OTb9lDko482YDwL3oVZg3zXvx2CUBMReCR+IwjF59Ukq4Phus8Y2z4z9cVEw z5cg== X-Gm-Message-State: AOAM533gE/U40QmIIyfa1kBqZwL+1RAXIi+V2HoZIQzayK3v55ewB0IZ dtJ7A17xaEt10qSbAiUlOw2zfw== X-Received: by 2002:a1c:9949:: with SMTP id b70mr3411531wme.85.1606398211846; Thu, 26 Nov 2020 05:43:31 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:31 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 31/40] drm/amd/pm/powerplay/kv_dpm: Remove unused variable 'ret' Date: Thu, 26 Nov 2020 13:42:31 +0000 Message-Id: <20201126134240.3214176-32-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): drivers/gpu/drm/amd/amdgpu/../pm/powerplay/kv_dpm.c: In function ‘kv_dpm_powergate_uvd’: drivers/gpu/drm/amd/amdgpu/../pm/powerplay/kv_dpm.c:1678:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] drivers/gpu/drm/amd/amdgpu/../pm/powerplay/kv_dpm.c: In function ‘kv_dpm_powergate_vce’: drivers/gpu/drm/amd/amdgpu/../pm/powerplay/kv_dpm.c:1706:6: warning: variable ‘ret’ 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/kv_dpm.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/kv_dpm.c b/drivers/gpu/drm/amd/pm/powerplay/kv_dpm.c index 4b3faaccecb94..66daabebee358 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/kv_dpm.c +++ b/drivers/gpu/drm/amd/pm/powerplay/kv_dpm.c @@ -1675,14 +1675,13 @@ static void kv_dpm_powergate_uvd(void *handle, bool gate) { struct amdgpu_device *adev = (struct amdgpu_device *)handle; struct kv_power_info *pi = kv_get_pi(adev); - int ret; pi->uvd_power_gated = gate; if (gate) { /* stop the UVD block */ - ret = amdgpu_device_ip_set_powergating_state(adev, AMD_IP_BLOCK_TYPE_UVD, - AMD_PG_STATE_GATE); + amdgpu_device_ip_set_powergating_state(adev, AMD_IP_BLOCK_TYPE_UVD, + AMD_PG_STATE_GATE); kv_update_uvd_dpm(adev, gate); if (pi->caps_uvd_pg) /* power off the UVD block */ @@ -1694,8 +1693,8 @@ static void kv_dpm_powergate_uvd(void *handle, bool gate) /* re-init the UVD block */ kv_update_uvd_dpm(adev, gate); - ret = amdgpu_device_ip_set_powergating_state(adev, AMD_IP_BLOCK_TYPE_UVD, - AMD_PG_STATE_UNGATE); + amdgpu_device_ip_set_powergating_state(adev, AMD_IP_BLOCK_TYPE_UVD, + AMD_PG_STATE_UNGATE); } } @@ -1703,14 +1702,13 @@ static void kv_dpm_powergate_vce(void *handle, bool gate) { struct amdgpu_device *adev = (struct amdgpu_device *)handle; struct kv_power_info *pi = kv_get_pi(adev); - int ret; pi->vce_power_gated = gate; if (gate) { /* stop the VCE block */ - ret = amdgpu_device_ip_set_powergating_state(adev, AMD_IP_BLOCK_TYPE_VCE, - AMD_PG_STATE_GATE); + amdgpu_device_ip_set_powergating_state(adev, AMD_IP_BLOCK_TYPE_VCE, + AMD_PG_STATE_GATE); kv_enable_vce_dpm(adev, false); if (pi->caps_vce_pg) /* power off the VCE block */ amdgpu_kv_notify_message_to_smu(adev, PPSMC_MSG_VCEPowerOFF); @@ -1719,8 +1717,8 @@ static void kv_dpm_powergate_vce(void *handle, bool gate) amdgpu_kv_notify_message_to_smu(adev, PPSMC_MSG_VCEPowerON); kv_enable_vce_dpm(adev, true); /* re-init the VCE block */ - ret = amdgpu_device_ip_set_powergating_state(adev, AMD_IP_BLOCK_TYPE_VCE, - AMD_PG_STATE_UNGATE); + amdgpu_device_ip_set_powergating_state(adev, AMD_IP_BLOCK_TYPE_VCE, + AMD_PG_STATE_UNGATE); } } From patchwork Thu Nov 26 13:42:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 333007 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp156196ejs; Thu, 26 Nov 2020 05:43:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJxiSS31h4//OweueNQqyUUZ2LxTv85M2vEDipSU1iXBS6NDEUy8AHL/+6H/yh/2t3vA9142 X-Received: by 2002:a17:90a:f406:: with SMTP id ch6mr3879485pjb.88.1606398236167; Thu, 26 Nov 2020 05:43:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398236; cv=none; d=google.com; s=arc-20160816; b=jsgjDLFQr+3QOgVcip04AcEyyRmaDPRPPll+jRCszgHlPOqT87c2x6uFX3SvT4hZu2 PS7oUAKbn7ZRjOOUZw0oRpcxubvGZsgwk8k/B5Y8zTUKGaYghm4/ksSrdAXAOAHVikf6 gAxEH2M46eI+kmrua/5ttrmgpwW6AQ1ME/Z9aStQJuR9eZVkOWw4RX9MzUO9iHN0b+EM JXOoM+6Ch2LJQF6elWtNJSC1ya4I041hchCp1Z9e1Slqza7pBuWYFmOmasBJwNe1ZjrR ulSE+p/gzD6UQ/761VA0aqJncrSd+eihhPe2q54AT+40BEQH2b4oKckji95KVKTcT34l GHCA== 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=HGpO5+uCIE+wdGM2LKZcJx2HAtp1ukj8kLcUF6nyu6k=; b=IiXTny+sff8jH3guaKYqwlxshrDhrPa6OFHQUXHRS3DX3MaB0KewtgyORkpbUCNs8Y 44KAo7KjsDNf+XxLlz5ehSQjFCeYppIAzLDm2d4YSbzaMA9X9e4f2W8bVq1so7zs+Hm0 +Gmd220z4shP8N/epOz3m4ht/rGBUzlOqD1Bzlq0rB+IJzUMDBaUF5P+4uSMfrI5VbYL jXOuMQAEHLE+esbfcB92CaUVb0hwgz0LWcZF6hiWmzb5Qdpwg07AMYgW6r+urYMJ5ez0 ACFXLzdK6L0nrmtn0PDINKVTT/5xqyZSDGKAqWayWybIRZiQDncSsQW2w70VsUBC/72X k5kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="pisVm/rn"; 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 b7si5147968pgt.379.2020.11.26.05.43.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:56 -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="pisVm/rn"; 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 C41086E987; Thu, 26 Nov 2020 13:43:35 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6BA3D6E97C for ; Thu, 26 Nov 2020 13:43:34 +0000 (UTC) Received: by mail-wm1-x341.google.com with SMTP id 1so2457564wme.3 for ; Thu, 26 Nov 2020 05:43:34 -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=VuZf51/6rbT4Y+F0DKDI1W5yRp5gMKolAl3JbWxMH/Y=; b=pisVm/rn1U4ASlnA+K2ad3MOviG7WcK7m0ytip6AZ5V+ZahEqcC/N+qhBRNXTuHkZp ko49wyV7Vf6eJlfyXLiC5aAbzmVW6rAzSbPTgRiKdjsoT5IpZ8dygbiNxsHF1XuXWfwf 9vv1Y26Cbn+buNvO7Cv8ebSz4oVmgNILfAinKRefB7PT2t++oPiclWQGOt4nWn3LzjJs m9X+RiPK7ANui7vbnIYJ/9uVxveDWjnHNu419aZNGdpS1UAMejAu3C5samgmGP7nShMQ djH4l5wasV5qzjKRhoEUsnPEtwerC2XlPgh2hDNjOo/RSmGu1jNsvKfVfwNBk0qeXyL4 kgkw== 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=VuZf51/6rbT4Y+F0DKDI1W5yRp5gMKolAl3JbWxMH/Y=; b=WC2P5JlfyG+hbFS74FTVylCrP5g4vdovUBJjBKByM1SKVYBYlRXSL7J1vBxekEM4dW N988cT7GmTTAyrfKhisQke3KNHz9q7WBuDUaJRrPd1fNAojPD7b5lrWKCtiJ2AM6EE7k AGqbcxdAlmT2dDJSL/vWjUG4/MTJdI+owE8yEG8sQqLbteejxtwuLLKSr6vmj3C6rvyV cJNJWvi4neVAQCPDaFrv4riRFnCEKu8HxgtOv7/i70ORXptUYY6aRLsK3H4a0Y2X2bet C9h2DFmOLzy4v0eisKvBuUXMDOm/QjJpokSj9sQSlMpQngMOtwEgpj+rBYdHILGBtTWI W3EQ== X-Gm-Message-State: AOAM5337OUWiguSZBTeT0tm/eRyy0Z/FjwmLjRAYj4GVPKawedMg4Ygk lxvbRagTR/S+r6L9Yk04usAuBA== X-Received: by 2002:a05:600c:286:: with SMTP id 6mr3443933wmk.125.1606398213104; Thu, 26 Nov 2020 05:43:33 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:32 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 32/40] drm/amd/display/amdgpu_dm/amdgpu_dm: Mark 'link_bandwidth_kbps' as __maybe_unused Date: Thu, 26 Nov 2020 13:42:32 +0000 Message-Id: <20201126134240.3214176-33-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: Leo Li , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, David Airlie , dri-devel@lists.freedesktop.org, Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 'link_bandwidth_kbps' is always obtained, but only used if CONFIG_DRM_AMD_DC_DCN is defined. Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function ‘create_stream_for_sink’: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:5080:11: warning: variable ‘link_bandwidth_kbps’ set but not used [-Wunused-but-set-variable] Cc: Harry Wentland Cc: Leo Li 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/display/amdgpu_dm/amdgpu_dm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 08539f4315864..ac7643d73bc68 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -5077,7 +5077,7 @@ create_stream_for_sink(struct amdgpu_dm_connector *aconnector, #if defined(CONFIG_DRM_AMD_DC_DCN) struct dsc_dec_dpcd_caps dsc_caps; #endif - uint32_t link_bandwidth_kbps; + uint32_t __maybe_unused link_bandwidth_kbps; struct dc_sink *sink = NULL; if (aconnector == NULL) { From patchwork Thu Nov 26 13:42:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 333010 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp156252ejs; Thu, 26 Nov 2020 05:44:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJy1Wtn3C0bT8m19j8aGSsqLjv8+FkV/pU58cP814TyuB0X7VB77Zl+1NUNQxffZNKzZCIxS X-Received: by 2002:a17:90a:1746:: with SMTP id 6mr3898931pjm.104.1606398239994; Thu, 26 Nov 2020 05:43:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398239; cv=none; d=google.com; s=arc-20160816; b=nCNdghxIo3PbQZlQzoRBPzzr/ELRtynDTns85SzPLGBtjt6cuHiTxiCKuxH8ouKxtx FfB7KW4Jtqt4XmO8gsfbho+j4zaw9MIMIacV+QVYUQwNuMpmEJg0rctTe4sY6o6yTOTI EK+1oavD8/hpsCvAQiqAKXioMceJj2AJ+NNy8is7VJN7KrJrN4T/t31yvLwgst9YjhfM S8BEig4ctNV0H+O1K1UA1X/twQLuz3feYsDLF0eywHe/whs2XLe6HceEcYiHYJFIwESJ t7L7wOEi7dCkNXvtCqLj9xDMW35zDDhQmNHT5LVeDHSdwlVqL6kOrZ8ruZ5edYLQj+6R JPOw== 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=KOPaawYmTztNxP1S7rJdpTfpoX0kdM9lQMrUr1sqpXA=; b=VXOJaDy+eMXmWR2JaWKUWowmQDDkLfC9Cl7lnEBa70gkwstDQjU13ktKn8azX55YFL lz00Ulxxr/jjMQPy0mIhnNQe+PMzfZW2dDQJOsb2tdsdZNlnRDpr2z3VaKeHLhvJ2hyi FiRRjN6/5smkDKzktAiN8S9iWeP53OHcBi4rv9Af6lEzC7IjpHyWP6WYnkBc2xa0NSeP 7p0Jy7rlfc6x3BN2eD1VrYL7FV9UcW/vcxyXHS9CN1fljTjrMtAcNv8/WqpJYjWN3CMz wxKTp3mco+s3rHKODqJ3Sb6jQLgqKXgAk2bUCUjTxB3S+4xb02yq+VrBMg8RqVsQaBU6 H4aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=WruioXcr; 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 z125si5393588pgb.171.2020.11.26.05.43.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:59 -0800 (PST) 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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=WruioXcr; 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 E15A76E951; Thu, 26 Nov 2020 13:43:37 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by gabe.freedesktop.org (Postfix) with ESMTPS id B379F6E957 for ; Thu, 26 Nov 2020 13:43:35 +0000 (UTC) Received: by mail-wr1-x442.google.com with SMTP id m6so2186182wrg.7 for ; Thu, 26 Nov 2020 05:43:35 -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=MzRVFp8AO2A9mZrX3brzbvLyGgDmiC5m751T9imyCRc=; b=WruioXcrjaQXU228DJaADLs63/PeaAfgh5GoVhtS5sxDT1aaFya2f4AYcNpDv9u7bu GE1IyxUSraaGMfjae2iGxbtoeGDlaW+aiGQz0vg8TbLIY3ULpfiO0MK4dgdeEqpWqVx1 yjcfF20TWnnH0cv4oDwvCg85uHtK2SGSmK1YF38tJjmq8Q3LkjcNMsQhTX/53aLKtFf5 m/kX+iYDcOMeyHPxWub6ueiDU0b4zprEOJhekf0gK6T4eHQe+/Vq2GekDvnMHh8QrFzI xCL2JKIJXk2Yr/1uD0ZBcmLFk/2Tp0pKgKnkhHZPm825anEGjFCEYELdOff1mSgXjeKf GGZA== 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=MzRVFp8AO2A9mZrX3brzbvLyGgDmiC5m751T9imyCRc=; b=XZ5k+0YyCLuU+Wb1RFCJZRB9p7rd8IFBwJmfjt5/bRFT+cPhTCQT9Bv7Nv8E9NDFTf DfQhabiAufFLZii/FjrLN2u0bePI9OvxBRmj9nez0eF04nNzt1Lq8cwd+XvFoCd2H4pd yyyRsTR4reej9Z/mz8btJeCqY8q0yvVpLNrGzjLsjDeI3HE0U+IT/Ath3Y0lnWnuZP5G MaVS556VFH0VHmKQliGzmg586LBYddR+4zcRM9uvw6PT8zhwNikJO+Z54MiFfmty5m4a tqcwGDHIa+Yc0mOb3wROW6pPUXUTVNj+Aq4QREht/k94O9kL0LNveJTJt7x6vQ90aIYN v1mA== X-Gm-Message-State: AOAM530M5aA0S+6gx1cT5Gxhtb7gPYjnT5OXQcin23vS1SIw9dA/zRdg 9iVe9D2OqY1+J+JULPn3B09yDA== X-Received: by 2002:adf:f651:: with SMTP id x17mr3881849wrp.185.1606398214358; Thu, 26 Nov 2020 05:43:34 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:33 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 33/40] drm/amd/display/dc/inc/hw/dpp: Mark 'dpp_input_csc_matrix' as __maybe_unused Date: Thu, 26 Nov 2020 13:42:33 +0000 Message-Id: <20201126134240.3214176-34-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: Leo Li , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, David Airlie , dri-devel@lists.freedesktop.org, Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 'dpp_input_csc_matrix' is used by some, but not all source files which include dpp.h. Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/dpp.h:50:42: warning: ‘dpp_input_csc_matrix’ defined but not used [-Wunused-const-variable=] NB: Snipped lots of these for brevity Cc: Harry Wentland Cc: Leo Li 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/display/dc/inc/hw/dpp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h b/drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h index 6751186f6f904..ddbe4bb52724a 100644 --- a/drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h +++ b/drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h @@ -47,7 +47,7 @@ struct dpp_input_csc_matrix { uint16_t regval[12]; }; -static const struct dpp_input_csc_matrix dpp_input_csc_matrix[] = { +static const struct dpp_input_csc_matrix __maybe_unused dpp_input_csc_matrix[] = { {COLOR_SPACE_SRGB, {0x2000, 0, 0, 0, 0, 0x2000, 0, 0, 0, 0, 0x2000, 0} }, {COLOR_SPACE_SRGB_LIMITED, From patchwork Thu Nov 26 13:42:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 333011 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp156280ejs; Thu, 26 Nov 2020 05:44:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJy6eZYglZbHR4IYwouvyWnAEfXI13BbkCcrb/yzXjYrBXOndUWUbe7QZfj5pGIc0RKcV3vl X-Received: by 2002:a65:5b0d:: with SMTP id y13mr2614878pgq.213.1606398241576; Thu, 26 Nov 2020 05:44:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398241; cv=none; d=google.com; s=arc-20160816; b=lFU0JZ0wHHg2kg6/u29h7HL6V9mN+RviYOttBXgJrQGbyCd3fCsr4fg9KbSuo6CsLR /JQtVCNc+GfP841DZ0kVaDsQ2MHdesxQ+tD/HenR0h7iPe1t93TgsoV06BSbrzGsRkT2 0TDT9yNlsylWBSSZwCo+j+8A5l4Puy5WiTxG6OcbhNvVexP/6S7Z5ozIpaE6LSZ5/m3z NQvNmKPO9glYoHlRhFVfRqfhbMBaSwcL8DDFSzpb3W0cagyUcFMHXHMzJx/c2ZklAL67 YRqOmvqVnF28MdOwAElys06TELzLxNGN9gd6L2JOm7pgH5/nwnNcFJf/oiEPXC3otrd5 wRqQ== 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=AMEsDClDivUEt2fu2XtU5HU4RphUNK7tK7ccmQeCgq4=; b=XFGmoDOUigLChGeicT1x3AXtyXEdC+TY5FBPnjrCAT4r46AypZSIQKqyvNze5NW+3Y Iv4Re6OxBDJKHrmE9xz6J2sbQbodA6aEcaJpiO4VqaPxzt3meq1LiM/nZViDLajxEOX9 l+bD2OZljNCtt1hhnAI1nAHBnWrJbsCp5Z9AhPA0PniTUNyOBcLzs95Dl2rcFsjZjjms DXITFtEWnDx0iPQaa+SXKpFvniXRxTlz4TVCzVy7GxEw0UwWeSJDQdEKFjGQsCkHmxkM wcAxwipOmUgGApwZy5p4fYtcRiNJCcIBTzpX+sF4CA+Y06BQOiGQzVf6ltpd9NBUGiCe VG8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ueetS8dx; 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 t11si5201337pfl.301.2020.11.26.05.44.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:44:01 -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=ueetS8dx; 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 3EA076E996; Thu, 26 Nov 2020 13:43:39 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by gabe.freedesktop.org (Postfix) with ESMTPS id E19006E957 for ; Thu, 26 Nov 2020 13:43:36 +0000 (UTC) Received: by mail-wm1-x343.google.com with SMTP id x22so2182204wmc.5 for ; Thu, 26 Nov 2020 05:43:36 -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=BHyKENW6Yz4oTye/FJPzNNjmGfv58ayjrIYPkA+7OU0=; b=ueetS8dxpG4eO8faloDa33OmDRYWKDXfGJ/MOesO0sVWIxlbnNg1acnUmuk2/IwmSf ynWcfu3xKgFrRhph301W/t3OPcXaCv0WmUd0j5/ucJuRUAOZbxw9vKgw9JQWG+J73gYN dzlwXWkZpqM7LOU60AzvhK5fYOoKjn8aBJ0By8qseo1RiV+Pn+RcSG8nAHQBVYeJAlE0 R6/K5j0Q03t+8e/0vdaMYHRUH2q4nfbUwpSJU9mS9SfRbIikwWIlUa3yc5tvBbjUPxqz V0323xh/2ZuoVA0U8/JRnXY/0a0M097+5zsUWW5yfK/gEEyacVeFwDldJ8Hay3MhqIUT ytSQ== 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=BHyKENW6Yz4oTye/FJPzNNjmGfv58ayjrIYPkA+7OU0=; b=ZJyOIzjFB7R8kj54JTfQPnuO16MWTXKYkUR4zNvldihLnEK5L7U/UX3NGKMNxHmB7O bmhqbmSL9oPML5vAt6ID0WyMhCV+I6wPC/IHgAjR+2o5Kyv7jfukQlFWssADhkje2aCl /WomNIVBINF5Gw3Mhd+G9hUBTPWkwvVUO5+Hj5MI3ycVESQSedv1I2pBtbcwYF1Mxpe4 qj8wnvc1iovIewqytfpMvBE1Y082tSOBLSa0RLeXK3168yI9YxNSAIEgfMfJGTmCZSpY SACMOS51gGZf70JG8TksuPrW0m6VAslooCVjzBH2AXr13MRLuMzmNnZX32w/rwUNFBOi QXjQ== X-Gm-Message-State: AOAM532dBvml5F2MFEvSx9Q74tEy1SDM+2MRbeCknObrGeb8cEME4FiP ozr65KkDysF/rRofA8TAIC8DMA== X-Received: by 2002:a1c:4c02:: with SMTP id z2mr3499582wmf.139.1606398215596; Thu, 26 Nov 2020 05:43:35 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:34 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 34/40] drm/amd/display/amdgpu_dm/amdgpu_dm_helpers: Use 'gnu_printf' format notation Date: Thu, 26 Nov 2020 13:42:34 +0000 Message-Id: <20201126134240.3214176-35-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: Leo Li , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, David Airlie , dri-devel@lists.freedesktop.org, Alex Deucher , =?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): drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_helpers.c: In function ‘dm_dtn_log_append_v’: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_helpers.c:345:2: warning: function ‘dm_dtn_log_append_v’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_helpers.c:375:3: warning: function ‘dm_dtn_log_append_v’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] Cc: Harry Wentland Cc: Leo Li 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/display/amdgpu_dm/amdgpu_dm_helpers.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c index b7d7ec3ba00d7..24a81642baa26 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c @@ -318,6 +318,7 @@ void dm_dtn_log_begin(struct dc_context *ctx, dm_dtn_log_append_v(ctx, log_ctx, "%s", msg); } +__printf(3, 4) void dm_dtn_log_append_v(struct dc_context *ctx, struct dc_log_buffer_ctx *log_ctx, const char *msg, ...) From patchwork Thu Nov 26 13:42:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 333014 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp156339ejs; Thu, 26 Nov 2020 05:44:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJx4VYJ1P/T/PhlyPCGO/D0ITQk6YueGomFlSLMRTR7Sav0dniym3q9MyiuzOfluUxnwVVWJ X-Received: by 2002:a63:5466:: with SMTP id e38mr2655661pgm.242.1606398245629; Thu, 26 Nov 2020 05:44:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398245; cv=none; d=google.com; s=arc-20160816; b=FbDcTs3+ZChghlQuBWwwzpPQlzpraOxCbfOZiV6PQiWRUitSINwT1gWR5UZfd0O61u +SBuqnl4YOyn8N5f9tnLUthmPHXZhUjKcA/+m2VzNlvJrG4ra3kCOxe+l/QkOF2VwNBy CvdECObU4gTtG/fUU/zZdnehn7rbCqzuOYX44p4ei9ojoJzAhADghoAkY/yZS2tR7EvM t6oaUfc3xNfbI1dMQhbXxgcPF1iSGTjDAkr6E2XD75zziYMeeFhZ5vxzsnxEnOC1pI5d UpMYRGlVsl5n4On7JfrXPxeq1z0WRDMr/cSkDNH4nlpYuYnSymKKAz9ReGotj5RbNieu FL1w== 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=Yb/O7EUIeRnlkjJXRSea3m8orgXrdEulF0F3JpBwaI0=; b=k+GfUt7XvwQa1MzRMeAEyKAMLNPLJyn0SE0w7p3vIisaxL3eKGp2sYx7Bdh56jgMfh GPJkAiX35Abl4zmYeHo4MhGCQRiBc4kCUQHYRtkPSbGZPtJCfcdg6RXfAk1q3sgcoZUa o98V4bsz5NPyfPSJfKmh9tBG9bJBfH10aKyAPzy+ksL+qZt79Y8fib8y1wEQA6SR2Dws gWU+iGtLCUglvfEoiYm+sdGc8BjxJFsbjl8ayra4JXzz2zKwx1E1Fxcbtybcjc+cw2bQ 0J2mLg69TNXUJVe9WRbzfb4UpDnWMy44JxGbdzdsiNkqULno3v6asFugHoxmg1Gj3xpk Jj+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=FzDylEEI; 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 u12si5416156plq.62.2020.11.26.05.44.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:44:05 -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=FzDylEEI; 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 5E8646E98B; Thu, 26 Nov 2020 13:43:40 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7F4036E957 for ; Thu, 26 Nov 2020 13:43:38 +0000 (UTC) Received: by mail-wr1-x444.google.com with SMTP id u12so2220918wrt.0 for ; Thu, 26 Nov 2020 05:43:38 -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=Y2L4ju+uZ20D0/2E1suojqs76azBxprDmuerWKuUkXg=; b=FzDylEEID+ChIWfzEFmWZz2uTH3H493rVHv8wAvc/cf9fkvCuUjCYRsUuc0NZXnjf1 RKC6y9MRt2HtbaXRd/+MWYzK3N9y1OvjOlg09FC4aGlO7LmuK5ZixylQLIKi9ABmiFAo hxbj4w7/JM80JHphzbW5XttO40XyJrkWmTUouAZskGFh9ZE8MPiRS2TN49jrHkQZx6hZ Aj25a2l0d3gBcvRIXwPGQzYr1D559lBW3CGtJNZHzHYeW9lMFGYoPiaggT+FfcVDLXNu mZnqjJF1Rj3ZrfBjjJAt8qSov1+FvRd4MW2OiLuZ0SRwmY5hra7HcnjZIiR9Ez4Gc2pf QU2w== 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=Y2L4ju+uZ20D0/2E1suojqs76azBxprDmuerWKuUkXg=; b=K/lkNwOP/6Fi344CXYWrjuVa520L+vklIoeIvyvKCBhMhsHdP96u4QVR3fPEJ+6G7s UaLYXM6bbYZsRCzqf8zpCEKztKB5r8ni7f4zAHuvsgsf6nnvL45yHkJ7SLuRUFyqDqNW k8AY7BMyq7uj+F4PmE0wDuHu5uvf10qBVR05Eqw5PyzS9c2OPAZrFuot0VIm9Rt3WA9j INI2HsvM16gObUSUESmqvOfOXP1RCyfS6o1PxUH05d20ZxoJjkq/OvobXi+L1lBFaDOs FiCpSZrh16i4tHdTkUbQ9RVGtln3YaqyrGgj8wQ0is8AIwYbJQM35M+mOwwvVPwefTLP Letw== X-Gm-Message-State: AOAM5339ExHmxBIPkUwOsSlHHSF4S6J4U6xDuVgZcwv+dCBMGEmwqfN0 wQve00A0unoZp2+9DRnohyLMcQ== X-Received: by 2002:adf:e9c9:: with SMTP id l9mr4041256wrn.124.1606398217128; Thu, 26 Nov 2020 05:43:37 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:36 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 35/40] drm/amd/display/amdgpu_dm/amdgpu_dm_color: Demote a misuse and fix another kernel-doc header Date: Thu, 26 Nov 2020 13:42:35 +0000 Message-Id: <20201126134240.3214176-36-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: Leo Li , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, David Airlie , dri-devel@lists.freedesktop.org, Alex Deucher , =?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): drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_color.c:128: warning: Function parameter or member 'lut' not described in '__drm_lut_to_dc_gamma' drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_color.c:128: warning: Function parameter or member 'gamma' not described in '__drm_lut_to_dc_gamma' drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_color.c:128: warning: Function parameter or member 'is_legacy' not described in '__drm_lut_to_dc_gamma' drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_color.c:426: warning: Function parameter or member 'dc_plane_state' not described in 'amdgpu_dm_update_plane_color_mgmt' Cc: Harry Wentland Cc: Leo Li 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/display/amdgpu_dm/amdgpu_dm_color.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c index 5df05f0d18bc9..157fe4efbb599 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c @@ -119,7 +119,7 @@ static bool __is_lut_linear(const struct drm_color_lut *lut, uint32_t size) return true; } -/** +/* * Convert the drm_color_lut to dc_gamma. The conversion depends on the size * of the lut - whether or not it's legacy. */ @@ -413,7 +413,7 @@ int amdgpu_dm_update_crtc_color_mgmt(struct dm_crtc_state *crtc) /** * amdgpu_dm_update_plane_color_mgmt: Maps DRM color management to DC plane. * @crtc: amdgpu_dm crtc state - * @ dc_plane_state: target DC surface + * @dc_plane_state: target DC surface * * Update the underlying dc_stream_state's input transfer function (ITF) in * preparation for hardware commit. The transfer function used depends on From patchwork Thu Nov 26 13:42:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 333013 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp156299ejs; Thu, 26 Nov 2020 05:44:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJwWPTuO+jEkue15RMVkfPXXsCW87j/xRuO8UKr5ecYX4tz0M5bwvPYPPnncMiUHPtKsfIzH X-Received: by 2002:a17:90a:aa0f:: with SMTP id k15mr3832418pjq.171.1606398242742; Thu, 26 Nov 2020 05:44:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398242; cv=none; d=google.com; s=arc-20160816; b=l5FSZKD3MRvsCGERkHv9nUbTHaIVPuw5QGSKLn9ubRrz/3rJyvhx6SA65mij18SAO6 1rY3M7ufO4n3yr6pidpEEuyQ/ocsHu1qmSdCxXblTURptvy/tdgKKeMTdUucd7c6rcZk 3aTB4qm02Ite1D7R9ztQoG9QLauIHV1VyZX22S6Bf1DCNXHzMio7IBY/TPtnKxq0Y7Jc qy4ddgG0R8YwjItBESsqywJi390clG63yBo1HatAVaQMyOM8klA6p8r8FkDI0Wif+Gyt Za1NMW+TqteydUrFa4Bkzxwc6kH5wHk6m40Ur8th+hjthiGJC3GeV7EnZ6JxobFSoW1R zAow== 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=fUuQtHuwX+GpDbEx/RPjHEja1zOrKuDH5KpkSfvPl38=; b=yWWQXQOmeTiA8GsX+8/JEqTcW9H6vcz0gZMBWvThczrFl/h9BBacuCE0BRk6rOX66x hoXgPAiP+5pMpaN5QLOqnafQUnIRKtmdnXv0Sb9XAMIXjHseT2UOo/vdoAwKtmthac2m sLkh+grYZNxGdauBvZoblWSbsvo4eVoml3oPPjiXd5jPBXnib9YrG46EvJHQooZYS2Lp DF6+ic3JgTrpuqRZg4t7CoSmZvoJTxT9NPFmmusnVJ1BYt4Y/AaMBmJvqw+IgSNzNgnr 9JZav27LqkH9ZN5soBQAiK2RNIKdxVpnuFx88lyBmRWjefhmmX1YLpczTnDW0O0oNXNs Osyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=SPTU9J2o; 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 j18si5361116pjz.16.2020.11.26.05.44.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:44:02 -0800 (PST) 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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=SPTU9J2o; 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 ADD466E957; Thu, 26 Nov 2020 13:43:40 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by gabe.freedesktop.org (Postfix) with ESMTPS id A045F6E9A5 for ; Thu, 26 Nov 2020 13:43:39 +0000 (UTC) Received: by mail-wm1-x343.google.com with SMTP id c198so2212455wmd.0 for ; Thu, 26 Nov 2020 05:43:39 -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=OAy1jRBTuNLPEHs/IXnokv+zNFaXcfFnOzJRsPBonE0=; b=SPTU9J2onyq2/XfSieB6u7AH3glpdPGvhmzSX3HJXoTSMfOTHMvK+Hckq7OHwcT5c8 nMz2ecjWqsf3eR95wiufhXwqvFtVokgNJnANAEtpnikhBUVWb4IApNYv5tRct69yKWht 8vMDT005lM9fiCQVEfDQrkmGK6OTLch+KMRqiXcxJsY8df7z7nFWy/Qxxedis58l58XJ wyu90Jjl/9wajPkoyiq4SH6mMhOOJGNlQfgzcAWkC78bxsfK1Wq6YID35dlschDhkHIY PZkJx0cinT7BfcUdSJWOzilPUw10Vm+1qJ1wDXind70xKEGJ4n2vDKjvUABmT5VQ+ujl iq9Q== 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=OAy1jRBTuNLPEHs/IXnokv+zNFaXcfFnOzJRsPBonE0=; b=V/lMEMUGBk1t6u/MUAUgtJTPDQUON0Jz54EBOYADidZ5Ku3gFBF5jEsmIwtlb/jLaC ie4vxS2RK0iMhDE+GBsI/hrHZzJ4AlX3MHLGhtNtY0Klnaden5uP6fI7okNdJLjqn+6l G9ObVMFjVD9fgoVKiEyAZxvwnv0bPgi4CzgI0AfBjpGpUeTN/wZKGlTCvXGBKeMRGqa7 t5ZHd1tfzh3inM31PxcEBcxTikWXk2zunNtiGWEtUTW6o84Gz8e9+p9Zx76nO3Ut/wux fL6m6zswI1dgToCQ+sPUKxa6AQGrQ0RKuu2NFmsfv23PXx0AmOheo3oTg2xyAGl/p5ou F5SA== X-Gm-Message-State: AOAM53300nUnb3RGdc5ojfXvZsYKSA0Fe4vT+XmH96xtGqmYILf/rIOz QQXdE8xXdIzPyHK4CbICHJPg9w== X-Received: by 2002:a7b:cc95:: with SMTP id p21mr3487702wma.92.1606398218319; Thu, 26 Nov 2020 05:43:38 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:37 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 36/40] drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu: Mark local functions invoked by reference as static Date: Thu, 26 Nov 2020 13:42:36 +0000 Message-Id: <20201126134240.3214176-37-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: Leo Li , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, David Airlie , dri-devel@lists.freedesktop.org, Alex Deucher , =?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): drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_pp_smu.c:538:6: warning: no previous prototype for ‘pp_rv_set_wm_ranges’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_pp_smu.c:590:6: warning: no previous prototype for ‘pp_rv_set_pme_wa_enable’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_pp_smu.c:601:6: warning: no previous prototype for ‘pp_rv_set_active_display_count’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_pp_smu.c:614:6: warning: no previous prototype for ‘pp_rv_set_min_deep_sleep_dcfclk’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_pp_smu.c:627:6: warning: no previous prototype for ‘pp_rv_set_hard_min_dcefclk_by_freq’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_pp_smu.c:640:6: warning: no previous prototype for ‘pp_rv_set_hard_min_fclk_by_freq’ [-Wmissing-prototypes] Cc: Harry Wentland Cc: Leo Li 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 --- .../drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c index 84065c12d4b85..ac0a0539854ef 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c @@ -535,7 +535,7 @@ bool dm_pp_get_static_clocks( return true; } -void pp_rv_set_wm_ranges(struct pp_smu *pp, +static void pp_rv_set_wm_ranges(struct pp_smu *pp, struct pp_smu_wm_range_sets *ranges) { const struct dc_context *ctx = pp->dm; @@ -587,7 +587,7 @@ void pp_rv_set_wm_ranges(struct pp_smu *pp, &wm_with_clock_ranges); } -void pp_rv_set_pme_wa_enable(struct pp_smu *pp) +static void pp_rv_set_pme_wa_enable(struct pp_smu *pp) { const struct dc_context *ctx = pp->dm; struct amdgpu_device *adev = ctx->driver_context; @@ -598,7 +598,7 @@ void pp_rv_set_pme_wa_enable(struct pp_smu *pp) pp_funcs->notify_smu_enable_pwe(pp_handle); } -void pp_rv_set_active_display_count(struct pp_smu *pp, int count) +static void pp_rv_set_active_display_count(struct pp_smu *pp, int count) { const struct dc_context *ctx = pp->dm; struct amdgpu_device *adev = ctx->driver_context; @@ -611,7 +611,7 @@ void pp_rv_set_active_display_count(struct pp_smu *pp, int count) pp_funcs->set_active_display_count(pp_handle, count); } -void pp_rv_set_min_deep_sleep_dcfclk(struct pp_smu *pp, int clock) +static void pp_rv_set_min_deep_sleep_dcfclk(struct pp_smu *pp, int clock) { const struct dc_context *ctx = pp->dm; struct amdgpu_device *adev = ctx->driver_context; @@ -624,7 +624,7 @@ void pp_rv_set_min_deep_sleep_dcfclk(struct pp_smu *pp, int clock) pp_funcs->set_min_deep_sleep_dcefclk(pp_handle, clock); } -void pp_rv_set_hard_min_dcefclk_by_freq(struct pp_smu *pp, int clock) +static void pp_rv_set_hard_min_dcefclk_by_freq(struct pp_smu *pp, int clock) { const struct dc_context *ctx = pp->dm; struct amdgpu_device *adev = ctx->driver_context; @@ -637,7 +637,7 @@ void pp_rv_set_hard_min_dcefclk_by_freq(struct pp_smu *pp, int clock) pp_funcs->set_hard_min_dcefclk_by_freq(pp_handle, clock); } -void pp_rv_set_hard_min_fclk_by_freq(struct pp_smu *pp, int mhz) +static void pp_rv_set_hard_min_fclk_by_freq(struct pp_smu *pp, int mhz) { const struct dc_context *ctx = pp->dm; struct amdgpu_device *adev = ctx->driver_context; @@ -661,7 +661,7 @@ static enum pp_smu_status pp_nv_set_wm_ranges(struct pp_smu *pp, return PP_SMU_RESULT_OK; } -enum pp_smu_status pp_nv_set_pme_wa_enable(struct pp_smu *pp) +static enum pp_smu_status pp_nv_set_pme_wa_enable(struct pp_smu *pp) { const struct dc_context *ctx = pp->dm; struct amdgpu_device *adev = ctx->driver_context; From patchwork Thu Nov 26 13:42:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 333012 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp156319ejs; Thu, 26 Nov 2020 05:44:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJwtNpf3sterEJp/pBqc7lXdXy1r+/BqDJtPfO2jq+FZOEuMao9Clpa2pJesr9DjB6EHph/y X-Received: by 2002:a17:90b:3604:: with SMTP id ml4mr3856846pjb.209.1606398244214; Thu, 26 Nov 2020 05:44:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398244; cv=none; d=google.com; s=arc-20160816; b=aMVCyNxS45dffCLjxhdaeFC7NGEVXSKOy5kaJEGQ5BHAec3Bt2bIozWHWAIIM8TGRG pxOcDjqR/I98Yn//JNKofQ43bNva/Z3iFT0RrQ0KOsYeKbfjjaaYNAFED6aPRMwWmBqc gtqcDnTtZwsbfIz3Nb9Nzi5Thd5hKopOwI1NVdyu/PHKJYedW6huhJJJxGDlltFjrMxA 6uwy8FVzlRUqsl3wH8uUr6OjyUra66ajgg0jYwKKXHvSYnlpTJyGMWLY/EfvmWj8I1Xt PhgAXCuGtKnJ49IwGiy7wt11doWskeAar2OsN15E/beXibLM3iahGkG74rsCc9UO1Dya PtlQ== 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=IVYeQHxjus+BMo9oD97C/T7Wasluw84SnK+S7une50E=; b=c7JW1H0rkE/cCiJwvDdby0SxuZBQOn33XhgY4mM8jgcBkgEdvZwKo13t08WmW2T/1y Q+Y4ekqGUd8SAywntsDXEfXPJFPs0bU3o5UwVTzVYrtajkiQIg2guINbMq+puI+iFYB5 bJkANUEDWNThY8OQnizzX52XCU5f19m17aSfUagSdC2iLHJ8WAIkGh6ArEvoFwa8zm0X 8h8Vxb8F4WdoPkq7TRcTfri8HbfDX4ITIE9AnbWOi27Xf9frpZ/U7TyBswSlbLzrlmWx eT38Fqo0Fq8rbJqj5922lxkCw3AGXQ0L++kgyQslaY+98hEZQEiH2JnldCgI1AvJuXAx gNlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Rz+Vn8n1; 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 d6si586426pln.399.2020.11.26.05.44.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:44:04 -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=Rz+Vn8n1; 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 EF58A6E98D; Thu, 26 Nov 2020 13:43:41 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by gabe.freedesktop.org (Postfix) with ESMTPS id DE9E06E994 for ; Thu, 26 Nov 2020 13:43:40 +0000 (UTC) Received: by mail-wr1-x444.google.com with SMTP id p8so2194297wrx.5 for ; Thu, 26 Nov 2020 05:43:40 -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=wTlQph4T9x2clQDWFRQKUxH5e24azy8BuVSYzp5lBkU=; b=Rz+Vn8n1GJmQ/rxsl/asCB4OMfEleQg7MQ7bd6+UCqkmm74BIESn/bQbICzXd8MhjA QuNQ4O4dVDJ6LSLLa5dkqVQvWlr9KRQbjeT2N3rOGGVAxe1qZjzmiu/Ix+dTg0/srPE0 kzde8m10jLEIPnZeUuIQv4H+GX0bSwc3iQGh8KHXvAP6sOp+abDZeHDY+eOa7Fqy1vJd WvIxy4ElqE4NzC45RHvb+UftFhN8PtHHYGLc5UKM76FNhLdb7CRbZbUQuq4IoMxMmS5R Jda+Kc6IQMS3qx3X0gNu4CDnxZlLrVVplJsduhtZzyo6uI1PfQ6E23pRQdT9Rg4WMhO3 5xLw== 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=wTlQph4T9x2clQDWFRQKUxH5e24azy8BuVSYzp5lBkU=; b=E0qGsRnUVzeT3+KQb7Zg0Zh0rfBlOt0rd64buFTkTPz1xc74zjdrD4sOW+FOQwsv97 F/FVofnMp7ey20lCpXEnuXR6f5BzYa1cxJCIztVRnrOuQBzhhPDZ0GcY2n+8M6NVexyl K3ez6Itc0XDa/d0gbgBYU/ZdSHVBGoBTxaILuL6BtJB/y+HcBmIk8NdE8Wf/UroT4aX6 57YUcrN1XyPflYDzPn5aUd55MTrpUB/pYP9LHbdoF31S5UWE72MnRw1ItdorU6STy3yZ PhCxWzmL+6nQ85byiFOzy0/sAbUpkpcnOswuDNo7hKnzJcb0vVOYZpkoc7fqDbIDWDqa FLUw== X-Gm-Message-State: AOAM531GWl5UlG25uOU7oVjdCYolH8TZaIPA87pVXi2GQpOENtLd7c04 MxXc/GHeWQbvDNjHgXcxDuorVQ== X-Received: by 2002:a5d:6186:: with SMTP id j6mr4005475wru.359.1606398219495; Thu, 26 Nov 2020 05:43:39 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:38 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 37/40] drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu: Remove unused function 'pp_nv_set_pme_wa_enable()' Date: Thu, 26 Nov 2020 13:42:37 +0000 Message-Id: <20201126134240.3214176-38-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: Leo Li , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, David Airlie , dri-devel@lists.freedesktop.org, Alex Deucher , =?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): drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_pp_smu.c:664:20: warning: no previous prototype for ‘pp_nv_set_pme_wa_enable’ [-Wmissing-prototypes] Cc: Harry Wentland Cc: Leo Li 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 --- .../drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c index ac0a0539854ef..607ec09994456 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c @@ -661,22 +661,6 @@ static enum pp_smu_status pp_nv_set_wm_ranges(struct pp_smu *pp, return PP_SMU_RESULT_OK; } -static enum pp_smu_status pp_nv_set_pme_wa_enable(struct pp_smu *pp) -{ - const struct dc_context *ctx = pp->dm; - struct amdgpu_device *adev = ctx->driver_context; - struct smu_context *smu = &adev->smu; - - if (!smu->ppt_funcs) - return PP_SMU_RESULT_UNSUPPORTED; - - /* 0: successful or smu.ppt_funcs->set_azalia_d3_pme = NULL; 1: fail */ - if (smu_set_azalia_d3_pme(smu)) - return PP_SMU_RESULT_FAIL; - - return PP_SMU_RESULT_OK; -} - static enum pp_smu_status pp_nv_set_display_count(struct pp_smu *pp, int count) { const struct dc_context *ctx = pp->dm; From patchwork Thu Nov 26 13:42:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 333016 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp156371ejs; Thu, 26 Nov 2020 05:44:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJw2vr/ccY9JXcBqYw7Vhg+bJcgmD0rC/9QWOaBDUIm5fnRY+Dce8SvaUwjScZuCGIdUOuiu X-Received: by 2002:a17:902:b098:b029:da:3e6a:8758 with SMTP id p24-20020a170902b098b02900da3e6a8758mr2823051plr.26.1606398248828; Thu, 26 Nov 2020 05:44:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398248; cv=none; d=google.com; s=arc-20160816; b=iVVO7W+0EasQwj7VV7OLy9KasYi7BTW3urhW88HW4TYYzhkwNqQbhuG52G3UQCnRw9 /x3F1vNxh8QHS17HQGolgrDcXtaLte6QEDqxRxwnNujhIDU3PGMOkiw+8Q+l6oO3Jvjk 2JDAU7dNIdNGDpC/C+ut7FPfELUOQyR6wwpyqB7MgztG5xYc1j8PnRLRTJqoTzu9exXI O7tn4SH+aEB+Juv+/wT3F8QwfTzr8MT12h2MOBINyseRnyzupMch2P95LD6WSTIiy8TX ovzLW6+H61upn4rB1FnTJ9IZU1/n6J56HzHRCbCV/h4CiMt0e7tAim3xh9cxRPyi+ZBb VyPA== 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=rex/N3FUh1/kx1G3IRYSGaN8/+823jVTax/8PIaunbU=; b=zR25M+W5/Ke1CJvKmQzg0qf9FIs05/Cgti5ORPvA9RsZ7E/PI2Lol/S9XaYgrONWfV zlBnMeL0ySC59K3+N2R+6ChVZn+KSRs8K8PKMpnKT/dHUTE9HLNDMHjDIobhJg58z/kA zfrSNqRV+DqG6z0DOgI9ZGci2QxcxnYrllRovvbFCvSVyF80UCTYvHzMKBo3amz5upJl TBwMXmbNloyFp2VsrTP1+cRuarNzuI8usVvuxLxjcyH2q/0FrOeSeOdQ6uwf/b7ndJ/e m9IuEX7N2ffFu7HuZ8T1lv8tYSb8GpolBRYii6TDMdLQmBOOWD5HmBoOwk2eXDpp70X8 6j8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=XxZ37GB0; 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 x29si5346061pgc.501.2020.11.26.05.44.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:44:08 -0800 (PST) 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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=XxZ37GB0; 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 82B256E985; Thu, 26 Nov 2020 13:43:43 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by gabe.freedesktop.org (Postfix) with ESMTPS id 10CAC6E99F for ; Thu, 26 Nov 2020 13:43:42 +0000 (UTC) Received: by mail-wr1-x443.google.com with SMTP id p8so2194356wrx.5 for ; Thu, 26 Nov 2020 05:43:41 -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=VB1b8+HX0cMDaWmJBmE+LGhIQvSkQPR66e8ggHq+N+Q=; b=XxZ37GB0KpmVxrU9vwF7H6yWe5kLeflzs8gZYUkJvmzO75EMKFpjikfiFkRATr+PYk xVJsFJ8MlCX7JEFQF5EH+wxZjeAR6AAKMAUe6A4slFX4FgCiHh2yM5zwqB353KB4oqIw X+P/pOW+yAy8nskR5vatXd4YkKtooeYl/csb9hoaemLg2DfJWcDczneVuo4zN74yPihy YHY5rS7Y3S7UxJ3B0lUy5sQuezOiOmNeiqulnV8BrL0UbUNcXRnXgAOPNUM02JooqAMz /LCvBZB7hD1p2fkaY3JKLbaUoBbRbDEC124el020n/q/0Ochw15abcX9sdoU+nZTOqos 6Czw== 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=VB1b8+HX0cMDaWmJBmE+LGhIQvSkQPR66e8ggHq+N+Q=; b=CBtc6D0oC5o/7I2k6lBEU4KrMbrmFCs2XjXJNmnuN3Ur3p7AzqpLU6R1CbbP5Pzw1t g09E7WlmnPIKf98gxhOqYACQnOzCxZefYg/G6+DI6Qg4qa4PAAE83tgcK1W08+aD9aiU 18ASrPVnJhus66JclIM/+00u+dQkXyJAUQToLlZvVqXB8r93fJ/Mr+i+6s8L+fA5ciCj h6duZOD1VzWnnhzX8P+d+2+YEdxfUPXuGNigE1Rfu8/4T6hq2Iiwp/cqDwuDkQjoiUv1 zC01RUP8yrWrS043hIx25tkchx9fCRqBT5cnESlMghq3Xm8cp05GXkY3Vpd1ua1NGtMS YQ5Q== X-Gm-Message-State: AOAM530qZ6M5IdUeYUcBiBy4I7UMyiKGkGYdOzaGl7QJqe2lv7/4GCsC P0UapV5sT1Len5OMPfX4Vn4FXw== X-Received: by 2002:a5d:4408:: with SMTP id z8mr4115578wrq.204.1606398220768; Thu, 26 Nov 2020 05:43:40 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:40 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 38/40] drm/amd/display/dc/basics/conversion: Include header containing our prototypes Date: Thu, 26 Nov 2020 13:42:38 +0000 Message-Id: <20201126134240.3214176-39-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: Leo Li , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, David Airlie , dri-devel@lists.freedesktop.org, Alex Deucher , =?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): drivers/gpu/drm/amd/amdgpu/../display/dc/basics/conversion.c:34:10: warning: no previous prototype for ‘fixed_point_to_int_frac’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/dc/basics/conversion.c:81:6: warning: no previous prototype for ‘convert_float_matrix’ [-Wmissing-prototypes] Cc: Harry Wentland Cc: Leo Li 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/display/dc/basics/conversion.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/display/dc/basics/conversion.c b/drivers/gpu/drm/amd/display/dc/basics/conversion.c index 50b47f11875c9..24ed03d8cda74 100644 --- a/drivers/gpu/drm/amd/display/dc/basics/conversion.c +++ b/drivers/gpu/drm/amd/display/dc/basics/conversion.c @@ -24,6 +24,7 @@ */ #include "dm_services.h" +#include "conversion.h" #define DIVIDER 10000 From patchwork Thu Nov 26 13:42:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 333017 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp156388ejs; Thu, 26 Nov 2020 05:44:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJwQw5JJQr1gnaXvHa8LcVg/3hRGOL0v5fgJohWvLtP46SJjIeTF36TFPDHNC7CdgloUxksA X-Received: by 2002:aa7:82c5:0:b029:19a:aaac:9b4c with SMTP id f5-20020aa782c50000b029019aaaac9b4cmr200982pfn.75.1606398249872; Thu, 26 Nov 2020 05:44:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398249; cv=none; d=google.com; s=arc-20160816; b=Uy5V4+GS2UM0EcTUjCSY3pJIWrdQpxQaAoevPb/ri38XlqsgQp3I/pfmhatWVQJMIT GHa/4OP1Tpeu8Y6nUmcbfIm5TH4EroN0qKLer54hfwY3GOQq1erD5PGN2xdoN5dSgu8/ fk0JV2tUkQ9tCHb4I7YHdK1Skf4vKKevkg65pjb5qh6cuTzr4sKTgzb9dqq0nzg7jfzD 2X4HwsF/gtz18NyO9fID9tJ1F8xN0rLtEdPUOADyedFTdBe1m1bsV1k9deKzowKuCH87 HIwzXGClyHwf8v762EOlMPi6J1xgnzOjQPkKuECSJdGQYfegJIKP+8rc9H5LlKiFCZ2T k6Aw== 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=KN81/6brxxqJ+2XakS3esvUKUtqNNQXJ+QKQMhBZfuc=; b=dWNhyWOzwErG3BK938L2ry55kZD3qGfHqDvl0dJvLjMbI2cnFyvoIeY6PyzId21cy1 jcxiMdZlZTD0wO1lO6aqwxQoj6Vii44NnG6FBw8jatpkqPpchHIsxmJ4Pcw2kEvzZ7sH pAbbptVoRj6h7yweQQHFrGVGUKVO1E9SOFEI3fIo7ScE3KvSNdSwen1Iplotyvga35F3 j9ouNC2xsibPvodIvPw7Emj3frV37aSd31vZIEJnzFv7pZxPTlrYJrCEIwIdUqKuktdX qD5Q4Xw9JwFxcfXRlWfLAqcd+443SOkdtnYfZP7Thi5plmVhEsZ34+AuzmN5azb0fET2 S5og== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=zEVwjuFP; 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 r21si5138949pga.183.2020.11.26.05.44.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:44:09 -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=zEVwjuFP; 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 249526E958; Thu, 26 Nov 2020 13:43:46 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5780B6E960 for ; Thu, 26 Nov 2020 13:43:43 +0000 (UTC) Received: by mail-wm1-x342.google.com with SMTP id x22so2182492wmc.5 for ; Thu, 26 Nov 2020 05:43:43 -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=zLqbaHF4oQ5Kpx8U3OblV0PJbsOkOQQuGTnjvNzXmds=; b=zEVwjuFPYeI2CWymPGhLbmOeKMvU5W3/wdholUcUe5f/F7/8WIFuy6M4mCe2yTvJnf pBRES8hLWfSY4jRjS/Md271YTIjdVoLHGh+8kdCF9wNzy3YXwC+HOAfM3nibIIdNfowt i1TVSkH6uoteGEpwYjcBNUzX+ypeYJFKJsoLmaHNK9p5XgVq9YNMUv/1sxtKLLNokI4N WT4nfVAmbqBpmgp5DoptVNYdwvr3XqjgwDXKR8Vr0Y7zTdZBDzO8E4eL9iCyIsXjkQ/+ AacXFu31oboKBxp6l7xi9WFI+noLXhM6aoe0OJrYzxVqCbccmnQ28laoCs8P71Ehozuk xvcg== 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=zLqbaHF4oQ5Kpx8U3OblV0PJbsOkOQQuGTnjvNzXmds=; b=bvgMJAGz/HBi5yvMRyxd/3PXLhLacehmdAQYDiuN2IiEO7r+cmaREUeF1wrR/Sjfjr 9yNOGNX6EwHoHOZXFOCj0o366RZRfSCPO1trHcz82DtTap8XYvtSQuceIMLFUKxYMGhL G6Gc1SQEkJgciDj76V+xlC4HMlB5JTpjBTuqrWQc6MQYTT7mm3dqyw+kPcu/CKY8cP7W 9FvMM5bwI1ObD83mC5o8M0sYbplHhYfeN7NLNDr9usPhWwIQn2c25eaL1WWyvu4NWWvA l13YCpP5quiAQEjMhrB3nDO7D9wIA6a4vT/g1IDPm9qdGA/KqavEO1YoNM6byUxGABAQ 1ynw== X-Gm-Message-State: AOAM5326F1A6HfLg4JnAnbQc9RtrbbroDuBsktL4tMHqIj364Mb1PM3n M1QqiIcRukmlu6GYL7nAPfawUg== X-Received: by 2002:a1c:808d:: with SMTP id b135mr3423753wmd.45.1606398221973; Thu, 26 Nov 2020 05:43:41 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:41 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 39/40] drm/amd/display/dc/basics/fixpt31_32: Remove unused variable 'dc_fixpt_pi' Date: Thu, 26 Nov 2020 13:42:39 +0000 Message-Id: <20201126134240.3214176-40-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: Leo Li , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, David Airlie , dri-devel@lists.freedesktop.org, Alex Deucher , =?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): drivers/gpu/drm/amd/amdgpu/../display/dc/basics/fixpt31_32.c:29:32: warning: ‘dc_fixpt_pi’ defined but not used [-Wunused-const-variable=] Cc: Harry Wentland Cc: Leo Li Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Lee Jones Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c b/drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c index 59f37563704ad..1726bdf89bae8 100644 --- a/drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c +++ b/drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c @@ -26,7 +26,6 @@ #include "dm_services.h" #include "include/fixed31_32.h" -static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL }; static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL }; static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL }; static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL }; From patchwork Thu Nov 26 13:42:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 333015 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp156366ejs; Thu, 26 Nov 2020 05:44:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJzdeE2iiC/qYeczio/rxNNKHBoS+dHQpqFx1Bl4cC/tnq+Sf7+h4YScDvgv71BQFn9bYwkg X-Received: by 2002:a17:90a:990f:: with SMTP id b15mr2667242pjp.166.1606398248454; Thu, 26 Nov 2020 05:44:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398248; cv=none; d=google.com; s=arc-20160816; b=XzEPK9iNFeJnJm1ZyxAcHwE6FRkZ9kzGKw2JraapgBpmVMvmYcLysC9RS9WEpaT0m7 Prn+HyCDPPkJr7WOWAbyHBRXwCFi6pRK7S7btQbWkd7HS84b4PnRQNdmWSANG3+JTFPo pGfGcKvArpN2TuleTAibfxsReM+nbgWrxvgZ7QRtfPyzlAVYLo/XpolLcbCzMzNCTHUR j/9gh8sSxC0YJKlwo9Abrxts7X1Pb/qlmnDuH6Z5cnV0Q8WUaME9Pnrmze7//cTsWdMI xmmTt4vn6TgdErKXqGoMKGFGBw+Ja+Yr6VjsIKqIzkaX4cUwuskYssBo1uskB/S0AuCx nedA== 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=f3wtHnEdXeRjqxOtznCvTbOxcD9eE8dhJFnjd5w0R6M=; b=CsOJFaTE2iC2AyVSi1xvWw+VbuOFJcKD15sBtg1v3kbc3+qm2GfmHeJjUpSsysxLnv q4pmbqJ1i1shxdep58bwxtajSwr1cUFThaNsMoZVwwTzgxsd0b8liDdUg/fgKyydU4IQ 5r19ROZ9SSQ2sHY9xmeH1zU3JcNGqpDpQns4A/1A1um7mlH4h7llLx/eB5P/8+4yg/Jb eRPi1ai0VdQl/N8kU87c1lSws85ZMTs3xX1Ob6S3WwgkswsSlFSNn41uD6HnAYQB9iBa WI+nz8s0njBElnyKcArso49Wv/aRXe9AGNJ2XDKTTwGc9f9iX8OgrAkxkDe0AZ94i1gb 99fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=OhdPMGyI; 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 z192si5443554pgz.179.2020.11.26.05.44.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:44:08 -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=OhdPMGyI; 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 58E786E960; Thu, 26 Nov 2020 13:43:46 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by gabe.freedesktop.org (Postfix) with ESMTPS id 843346E99E for ; Thu, 26 Nov 2020 13:43:44 +0000 (UTC) Received: by mail-wr1-x444.google.com with SMTP id m6so2186656wrg.7 for ; Thu, 26 Nov 2020 05:43:44 -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=SMoItuxgDP7ogQHGcYXarl4I2+ROLy8sCFsG16Aywwg=; b=OhdPMGyIXHI+TAj6MaIkGlRL9xzZ4qWRyHui4ZR+pMaQ/MzD27wZVVBTfPeDNog00z NN3tcAMPCRSSI/h4caCGAL300/4COFpkwzh6agGGfqN6hncmMlw7j3PtU1UxqxkVKqBE Kx3u4BG3SofRKVYlqmEaqTRm47XrknFaSfZkn154BEgBa3g0vXg3i9GxIwnJtSkCCz/0 pGce+BNmaLjB3fcPjyUNY78xB8MCxdDrxEoi5L65AvoElMM8WTdbh9XaC/bhHhuDsllP K3czuao4DwqdPvDwxO4w9U/WhJUFgfC5xxn/gW6UHrM8Dmb5UvG/rLxaxLiMBCsgc1e8 uVnA== 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=SMoItuxgDP7ogQHGcYXarl4I2+ROLy8sCFsG16Aywwg=; b=sni8tRWAEGkGgXVB6HI6BRfd4RxUvSW3kkPhfw8jLd0mcvbGbDzQI21hnNyr7WtmFX 8KlAKQuF8pHY4MSm50SbvYQb4JKNLRrsTQMDoGJo94FGeGapjvE0p/AW33wYxz3uzcYn UkA6V08Jp+HVekX7ftA6tWkLHJCUXVjrtuKHyiC05D6AvjxzwvTnNE/yc2jRwAU0ushI Ds4TK9419JgO4rJr4SrQGgzRn6OCtvj4qT1lMZmnaq3XDf8C+YOQVH5ZGNy05QdrS2Hz LZY0XGi91/5FlRadhC6d7mFEy2teXTVn7sW5SEmFW+TTasU4376sHJ5D0QSr2YDmP98w Tq2A== X-Gm-Message-State: AOAM533QuOpqjkXXVUlifS39xZiQN94ypfZLfVmAmiC3kvhn7BCBGssH A2W05B2UOs7EEHl0gtfXjRvulQ== X-Received: by 2002:adf:fc01:: with SMTP id i1mr4133125wrr.250.1606398223218; Thu, 26 Nov 2020 05:43:43 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:42 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 40/40] drm/amd/display/dc/basics/vector: Make local function 'dal_vector_presized_costruct' static Date: Thu, 26 Nov 2020 13:42:40 +0000 Message-Id: <20201126134240.3214176-41-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: Leo Li , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, David Airlie , dri-devel@lists.freedesktop.org, Alex Deucher , =?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): drivers/gpu/drm/amd/amdgpu/../display/dc/basics/vector.c:55:6: warning: no previous prototype for ‘dal_vector_presized_costruct’ [-Wmissing-prototypes] Cc: Harry Wentland Cc: Leo Li 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/display/dc/basics/vector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/basics/vector.c b/drivers/gpu/drm/amd/display/dc/basics/vector.c index 8f93d25f91ee2..706c803c4d3b0 100644 --- a/drivers/gpu/drm/amd/display/dc/basics/vector.c +++ b/drivers/gpu/drm/amd/display/dc/basics/vector.c @@ -52,7 +52,7 @@ bool dal_vector_construct( return true; } -bool dal_vector_presized_costruct( +static bool dal_vector_presized_costruct( struct vector *vector, struct dc_context *ctx, uint32_t count,