summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/mm/gmmu.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/mm/gmmu.c')
-rw-r--r--drivers/gpu/nvgpu/common/mm/gmmu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/mm/gmmu.c b/drivers/gpu/nvgpu/common/mm/gmmu.c
index 695347bc..dc91cc2f 100644
--- a/drivers/gpu/nvgpu/common/mm/gmmu.c
+++ b/drivers/gpu/nvgpu/common/mm/gmmu.c
@@ -18,6 +18,7 @@
18#include <nvgpu/dma.h> 18#include <nvgpu/dma.h>
19#include <nvgpu/gmmu.h> 19#include <nvgpu/gmmu.h>
20#include <nvgpu/nvgpu_mem.h> 20#include <nvgpu/nvgpu_mem.h>
21#include <nvgpu/enabled.h>
21 22
22#include "gk20a/gk20a.h" 23#include "gk20a/gk20a.h"
23#include "gk20a/mm_gk20a.h" 24#include "gk20a/mm_gk20a.h"
@@ -74,7 +75,7 @@ static int nvgpu_alloc_gmmu_pages(struct vm_gk20a *vm, u32 order,
74 u32 len = num_pages * PAGE_SIZE; 75 u32 len = num_pages * PAGE_SIZE;
75 int err; 76 int err;
76 77
77 if (g->is_fmodel) 78 if (nvgpu_is_enabled(g, NVGPU_IS_FMODEL))
78 return alloc_gmmu_phys_pages(vm, order, entry); 79 return alloc_gmmu_phys_pages(vm, order, entry);
79 80
80 /* 81 /*