RE: [PATCH] drm/amdgpu: fix a build warning by a typo in amdgpu_gfx.c

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

 



[AMD Official Use Only - General]

Reviewed-by: Le Ma <le.ma@xxxxxxx>

> -----Original Message-----
> From: Chen, Guchun <Guchun.Chen@xxxxxxx>
> Sent: Wednesday, April 26, 2023 11:12 AM
> To: amd-gfx@xxxxxxxxxxxxxxxxxxxxx; Deucher, Alexander
> <Alexander.Deucher@xxxxxxx>; Zhang, Hawking <Hawking.Zhang@xxxxxxx>;
> Ma, Le <Le.Ma@xxxxxxx>
> Cc: Chen, Guchun <Guchun.Chen@xxxxxxx>; kernel test robot <lkp@xxxxxxxxx>
> Subject: [PATCH] drm/amdgpu: fix a build warning by a typo in amdgpu_gfx.c
>
> This should be a typo when intruducing multi-xx support.
>
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Signed-off-by: Guchun Chen <guchun.chen@xxxxxxx>
> Cc: Le Ma <le.ma@xxxxxxx>
> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
> index 60bb4bba1994..2cf1f88fde48 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
> @@ -470,8 +470,8 @@ void amdgpu_gfx_mqd_sw_fini(struct amdgpu_device
> *adev, int xcc_id)
>
>       for (i = 0; i < adev->gfx.num_compute_rings; i++) {
>               j = i + xcc_id * adev->gfx.num_compute_rings;
> -             ring = &adev->gfx.compute_ring[i];
> -             kfree(adev->gfx.mec.mqd_backup[i]);
> +             ring = &adev->gfx.compute_ring[j];
> +             kfree(adev->gfx.mec.mqd_backup[j]);
>               amdgpu_bo_free_kernel(&ring->mqd_obj,
>                                     &ring->mqd_gpu_addr,
>                                     &ring->mqd_ptr);
> --
> 2.25.1





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

  Powered by Linux