summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv100
diff options
context:
space:
mode:
authorseshendra Gadagottu <sgadagottu@nvidia.com>2017-06-22 19:28:19 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-10-20 22:03:56 -0400
commitcf70c925cd3d8e6c83feee04316b080d5f258afc (patch)
tree54c88ee84cff31561accbd72728bfc2a56f7a510 /drivers/gpu/nvgpu/gv100
parented8ac6e005d95e051bd03a182bbe0aa09a3c2266 (diff)
gpu: nvgpu: gv11b: update css ops
Updated following hal functions for css gv11b and reused them for gv100: enable_snapshot disable_snapshot check_data_available 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 based on memory aperture used for hwpm inst_block. Bug 200327596 Change-Id: I500d17670e2f389d8d0e77884374bcc3504a41f8 Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1507546 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.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gv100/hal_gv100.c b/drivers/gpu/nvgpu/gv100/hal_gv100.c
index cefaf1ae..2007eee0 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/css_gr_gv11b.h"
79#include "gv11b/dbg_gpu_gv11b.h" 80#include "gv11b/dbg_gpu_gv11b.h"
80#include "gv11b/hal_gv11b.h" 81#include "gv11b/hal_gv11b.h"
81#include "gv100/gr_gv100.h" 82#include "gv100/gr_gv100.h"
@@ -639,9 +640,9 @@ static const struct gpu_ops gv100_ops = {
639 }, 640 },
640#if defined(CONFIG_GK20A_CYCLE_STATS) 641#if defined(CONFIG_GK20A_CYCLE_STATS)
641 .css = { 642 .css = {
642 .enable_snapshot = css_hw_enable_snapshot, 643 .enable_snapshot = gv11b_css_hw_enable_snapshot,
643 .disable_snapshot = css_hw_disable_snapshot, 644 .disable_snapshot = gv11b_css_hw_disable_snapshot,
644 .check_data_available = css_hw_check_data_available, 645 .check_data_available = gv11b_css_hw_check_data_available,
645 .set_handled_snapshots = css_hw_set_handled_snapshots, 646 .set_handled_snapshots = css_hw_set_handled_snapshots,
646 .allocate_perfmon_ids = css_gr_allocate_perfmon_ids, 647 .allocate_perfmon_ids = css_gr_allocate_perfmon_ids,
647 .release_perfmon_ids = css_gr_release_perfmon_ids, 648 .release_perfmon_ids = css_gr_release_perfmon_ids,