diff options
author | Alex Waterman <alexw@nvidia.com> | 2017-05-23 19:06:48 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-05-30 16:24:35 -0400 |
commit | 8d6b5cc349643c5e96384a8dbc27afc705bc5bfc (patch) | |
tree | c3cb1335c0da0aef85c6a54d286b2bc159fd9460 /drivers/gpu/nvgpu/common/linux | |
parent | 66a2511a366113fa4d42dc500c9df9b348d9f208 (diff) |
gpu: nvgpu: Move unify_address_spaces to flags
Use the enabled flags API to handle the unify_address_sapce spaces
flag.
JIRA NVGPU-84
JIRA NVGPU-12
JIRA NVGPU-30
Change-Id: Id1b59aed4b349d6067615991597d534936cc5ce9
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/1488307
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/driver_common.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/driver_common.c b/drivers/gpu/nvgpu/common/linux/driver_common.c index 0d29223f..80e7698b 100644 --- a/drivers/gpu/nvgpu/common/linux/driver_common.c +++ b/drivers/gpu/nvgpu/common/linux/driver_common.c | |||
@@ -20,6 +20,7 @@ | |||
20 | #include <nvgpu/nvgpu_common.h> | 20 | #include <nvgpu/nvgpu_common.h> |
21 | #include <nvgpu/soc.h> | 21 | #include <nvgpu/soc.h> |
22 | #include <nvgpu/bug.h> | 22 | #include <nvgpu/bug.h> |
23 | #include <nvgpu/enabled.h> | ||
23 | 24 | ||
24 | #include "gk20a/gk20a_scale.h" | 25 | #include "gk20a/gk20a_scale.h" |
25 | #include "gk20a/gk20a.h" | 26 | #include "gk20a/gk20a.h" |
@@ -133,6 +134,9 @@ static void nvgpu_init_mm_vars(struct gk20a *g) | |||
133 | g->mm.disable_bigpage = platform->disable_bigpage; | 134 | g->mm.disable_bigpage = platform->disable_bigpage; |
134 | g->mm.vidmem_is_vidmem = platform->vidmem_is_vidmem; | 135 | g->mm.vidmem_is_vidmem = platform->vidmem_is_vidmem; |
135 | 136 | ||
137 | __nvgpu_set_enabled(g, NVGPU_MM_UNIFY_ADDRESS_SPACES, | ||
138 | platform->unify_address_spaces); | ||
139 | |||
136 | nvgpu_mutex_init(&g->mm.tlb_lock); | 140 | nvgpu_mutex_init(&g->mm.tlb_lock); |
137 | nvgpu_mutex_init(&g->mm.priv_lock); | 141 | nvgpu_mutex_init(&g->mm.priv_lock); |
138 | } | 142 | } |