diff options
| author | Rob Clark <robdclark@gmail.com> | 2017-02-13 10:14:07 -0700 |
|---|---|---|
| committer | Jordan Crouse <jcrouse@codeaurora.org> | 2017-02-13 15:29:43 -0700 |
| commit | 444def30a7518eca723b06aa80453be3a8a86447 (patch) | |
| tree | d65ac851e08b903a083c58068446b08f1227b817 /include/uapi | |
| parent | c69e93c13d96aa72ebcd5f30ad39fdb1361f9fae (diff) | |
drm/msm: add max-freq gpu param to uapi
We need this in userspace for interpreting some of the perf ctrs.
Note possibly not quite sufficient if we had some frequency mgmt
approach other than race-to-idle. Not really sure what the best
thing to do if we did. Although displaying results as a percentage
of max frequence seems sensible(ish) if we did.
Change-Id: Ic0dedbad1d8481cd2609ae0d86d4de6045f0d22e
Signed-off-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Git-commit: 4102a9e5325941223fbfa0a56175e9efb3d4385a
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Diffstat (limited to 'include/uapi')
| -rw-r--r-- | include/uapi/drm/msm_drm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/drm/msm_drm.h b/include/uapi/drm/msm_drm.h index fd1be42188cd..64d6210e28a2 100644 --- a/include/uapi/drm/msm_drm.h +++ b/include/uapi/drm/msm_drm.h @@ -52,6 +52,7 @@ struct drm_msm_timespec { #define MSM_PARAM_GPU_ID 0x01 #define MSM_PARAM_GMEM_SIZE 0x02 #define MSM_PARAM_CHIP_ID 0x03 +#define MSM_PARAM_MAX_FREQ 0x04 struct drm_msm_param { __u32 pipe; /* in, MSM_PIPE_x */ |
