From: Boris Brezillon <boris.brezillon@collabora.com>
To: Rob Herring <robh+dt@kernel.org>, Tomeu Vizoso <tomeu@tomeuvizoso.net>
Cc: dri-devel@lists.freedesktop.org,
Steven Price <steven.price@arm.com>,
Boris Brezillon <boris.brezillon@collabora.com>,
kernel@collabora.com, Alyssa Rosenzweig <alyssa@rosenzweig.io>,
Emil Velikov <emil.velikov@collabora.com>
Subject: [PATCH v3 1/4] drm/panfrost: Move gpu_{write, read}() macros to panfrost_regs.h
Date: Wed, 29 May 2019 11:52:30 +0200 [thread overview]
Message-ID: <20190529095233.26277-2-boris.brezillon@collabora.com> (raw)
In-Reply-To: <20190529095233.26277-1-boris.brezillon@collabora.com>
So they can be used from other files.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
---
Changes in v3:
- None
Changes in v2:
- None
---
drivers/gpu/drm/panfrost/panfrost_gpu.c | 3 ---
drivers/gpu/drm/panfrost/panfrost_regs.h | 3 +++
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/panfrost/panfrost_gpu.c b/drivers/gpu/drm/panfrost/panfrost_gpu.c
index 58ef25573cda..6e68a100291c 100644
--- a/drivers/gpu/drm/panfrost/panfrost_gpu.c
+++ b/drivers/gpu/drm/panfrost/panfrost_gpu.c
@@ -17,9 +17,6 @@
#include "panfrost_gpu.h"
#include "panfrost_regs.h"
-#define gpu_write(dev, reg, data) writel(data, dev->iomem + reg)
-#define gpu_read(dev, reg) readl(dev->iomem + reg)
-
static irqreturn_t panfrost_gpu_irq_handler(int irq, void *data)
{
struct panfrost_device *pfdev = data;
diff --git a/drivers/gpu/drm/panfrost/panfrost_regs.h b/drivers/gpu/drm/panfrost/panfrost_regs.h
index 578c5fc2188b..42d08860fd76 100644
--- a/drivers/gpu/drm/panfrost/panfrost_regs.h
+++ b/drivers/gpu/drm/panfrost/panfrost_regs.h
@@ -295,4 +295,7 @@
#define AS_FAULTSTATUS_ACCESS_TYPE_READ (0x2 << 8)
#define AS_FAULTSTATUS_ACCESS_TYPE_WRITE (0x3 << 8)
+#define gpu_write(dev, reg, data) writel(data, dev->iomem + reg)
+#define gpu_read(dev, reg) readl(dev->iomem + reg)
+
#endif
--
2.20.1
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2019-05-29 9:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-29 9:52 [PATCH v3 0/4] drm/panfrost: Expose perf counters to userspace Boris Brezillon
2019-05-29 9:52 ` Boris Brezillon [this message]
2019-05-29 9:52 ` [PATCH v3 2/4] drm/panfrost: Add a module parameter to expose unstable ioctls Boris Brezillon
2019-06-10 14:08 ` Rob Herring
2019-05-29 9:52 ` [PATCH v3 3/4] drm/panfrost: Add an helper to check the GPU generation Boris Brezillon
2019-05-29 9:52 ` [PATCH v3 4/4] drm/panfrost: Expose performance counters through unstable ioctls Boris Brezillon
2019-05-30 22:45 ` kbuild test robot
2019-05-29 15:16 ` [PATCH v3 0/4] drm/panfrost: Expose perf counters to userspace Alyssa Rosenzweig
2019-06-14 15:12 ` Rob Herring
2019-06-14 16:23 ` Boris Brezillon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190529095233.26277-2-boris.brezillon@collabora.com \
--to=boris.brezillon@collabora.com \
--cc=alyssa@rosenzweig.io \
--cc=dri-devel@lists.freedesktop.org \
--cc=emil.velikov@collabora.com \
--cc=kernel@collabora.com \
--cc=robh+dt@kernel.org \
--cc=steven.price@arm.com \
--cc=tomeu@tomeuvizoso.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox