diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2014-08-27 08:48:35 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:11:00 -0400 |
commit | 69e0cd3dfd8f39bc8d3529325001dcacd774f669 (patch) | |
tree | 1b7ed0b7d8e38f4a70a79dfab0852e6a2742f21a /drivers/gpu/nvgpu/gk20a/ltc_gk20a.c | |
parent | e36d080b82aa4f14b3ed22bdf405d705d31094db (diff) |
gpu: nvgpu: manage phys pages at runtime
Current implementation is based on config GK20A_PHYS_PAGE_TABLES
to have APIs to create/free/map/unmap phys pages
Remove this config based implementaion and move the APIs so that
they are called at runtime based on tegra_platform_is_linsim()
In generic APIs, we first check if platform is linsim and if it
is then we forward the call to phys page specific APIs
Change-Id: I23eb6fa6a46b804441f18fc37e2390d938d62515
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/488843
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/ltc_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/ltc_gk20a.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c b/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c index db00fa1a..a966e95c 100644 --- a/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c | |||
@@ -82,7 +82,7 @@ static int gk20a_ltc_init_comptags(struct gk20a *g, struct gr_gk20a *gr) | |||
82 | gk20a_dbg_info("max comptag lines : %d", | 82 | gk20a_dbg_info("max comptag lines : %d", |
83 | max_comptag_lines); | 83 | max_comptag_lines); |
84 | 84 | ||
85 | if (IS_ENABLED(CONFIG_GK20A_PHYS_PAGE_TABLES)) | 85 | if (tegra_platform_is_linsim()) |
86 | err = gk20a_ltc_alloc_phys_cbc(g, compbit_backing_size); | 86 | err = gk20a_ltc_alloc_phys_cbc(g, compbit_backing_size); |
87 | else | 87 | else |
88 | err = gk20a_ltc_alloc_virt_cbc(g, compbit_backing_size); | 88 | err = gk20a_ltc_alloc_virt_cbc(g, compbit_backing_size); |