diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-11-10 13:53:51 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-11-14 18:46:58 -0500 |
commit | 744d5a5212936fd453bacc46be52e6aeef076a69 (patch) | |
tree | 50f99f03f549241c6cf47702075449feb8d70ec5 /drivers/gpu/nvgpu/vgpu/vgpu.c | |
parent | 5944f49f558370966d1ab943b2ec91afcdfd782d (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/vgpu/vgpu.c')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/vgpu.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/vgpu.c b/drivers/gpu/nvgpu/vgpu/vgpu.c index 6a9e986b..1153b540 100644 --- a/drivers/gpu/nvgpu/vgpu/vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/vgpu.c | |||
@@ -359,7 +359,6 @@ static void vgpu_detect_chip(struct gk20a *g) | |||
359 | 359 | ||
360 | int vgpu_init_gpu_characteristics(struct gk20a *g) | 360 | int vgpu_init_gpu_characteristics(struct gk20a *g) |
361 | { | 361 | { |
362 | struct vgpu_priv_data *priv = vgpu_get_priv_data(g); | ||
363 | int err; | 362 | int err; |
364 | 363 | ||
365 | gk20a_dbg_fn(""); | 364 | gk20a_dbg_fn(""); |
@@ -368,7 +367,6 @@ int vgpu_init_gpu_characteristics(struct gk20a *g) | |||
368 | if (err) | 367 | if (err) |
369 | return err; | 368 | return err; |
370 | 369 | ||
371 | g->gpu_characteristics.max_freq = priv->constants.max_freq; | ||
372 | __nvgpu_set_enabled(g, NVGPU_SUPPORT_MAP_BUFFER_BATCH, false); | 370 | __nvgpu_set_enabled(g, NVGPU_SUPPORT_MAP_BUFFER_BATCH, false); |
373 | 371 | ||
374 | /* features vgpu does not support */ | 372 | /* features vgpu does not support */ |