From 05805ec65b2cd6413c9d0d711d3798fd457fed6e Mon Sep 17 00:00:00 2001 From: Thomas Fleury Date: Tue, 13 Sep 2016 14:25:28 -0700 Subject: gpu: nvgpu: ioctls for clock controls Add ioctls for clock range and VF points query. Add ioctls to set target mhz, and get actual mhz. Jira DNVGPU-125 Change-Id: I7639789bb15eabd8c98adc468201dba3a6e19ade Signed-off-by: Thomas Fleury Reviewed-on: http://git-master/r/1223473 Reviewed-by: mobile promotions Tested-by: mobile promotions (cherry picked from commit 5e635ae34221c99a739321bcfc1418db56c1051d) Reviewed-on: http://git-master/r/1243107 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/gk20a.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c index 99d2fe63..03bbf72f 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a.c @@ -974,6 +974,12 @@ int gk20a_pm_finalize_poweron(struct device *dev) } #endif + err = nvgpu_clk_arb_init_arbiter(g); + if (err) { + gk20a_err(dev, "failed to init clk arb"); + goto done; + } + if (g->ops.pmu.is_pmu_supported(g)) { err = gk20a_init_pmu_support(g); if (err) { @@ -1644,6 +1650,8 @@ static int __exit gk20a_remove(struct platform_device *pdev) if (platform->has_ce) gk20a_ce_destroy(g); + nvgpu_clk_arb_cleanup_arbiter(g); + gk20a_user_deinit(dev, &nvgpu_class); debugfs_remove_recursive(platform->debugfs); -- cgit v1.2.2