diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2018-07-06 13:03:31 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-07-09 20:45:21 -0400 |
commit | da03aa782535e77e221a3c27b0676fe9c1c7980c (patch) | |
tree | cf250f2257b46f7d53c3ddeed4f115c75d9259f6 /drivers/gpu/nvgpu/gm20b/gr_gm20b.c | |
parent | ad3b170f43dbd5ddb2698c5a193968ae1e584491 (diff) |
gpu: nvgpu: Move programming FB phys access to FB
FB physical access register for simulation was programmed in GR
implementation. Move it to FB where it belongs.
JIRA NVGPU-714
Change-Id: Ic5146a61c7d45eadffdb4f3b6b08906bfcdbc224
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1772915
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/gr_gm20b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/gr_gm20b.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c index f9eb97ce..85da0d35 100644 --- a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c | |||
@@ -49,11 +49,6 @@ void gr_gm20b_init_gpc_mmu(struct gk20a *g) | |||
49 | 49 | ||
50 | nvgpu_log_info(g, "initialize gpc mmu"); | 50 | nvgpu_log_info(g, "initialize gpc mmu"); |
51 | 51 | ||
52 | if (!nvgpu_is_enabled(g, NVGPU_SEC_PRIVSECURITY)) { | ||
53 | /* Bypass MMU check for non-secure boot. For | ||
54 | * secure-boot,this register write has no-effect */ | ||
55 | gk20a_writel(g, fb_priv_mmu_phy_secure_r(), 0xffffffff); | ||
56 | } | ||
57 | temp = gk20a_readl(g, fb_mmu_ctrl_r()); | 52 | temp = gk20a_readl(g, fb_mmu_ctrl_r()); |
58 | temp &= gr_gpcs_pri_mmu_ctrl_vm_pg_size_m() | | 53 | temp &= gr_gpcs_pri_mmu_ctrl_vm_pg_size_m() | |
59 | gr_gpcs_pri_mmu_ctrl_use_pdb_big_page_size_m() | | 54 | gr_gpcs_pri_mmu_ctrl_use_pdb_big_page_size_m() | |