diff options
author | seshendra Gadagottu <sgadagottu@nvidia.com> | 2017-10-16 15:14:29 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-10-18 14:26:10 -0400 |
commit | 201ccbfa8503daee9562a22f50a5b626fe4cc6a1 (patch) | |
tree | a9ae8607667c4b64321668df72d5cbc8bcca66ab /drivers/gpu/nvgpu/gv11b/hal_gv11b.c | |
parent | 3fc7c5f75ef4a6399e060d8cbfd4d7dc40c82588 (diff) |
gpu: nvgpu: gv11b: update dbg ops
Updated following hal functions for gv11b and reused
them for gv100:
perfbuffer_enable
perfbuffer_disable
These changes are needed because of following reasons:
1. Register offsets for perf_pmasys_* are changed
for gv11b/gv100 from gk20a.
2. Updated memory type for perf_pmasys_mem_block_target
to sys_ncoh_f().
Bug 200327596
Change-Id: Ia672ac561917c8ed36caea9cc7e74b7fc7ce8188
Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1571074
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/hal_gv11b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/hal_gv11b.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c index 4241145a..e7e2be54 100644 --- a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c | |||
@@ -66,6 +66,7 @@ | |||
66 | #include "gp106/pmu_gp106.h" | 66 | #include "gp106/pmu_gp106.h" |
67 | #include "gp106/acr_gp106.h" | 67 | #include "gp106/acr_gp106.h" |
68 | 68 | ||
69 | #include "dbg_gpu_gv11b.h" | ||
69 | #include "hal_gv11b.h" | 70 | #include "hal_gv11b.h" |
70 | #include "gr_gv11b.h" | 71 | #include "gr_gv11b.h" |
71 | #include "mc_gv11b.h" | 72 | #include "mc_gv11b.h" |
@@ -633,8 +634,8 @@ static const struct gpu_ops gv11b_ops = { | |||
633 | nvgpu_check_and_set_context_reservation, | 634 | nvgpu_check_and_set_context_reservation, |
634 | .release_profiler_reservation = | 635 | .release_profiler_reservation = |
635 | nvgpu_release_profiler_reservation, | 636 | nvgpu_release_profiler_reservation, |
636 | .perfbuffer_enable = NULL, | 637 | .perfbuffer_enable = gv11b_perfbuf_enable_locked, |
637 | .perfbuffer_disable = NULL, | 638 | .perfbuffer_disable = gv11b_perfbuf_disable_locked, |
638 | }, | 639 | }, |
639 | .bus = { | 640 | .bus = { |
640 | .init_hw = gk20a_bus_init_hw, | 641 | .init_hw = gk20a_bus_init_hw, |