diff options
author | Thomas Fleury <tfleury@nvidia.com> | 2016-09-13 17:25:28 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2016-12-07 18:01:14 -0500 |
commit | 05805ec65b2cd6413c9d0d711d3798fd457fed6e (patch) | |
tree | 8aacb5c36a72f86a183c0f210a2aeeac0c382ae3 /drivers/gpu/nvgpu/gk20a/gk20a.c | |
parent | 21094783114b9314d57f412196544a34b3a40f4a (diff) |
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 <tfleury@nvidia.com>
Reviewed-on: http://git-master/r/1223473
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
(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 <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.c | 8 |
1 files changed, 8 insertions, 0 deletions
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) | |||
974 | } | 974 | } |
975 | #endif | 975 | #endif |
976 | 976 | ||
977 | err = nvgpu_clk_arb_init_arbiter(g); | ||
978 | if (err) { | ||
979 | gk20a_err(dev, "failed to init clk arb"); | ||
980 | goto done; | ||
981 | } | ||
982 | |||
977 | if (g->ops.pmu.is_pmu_supported(g)) { | 983 | if (g->ops.pmu.is_pmu_supported(g)) { |
978 | err = gk20a_init_pmu_support(g); | 984 | err = gk20a_init_pmu_support(g); |
979 | if (err) { | 985 | if (err) { |
@@ -1644,6 +1650,8 @@ static int __exit gk20a_remove(struct platform_device *pdev) | |||
1644 | if (platform->has_ce) | 1650 | if (platform->has_ce) |
1645 | gk20a_ce_destroy(g); | 1651 | gk20a_ce_destroy(g); |
1646 | 1652 | ||
1653 | nvgpu_clk_arb_cleanup_arbiter(g); | ||
1654 | |||
1647 | gk20a_user_deinit(dev, &nvgpu_class); | 1655 | gk20a_user_deinit(dev, &nvgpu_class); |
1648 | 1656 | ||
1649 | debugfs_remove_recursive(platform->debugfs); | 1657 | debugfs_remove_recursive(platform->debugfs); |