]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf09d47c252fa5503f9497cda5c2e529089bf21e5
treeabcf2e914aaf00c563b96dc2605c627e12ed528b
parent2da14603e6860361376da7dbf5f1ac5fa0196a39
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