drm/msm/a6xx: Add devfreq support for a6xx
authorSharat Masetty <smasetty@codeaurora.org>
Thu, 4 Oct 2018 09:41:43 +0000 (15:11 +0530)
committerRob Clark <robdclark@gmail.com>
Thu, 4 Oct 2018 13:19:37 +0000 (09:19 -0400)
commita2c3c0a54d4cccb35e8071a11e203c4ac06f9e4e
treeabcf2e914aaf00c563b96dc2605c627e12ed528b
parentde0a3d094de0858f091cf353c437e912ca41a506
drm/msm/a6xx: Add devfreq support for a6xx

Implement routines to estimate GPU busy time and fetching the
current frequency for the polling interval. This is required by
the devfreq framework which recommends a frequency change if needed.
The driver code then tries to set this new frequency on the GPU by
sending an Out Of Band(OOB) request to the GMU.

Signed-off-by: Sharat Masetty <smasetty@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/adreno/a6xx_gmu.c
drivers/gpu/drm/msm/adreno/a6xx_gmu.h
drivers/gpu/drm/msm/adreno/a6xx_gpu.c
drivers/gpu/drm/msm/adreno/a6xx_gpu.h