diff options
author | Jordan Crouse <jcrouse@codeaurora.org> | 2017-10-20 11:06:58 -0600 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2017-10-28 11:01:37 -0400 |
commit | a6e29a0eea3ccbf6fb8a908a3fc3e931f3ba2ae4 (patch) | |
tree | dd9789bd1000e707465b99c59d544d6d52eeb490 /drivers/gpu/drm/msm/adreno | |
parent | f97decac5f4c2d862e5b848694e3ffb29fc8acdd (diff) | |
download | op-kernel-dev-a6e29a0eea3ccbf6fb8a908a3fc3e931f3ba2ae4.zip op-kernel-dev-a6e29a0eea3ccbf6fb8a908a3fc3e931f3ba2ae4.tar.gz |
drm/msm: Add a parameter query for the number of ringbuffers
In order to manage ringbuffer priority to its fullest userspace
should know how many ringbuffers it has to work with. Add a
parameter to return the number of active rings.
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/msm/adreno')
-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 fd0fb05..4e9caf9 100644 --- a/drivers/gpu/drm/msm/adreno/adreno_gpu.c +++ b/drivers/gpu/drm/msm/adreno/adreno_gpu.c @@ -57,6 +57,9 @@ int adreno_get_param(struct msm_gpu *gpu, uint32_t param, uint64_t *value) return ret; } return -EINVAL; + case MSM_PARAM_NR_RINGS: + *value = gpu->nr_rings; + return 0; default: DBG("%s: invalid param: %u", gpu->name, param); return -EINVAL; |