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>
This commit is contained in:
seshendra Gadagottu
2018-02-14 11:55:49 -08:00
committed by mobile promotions
parent b86a5d1632
commit 9afb74dada

View File

@@ -327,6 +327,16 @@ int gp10b_clk_get_freqs(struct device *dev,
unsigned long max_rate;
unsigned long new_rate = 0, prev_rate = 0;
int i = 0, freq_counter = 0;
struct gk20a *g = get_gk20a(dev);
/*
* Limit minimum frequency to 216.75MHz for gv11b, until issue
* with lower frequencies are root caused - Bug 2056266
* This hack needs to be removed once actual issue got fixed
*/
if ((g->params.gpu_arch + g->params.gpu_impl) == NVGPU_GPUID_GV11B)
new_rate = 216750000;
max_rate = clk_round_rate(platform->clk[0], (UINT_MAX - 1));