From patchwork Mon Nov 16 17:36:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 324473 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp3503846ils; Mon, 16 Nov 2020 09:38:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJyudQMAi//g/zrTj/rCxxkxpph+ODfo9yAI/K4uhWSn/jfknAqVxWjn1esrgDnZna4edx7Z X-Received: by 2002:a17:906:edd9:: with SMTP id sb25mr15993762ejb.430.1605548307290; Mon, 16 Nov 2020 09:38:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605548307; cv=none; d=google.com; s=arc-20160816; b=a1IfgdWfwDfKwi12QzSZtVbJXh6J5/uailpCZektW5oIKIP8NJLBNnFNfQtiRyL9hM /Vzn/q/GJ2rsSOH/lwQeu5p5ZntjRAKivJO7tKUV+gAq/ajhMb8msYWQmx2kFjHENfhF S0h5MD2+S2VvBoi1YaScveHOZGJ5GBUGHfWlegQ49N+6fdvLK3x06M6DIW3EAeBgv6q2 0I553YfYUDadbjfhze6NWFH3KDhsvN3v1BemwTDbb6BBRQl0z4BW75sUwT1t0NtsdCm9 OA7LNJRz+orI7i2y4o30Igpwz816Otz/l/XeHB9+rNMnAClfCu/VkhSBSk2JsockYdbG DD7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=TL/uaiVIiwl4wzWU7OYi0ACx3zRr3WVOJb9wsR2ot/U=; b=B7YRWpgEe1giJt23vm44mDGojws6wuaVPkKoZWXBRifDvl4Hb53y+XngpZnB5RUb9z Af0JmGEnSd5eFGeqYKRm76y+rwxEl5OddAKMwvBCr+cXOQ2yao359umdTREA8CwHYwg6 uyBZxz1lQBx6UT5YDQ0NlavYCToRwtWFPZSvG8+fmSxUoPAmeltTGqkUG3dTxZJlnO3R ul2d9kCqX92Wsph57iX7wsBQbRwgf+NIxMJkFciheikMN5///LXydAREloS8/ImD5Tlq xiY1v4yC8BwKZhYTWmIM+VwGCuL1ncN1EKwjfMhOxb9b5IxqBJxaLoXcuaFRaRz2wf0+ kR2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dr2bVIZx; spf=pass (google.com: domain of linux-media-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t22si11880055ejb.186.2020.11.16.09.38.27; Mon, 16 Nov 2020 09:38:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-media-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dr2bVIZx; spf=pass (google.com: domain of linux-media-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387529AbgKPRiC (ORCPT + 4 others); Mon, 16 Nov 2020 12:38:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387523AbgKPRiA (ORCPT ); Mon, 16 Nov 2020 12:38:00 -0500 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7A27C0613CF for ; Mon, 16 Nov 2020 09:37:59 -0800 (PST) Received: by mail-wr1-x441.google.com with SMTP id b6so19646454wrt.4 for ; Mon, 16 Nov 2020 09:37:59 -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=TL/uaiVIiwl4wzWU7OYi0ACx3zRr3WVOJb9wsR2ot/U=; b=dr2bVIZxUH94BJWmoSkzDF3XGSLOpfJ1EqQiSFAWRLHQcBgTbLh3kaFJpwd82QBuYd q5eD0fCw2PytG7MrtaZuQrihHCtR0/ffC0/76z0ydHogAVnjYYwV4D/gmAmE2dg6/Kia SFmzCCdsLEa3IZQkGULmy3XV4x03kvLJNoqsO7C27vFIuD7C1U8VT6+X72NBPGil9DGm 0uuDUiU3czjeC+0sJvqiH3OcOej+u/yTQ5FJf+u3dNsfJW8435CYA8Hk4iRmAynz6eE+ KDlU21i/5Ln/UvT1YMpF6klItjrO7hXaIrgKevH2UKz09pVQf2x0HkrAkg43R9D6wq1n DHcw== 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=TL/uaiVIiwl4wzWU7OYi0ACx3zRr3WVOJb9wsR2ot/U=; b=uEaHC/oLc5T8/oGOmCoeDbSnAphnMzoEZ0rJNNclzoI6UuHkKEoWWrJeAv+WwmDsXH 3E5DAiw0Oeix9d8xmFijK3JNv3E5Hx/qYe/xQIKBHvqV2wHNLV+fqkIVIATFiL/dm00p keDhDpobmBI60X+pTdNxWnL/tlygyhrgjB8Of63p4Ck6CgRSRmip98v+RyLJfza2vibv Sp2I0wJLzTRztgUH3ll0bLHnxplPwW9oG1m2dQOqlcsSOs60A2/9Ew22BHvFEkVtHkJL 0lY9XuQ/ppicE5OdyEOepE8It8S3MDQB8g4kp2a5kfKT33xJUtkFegHa+1HsiKgl0E8K 46ow== X-Gm-Message-State: AOAM5336tFlvn2V0T9eJaQ9W9by5awRVhIVKRsJ59vWVQgCjh/OaFQei eoEnKVfzFaDmNrpRu+0diL9GIg== X-Received: by 2002:a5d:5222:: with SMTP id i2mr21750649wra.247.1605548278544; Mon, 16 Nov 2020 09:37:58 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id 30sm16942828wrd.88.2020.11.16.09.37.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:37:57 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Alex Deucher , =?utf-8?q?Christian_K=C3=B6n?= =?utf-8?q?ig?= , David Airlie , Daniel Vetter , Sumit Semwal , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org Subject: [PATCH 40/43] drm/radeon/cik: Move 'vce_v2_0_enable_mgcg()'s prototype to shared header Date: Mon, 16 Nov 2020 17:36:57 +0000 Message-Id: <20201116173700.1830487-41-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 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/vce_v2_0.c:111:6: warning: no previous prototype for ‘vce_v2_0_enable_mgcg’ [-Wmissing-prototypes] 111 | void vce_v2_0_enable_mgcg(struct radeon_device *rdev, bool enable) | ^~~~~~~~~~~~~~~~~~~~ Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Sumit Semwal Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Cc: linux-media@vger.kernel.org Cc: linaro-mm-sig@lists.linaro.org Signed-off-by: Lee Jones --- drivers/gpu/drm/radeon/cik.c | 2 +- drivers/gpu/drm/radeon/vce.h | 1 + drivers/gpu/drm/radeon/vce_v2_0.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) -- 2.25.1 diff --git a/drivers/gpu/drm/radeon/cik.c b/drivers/gpu/drm/radeon/cik.c index 2af76463906ad..8b7a4f7b75766 100644 --- a/drivers/gpu/drm/radeon/cik.c +++ b/drivers/gpu/drm/radeon/cik.c @@ -41,6 +41,7 @@ #include "radeon_audio.h" #include "radeon_ucode.h" #include "si.h" +#include "vce.h" #define SH_MEM_CONFIG_GFX_DEFAULT \ ALIGNMENT_MODE(SH_MEM_ALIGNMENT_MODE_UNALIGNED) @@ -129,7 +130,6 @@ MODULE_FIRMWARE("radeon/mullins_rlc.bin"); MODULE_FIRMWARE("radeon/mullins_sdma.bin"); static u32 cik_get_cu_active_bitmap(struct radeon_device *rdev, u32 se, u32 sh); -extern void vce_v2_0_enable_mgcg(struct radeon_device *rdev, bool enable); static void cik_rlc_stop(struct radeon_device *rdev); static void cik_pcie_gen3_enable(struct radeon_device *rdev); static void cik_program_aspm(struct radeon_device *rdev); diff --git a/drivers/gpu/drm/radeon/vce.h b/drivers/gpu/drm/radeon/vce.h index 1eb4f5715202e..ccc9c00f0d02c 100644 --- a/drivers/gpu/drm/radeon/vce.h +++ b/drivers/gpu/drm/radeon/vce.h @@ -30,5 +30,6 @@ struct radeon_device; void vce_v1_0_enable_mgcg(struct radeon_device *rdev, bool enable); +void vce_v2_0_enable_mgcg(struct radeon_device *rdev, bool enable); #endif /* __VCE_H__ */ diff --git a/drivers/gpu/drm/radeon/vce_v2_0.c b/drivers/gpu/drm/radeon/vce_v2_0.c index d6fde3659e65f..163c9bfc03da8 100644 --- a/drivers/gpu/drm/radeon/vce_v2_0.c +++ b/drivers/gpu/drm/radeon/vce_v2_0.c @@ -30,6 +30,7 @@ #include "radeon.h" #include "radeon_asic.h" #include "cikd.h" +#include "vce.h" #define VCE_V2_0_FW_SIZE (256 * 1024) #define VCE_V2_0_STACK_SIZE (64 * 1024)