summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/fb_gm20b.h
diff options
context:
space:
mode:
authorSami Kiminki <skiminki@nvidia.com>2017-11-28 11:12:12 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-11-30 21:57:19 -0500
commitd73ad6c07da23636c00c60effeeb53ea35847ee8 (patch)
treefc92c533909c84af308b10eb91a87e455e82dae4 /drivers/gpu/nvgpu/gm20b/fb_gm20b.h
parent86a94230c6d57803d572bfba726e1b02db0e3dc3 (diff)
gpu: nvgpu: Alignment check for compressible fixed-address mappings
Add an alignment check for compressible-kind fixed-address mappings. If we're using page size smaller than the comptag line coverage window, the GPU VA and the physical buffer offset must be aligned in respect to that window. Bug 1995897 Bug 2011640 Bug 2011668 Change-Id: If68043ee2828d54b9398d77553d10d35cc319236 Signed-off-by: Sami Kiminki <skiminki@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1606439 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/fb_gm20b.h')
-rw-r--r--drivers/gpu/nvgpu/gm20b/fb_gm20b.h1
1 files changed, 1 insertions, 0 deletions
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);