Commit fced8e7d authored by Alex Deucher's avatar Alex Deucher
Browse files

drm/amdgpu: convert userq UAPI _pad to flags



Reuse the _pad field for flags.

Reviewed-by: default avatarSunil Khatri <sunil.khatri@amd.com>
Reviewed-by: default avatarJesse.Zhang <Jesse.zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 6027cbee
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 ||
+4 −1
Original line number Diff line number Diff line
@@ -355,7 +355,10 @@ struct drm_amdgpu_userq_in {
	 * 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.