From 69e0cd3dfd8f39bc8d3529325001dcacd774f669 Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Wed, 27 Aug 2014 18:18:35 +0530 Subject: 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 Reviewed-on: http://git-master/r/488843 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom Tested-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/ltc_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/gk20a/ltc_common.c') diff --git a/drivers/gpu/nvgpu/gk20a/ltc_common.c b/drivers/gpu/nvgpu/gk20a/ltc_common.c index b4e3fc75..d3080db1 100644 --- a/drivers/gpu/nvgpu/gk20a/ltc_common.c +++ b/drivers/gpu/nvgpu/gk20a/ltc_common.c @@ -229,7 +229,7 @@ static void gk20a_ltc_init_cbc(struct gk20a *g, struct gr_gk20a *gr) u64 compbit_store_base_iova; u64 compbit_base_post_divide64; - if (IS_ENABLED(CONFIG_GK20A_PHYS_PAGE_TABLES)) + if (tegra_platform_is_linsim()) compbit_store_base_iova = gr->compbit_store.base_iova; else compbit_store_base_iova = NV_MC_SMMU_VADDR_TRANSLATE( -- cgit v1.2.2