diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2018-07-06 15:37:10 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-07-09 20:45:30 -0400 |
commit | 876953fbb85f9440bbcc1d7d59435593886b53c4 (patch) | |
tree | 9690ee5598b83fcfa222592eeb2e3bb45389f3a6 /drivers/gpu/nvgpu/gm20b/fb_gm20b.h | |
parent | da03aa782535e77e221a3c27b0676fe9c1c7980c (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.h | 4 |
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; | |||
29 | void fb_gm20b_init_fs_state(struct gk20a *g); | 29 | void fb_gm20b_init_fs_state(struct gk20a *g); |
30 | void gm20b_fb_set_mmu_page_size(struct gk20a *g); | 30 | void gm20b_fb_set_mmu_page_size(struct gk20a *g); |
31 | bool gm20b_fb_set_use_full_comp_tag_line(struct gk20a *g); | 31 | bool gm20b_fb_set_use_full_comp_tag_line(struct gk20a *g); |
32 | u32 gm20b_fb_mmu_ctrl(struct gk20a *g); | ||
33 | u32 gm20b_fb_mmu_debug_ctrl(struct gk20a *g); | ||
34 | u32 gm20b_fb_mmu_debug_wr(struct gk20a *g); | ||
35 | u32 gm20b_fb_mmu_debug_rd(struct gk20a *g); | ||
32 | unsigned int gm20b_fb_compression_page_size(struct gk20a *g); | 36 | unsigned int gm20b_fb_compression_page_size(struct gk20a *g); |
33 | unsigned int gm20b_fb_compressible_page_size(struct gk20a *g); | 37 | unsigned int gm20b_fb_compressible_page_size(struct gk20a *g); |
34 | u32 gm20b_fb_compression_align_mask(struct gk20a *g); | 38 | u32 gm20b_fb_compression_align_mask(struct gk20a *g); |