diff options
author | Sharat Masetty <smasetty@codeaurora.org> | 2018-10-04 15:11:43 +0530 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2018-10-04 09:19:37 -0400 |
commit | a2c3c0a54d4cccb35e8071a11e203c4ac06f9e4e (patch) | |
tree | abcf2e914aaf00c563b96dc2605c627e12ed528b /drivers/gpu/drm/msm/adreno/a6xx_gmu.h | |
parent | de0a3d094de0858f091cf353c437e912ca41a506 (diff) |
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>
Diffstat (limited to 'drivers/gpu/drm/msm/adreno/a6xx_gmu.h')
-rw-r--r-- | drivers/gpu/drm/msm/adreno/a6xx_gmu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/adreno/a6xx_gmu.h b/drivers/gpu/drm/msm/adreno/a6xx_gmu.h index f34630c72c4d..35f765afae45 100644 --- a/drivers/gpu/drm/msm/adreno/a6xx_gmu.h +++ b/drivers/gpu/drm/msm/adreno/a6xx_gmu.h @@ -74,6 +74,8 @@ struct a6xx_gmu { unsigned long gmu_freqs[4]; u32 cx_arc_votes[4]; + unsigned long freq; + struct a6xx_hfi_queue queues[2]; struct tasklet_struct hfi_tasklet; |