diff options
author | seshendra Gadagottu <sgadagottu@nvidia.com> | 2018-02-14 14:55:49 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-02-15 15:31:09 -0500 |
commit | 9afb74dada5e318ec6b40ff4745e4d4adf8ee8b2 (patch) | |
tree | 265bd8acd19e51f069838971b9bc72877b017182 /drivers/gpu/nvgpu/common/linux | |
parent | b86a5d16329995497625a6c4013a4293739b9d06 (diff) |
gpu: nvgpu: gv11b: limit min freq to 216.75Mhz
Until issue related to low frequencies root caused,
limit min frequency to known safe value: 216.75Mhz.
This change needs to be reverted, once orginal issue
root-caused and fixed.
Bug 2051863
Bug 2056266
Change-Id: If6e56f59ee5fa06967fde1128b58a7fc97be74e9
Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1657595
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/platform_gp10b_tegra.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/platform_gp10b_tegra.c b/drivers/gpu/nvgpu/common/linux/platform_gp10b_tegra.c index 2bca2bd5..fd3c3e2c 100644 --- a/drivers/gpu/nvgpu/common/linux/platform_gp10b_tegra.c +++ b/drivers/gpu/nvgpu/common/linux/platform_gp10b_tegra.c | |||
@@ -327,6 +327,16 @@ int gp10b_clk_get_freqs(struct device *dev, | |||
327 | unsigned long max_rate; | 327 | unsigned long max_rate; |
328 | unsigned long new_rate = 0, prev_rate = 0; | 328 | unsigned long new_rate = 0, prev_rate = 0; |
329 | int i = 0, freq_counter = 0; | 329 | int i = 0, freq_counter = 0; |
330 | struct gk20a *g = get_gk20a(dev); | ||
331 | |||
332 | /* | ||
333 | * Limit minimum frequency to 216.75MHz for gv11b, until issue | ||
334 | * with lower frequencies are root caused - Bug 2056266 | ||
335 | * This hack needs to be removed once actual issue got fixed | ||
336 | */ | ||
337 | |||
338 | if ((g->params.gpu_arch + g->params.gpu_impl) == NVGPU_GPUID_GV11B) | ||
339 | new_rate = 216750000; | ||
330 | 340 | ||
331 | max_rate = clk_round_rate(platform->clk[0], (UINT_MAX - 1)); | 341 | max_rate = clk_round_rate(platform->clk[0], (UINT_MAX - 1)); |
332 | 342 | ||