diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/fb_gm20b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/fb_gm20b.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/fb_gm20b.c b/drivers/gpu/nvgpu/gm20b/fb_gm20b.c index 34ad6418..a2aa81d8 100644 --- a/drivers/gpu/nvgpu/gm20b/fb_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/fb_gm20b.c | |||
@@ -82,9 +82,18 @@ void gm20b_init_kind_attr(void) | |||
82 | } | 82 | } |
83 | } | 83 | } |
84 | 84 | ||
85 | static void gm20b_fb_set_mmu_page_size(struct gk20a *g) | ||
86 | { | ||
87 | /* set large page size in fb */ | ||
88 | u32 fb_mmu_ctrl = gk20a_readl(g, fb_mmu_ctrl_r()); | ||
89 | fb_mmu_ctrl |= fb_mmu_ctrl_use_pdb_big_page_size_true_f(); | ||
90 | gk20a_writel(g, fb_mmu_ctrl_r(), fb_mmu_ctrl); | ||
91 | } | ||
92 | |||
85 | void gm20b_init_fb(struct gpu_ops *gops) | 93 | void gm20b_init_fb(struct gpu_ops *gops) |
86 | { | 94 | { |
87 | gops->fb.init_fs_state = fb_gm20b_init_fs_state; | 95 | gops->fb.init_fs_state = fb_gm20b_init_fs_state; |
96 | gops->fb.set_mmu_page_size = gm20b_fb_set_mmu_page_size; | ||
88 | gm20b_init_uncompressed_kind_map(); | 97 | gm20b_init_uncompressed_kind_map(); |
89 | gm20b_init_kind_attr(); | 98 | gm20b_init_kind_attr(); |
90 | } | 99 | } |