summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorVishruth <vishruthj@nvidia.com>2018-07-02 01:27:39 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-07-02 11:06:45 -0400
commitcf2ac655fdaeba5779ce9d73cbe567218a7c5a58 (patch)
tree7e923bfeba372c618293ec4cbfc0dd09771413e0 /drivers
parentead0dfaaa36acea84664d256e361558fe110a6df (diff)
gpu: nvgpu: fix missing max frequency
The last frequency in the local array with all frequencies was missed as the index was used as count. This caused max frequency to be not listed among available frequencies, when few frequencies were configured in BPMPFW-DT. Bug 200381453 Change-Id: I72d000ed1842c41555f2de36209fa4e12188c325 Signed-off-by: Vishruth <vishruthj@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1767642 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Deepak Nibade <dnibade@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/nvgpu/os/linux/platform_gp10b_tegra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/platform_gp10b_tegra.c b/drivers/gpu/nvgpu/os/linux/platform_gp10b_tegra.c
index 3fc216a1..dccc5c3e 100644
--- a/drivers/gpu/nvgpu/os/linux/platform_gp10b_tegra.c
+++ b/drivers/gpu/nvgpu/os/linux/platform_gp10b_tegra.c
@@ -362,7 +362,7 @@ int gp10b_clk_get_freqs(struct device *dev,
362 if (new_rate == max_rate) 362 if (new_rate == max_rate)
363 break; 363 break;
364 } 364 }
365 freq_counter = i; 365 freq_counter = i + 1;
366 WARN_ON(freq_counter == GP10B_MAX_SUPPORTED_FREQS); 366 WARN_ON(freq_counter == GP10B_MAX_SUPPORTED_FREQS);
367 367
368 /* 368 /*