drm/nouveau/imem/nv50: support pinning objects in BAR2 and returning address
authorBen Skeggs <bskeggs@redhat.com>
Tue, 11 Dec 2018 04:50:02 +0000 (14:50 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 11 Dec 2018 05:37:46 +0000 (15:37 +1000)
commit1786bf56e4180dfd6a51929230e60d11b899032e
tree06b39dbdcbe73f6c8d3aa4b7735f186b31ab5e05
parente4f90a35c9668f8d0469a0160482b1856d07c2b5
drm/nouveau/imem/nv50: support pinning objects in BAR2 and returning address

Various structures are accessed by the GPU through BAR2 for some reason
on newer GPUs.  This commit makes it more convenient to handle.

Will be used for GP100- fault buffers, and GV100- fault method buffers.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/include/nvkm/core/memory.h
drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c