From patchwork Wed Nov 11 18:35: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: 324126 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp622804ils; Wed, 11 Nov 2020 10:35:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJyHQr40hhhIanu+95RnxVH2ObVdYlpdEc++j2MFchEdgJHFV/1s6PljFtw426TSfOfahpro X-Received: by 2002:aa7:868d:0:b029:18a:ea7b:342f with SMTP id d13-20020aa7868d0000b029018aea7b342fmr24815828pfo.68.1605119755895; Wed, 11 Nov 2020 10:35:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605119755; cv=none; d=google.com; s=arc-20160816; b=C6BlI+jxukCFRaxfbmgk53nOmNLlCCQt4hqxQkTdPJVfVkSXeJd9jC5cCT2K4sEyz1 T0SN6MZxXeWiMVbWjcsn2mlDY0o6Hjjs2uJoF1Y1JIJnOzOoSrsMPLz+CJauopF/eGn2 9GOnrWlq3/D/qLFivOEdGkOVFRMoKtZnRNn1nwDZxwCCKfeRSWmNbvqJlg11OyBg5rxy rCtpQNlBvTG/iytZM7Hf8eqJqSvyKMK26HCtk2p1LrR4+TdzUxe59lHA/Oro+4uJKeAM atPKjTl+d9KfU1kRj5Jj8jP/xVV93yCrVIsiljfFT2nWLeoR4KDjouCp19GEVHqbiPyB c2OA== 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=86sAmQENKMgvSKj2XmODtweIyU5jZpvlOLy2DSzsRqI=; b=r1LSSLcDMOEKiLq/3evHH7nh/rfHoill9BZ9z+xTRoo+XBRJ7dBZG6KghaiuNO81Tl NOphnN3ovVtDp0AJZ3nC/yk/AFvKBPph+lFUYVnZC12w+0r6Y67jntghlenRvfhj6ED8 fheRQJWU5ZNfp+we8D+jcLjzXZbuFslIiDRrBwgTdgIjdaU35x36QxUQbcr8zzCAnLQV kn08ucXo0P4pFgi3Uz7dZMBuicuiOskahN+qF/9/bPs0KoqZ85+4WjkSbiMA4V3I7Kop kBXLAEz1gz4ut2hXpbn/p9sh3CvYkPAJqGTa0TWWgpszfaSdTt9WpuZyBZi1MwHNjBO3 V5Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=HbkLuQQi; 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 d16si2451235pgv.389.2020.11.11.10.35.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2020 10:35:55 -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=HbkLuQQi; 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 8E3F688DE5; Wed, 11 Nov 2020 18:35:54 +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 718C66E0AA for ; Wed, 11 Nov 2020 18:35:51 +0000 (UTC) Received: by mail-wr1-x442.google.com with SMTP id c17so3464150wrc.11 for ; Wed, 11 Nov 2020 10:35: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=6eWjxCy1b/Di1KDbBj5VEEMSjXTSXChj8189ArvQtHE=; b=HbkLuQQi5rW0/qhwunU2WW0FWuIMpOuK3Lb1lXqJZZqhFtQ0WVod0F1XFBZAthXUFw xXjyvXMBZIRfRPFWIjgVG0uFcAr87Ios/o1uGlsFlq8jACLRAWaIVyFNN69wwgk9Zl2J S7bhRfZayQLJdGensl6yesXvZoW6r6n4AIB18Rf4uu14sXEjeZLls+85JlR0x3kbjoBw DVJiPNOPJBi/2wGU7f6bBKz3LrP064hHZLM4zwvUoWbIdxKFNJndlornfq4m5DDsge7i LYzgUUvQislNFuJvaZVzSwUp9v/HcLrP64p4YEne6oClTQ+ohO9SvBG4vrLMVB6r1P2J veRQ== 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=6eWjxCy1b/Di1KDbBj5VEEMSjXTSXChj8189ArvQtHE=; b=dCAoXtv0rdDXUR5/vxqWlckjrdnUvwLlj/Bxbf+R3s6ZG0aeMXrLxGvBSIxOttVhVJ 3czDR6d43m2ZdLJDZWUqSPJBo42Z0B8je3XGvbv23+p4yvPVEmh8CIE05X4RIdxIcHnV Xo7HFUBopJehs+lrV+kMPv807W/QJOSgcWem/O4qC9bm2+aa8Yp+w5JLOjyyF9M9YF/W KN4y/NVMzELi7tEC+LIlJCXInJPo/Qzvu7YjU6mydAw6qdhqW0Qv58nKgb2HS46hO54x Cnxq8qyzmMpL7sDA8svqVY6LH3WVtLZijRB4l98SZejyoczxvuulqh5nGuP21kBZ6wpX DjbA== X-Gm-Message-State: AOAM530Rx5ERfq3Aov0CoR11pBfnAqZNqgHX36I476aX5AeK1ksVGNKq bNszaCtg5iE9IgZI24rA0A2cSw== X-Received: by 2002:adf:9124:: with SMTP id j33mr30438227wrj.376.1605119750054; Wed, 11 Nov 2020 10:35:50 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id k84sm3558311wmf.42.2020.11.11.10.35.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2020 10:35:49 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 01/19] drm/radeon/evergreen_dma: Move 'evergreen_gpu_check_soft_reset()'s prototype to shared header Date: Wed, 11 Nov 2020 18:35:27 +0000 Message-Id: <20201111183545.1756994-2-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201111183545.1756994-1-lee.jones@linaro.org> References: <20201111183545.1756994-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/evergreen.c:3825:5: warning: no previous prototype for ‘evergreen_gpu_check_soft_reset’ [-Wmissing-prototypes] 3825 | u32 evergreen_gpu_check_soft_reset(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.h | 1 + drivers/gpu/drm/radeon/evergreen_dma.c | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/evergreen.h b/drivers/gpu/drm/radeon/evergreen.h index 30c9ca99ced90..eb46ac7776951 100644 --- a/drivers/gpu/drm/radeon/evergreen.h +++ b/drivers/gpu/drm/radeon/evergreen.h @@ -47,5 +47,6 @@ int sumo_rlc_init(struct radeon_device *rdev); void evergreen_gpu_pci_config_reset(struct radeon_device *rdev); u32 evergreen_get_number_of_dram_channels(struct radeon_device *rdev); void evergreen_print_gpu_status_regs(struct radeon_device *rdev); +u32 evergreen_gpu_check_soft_reset(struct radeon_device *rdev); #endif /* __RADEON_EVERGREEN_H__ */ diff --git a/drivers/gpu/drm/radeon/evergreen_dma.c b/drivers/gpu/drm/radeon/evergreen_dma.c index 767857d4a8c5c..52c79da1ecf57 100644 --- a/drivers/gpu/drm/radeon/evergreen_dma.c +++ b/drivers/gpu/drm/radeon/evergreen_dma.c @@ -24,10 +24,9 @@ #include "radeon.h" #include "radeon_asic.h" +#include "evergreen.h" #include "evergreend.h" -u32 evergreen_gpu_check_soft_reset(struct radeon_device *rdev); - /** * evergreen_dma_fence_ring_emit - emit a fence on the DMA ring *