[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200331164359.GA11573@jcrouse1-lnx.qualcomm.com>
Date: Tue, 31 Mar 2020 10:43:59 -0600
From: Jordan Crouse <jcrouse@...eaurora.org>
To: Sharat Masetty <smasetty@...eaurora.org>
Cc: freedreno@...ts.freedesktop.org, devicetree@...r.kernel.org,
dri-devel@...edesktop.org, linux-arm-msm@...r.kernel.org,
linux-kernel@...r.kernel.org, mka@...omium.org,
sibis@...eaurora.org, saravanak@...gle.com, viresh.kumar@...aro.org
Subject: Re: [PATCH 4/5] drm: msm: a6xx: Fix off by one error when setting
GPU freq
On Tue, Mar 31, 2020 at 01:25:52PM +0530, Sharat Masetty wrote:
> This patch fixes an error in the for loop, thereby allowing search on
> the full list of possible GPU power levels.
>
> Signed-off-by: Sharat Masetty <smasetty@...eaurora.org>
Oh fun. This qualifies for drm-fixes. Can you pull this out of the stack and CC
stable?
Reviewed-by: Jordan Crouse <jcrouse@...eaurora.org>
> ---
> drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/msm/adreno/a6xx_gmu.c b/drivers/gpu/drm/msm/adreno/a6xx_gmu.c
> index 489d9b6..81b8559 100644
> --- a/drivers/gpu/drm/msm/adreno/a6xx_gmu.c
> +++ b/drivers/gpu/drm/msm/adreno/a6xx_gmu.c
> @@ -176,7 +176,7 @@ void a6xx_gmu_set_freq(struct msm_gpu *gpu, unsigned long freq)
> if (freq == gmu->freq)
> return;
>
> - for (perf_index = 0; perf_index < gmu->nr_gpu_freqs - 1; perf_index++)
> + for (perf_index = 0; perf_index < gmu->nr_gpu_freqs; perf_index++)
> if (freq == gmu->gpu_freqs[perf_index])
> break;
>
> --
> 2.7.4
>
--
The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
Powered by blists - more mailing lists