diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-03-15 17:08:32 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-03-17 11:44:03 -0400 |
commit | ca762e42205febba72ce063417e1ac598610941d (patch) | |
tree | caff32adafb4c09ed335756da3e8beb7b87fe47b /drivers/gpu/nvgpu/gk20a/fb_gk20a.h | |
parent | 0742f4e7032aabf44a31792330fcd4f55f4540f7 (diff) |
gpu: nvgpu: Move all FB programming to FB HAL
Move all programming of FB to fb_*.c files, and remove the inclusion
of FB hardware headers from other files.
TLB invalidate function took previously a pointer to VM, but the new
API takes only a PDB mem_desc, because FB does not need to know about
higher level VM.
GPC MMU is programmed from the same function as FB MMU, so added
dependency to GR hardware header to FB.
GP106 ACR was also triggering a VPR fetch, but that's not applicable
to dGPU, so removed that call.
Change-Id: I4eb69377ac3745da205907626cf60948b7c5392a
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1321516
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/fb_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fb_gk20a.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fb_gk20a.h b/drivers/gpu/nvgpu/gk20a/fb_gk20a.h index e5ea9e42..a808ba6d 100644 --- a/drivers/gpu/nvgpu/gk20a/fb_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/fb_gk20a.h | |||
@@ -13,8 +13,13 @@ | |||
13 | 13 | ||
14 | #ifndef FB_GK20A_H | 14 | #ifndef FB_GK20A_H |
15 | #define FB_GK20A_H | 15 | #define FB_GK20A_H |
16 | |||
16 | struct gk20a; | 17 | struct gk20a; |
18 | struct mem_desc; | ||
17 | 19 | ||
18 | void gk20a_init_fb(struct gpu_ops *gops); | 20 | void gk20a_init_fb(struct gpu_ops *gops); |
19 | void fb_gk20a_reset(struct gk20a *g); | 21 | void fb_gk20a_reset(struct gk20a *g); |
22 | void gk20a_fb_init_hw(struct gk20a *g); | ||
23 | void gk20a_fb_tlb_invalidate(struct gk20a *g, struct mem_desc *pdb); | ||
24 | |||
20 | #endif | 25 | #endif |