summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv100
diff options
context:
space:
mode:
authorseshendra Gadagottu <sgadagottu@nvidia.com>2017-10-16 15:14:29 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-10-18 14:26:10 -0400
commit201ccbfa8503daee9562a22f50a5b626fe4cc6a1 (patch)
treea9ae8607667c4b64321668df72d5cbc8bcca66ab /drivers/gpu/nvgpu/gv100
parent3fc7c5f75ef4a6399e060d8cbfd4d7dc40c82588 (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/gv100')
-rw-r--r--drivers/gpu/nvgpu/gv100/hal_gv100.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gv100/hal_gv100.c b/drivers/gpu/nvgpu/gv100/hal_gv100.c
index 7457c185..2ece7be8 100644
--- a/drivers/gpu/nvgpu/gv100/hal_gv100.c
+++ b/drivers/gpu/nvgpu/gv100/hal_gv100.c
@@ -76,6 +76,7 @@
76#include "gp10b/mm_gp10b.h" 76#include "gp10b/mm_gp10b.h"
77#include "gp10b/pmu_gp10b.h" 77#include "gp10b/pmu_gp10b.h"
78 78
79#include "gv11b/dbg_gpu_gv11b.h"
79#include "gv11b/hal_gv11b.h" 80#include "gv11b/hal_gv11b.h"
80#include "gv11b/gr_gv11b.h" 81#include "gv11b/gr_gv11b.h"
81#include "gv11b/mc_gv11b.h" 82#include "gv11b/mc_gv11b.h"
@@ -625,8 +626,8 @@ static const struct gpu_ops gv100_ops = {
625 nvgpu_check_and_set_context_reservation, 626 nvgpu_check_and_set_context_reservation,
626 .release_profiler_reservation = 627 .release_profiler_reservation =
627 nvgpu_release_profiler_reservation, 628 nvgpu_release_profiler_reservation,
628 .perfbuffer_enable = NULL, 629 .perfbuffer_enable = gv11b_perfbuf_enable_locked,
629 .perfbuffer_disable = NULL, 630 .perfbuffer_disable = gv11b_perfbuf_disable_locked,
630 }, 631 },
631 .bus = { 632 .bus = {
632 .init_hw = gk20a_bus_init_hw, 633 .init_hw = gk20a_bus_init_hw,