From patchwork Mon Nov 16 17:29: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: 324420 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp3498009ils; Mon, 16 Nov 2020 09:30:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJzAnifBfPRFWMdVsWzCbQakrTGJ3lRBHcO1zKgJM/vHPR3fHqEAkQDi0UpSRCxPXjye60hJ X-Received: by 2002:a63:5d64:: with SMTP id o36mr283484pgm.134.1605547828996; Mon, 16 Nov 2020 09:30:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605547828; cv=none; d=google.com; s=arc-20160816; b=eH9p3WPDNESXeTFq1rKAL6IhlTxto+ZYQqg1z6FRmaPe527ffOMIC9QH3sYHc+pXog K2sKGPOSuqBMHxTDkeuM8BnTHFeibWR6gCG3DJBwc2LnHzs4a4vt592RelW+79BG1T9Q +1Cu58jivDvgPnSJge0s3K4heDpJLGCte0a7lrPOutm70gzmEkKs2O994Qlov7DcfOE/ rfWdHKZYO4YyknbYEvFURG7F/DXOfEXfx2V7MQBuXYGQz7uD2eedlIJ+KncFTFu1IBT5 Nbj8mQH0oLbwzyzfPzDFhlJNDXQB9kQD7GV9eg2lBxKUxjmmWh6PRQu3NPssZsZ5ZqLV JUiQ== 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=NG6DGGKX0SzTnZOKhU3GfLzSC7PeiS3d5tgiATyKskE=; b=cU3dGbqYhlVFk1w9he0NlsYI1D08PB0M2VXtYc2FxGaaX24iv/NTKgMDNTAEZacudE oI9axpANlfTW16Oe4dqXNXmKn67CAS9hc8nO1g+bwvz0j577BNLO586pXgUDFAU+kjaP vl3P8o+XYnX2NsfswPHFioybnQYI7On58K6jo9E05tbBYhLlcrrRsjwNDDQ8PIofE/8b VNvmr2z3bx+pVv9fgSDmRSfuXN36D2FSWPzRhtPY6YHAT324YK95j/VXQn5z33dZuIHd txPR60gqbM7nTj+xd0KdiuUXsxr47CuDmaBOF9wlbiAlkhg526luElQ05yuVTn8zyBnF fZKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=MH+f+Sm0; 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 a24si16822pju.3.2020.11.16.09.30.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:30:28 -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=MH+f+Sm0; 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 9402E89FCC; Mon, 16 Nov 2020 17:30:23 +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 3CA0389FA0 for ; Mon, 16 Nov 2020 17:30:22 +0000 (UTC) Received: by mail-wr1-x443.google.com with SMTP id p8so19623370wrx.5 for ; Mon, 16 Nov 2020 09:30: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=uEdGEUBcwEa3ohTuW8AeQ9rcZ1jBGC5RhjVmwh26pbA=; b=MH+f+Sm0LLQRTh9iWew0DtLlUhhW8oHlovfsPBNmPolwL17i7Gu6Fbvk6lr0xb8TD2 cQ9CuBZv66bQplnJ0/6Vbgdrj8mcy4+YI9UPVN0//u1bYGJnNVqYh7vKtey0uJfssem/ ijoKKyRzcP0SK5uRDsOYJAby+Dc+8P0hyNFUc5Ts4HY4BwTRxReA3c2KBHmXTfBS0Acb 78N1TWh8hkraQBZJxy6B4Llsw87P+vrg8vR8gnEm8yQ6n8j1j8zuLidX1kXjJMzbEDvx 10ZluVMeRVZKYM5BpiHMhQaJvnt6nQ/5NN3L8XLbLxM2sZ/uY/ALE4qjbwZpoM9iHlz0 I16g== 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=uEdGEUBcwEa3ohTuW8AeQ9rcZ1jBGC5RhjVmwh26pbA=; b=na+iY5XqVqBbh1rjqAUoCU6AAgXtDnCbGRdzJFn2LLqzW9p3jFi5U8pH10ip0OtXnQ F3aJjWn3nlJ1u8OKYQuiewbdQjMQUllLWeEeltRB0G5jgVpHBaROiDk0Ntm/bC3pIoc9 d5Vbg7BbGHBvqcq9riszBnX8OMR1goZW7Kf30HK7lLfBJhWW8qbQFrG8LaPAabJfolPF 2kPl+X1JHzUFmLzAEfnAJpuD+gBDcyHktZuUQPNJGFZvwHCeHEUhzFbm+YxlXMBGiTks 8lrI5F9g621M2kJEeFTsnCDBnGoFWY7ZxGtruLHmdsTYdOspESsVsF17jtmEpuIk9A1i vIWA== X-Gm-Message-State: AOAM53213YsJXH7K1kdyEszb96xQiLHOmUV7E0+tnFvdDaOnkswUTl/C NnuIv/u3LGthmZ/z4fAilDxVcg== X-Received: by 2002:a5d:690c:: with SMTP id t12mr20339054wru.405.1605547820954; Mon, 16 Nov 2020 09:30:20 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id f23sm20054854wmb.43.2020.11.16.09.30.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:30:20 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 09/43] drm/radeon/rv770: Move 'rv770_set_clk_bypass_mode' prototype to shared location Date: Mon, 16 Nov 2020 17:29:31 +0000 Message-Id: <20201116173005.1825880-10-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201116173005.1825880-1-lee.jones@linaro.org> References: <20201116173005.1825880-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/rv770.c:1138:6: warning: no previous prototype for ‘rv770_set_clk_bypass_mode’ [-Wmissing-prototypes] 1138 | void rv770_set_clk_bypass_mode(struct radeon_device *rdev) | ^~~~~~~~~~~~~~~~~~~~~~~~~ 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/evergreen.c | 2 +- drivers/gpu/drm/radeon/r600.c | 2 +- drivers/gpu/drm/radeon/rv770.c | 1 + drivers/gpu/drm/radeon/rv770.h | 35 ++++++++++++++++++++++++++++++ 4 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 drivers/gpu/drm/radeon/rv770.h diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c index 1f2acca437abd..9a1e240b07234 100644 --- a/drivers/gpu/drm/radeon/evergreen.c +++ b/drivers/gpu/drm/radeon/evergreen.c @@ -31,6 +31,7 @@ #include "atom.h" #include "avivod.h" +#include "rv770.h" #include "evergreen_blit_shaders.h" #include "evergreen_reg.h" #include "evergreend.h" @@ -223,7 +224,6 @@ extern u32 si_get_csb_size(struct radeon_device *rdev); extern void si_get_csb_buffer(struct radeon_device *rdev, volatile u32 *buffer); extern u32 cik_get_csb_size(struct radeon_device *rdev); extern void cik_get_csb_buffer(struct radeon_device *rdev, volatile u32 *buffer); -extern void rv770_set_clk_bypass_mode(struct radeon_device *rdev); static const u32 evergreen_golden_registers[] = { diff --git a/drivers/gpu/drm/radeon/r600.c b/drivers/gpu/drm/radeon/r600.c index 12a918335ac7b..f09b6dc5cbeb3 100644 --- a/drivers/gpu/drm/radeon/r600.c +++ b/drivers/gpu/drm/radeon/r600.c @@ -40,6 +40,7 @@ #include "atom.h" #include "avivod.h" #include "r600d.h" +#include "rv770.h" #include "radeon.h" #include "radeon_asic.h" #include "radeon_audio.h" @@ -112,7 +113,6 @@ void r600_fini(struct radeon_device *rdev); void r600_irq_disable(struct radeon_device *rdev); static void r600_pcie_gen2_enable(struct radeon_device *rdev); extern int evergreen_rlc_resume(struct radeon_device *rdev); -extern void rv770_set_clk_bypass_mode(struct radeon_device *rdev); /* * Indirect registers accessor diff --git a/drivers/gpu/drm/radeon/rv770.c b/drivers/gpu/drm/radeon/rv770.c index 21f653ae1e1bb..88e29ebaad467 100644 --- a/drivers/gpu/drm/radeon/rv770.c +++ b/drivers/gpu/drm/radeon/rv770.c @@ -39,6 +39,7 @@ #include "radeon_asic.h" #include "radeon_audio.h" #include "rv770d.h" +#include "rv770.h" #define R700_PFP_UCODE_SIZE 848 #define R700_PM4_UCODE_SIZE 1360 diff --git a/drivers/gpu/drm/radeon/rv770.h b/drivers/gpu/drm/radeon/rv770.h new file mode 100644 index 0000000000000..a3f2bb44979fe --- /dev/null +++ b/drivers/gpu/drm/radeon/rv770.h @@ -0,0 +1,35 @@ +/* radeon_rv770.h -- Private header for radeon driver -*- linux-c -*- + * + * Copyright 1999 Precision Insight, Inc., Cedar Park, Texas. + * Copyright 2000 VA Linux Systems, Inc., Fremont, California. + * All rights reserved. + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice (including the next + * paragraph) shall be included in all copies or substantial portions of the + * Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR + * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, + * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + * + */ + +#ifndef __RADEON_RV770_H__ +#define __RADEON_RV770_H__ + +struct radeon_device; + +void rv770_set_clk_bypass_mode(struct radeon_device *rdev); + +#endif /* __RADEON_RV770_H__ */