From patchwork Mon Nov 16 17:36: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: 324466 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp3503640ils; Mon, 16 Nov 2020 09:38:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJxmcnfmZ+hvYJh5nyGILC5R5UOUk8qnRoIUtVbXh62ux6pNsqydh2sGaOlBYhGf4te8mhKk X-Received: by 2002:a17:90a:c17:: with SMTP id 23mr17429670pjs.199.1605548289243; Mon, 16 Nov 2020 09:38:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605548289; cv=none; d=google.com; s=arc-20160816; b=TPjtcyaYyLZAQBcmFJKuybRSf1ahQW+yB7J5wuNz9aauTVKtq48vInaaFPI9h3o5is 3bgNBbzvXG/86sdE2WBhWFW3KT31PprPKIceP7WZnv6dZdT/LzB0ASLxhql/QM02RYz9 MQl1RBCmT+fMIe7HPdirgJOxXpc5wYrQPNNuRoivxXaeHqgdqjn6Qy454kHDv3vtQ6q0 8Xt79gO4jVxpivDIt37FXZMRe6Gw0lcwWPstxREHgCNFf0djj4JApS1IX10vXkRrfrYp VhjkRSOG6EXlOkWktROuSRXaZK/wG6kuTvzIpamTWFTGkCG3S39cgGWH4X6sJVxM56zy q0WQ== 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=bQScqeODawYLUcgT8gvyxSLPmWydgf8YV7nHlfzYAhc=; b=jsb3Ced56qapplvg3ayfspU8wAba5OWBW5bseihMEUO9b/An81gB+JEU/dTFP1yNeN c7pVGaid/+i5U0HuA7yvenDG0P6O0uoXE8hTGogsD3cQIL+xZFXgg5Inwp4Ms2SDcxwf /ZzIEdn3O8Bt0zkzszBK4O+Ed9d/G5PRvPH+X1r9qRS2cZuoYpNi86unzQ1DbrLOBBxH z4o4h9fqApYWmXxQNndthpHfKuCy9+4GALetEI7HRUwnE+Etr5y9w5F1okbQLSW2YJYS OjlRqhXVpwPWCQp0uCuS5CWTVAgg45wKca8wKSEy4l8rhdTN81scNov4ZCoaewrGxVLt FtuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=u31O7pj1; 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 e12si17655pjh.62.2020.11.16.09.38.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:38: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=u31O7pj1; 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 ACD7A6E090; Mon, 16 Nov 2020 17:37:53 +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 CCA226E061 for ; Mon, 16 Nov 2020 17:37:30 +0000 (UTC) Received: by mail-wr1-x442.google.com with SMTP id m6so2456059wrg.7 for ; Mon, 16 Nov 2020 09:37:30 -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=uPrx+xhJSBB8cqNRTfRxpV861JL0F49FY7TxVtUc7KQ=; b=u31O7pj1zGDcrio/FSlsCBviO7IM8g6lQEnTygECI/nuOgTKY4r0NhHol9iTNLGAn+ zdLph8fd3Yuh5ALkDKEgxnNG18QYa0bsD7qhmJeuL69Mb72Gr7aBgJip239aK5NAxjs8 bwmKEWSGIl80oReFzD5dPK4o61T22DBvKtr/Ld97VBLSmDf/T7Qe49a2nsurDTjVNSSP d45/vKLH6geRF9spJ2Zzz9ibSFfV7qMS1hWPotwBvP0TCMhLJL+wYrqQCZ9jAz3ZAxka tQniI5JB4SFW/5S3t/97fz3dr+LiWmC/rvEilaMRA/NEEYJvS1K5XYJQ4LeiDkKq7xyr uBaw== 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=uPrx+xhJSBB8cqNRTfRxpV861JL0F49FY7TxVtUc7KQ=; b=oXphnmvudBEggkkhuNf1aOa1Mm1iyHKKOhHV2vgRI9UNzrmr0dbyamvQB9qkXD0gxb 5QVCG7LdH9yT0voTVMuxlsaWoPdyQatUvClWZIrcM9pvrueF0L9qqexN5FK6BS7BCdqU QyLrwxpSej2bIdbZ1zby28x38yocVySzAT/7PE8t0gvWZyhFfeZALooDt8nxWeza4kHj w3vOvOJRKocmutjqinYU8M+1EJM4gdFpqz3kc7XTxq3uyzxYVwgl4VQsftaEL7+ulyix OVJXLa/jX0FbB6C9gW3awpxeNWvexjT4I14xP78zZ4doD8N1glbfmeXqeCuwcKhTWCMg kC5g== X-Gm-Message-State: AOAM532gHSbeAb5PHl1rc6jLAQL15s5pTj5PZuvIFZjNXdNOclHxjg4E owCfMtr/39pNXEDp74n92LLi3g== X-Received: by 2002:a5d:448b:: with SMTP id j11mr20117035wrq.236.1605548249538; Mon, 16 Nov 2020 09:37:29 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id 30sm16942828wrd.88.2020.11.16.09.37.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:37:28 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 19/43] drm/radeon/ni_dpm: Move 'ni_get_{pi, ps}()'s into shared header Date: Mon, 16 Nov 2020 17:36:36 +0000 Message-Id: <20201116173700.1830487-20-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201116173700.1830487-1-lee.jones@linaro.org> References: <20201116173700.1830487-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 , =?utf-8?q?Christian_K=C3=B6?= =?utf-8?q?nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/ni_dpm.c:727:23: warning: no previous prototype for ‘ni_get_pi’ [-Wmissing-prototypes] 727 | struct ni_power_info *ni_get_pi(struct radeon_device *rdev) | ^~~~~~~~~ drivers/gpu/drm/radeon/ni_dpm.c:734:15: warning: no previous prototype for ‘ni_get_ps’ [-Wmissing-prototypes] 734 | struct ni_ps *ni_get_ps(struct radeon_ps *rps) | ^~~~~~~~~ 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/radeon/ni_dpm.h | 3 +++ drivers/gpu/drm/radeon/si_dpm.c | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/ni_dpm.h b/drivers/gpu/drm/radeon/ni_dpm.h index 6bbee9180909e..74e3019369063 100644 --- a/drivers/gpu/drm/radeon/ni_dpm.h +++ b/drivers/gpu/drm/radeon/ni_dpm.h @@ -247,4 +247,7 @@ void ni_set_uvd_clock_after_set_eng_clock(struct radeon_device *rdev, bool ni_dpm_vblank_too_short(struct radeon_device *rdev); +struct ni_power_info *ni_get_pi(struct radeon_device *rdev); +struct ni_ps *ni_get_ps(struct radeon_ps *rps); + #endif diff --git a/drivers/gpu/drm/radeon/si_dpm.c b/drivers/gpu/drm/radeon/si_dpm.c index a80a21447a76d..c68ab2fb1ac23 100644 --- a/drivers/gpu/drm/radeon/si_dpm.c +++ b/drivers/gpu/drm/radeon/si_dpm.c @@ -30,6 +30,7 @@ #include "rv770.h" #include "radeon.h" #include "radeon_asic.h" +#include "ni_dpm.h" #include "si_dpm.h" #include "sid.h" @@ -1719,8 +1720,6 @@ static const struct si_powertune_data powertune_data_hainan = }; struct evergreen_power_info *evergreen_get_pi(struct radeon_device *rdev); -struct ni_power_info *ni_get_pi(struct radeon_device *rdev); -struct ni_ps *ni_get_ps(struct radeon_ps *rps); extern int si_mc_load_microcode(struct radeon_device *rdev); extern void vce_v1_0_enable_mgcg(struct radeon_device *rdev, bool enable);