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>
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)
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 ||
* and doorbell_offset in the doorbell bo.
*/
__u32 doorbell_offset;
- __u32 _pad;
+ /**
+ * @flags: flags used for queue parameters
+ */
+ __u32 flags;
/**
* @queue_va: Virtual address of the GPU memory which holds the queue
* object. The queue holds the workload packets.