summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv100
diff options
context:
space:
mode:
authorDeepak Goyal <dgoyal@nvidia.com>2018-01-18 01:14:47 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2018-01-19 02:40:02 -0500
commite0dbf3a784f6cb1a6e1c41a23123b19ec73b8708 (patch)
treed089cf84f16980034b82c53f2913bcdda452151d /drivers/gpu/nvgpu/gv100
parenta57258e9b18f2f336457165391572bc477371e94 (diff)
gpu: nvgpu: gv11b: Enable perfmon.
t19x PMU ucode uses RPC mechanism for PERFMON commands. - Declared "pmu_init_perfmon", "pmu_perfmon_start_sampling", "pmu_perfmon_stop_sampling" and "pmu_perfmon_get_samples" in pmu ops to differenciate for chips using RPC & legacy cmd/msg mechanism. - Defined and used PERFMON RPC commands for t19x - INIT - START - STOP - QUERY - Adds RPC handler for PERFMON RPC commands. - For guerying GPU utilization/load, we need to send PERFMON_QUERY RPC command for gv11b. - Enables perfmon for gv11b. Bug 2039013 Change-Id: Ic32326f81d48f11bc772afb8fee2dee6e427a699 Signed-off-by: Deepak Goyal <dgoyal@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1614114 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Tested-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv100')
-rw-r--r--drivers/gpu/nvgpu/gv100/hal_gv100.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv100/hal_gv100.c b/drivers/gpu/nvgpu/gv100/hal_gv100.c
index 95d1f076..dbf32b20 100644
--- a/drivers/gpu/nvgpu/gv100/hal_gv100.c
+++ b/drivers/gpu/nvgpu/gv100/hal_gv100.c
@@ -591,6 +591,9 @@ static const struct gpu_ops gv100_ops = {
591 .is_pmu_supported = gp106_is_pmu_supported, 591 .is_pmu_supported = gp106_is_pmu_supported,
592 .pmu_pg_supported_engines_list = gp106_pmu_pg_engines_list, 592 .pmu_pg_supported_engines_list = gp106_pmu_pg_engines_list,
593 .pmu_elpg_statistics = gp106_pmu_elpg_statistics, 593 .pmu_elpg_statistics = gp106_pmu_elpg_statistics,
594 .pmu_init_perfmon = nvgpu_pmu_init_perfmon,
595 .pmu_perfmon_start_sampling = nvgpu_pmu_perfmon_start_sampling,
596 .pmu_perfmon_stop_sampling = nvgpu_pmu_perfmon_stop_sampling,
594 .pmu_mutex_acquire = gk20a_pmu_mutex_acquire, 597 .pmu_mutex_acquire = gk20a_pmu_mutex_acquire,
595 .pmu_is_lpwr_feature_supported = 598 .pmu_is_lpwr_feature_supported =
596 gp106_pmu_is_lpwr_feature_supported, 599 gp106_pmu_is_lpwr_feature_supported,