diff options
author | Vaikundanathan S <vaikuns@nvidia.com> | 2018-08-28 02:28:25 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-09-20 13:50:53 -0400 |
commit | ae809fddbe90bcec0d48e1213fa36cc5ba76550d (patch) | |
tree | bbafc71a543abf4b02e76290d058719f27f5f3b8 /drivers/gpu/nvgpu/gp106/hal_gp106.c | |
parent | 85c323c3e89d6e1b624b839c3325ae072952e545 (diff) |
gpu:nvgpu: Add GV10x perf event
In case of VFE update, schedule work to set P0 clocks.
Added function nvgpu_clk_set_fll_clk_gv10x to update P0 clocks on perf event.
Fixed MISRA issues caused by this excluding external functions and MACROs
Bug 2331655
Change-Id: Id96c473092ee7f0b651413aefdd4b6f2f59e0b12
Signed-off-by: Vaikundanathan S <vaikuns@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1808014
Reviewed-on: https://git-master.nvidia.com/r/1813881
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/hal_gp106.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp106/hal_gp106.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp106/hal_gp106.c b/drivers/gpu/nvgpu/gp106/hal_gp106.c index d3804f0e..063fbbe3 100644 --- a/drivers/gpu/nvgpu/gp106/hal_gp106.c +++ b/drivers/gpu/nvgpu/gp106/hal_gp106.c | |||
@@ -676,6 +676,7 @@ static const struct gpu_ops gp106_ops = { | |||
676 | .mclk_init = gp106_mclk_init, | 676 | .mclk_init = gp106_mclk_init, |
677 | .mclk_change = gp106_mclk_change, | 677 | .mclk_change = gp106_mclk_change, |
678 | .mclk_deinit = gp106_mclk_deinit, | 678 | .mclk_deinit = gp106_mclk_deinit, |
679 | .perf_pmu_vfe_load = perf_pmu_vfe_load, | ||
679 | }, | 680 | }, |
680 | .clk_arb = { | 681 | .clk_arb = { |
681 | .get_arbiter_clk_domains = gp106_get_arbiter_clk_domains, | 682 | .get_arbiter_clk_domains = gp106_get_arbiter_clk_domains, |
@@ -844,6 +845,7 @@ int gp106_init_hal(struct gk20a *g) | |||
844 | gops->clk.mclk_change = gp106_ops.clk.mclk_change; | 845 | gops->clk.mclk_change = gp106_ops.clk.mclk_change; |
845 | gops->clk.mclk_deinit = gp106_ops.clk.mclk_deinit; | 846 | gops->clk.mclk_deinit = gp106_ops.clk.mclk_deinit; |
846 | gops->clk.clk_domain_get_f_points = gp106_ops.clk.clk_domain_get_f_points; | 847 | gops->clk.clk_domain_get_f_points = gp106_ops.clk.clk_domain_get_f_points; |
848 | gops->clk.perf_pmu_vfe_load = gp106_ops.clk.perf_pmu_vfe_load; | ||
847 | 849 | ||
848 | gops->clk_arb = gp106_ops.clk_arb; | 850 | gops->clk_arb = gp106_ops.clk_arb; |
849 | gops->regops = gp106_ops.regops; | 851 | gops->regops = gp106_ops.regops; |