summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/fb_gm20b.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2015-03-31 17:37:21 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-04-04 22:17:37 -0400
commit9974201d610c7f3cc43e34a9db942da0f71917c4 (patch)
tree024849097e38631be2d0602b08c86e5afc7b63e8 /drivers/gpu/nvgpu/gm20b/fb_gm20b.c
parent9f4405aeb532692b215337985fb371e859817a88 (diff)
gpu: nvgpu: Per-SoC compressible page size
Define smallest compressible page size per SoC, and use that for determining if a compressible kind should be downgraded to uncompressed. Bug 1605769 Change-Id: I7c9991ba0ae82fe533641f045e506c0b01a10d8b Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/724492
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/fb_gm20b.c')
-rw-r--r--drivers/gpu/nvgpu/gm20b/fb_gm20b.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/fb_gm20b.c b/drivers/gpu/nvgpu/gm20b/fb_gm20b.c
index 666d27e9..746ed42f 100644
--- a/drivers/gpu/nvgpu/gm20b/fb_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/fb_gm20b.c
@@ -95,6 +95,11 @@ static int gm20b_fb_compression_page_size(struct gk20a *g)
95 return SZ_128K; 95 return SZ_128K;
96} 96}
97 97
98static int gm20b_fb_compressible_page_size(struct gk20a *g)
99{
100 return SZ_64K;
101}
102
98static void gm20b_fb_dump_vpr_wpr_info(struct gk20a *g) 103static void gm20b_fb_dump_vpr_wpr_info(struct gk20a *g)
99{ 104{
100 u32 val; 105 u32 val;
@@ -129,6 +134,7 @@ void gm20b_init_fb(struct gpu_ops *gops)
129 gops->fb.init_fs_state = fb_gm20b_init_fs_state; 134 gops->fb.init_fs_state = fb_gm20b_init_fs_state;
130 gops->fb.set_mmu_page_size = gm20b_fb_set_mmu_page_size; 135 gops->fb.set_mmu_page_size = gm20b_fb_set_mmu_page_size;
131 gops->fb.compression_page_size = gm20b_fb_compression_page_size; 136 gops->fb.compression_page_size = gm20b_fb_compression_page_size;
137 gops->fb.compressible_page_size = gm20b_fb_compressible_page_size;
132 gops->fb.dump_vpr_wpr_info = gm20b_fb_dump_vpr_wpr_info; 138 gops->fb.dump_vpr_wpr_info = gm20b_fb_dump_vpr_wpr_info;
133 gm20b_init_uncompressed_kind_map(); 139 gm20b_init_uncompressed_kind_map();
134 gm20b_init_kind_attr(); 140 gm20b_init_kind_attr();