diff options
author | Rob Clark <robdclark@gmail.com> | 2016-02-09 12:05:30 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2016-02-11 06:25:54 +1000 |
commit | 4102a9e5325941223fbfa0a56175e9efb3d4385a (patch) | |
tree | 3160d8a86b770f5d6495fe517fe5940fdf5a8b78 /drivers/gpu/drm/msm | |
parent | 10c1b6183a163aca59ba92b88f2b4c4cecd20d4c (diff) | |
download | op-kernel-dev-4102a9e5325941223fbfa0a56175e9efb3d4385a.zip op-kernel-dev-4102a9e5325941223fbfa0a56175e9efb3d4385a.tar.gz |
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 'drivers/gpu/drm/msm')
-rw-r--r-- | drivers/gpu/drm/msm/adreno/adreno_gpu.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/adreno/adreno_gpu.c b/drivers/gpu/drm/msm/adreno/adreno_gpu.c index a3b54cc..0e1d0c5 100644 --- a/drivers/gpu/drm/msm/adreno/adreno_gpu.c +++ b/drivers/gpu/drm/msm/adreno/adreno_gpu.c @@ -41,6 +41,9 @@ int adreno_get_param(struct msm_gpu *gpu, uint32_t param, uint64_t *value) (adreno_gpu->rev.major << 16) | (adreno_gpu->rev.core << 24); return 0; + case MSM_PARAM_MAX_FREQ: + *value = adreno_gpu->base.fast_rate; + return 0; default: DBG("%s: invalid param: %u", gpu->name, param); return -EINVAL; |