From ead0dfaaa36acea84664d256e361558fe110a6df Mon Sep 17 00:00:00 2001 From: Thomas Fleury Date: Thu, 28 Jun 2018 16:58:48 -0700 Subject: gpu: nvgpu: make sure gpc2clk is greater than DVCO min For V/f point with gpc2clk exactly equal to DVCO min, we observe lower than expected effective clock. Make sure min frequency for gpc2clk is greater than DVCO min. Bug 200412996 Change-Id: I85c33852c56c7a642aa5c85987d2da4147e73c22 Signed-off-by: Thomas Fleury Reviewed-on: https://git-master.nvidia.com/r/1764923 Reviewed-by: svc-mobile-coverity GVS: Gerrit_Virtual_Submit Reviewed-by: Vijayakumar Subbu Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gp106/clk_arb_gp106.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers') diff --git a/drivers/gpu/nvgpu/gp106/clk_arb_gp106.c b/drivers/gpu/nvgpu/gp106/clk_arb_gp106.c index ae6cd327..5f969e79 100644 --- a/drivers/gpu/nvgpu/gp106/clk_arb_gp106.c +++ b/drivers/gpu/nvgpu/gp106/clk_arb_gp106.c @@ -67,8 +67,8 @@ int gp106_get_arbiter_clk_range(struct gk20a *g, u32 api_domain, /* WAR for DVCO min */ if (api_domain == CTRL_CLK_DOMAIN_GPC2CLK) if ((pfllobjs->max_min_freq_mhz) && - (pfllobjs->max_min_freq_mhz > limit_min_mhz)) - limit_min_mhz = pfllobjs->max_min_freq_mhz; + (pfllobjs->max_min_freq_mhz >= limit_min_mhz)) + limit_min_mhz = pfllobjs->max_min_freq_mhz + 1; *min_mhz = limit_min_mhz; *max_mhz = p0_info->max_mhz; -- cgit v1.2.2