summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b/hal_gv11b.c
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/gv11b/hal_gv11b.c
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/gv11b/hal_gv11b.c')
-rw-r--r--drivers/gpu/nvgpu/gv11b/hal_gv11b.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c
index 168def5c..22beabf7 100644
--- a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c
+++ b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c
@@ -68,6 +68,7 @@
68 68
69#include "dbg_gpu_gv11b.h" 69#include "dbg_gpu_gv11b.h"
70#include "hal_gv11b.h" 70#include "hal_gv11b.h"
71#include "css_gr_gv11b.h"
71#include "gr_gv11b.h" 72#include "gr_gv11b.h"
72#include "mc_gv11b.h" 73#include "mc_gv11b.h"
73#include "ltc_gv11b.h" 74#include "ltc_gv11b.h"
@@ -647,9 +648,9 @@ static const struct gpu_ops gv11b_ops = {
647 }, 648 },
648#if defined(CONFIG_GK20A_CYCLE_STATS) 649#if defined(CONFIG_GK20A_CYCLE_STATS)
649 .css = { 650 .css = {
650 .enable_snapshot = css_hw_enable_snapshot, 651 .enable_snapshot = gv11b_css_hw_enable_snapshot,
651 .disable_snapshot = css_hw_disable_snapshot, 652 .disable_snapshot = gv11b_css_hw_disable_snapshot,
652 .check_data_available = css_hw_check_data_available, 653 .check_data_available = gv11b_css_hw_check_data_available,
653 .set_handled_snapshots = css_hw_set_handled_snapshots, 654 .set_handled_snapshots = css_hw_set_handled_snapshots,
654 .allocate_perfmon_ids = css_gr_allocate_perfmon_ids, 655 .allocate_perfmon_ids = css_gr_allocate_perfmon_ids,
655 .release_perfmon_ids = css_gr_release_perfmon_ids, 656 .release_perfmon_ids = css_gr_release_perfmon_ids,