drm/msm/a6xx: Add inactive_period for a6xx
authorJordan Crouse <jcrouse@codeaurora.org>
Fri, 28 Sep 2018 14:27:56 +0000 (08:27 -0600)
committerRob Clark <robdclark@gmail.com>
Thu, 4 Oct 2018 00:24:55 +0000 (20:24 -0400)
The target definition for a630 didn't set a reasonable
value for inactive_period so it defaulted to zero and
we were essentially powering down after every submission.
Set it back to the default value to keep the GPU from
bouncing too much during regular workloads.

Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/adreno/adreno_device.c

index 7d3e9a1..86abdb2 100644 (file)
@@ -120,6 +120,7 @@ static const struct adreno_info gpulist[] = {
                        [ADRENO_FW_GMU] = "a630_gmu.bin",
                },
                .gmem = SZ_1M,
+               .inactive_period = DRM_MSM_INACTIVE_PERIOD,
                .init = a6xx_gpu_init,
        },
 };