aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/v3d/v3d_gem.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2019-04-18 17:10:13 -0700
committerEric Anholt <eric@anholt.net>2019-05-16 09:24:43 -0700
commit1ba9d7cbc4530ae35eb1ebbd3c5e59d0c587aefa (patch)
tree7892fa790b8101fabc2331414fceb742aea6f5c7 /drivers/gpu/drm/v3d/v3d_gem.c
parentdrm/v3d: Set the correct DMA mask according to the MMU's limits. (diff)
downloadlinux-dev-1ba9d7cbc4530ae35eb1ebbd3c5e59d0c587aefa.tar.xz
linux-dev-1ba9d7cbc4530ae35eb1ebbd3c5e59d0c587aefa.zip
drm/v3d: Dump V3D error debug registers in debugfs, and one at reset.
Looking at a hang recently, I noticed these registers that might tell me if something obvious was wrong. They didn't help in this case, but keep it around for the future. Signed-off-by: Eric Anholt <eric@anholt.net> Link: https://patchwork.freedesktop.org/patch/msgid/20190419001014.23579-3-eric@anholt.net Reviewed-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Diffstat (limited to 'drivers/gpu/drm/v3d/v3d_gem.c')
-rw-r--r--drivers/gpu/drm/v3d/v3d_gem.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/v3d/v3d_gem.c b/drivers/gpu/drm/v3d/v3d_gem.c
index f736e021467a..27e0f87075d9 100644
--- a/drivers/gpu/drm/v3d/v3d_gem.c
+++ b/drivers/gpu/drm/v3d/v3d_gem.c
@@ -109,7 +109,9 @@ v3d_reset(struct v3d_dev *v3d)
{
struct drm_device *dev = &v3d->drm;
- DRM_ERROR("Resetting GPU.\n");
+ DRM_DEV_ERROR(dev->dev, "Resetting GPU for hang.\n");
+ DRM_DEV_ERROR(dev->dev, "V3D_ERR_STAT: 0x%08x\n",
+ V3D_CORE_READ(0, V3D_ERR_STAT));
trace_v3d_reset_begin(dev);
/* XXX: only needed for safe powerdown, not reset. */