From 850f2ad8ada4f4c2c753644f387d75e6d75ac28b Mon Sep 17 00:00:00 2001 From: absalam Date: Thu, 20 Sep 2018 12:21:33 +0530 Subject: gpu: nvgpu:Add sysfs node for GV100 clocks Creates sysfs nodes to read clk freq on GV100 Following sysfs nodes are created: gpcclk,xbarclk,sysclk Uses default clock source and counters for measurement Bug 200446261 Change-Id: I6903ba77fbe34e3f486f4b663e70eab4e7c5d662 Signed-off-by: absalam Reviewed-on: https://git-master.nvidia.com/r/1828030 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gv100/hal_gv100.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'drivers/gpu/nvgpu/gv100/hal_gv100.c') diff --git a/drivers/gpu/nvgpu/gv100/hal_gv100.c b/drivers/gpu/nvgpu/gv100/hal_gv100.c index 041422e0..7cd466c3 100644 --- a/drivers/gpu/nvgpu/gv100/hal_gv100.c +++ b/drivers/gpu/nvgpu/gv100/hal_gv100.c @@ -66,13 +66,11 @@ #include "gm20b/pmu_gm20b.h" #include "gm20b/acr_gm20b.h" -#include "gp106/clk_gp106.h" #include "gp106/clk_arb_gp106.h" #include "gp106/pmu_gp106.h" #include "gp106/acr_gp106.h" #include "gp106/sec2_gp106.h" #include "gp106/bios_gp106.h" -#include "gp106/clk_gp106.h" #include "gp106/flcn_gp106.h" #include "gp10b/gr_gp10b.h" @@ -107,6 +105,7 @@ #include "gv100/nvlink_gv100.h" #include "gv100/regops_gv100.h" #include "gv100/perf_gv100.h" +#include "gv100/clk_gv100.h" #include #include @@ -768,11 +767,11 @@ static const struct gpu_ops gv100_ops = { .secured_pmu_start = gm20b_secured_pmu_start, }, .clk = { - .init_clk_support = gp106_init_clk_support, - .get_crystal_clk_hz = gp106_crystal_clk_hz, - .get_rate_cntr = gp106_get_rate_cntr, - .measure_freq = gp106_clk_measure_freq, - .suspend_clk_support = gp106_suspend_clk_support, + .init_clk_support = gv100_init_clk_support, + .get_crystal_clk_hz = gv100_crystal_clk_hz, + .get_rate_cntr = gv100_get_rate_cntr, + .measure_freq = gv100_clk_measure_freq, + .suspend_clk_support = gv100_suspend_clk_support, .perf_pmu_vfe_load = gv100_perf_pmu_vfe_load, }, .clk_arb = { -- cgit v1.2.2