summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/include/nvkm/subdev/bar.h
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2017-10-31 18:56:19 +0100
committerBen Skeggs <bskeggs@redhat.com>2017-11-02 04:32:18 +0100
commite988952eefd923a40cea1077bcb939025dafb0f1 (patch)
tree6791d80c4d08434c0dcc63acb1417141dace5245 /drivers/gpu/drm/nouveau/include/nvkm/subdev/bar.h
parentdrm/nouveau/bar: expose interface to bar2 initialisation (diff)
downloadlinux-e988952eefd923a40cea1077bcb939025dafb0f1.tar.xz
linux-e988952eefd923a40cea1077bcb939025dafb0f1.zip
drm/nouveau/bar: expose interface to bar2 teardown
Will prevent spurious MMU fault interrupts if something decides to touch BAR1 after we've unloaded the driver. Exposed external to BAR so that INSTMEM can use it to better control the suspend/resume fast-path access. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/include/nvkm/subdev/bar.h')
-rw-r--r--drivers/gpu/drm/nouveau/include/nvkm/subdev/bar.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/include/nvkm/subdev/bar.h b/drivers/gpu/drm/nouveau/include/nvkm/subdev/bar.h
index eb9ad379f9e1..11427d3d6173 100644
--- a/drivers/gpu/drm/nouveau/include/nvkm/subdev/bar.h
+++ b/drivers/gpu/drm/nouveau/include/nvkm/subdev/bar.h
@@ -15,6 +15,7 @@ struct nvkm_bar {
};
void nvkm_bar_bar2_init(struct nvkm_device *);
+void nvkm_bar_bar2_fini(struct nvkm_device *);
void nvkm_bar_flush(struct nvkm_bar *);
struct nvkm_vm *nvkm_bar_kmap(struct nvkm_bar *);
int nvkm_bar_umap(struct nvkm_bar *, u64 size, int type, struct nvkm_vma *);