On 6/12/26 08:42, Prike Liang wrote:
> Initialize the userq xcp_id.
> 
> Signed-off-by: Prike Liang <[email protected]>

Acked-by: Christian König <[email protected]>

> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c 
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
> index 3d6b1cfeca24..e87a3d83dd3e 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
> @@ -629,6 +629,8 @@ amdgpu_userq_create(struct drm_file *filp, union 
> drm_amdgpu_userq *args)
>       queue->queue_type = args->in.ip_type;
>       queue->vm = &fpriv->vm;
>       queue->priority = priority;
> +     queue->xcp_id = (fpriv->xcp_id != AMDGPU_XCP_NO_PARTITION) ?
> +                             fpriv->xcp_id : 0;
>       queue->userq_mgr = uq_mgr;
>       INIT_DELAYED_WORK(&queue->hang_detect_work,
>                         amdgpu_userq_hang_detect_work);

Reply via email to