summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nvkm/engine/gr/priv.h
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2019-02-01 13:52:50 +1000
committerBen Skeggs <bskeggs@redhat.com>2019-02-20 09:00:00 +1000
commit169f30b35d66c8d041173ba69e03090fe4caa228 (patch)
treed4eb3630ee7684dfd2344b68d5d5e394b918b5f3 /drivers/gpu/drm/nouveau/nvkm/engine/gr/priv.h
parent8e083686ec90b62ed606542aa707ff917fac3259 (diff)
downloadlinux-169f30b35d66c8d041173ba69e03090fe4caa228.tar.bz2
drm/nouveau/gr/gf100-: expose fecs methods for pausing ctxsw
MMU will need access to these. v2. Apply fix from Rhys Kidd to send correct FECS method for STOP_CTXSW. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvkm/engine/gr/priv.h')
-rw-r--r--drivers/gpu/drm/nouveau/nvkm/engine/gr/priv.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/gr/priv.h b/drivers/gpu/drm/nouveau/nvkm/engine/gr/priv.h
index 66359c23cbce..b8023a6b77a1 100644
--- a/drivers/gpu/drm/nouveau/nvkm/engine/gr/priv.h
+++ b/drivers/gpu/drm/nouveau/nvkm/engine/gr/priv.h
@@ -27,6 +27,10 @@ struct nvkm_gr_func {
*/
u64 (*units)(struct nvkm_gr *);
bool (*chsw_load)(struct nvkm_gr *);
+ struct {
+ int (*pause)(struct nvkm_gr *);
+ int (*resume)(struct nvkm_gr *);
+ } ctxsw;
struct nvkm_sclass sclass[];
};