summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_chan.h
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2016-11-05 04:31:25 +0100
committerBen Skeggs <bskeggs@redhat.com>2017-02-17 08:38:09 +0100
commitd8cc37d878d695fc2a88b4777cdfea8bca9fdcb5 (patch)
tree127df059617ef55e364d4d5b68d2eddbc666c4f2 /drivers/gpu/drm/nouveau/nouveau_chan.h
parentdrm/nouveau/fifo/gf100-: provide notification to user if channel is killed (diff)
downloadlinux-d8cc37d878d695fc2a88b4777cdfea8bca9fdcb5.tar.xz
linux-d8cc37d878d695fc2a88b4777cdfea8bca9fdcb5.zip
drm/nouveau: request notifications for channels that have been killed
These will be used to improve error recovery behaviour. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_chan.h')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_chan.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_chan.h b/drivers/gpu/drm/nouveau/nouveau_chan.h
index 48062c94f36d..46b947ba1cf4 100644
--- a/drivers/gpu/drm/nouveau/nouveau_chan.h
+++ b/drivers/gpu/drm/nouveau/nouveau_chan.h
@@ -1,7 +1,7 @@
#ifndef __NOUVEAU_CHAN_H__
#define __NOUVEAU_CHAN_H__
-
#include <nvif/object.h>
+#include <nvif/notify.h>
struct nvif_device;
struct nouveau_channel {
@@ -38,6 +38,9 @@ struct nouveau_channel {
u32 user_put;
struct nvif_object user;
+
+ struct nvif_notify kill;
+ atomic_t killed;
};