mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
This commit is contained in:
parent
10c1b6183a
commit
4102a9e532
2 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue