summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/gk104.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2017-11-01 03:56:19 +1000
committerBen Skeggs <bskeggs@redhat.com>2017-11-02 13:32:31 +1000
commit68af607d269cd8ea74d789f256ab0a522e5dad4f (patch)
tree1e21bc56ee1106b6c04d635801e91d043872ef0c /drivers/gpu/drm/nouveau/nvkm/subdev/mmu/gk104.c
parent0766116157bf10a0680f4dc7530717e3b4d1a31e (diff)
downloadblackbird-obmc-linux-68af607d269cd8ea74d789f256ab0a522e5dad4f.tar.gz
blackbird-obmc-linux-68af607d269cd8ea74d789f256ab0a522e5dad4f.zip
drm/nouveau/mmu/gf100-: type-based vram allocation and bar mapping
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvkm/subdev/mmu/gk104.c')
-rw-r--r--drivers/gpu/drm/nouveau/nvkm/subdev/mmu/gk104.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/gk104.c b/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/gk104.c
index 95f07acaed2f..53df3dd2d104 100644
--- a/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/gk104.c
+++ b/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/gk104.c
@@ -19,6 +19,7 @@
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
+#include "mem.h"
#include "vmm.h"
#include <nvif/class.h>
@@ -28,6 +29,7 @@ gk104_mmu = {
.limit = (1ULL << 40),
.dma_bits = 40,
.lpg_shift = 17,
+ .mem = {{ -1, 0, NVIF_CLASS_MEM_GF100}, gf100_mem_new, gf100_mem_map },
.vmm = {{ -1, -1, NVIF_CLASS_VMM_GF100}, gk104_vmm_new },
.kind = gf100_mmu_kind,
.kind_sys = true,
OpenPOWER on IntegriCloud