summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b')
-rw-r--r--drivers/gpu/nvgpu/gm20b/fb_gm20b.c5
-rw-r--r--drivers/gpu/nvgpu/gm20b/fb_gm20b.h1
-rw-r--r--drivers/gpu/nvgpu/gm20b/hal_gm20b.c1
3 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/fb_gm20b.c b/drivers/gpu/nvgpu/gm20b/fb_gm20b.c
index 1f8cc326..0157aa7a 100644
--- a/drivers/gpu/nvgpu/gm20b/fb_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/fb_gm20b.c
@@ -70,6 +70,11 @@ unsigned int gm20b_fb_compressible_page_size(struct gk20a *g)
70 return SZ_64K; 70 return SZ_64K;
71} 71}
72 72
73u32 gm20b_fb_compression_align_mask(struct gk20a *g)
74{
75 return SZ_64K - 1;
76}
77
73void gm20b_fb_dump_vpr_wpr_info(struct gk20a *g) 78void gm20b_fb_dump_vpr_wpr_info(struct gk20a *g)
74{ 79{
75 u32 val; 80 u32 val;
diff --git a/drivers/gpu/nvgpu/gm20b/fb_gm20b.h b/drivers/gpu/nvgpu/gm20b/fb_gm20b.h
index 32d36f57..1d1d5899 100644
--- a/drivers/gpu/nvgpu/gm20b/fb_gm20b.h
+++ b/drivers/gpu/nvgpu/gm20b/fb_gm20b.h
@@ -31,6 +31,7 @@ void gm20b_fb_set_mmu_page_size(struct gk20a *g);
31bool gm20b_fb_set_use_full_comp_tag_line(struct gk20a *g); 31bool gm20b_fb_set_use_full_comp_tag_line(struct gk20a *g);
32unsigned int gm20b_fb_compression_page_size(struct gk20a *g); 32unsigned int gm20b_fb_compression_page_size(struct gk20a *g);
33unsigned int gm20b_fb_compressible_page_size(struct gk20a *g); 33unsigned int gm20b_fb_compressible_page_size(struct gk20a *g);
34u32 gm20b_fb_compression_align_mask(struct gk20a *g);
34void gm20b_fb_dump_vpr_wpr_info(struct gk20a *g); 35void gm20b_fb_dump_vpr_wpr_info(struct gk20a *g);
35void gm20b_fb_read_wpr_info(struct gk20a *g, struct wpr_carveout_info *inf); 36void gm20b_fb_read_wpr_info(struct gk20a *g, struct wpr_carveout_info *inf);
36int gm20b_fb_vpr_info_fetch(struct gk20a *g); 37int gm20b_fb_vpr_info_fetch(struct gk20a *g);
diff --git a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c
index 920a3e9b..3ef11d11 100644
--- a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c
@@ -321,6 +321,7 @@ static const struct gpu_ops gm20b_ops = {
321 gm20b_fb_set_use_full_comp_tag_line, 321 gm20b_fb_set_use_full_comp_tag_line,
322 .compression_page_size = gm20b_fb_compression_page_size, 322 .compression_page_size = gm20b_fb_compression_page_size,
323 .compressible_page_size = gm20b_fb_compressible_page_size, 323 .compressible_page_size = gm20b_fb_compressible_page_size,
324 .compression_align_mask = gm20b_fb_compression_align_mask,
324 .vpr_info_fetch = gm20b_fb_vpr_info_fetch, 325 .vpr_info_fetch = gm20b_fb_vpr_info_fetch,
325 .dump_vpr_wpr_info = gm20b_fb_dump_vpr_wpr_info, 326 .dump_vpr_wpr_info = gm20b_fb_dump_vpr_wpr_info,
326 .read_wpr_info = gm20b_fb_read_wpr_info, 327 .read_wpr_info = gm20b_fb_read_wpr_info,