summaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorRob Clark2016-02-09 18:05:30 +0100
committerDave Airlie2016-02-10 21:25:54 +0100
commit4102a9e5325941223fbfa0a56175e9efb3d4385a (patch)
tree3160d8a86b770f5d6495fe517fe5940fdf5a8b78 /include/uapi
parentdrm/tegra: drop unused variable. (diff)
downloadkernel-qcow2-linux-4102a9e5325941223fbfa0a56175e9efb3d4385a.tar.gz
kernel-qcow2-linux-4102a9e5325941223fbfa0a56175e9efb3d4385a.tar.xz
kernel-qcow2-linux-4102a9e5325941223fbfa0a56175e9efb3d4385a.zip
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. Signed-off-by: Rob Clark <robdclark@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/drm/msm_drm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/drm/msm_drm.h b/include/uapi/drm/msm_drm.h
index 81e6e0d1d360..0e3c4c48b326 100644
--- a/include/uapi/drm/msm_drm.h
+++ b/include/uapi/drm/msm_drm.h
@@ -50,6 +50,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 */