diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2018-09-28 04:36:15 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-09-29 02:54:51 -0400 |
commit | 7a033af6602258b2f2c738a7836d17562b17d8b8 (patch) | |
tree | e8688f79b47ca2ae83742d4a0a99c4976c9ce1e5 /drivers/gpu/nvgpu/gk20a | |
parent | f22ea339b032dff13f281d4a468c9f83d5913110 (diff) |
gpu: nvgpu: remove VPR HALs from dGPUs
gops.fb.dump_vpr_wpr_info() accesses both VPR and WPR registers.
Split this into two different HALs gops.fb.dump_vpr_info() and
gops.fb.dump_wpr_info()
Also unset HALs accessing VPR registers on dGPUs
We don't support VPR on dGPUs
Remove fb_mmu_vpr_info_r() register and all its accessors from
dGPU headers
Bug 2173122
Change-Id: I5b2712f8c5389e422a84c375a7e836add48bfd1c
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1850947
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c index b642075e..644531f1 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c | |||
@@ -468,8 +468,11 @@ int gk20a_mm_fb_flush(struct gk20a *g) | |||
468 | } while (!nvgpu_timeout_expired(&timeout)); | 468 | } while (!nvgpu_timeout_expired(&timeout)); |
469 | 469 | ||
470 | if (nvgpu_timeout_peek_expired(&timeout)) { | 470 | if (nvgpu_timeout_peek_expired(&timeout)) { |
471 | if (g->ops.fb.dump_vpr_wpr_info) { | 471 | if (g->ops.fb.dump_vpr_info) { |
472 | g->ops.fb.dump_vpr_wpr_info(g); | 472 | g->ops.fb.dump_vpr_info(g); |
473 | } | ||
474 | if (g->ops.fb.dump_wpr_info) { | ||
475 | g->ops.fb.dump_wpr_info(g); | ||
473 | } | 476 | } |
474 | ret = -EBUSY; | 477 | ret = -EBUSY; |
475 | } | 478 | } |