diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/gr_gm20b.c | 4 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/hw_fb_gm20b.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c index c5de8f60..2efb7228 100644 --- a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c | |||
@@ -30,6 +30,10 @@ static void gr_gm20b_init_gpc_mmu(struct gk20a *g) | |||
30 | 30 | ||
31 | gk20a_dbg_info("initialize gpc mmu"); | 31 | gk20a_dbg_info("initialize gpc mmu"); |
32 | 32 | ||
33 | /* Bypass MMU check for non-secure boot. For | ||
34 | * secure-boot,this register write has no-effect */ | ||
35 | gk20a_writel(g, fb_priv_mmu_phy_secure_r(), 0xffffffff); | ||
36 | |||
33 | temp = gk20a_readl(g, fb_mmu_ctrl_r()); | 37 | temp = gk20a_readl(g, fb_mmu_ctrl_r()); |
34 | temp &= gr_gpcs_pri_mmu_ctrl_vm_pg_size_m() | | 38 | temp &= gr_gpcs_pri_mmu_ctrl_vm_pg_size_m() | |
35 | gr_gpcs_pri_mmu_ctrl_use_pdb_big_page_size_m() | | 39 | gr_gpcs_pri_mmu_ctrl_use_pdb_big_page_size_m() | |
diff --git a/drivers/gpu/nvgpu/gm20b/hw_fb_gm20b.h b/drivers/gpu/nvgpu/gm20b/hw_fb_gm20b.h index f3ad6f26..39259516 100644 --- a/drivers/gpu/nvgpu/gm20b/hw_fb_gm20b.h +++ b/drivers/gpu/nvgpu/gm20b/hw_fb_gm20b.h | |||
@@ -58,6 +58,10 @@ static inline u32 fb_mmu_ctrl_r(void) | |||
58 | { | 58 | { |
59 | return 0x00100c80; | 59 | return 0x00100c80; |
60 | } | 60 | } |
61 | static inline u32 fb_priv_mmu_phy_secure_r(void) | ||
62 | { | ||
63 | return 0x00100ce4; | ||
64 | } | ||
61 | static inline u32 fb_mmu_ctrl_vm_pg_size_f(u32 v) | 65 | static inline u32 fb_mmu_ctrl_vm_pg_size_f(u32 v) |
62 | { | 66 | { |
63 | return (v & 0x1) << 0; | 67 | return (v & 0x1) << 0; |