diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/vgpu/gp10b')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/vgpu/gp10b/vgpu_mm_gp10b.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/vgpu/gp10b/vgpu_mm_gp10b.c b/drivers/gpu/nvgpu/common/linux/vgpu/gp10b/vgpu_mm_gp10b.c index 72214d3c..161a69e9 100644 --- a/drivers/gpu/nvgpu/common/linux/vgpu/gp10b/vgpu_mm_gp10b.c +++ b/drivers/gpu/nvgpu/common/linux/vgpu/gp10b/vgpu_mm_gp10b.c | |||
@@ -23,10 +23,10 @@ | |||
23 | #include "gk20a/mm_gk20a.h" | 23 | #include "gk20a/mm_gk20a.h" |
24 | 24 | ||
25 | #include <nvgpu/bug.h> | 25 | #include <nvgpu/bug.h> |
26 | #include <nvgpu/dma.h> | ||
26 | 27 | ||
27 | int vgpu_gp10b_init_mm_setup_hw(struct gk20a *g) | 28 | int vgpu_gp10b_init_mm_setup_hw(struct gk20a *g) |
28 | { | 29 | { |
29 | g->mm.bypass_smmu = true; | ||
30 | g->mm.disable_bigpage = true; | 30 | g->mm.disable_bigpage = true; |
31 | return 0; | 31 | return 0; |
32 | } | 32 | } |
@@ -77,7 +77,7 @@ u64 vgpu_gp10b_locked_gmmu_map(struct vm_gk20a *vm, | |||
77 | 77 | ||
78 | /* FIXME: add support for sparse mappings */ | 78 | /* FIXME: add support for sparse mappings */ |
79 | 79 | ||
80 | if (WARN_ON(!sgt) || WARN_ON(!g->mm.bypass_smmu)) | 80 | if (WARN_ON(!sgt) || WARN_ON(nvgpu_iommuable(g))) |
81 | return 0; | 81 | return 0; |
82 | 82 | ||
83 | if (space_to_skip & (page_size - 1)) | 83 | if (space_to_skip & (page_size - 1)) |