diff options
author | Rob Clark <robdclark@chromium.org> | 2022-01-13 08:32:13 -0800 |
---|---|---|
committer | Dmitry Baryshkov <dmitry.baryshkov@linaro.org> | 2022-01-25 05:47:57 +0300 |
commit | 860a7b2a87b7c743154824d0597b6c3eb3b53154 (patch) | |
tree | d5a4490f3f1f7cb85e8dd2c901b02996fa4677b7 /drivers/gpu | |
parent | 0a727b459ee39bd4c5ced19d6024258ac87b6b2e (diff) | |
download | linux-860a7b2a87b7c743154824d0597b6c3eb3b53154.tar.gz linux-860a7b2a87b7c743154824d0597b6c3eb3b53154.tar.bz2 linux-860a7b2a87b7c743154824d0597b6c3eb3b53154.zip |
drm/msm/a6xx: Add missing suspend_count increment
Reported-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Fixes: 3ab1c5cc3939 ("drm/msm: Add param for userspace to query suspend count")
Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20220113163215.215367-1-robdclark@gmail.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/adreno/a6xx_gpu.c b/drivers/gpu/drm/msm/adreno/a6xx_gpu.c index 51b83776951b..17cfad6424db 100644 --- a/drivers/gpu/drm/msm/adreno/a6xx_gpu.c +++ b/drivers/gpu/drm/msm/adreno/a6xx_gpu.c @@ -1560,6 +1560,8 @@ static int a6xx_pm_suspend(struct msm_gpu *gpu) for (i = 0; i < gpu->nr_rings; i++) a6xx_gpu->shadow[i] = 0; + gpu->suspend_count++; + return 0; } |