summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.h
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-11-10 13:53:51 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-11-14 18:46:58 -0500
commit744d5a5212936fd453bacc46be52e6aeef076a69 (patch)
tree50f99f03f549241c6cf47702075449feb8d70ec5 /drivers/gpu/nvgpu/gk20a/gk20a.h
parent5944f49f558370966d1ab943b2ec91afcdfd782d (diff)
gpu: nvgpu: vgpu: Implement clk.get_maxfreq
Modify HAL clk->get_maxfreq() signature to match the one in clk->set_rate() and clk->get_rate(). It allows support of multiple clocks. Implement clk.get_maxfreq operation for vgpu and use it to fill max_freq field in GPU characteristics query. JIRA NVGPU-388 Change-Id: I93bfc2aa76e38b8a5e0ac55d87c4e26df6fea77f Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1597329 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index 4bc5c04b..fb12d0d2 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -880,7 +880,7 @@ struct gpu_ops {
880 u32 (*get_ref_clock_rate)(struct gk20a *g); 880 u32 (*get_ref_clock_rate)(struct gk20a *g);
881 int (*predict_mv_at_hz_cur_tfloor)(struct clk_gk20a *clk, 881 int (*predict_mv_at_hz_cur_tfloor)(struct clk_gk20a *clk,
882 unsigned long rate); 882 unsigned long rate);
883 unsigned long (*get_maxrate)(struct clk_gk20a *clk); 883 unsigned long (*get_maxrate)(struct gk20a *g, u32 api_domain);
884 int (*prepare_enable)(struct clk_gk20a *clk); 884 int (*prepare_enable)(struct clk_gk20a *clk);
885 void (*disable_unprepare)(struct clk_gk20a *clk); 885 void (*disable_unprepare)(struct clk_gk20a *clk);
886 int (*get_voltage)(struct clk_gk20a *clk, u64 *val); 886 int (*get_voltage)(struct clk_gk20a *clk, u64 *val);