summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2025-02-27 00:54:27 +0300
committerAlex Deucher <alexander.deucher@amd.com>2025-04-21 17:56:18 +0300
commitfced8e7d2ddeba7f41b19e065f8c02a9abf9ac00 (patch)
tree635ad686db1a1babf4837a56bdcc51a9e19757c1 /drivers/gpu/drm/amd/amdgpu
parent6027cbee190049629d3028789659e0763562e21e (diff)
downloadlinux-fced8e7d2ddeba7f41b19e065f8c02a9abf9ac00.tar.xz
drm/amdgpu: convert userq UAPI _pad to flags
Reuse the _pad field for flags. Reviewed-by: Sunil Khatri <sunil.khatri@amd.com> Reviewed-by: Jesse.Zhang <Jesse.zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c
index e944d05685dd..9a7ac85ff01c 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c
@@ -399,7 +399,7 @@ int amdgpu_userq_ioctl(struct drm_device *dev, void *data,
switch (args->in.op) {
case AMDGPU_USERQ_OP_CREATE:
- if (args->in._pad)
+ if (args->in.flags)
return -EINVAL;
r = amdgpu_userqueue_create(filp, args);
if (r)
@@ -410,7 +410,7 @@ int amdgpu_userq_ioctl(struct drm_device *dev, void *data,
if (args->in.ip_type ||
args->in.doorbell_handle ||
args->in.doorbell_offset ||
- args->in._pad ||
+ args->in.flags ||
args->in.queue_va ||
args->in.queue_size ||
args->in.rptr_va ||