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.c | |
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.c')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/fb_gm20b.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/fb_gm20b.c b/drivers/gpu/nvgpu/gm20b/fb_gm20b.c index 2ca8d86c..37a7944b 100644 --- a/drivers/gpu/nvgpu/gm20b/fb_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/fb_gm20b.c | |||
@@ -68,6 +68,26 @@ bool gm20b_fb_set_use_full_comp_tag_line(struct gk20a *g) | |||
68 | return true; | 68 | return true; |
69 | } | 69 | } |
70 | 70 | ||
71 | u32 gm20b_fb_mmu_ctrl(struct gk20a *g) | ||
72 | { | ||
73 | return gk20a_readl(g, fb_mmu_ctrl_r()); | ||
74 | } | ||
75 | |||
76 | u32 gm20b_fb_mmu_debug_ctrl(struct gk20a *g) | ||
77 | { | ||
78 | return gk20a_readl(g, fb_mmu_debug_ctrl_r()); | ||
79 | } | ||
80 | |||
81 | u32 gm20b_fb_mmu_debug_wr(struct gk20a *g) | ||
82 | { | ||
83 | return gk20a_readl(g, fb_mmu_debug_wr_r()); | ||
84 | } | ||
85 | |||
86 | u32 gm20b_fb_mmu_debug_rd(struct gk20a *g) | ||
87 | { | ||
88 | return gk20a_readl(g, fb_mmu_debug_rd_r()); | ||
89 | } | ||
90 | |||
71 | unsigned int gm20b_fb_compression_page_size(struct gk20a *g) | 91 | unsigned int gm20b_fb_compression_page_size(struct gk20a *g) |
72 | { | 92 | { |
73 | return SZ_128K; | 93 | return SZ_128K; |