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/vgpu/vgpu.c | |
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/vgpu/vgpu.c')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/vgpu.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/vgpu.c b/drivers/gpu/nvgpu/vgpu/vgpu.c index a88d9e09..02cc5b47 100644 --- a/drivers/gpu/nvgpu/vgpu/vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/vgpu.c | |||
@@ -245,6 +245,9 @@ static void vgpu_init_vars(struct gk20a *g, struct gk20a_platform *platform) | |||
245 | g->ptimer_src_freq = platform->ptimer_src_freq; | 245 | g->ptimer_src_freq = platform->ptimer_src_freq; |
246 | g->can_railgate = platform->can_railgate_init; | 246 | g->can_railgate = platform->can_railgate_init; |
247 | g->railgate_delay = platform->railgate_delay_init; | 247 | g->railgate_delay = platform->railgate_delay_init; |
248 | |||
249 | __nvgpu_set_enabled(g, NVGPU_MM_UNIFY_ADDRESS_SPACES, | ||
250 | platform->unify_address_spaces); | ||
248 | } | 251 | } |
249 | 252 | ||
250 | static int vgpu_init_support(struct platform_device *pdev) | 253 | static int vgpu_init_support(struct platform_device *pdev) |