diff options
author | Ben Skeggs | 2017-10-31 18:56:19 +0100 |
---|---|---|
committer | Ben Skeggs | 2017-11-02 04:32:18 +0100 |
commit | 48fe02478a0ddb89930f3595f8217fa2dfd98796 (patch) | |
tree | eb9a08beed1ec56698dcd792fca25b422e408e5b /drivers/gpu/drm/nouveau/nvkm/subdev/bar/priv.h | |
parent | drm/nouveau/bar: implement bar1 teardown (diff) | |
download | kernel-qcow2-linux-48fe02478a0ddb89930f3595f8217fa2dfd98796.tar.gz kernel-qcow2-linux-48fe02478a0ddb89930f3595f8217fa2dfd98796.tar.xz kernel-qcow2-linux-48fe02478a0ddb89930f3595f8217fa2dfd98796.zip |
drm/nouveau/bar: expose interface to bar2 initialisation
If we want to be able to hit the instmem fast-path in a few trickier cases,
we need to be more flexible with when we can initialise BAR2 access.
There's probably a decent case to be made for merging BAR/INSTMEM into BUS,
but that's something to ponder another day.
Flushes have been added after the write to bind the instance block,
as later commits will reveal the need for them.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvkm/subdev/bar/priv.h')
-rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/subdev/bar/priv.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/bar/priv.h b/drivers/gpu/drm/nouveau/nvkm/subdev/bar/priv.h index d130aab01aca..8c9c897dec5d 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/bar/priv.h +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/bar/priv.h @@ -15,7 +15,7 @@ struct nvkm_bar_func { void (*init)(struct nvkm_bar *); void (*fini)(struct nvkm_bar *); void (*wait)(struct nvkm_bar *); - } bar1; + } bar1, bar2; struct nvkm_vm *(*kmap)(struct nvkm_bar *); int (*umap)(struct nvkm_bar *, u64 size, int type, struct nvkm_vma *); |