diff options
author | Rob Clark <robdclark@chromium.org> | 2022-03-03 16:52:15 -0800 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2022-03-04 11:50:41 -0800 |
commit | f7ddbf5581b474fe4a0a29244acaa1bf72234675 (patch) | |
tree | 06c2c47b73e366ddd9986d6a75f28982a315737c /drivers/gpu/drm/msm/msm_gpu.h | |
parent | 57cfe41c5f50aaad92942ff9947c6cee54b9d314 (diff) | |
download | lwn-f7ddbf5581b474fe4a0a29244acaa1bf72234675.tar.gz lwn-f7ddbf5581b474fe4a0a29244acaa1bf72234675.zip |
drm/msm: Add SET_PARAM ioctl
It was always expected to have a use for this some day, so we left a
placeholder. Now we do. (And I expect another use in the not too
distant future when we start allowing userspace to allocate GPU iova.)
Signed-off-by: Rob Clark <robdclark@chromium.org>
Link: https://lore.kernel.org/r/20220304005317.776110-3-robdclark@gmail.com
Diffstat (limited to 'drivers/gpu/drm/msm/msm_gpu.h')
-rw-r--r-- | drivers/gpu/drm/msm/msm_gpu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/msm_gpu.h b/drivers/gpu/drm/msm/msm_gpu.h index c99627fc99dd..07ee6573a301 100644 --- a/drivers/gpu/drm/msm/msm_gpu.h +++ b/drivers/gpu/drm/msm/msm_gpu.h @@ -44,6 +44,8 @@ struct msm_gpu_config { struct msm_gpu_funcs { int (*get_param)(struct msm_gpu *gpu, struct msm_file_private *ctx, uint32_t param, uint64_t *value); + int (*set_param)(struct msm_gpu *gpu, struct msm_file_private *ctx, + uint32_t param, uint64_t value); int (*hw_init)(struct msm_gpu *gpu); int (*pm_suspend)(struct msm_gpu *gpu); int (*pm_resume)(struct msm_gpu *gpu); |