mirror of
https://github.com/torvalds/linux.git
synced 2026-04-21 08:13:56 -04:00
drm/amdgpu: fix userqueue UAPI comments
This patch fixes some of the pending UAPI review comments from the libDRM/UAPI review process. - It updates some outdated comments in the userqueue UAPI header highlighted during the libdrm UAPI review. - It removes the GDS BO support which was found unused. - It also removes the unused flags parameter from the UAPI. - It also adds a padding variables in userqueue in/out structures. (Pierre-Eric and Marek) - clarify comments on top of drm_amdgpu_userq_in - clarify comment for queue_id (in) - clarify comment for mqd - clarify comment for compute MQD size - clarify comment for queue_id (out) - remove GDB object from BO object list - remove the unused flags parameter Cc: Alex Deucher <alexander.deucher@amd.com> Cc: Christian Koenig <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Shashank Sharma <shashank.sharma@amd.com> Signed-off-by: Arvind Yadav <arvind.yadav@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
5f2f78314c
commit
2e06b175ff
@@ -225,11 +225,6 @@ amdgpu_userqueue_create(struct drm_file *filp, union drm_amdgpu_userq *args)
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (args->in.flags) {
|
||||
DRM_ERROR("Usermode queue flags not supported yet\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
mutex_lock(&uq_mgr->userq_mutex);
|
||||
|
||||
uq_funcs = adev->userq_funcs[args->in.ip_type];
|
||||
@@ -248,7 +243,6 @@ amdgpu_userqueue_create(struct drm_file *filp, union drm_amdgpu_userq *args)
|
||||
queue->doorbell_handle = args->in.doorbell_handle;
|
||||
queue->doorbell_index = args->in.doorbell_offset;
|
||||
queue->queue_type = args->in.ip_type;
|
||||
queue->flags = args->in.flags;
|
||||
queue->vm = &fpriv->vm;
|
||||
|
||||
/* Convert relative doorbell offset into absolute doorbell index */
|
||||
|
||||
Reference in New Issue
Block a user