diff options
author | Seshendra Gadagottu <sgadagottu@nvidia.com> | 2016-04-19 17:03:52 -0400 |
---|---|---|
committer | Ken Adams <kadams@nvidia.com> | 2016-04-23 08:21:11 -0400 |
commit | e19ee13cc77c4770fabc6917b421f24cdaefec8c (patch) | |
tree | 14ac41930be1e69da33f8ac38cc2fd7e4a75d725 /drivers | |
parent | 25cdda215f04ec02c9d430ec582740ba7d4b846d (diff) |
gpu: nvgpu: gv11b: set soc memory aperture type
For gv11b, set platform data for soc memory aperture type
to sysmem instead of vidmem.
Bug 1749338
Change-Id: I6632e79e3ca68c437e5b04f6865f8f0b6f2943ce
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/1129169
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ken Adams <kadams@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/platform_gv11b_tegra.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/platform_gv11b_tegra.c b/drivers/gpu/nvgpu/gv11b/platform_gv11b_tegra.c index 322bebc8..37b49106 100644 --- a/drivers/gpu/nvgpu/gv11b/platform_gv11b_tegra.c +++ b/drivers/gpu/nvgpu/gv11b/platform_gv11b_tegra.c | |||
@@ -76,6 +76,8 @@ static int gv11b_tegra_probe(struct device *dev) | |||
76 | platform->g->gr.t18x.ctx_vars.force_preemption_gfxp = false; | 76 | platform->g->gr.t18x.ctx_vars.force_preemption_gfxp = false; |
77 | platform->g->gr.t18x.ctx_vars.force_preemption_cilp = false; | 77 | platform->g->gr.t18x.ctx_vars.force_preemption_cilp = false; |
78 | 78 | ||
79 | /* soc memory accessed as system memory aperture */ | ||
80 | platform->g->mm.vidmem_is_vidmem = platform->vidmem_is_vidmem; | ||
79 | 81 | ||
80 | gv11b_tegra_get_clocks(dev); | 82 | gv11b_tegra_get_clocks(dev); |
81 | 83 | ||
@@ -146,4 +148,8 @@ struct gk20a_platform t19x_gpu_tegra_platform = { | |||
146 | 148 | ||
147 | .default_big_page_size = SZ_64K, | 149 | .default_big_page_size = SZ_64K, |
148 | 150 | ||
151 | .soc_name = "tegra19x", | ||
152 | |||
153 | .vidmem_is_vidmem = true, | ||
154 | |||
149 | }; | 155 | }; |