Re: [PATCH] drm/amdgpu/mes: use mc address for wptr in add queue packet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Acked-by: Alex Deucher <alexander.deucher@xxxxxxx>

On Tue, May 14, 2024 at 5:07 AM Min, Frank <Frank.Min@xxxxxxx> wrote:
>
> [AMD Official Use Only - AMD Internal Distribution Only]
>
> From: Frank Min <Frank.Min@xxxxxxx>
>
> use mc address for wptr in add queue packet
>
> Signed-off-by: Frank Min <Frank.Min@xxxxxxx>
> ---
>  drivers/gpu/drm/amd/amdgpu/mes_v12_0.c | 6 +-----
>  1 file changed, 1 insertion(+), 5 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/mes_v12_0.c b/drivers/gpu/drm/amd/amdgpu/mes_v12_0.c
> index 5519655fd70a..6256b21884ee 100644
> --- a/drivers/gpu/drm/amd/amdgpu/mes_v12_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/mes_v12_0.c
> @@ -267,11 +267,7 @@ static int mes_v12_0_add_hw_queue(struct amdgpu_mes *mes,
>         mes_add_queue_pkt.doorbell_offset = input->doorbell_offset;
>         mes_add_queue_pkt.mqd_addr = input->mqd_addr;
>
> -       if (((adev->mes.sched_version & AMDGPU_MES_API_VERSION_MASK) >>
> -                       AMDGPU_MES_API_VERSION_SHIFT) >= 2)
> -               mes_add_queue_pkt.wptr_addr = input->wptr_mc_addr;
> -       else
> -               mes_add_queue_pkt.wptr_addr = input->wptr_addr;
> +       mes_add_queue_pkt.wptr_addr = input->wptr_mc_addr;
>
>         mes_add_queue_pkt.queue_type =
>                 convert_to_mes_queue_type(input->queue_type);
> --
> 2.34.1
>




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux