summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/fb_gm20b.h
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2018-07-06 15:37:10 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-07-09 20:45:30 -0400
commit876953fbb85f9440bbcc1d7d59435593886b53c4 (patch)
tree9690ee5598b83fcfa222592eeb2e3bb45389f3a6 /drivers/gpu/nvgpu/gm20b/fb_gm20b.h
parentda03aa782535e77e221a3c27b0676fe9c1c7980c (diff)
gpu: nvgpu: Move FB MMU query to FB HAL
Move queries of FB MMU configuration to FB HAL. Also use g->ltc_count instead of reading the number of LTCs from FB. These changes together remove last direct uses of FB registers from GR. JIRA NVGPU-714 Change-Id: I1b4b46fc2f636f5c1904e4174040a47a27948999 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1773076 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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/fb_gm20b.h b/drivers/gpu/nvgpu/gm20b/fb_gm20b.h
index 1d1d5899..1a5e9187 100644
--- a/drivers/gpu/nvgpu/gm20b/fb_gm20b.h
+++ b/drivers/gpu/nvgpu/gm20b/fb_gm20b.h
@@ -29,6 +29,10 @@ struct gk20a;
29void fb_gm20b_init_fs_state(struct gk20a *g); 29void fb_gm20b_init_fs_state(struct gk20a *g);
30void gm20b_fb_set_mmu_page_size(struct gk20a *g); 30void 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);
32u32 gm20b_fb_mmu_ctrl(struct gk20a *g);
33u32 gm20b_fb_mmu_debug_ctrl(struct gk20a *g);
34u32 gm20b_fb_mmu_debug_wr(struct gk20a *g);
35u32 gm20b_fb_mmu_debug_rd(struct gk20a *g);
32unsigned int gm20b_fb_compression_page_size(struct gk20a *g); 36unsigned int gm20b_fb_compression_page_size(struct gk20a *g);
33unsigned int gm20b_fb_compressible_page_size(struct gk20a *g); 37unsigned int gm20b_fb_compressible_page_size(struct gk20a *g);
34u32 gm20b_fb_compression_align_mask(struct gk20a *g); 38u32 gm20b_fb_compression_align_mask(struct gk20a *g);