RE: [PATCH 2/2] drm/amdgpu: correct MEC number for gfx11 APUs

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

 



[AMD Official Use Only - General]

The series is
Reviewed-by: Aaron Liu <aaron.liu@xxxxxxx>

> -----Original Message-----
> From: amd-gfx <amd-gfx-bounces@xxxxxxxxxxxxxxxxxxxxx> On Behalf Of Lang Yu
> Sent: Monday, January 16, 2023 4:20 PM
> To: amd-gfx@xxxxxxxxxxxxxxxxxxxxx
> Cc: Zhang, Yifan <Yifan1.Zhang@xxxxxxx>; Yu, Lang <Lang.Yu@xxxxxxx>;
> Koenig, Christian <Christian.Koenig@xxxxxxx>; Du, Xiaojian
> <Xiaojian.Du@xxxxxxx>
> Subject: [PATCH 2/2] drm/amdgpu: correct MEC number for gfx11 APUs
>
> There is only one MEC on these APUs.
>
> Signed-off-by: Lang Yu <Lang.Yu@xxxxxxx>
> ---
>  drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 11 +++++++++--
>  1 file changed, 9 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
> b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
> index 985fe704203e..dd4e0f337f46 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
> @@ -1251,10 +1251,8 @@ static int gfx_v11_0_sw_init(void *handle)
>
>       switch (adev->ip_versions[GC_HWIP][0]) {
>       case IP_VERSION(11, 0, 0):
> -     case IP_VERSION(11, 0, 1):
>       case IP_VERSION(11, 0, 2):
>       case IP_VERSION(11, 0, 3):
> -     case IP_VERSION(11, 0, 4):
>               adev->gfx.me.num_me = 1;
>               adev->gfx.me.num_pipe_per_me = 1;
>               adev->gfx.me.num_queue_per_pipe = 1;
> @@ -1262,6 +1260,15 @@ static int gfx_v11_0_sw_init(void *handle)
>               adev->gfx.mec.num_pipe_per_mec = 4;
>               adev->gfx.mec.num_queue_per_pipe = 4;
>               break;
> +     case IP_VERSION(11, 0, 1):
> +     case IP_VERSION(11, 0, 4):
> +             adev->gfx.me.num_me = 1;
> +             adev->gfx.me.num_pipe_per_me = 1;
> +             adev->gfx.me.num_queue_per_pipe = 1;
> +             adev->gfx.mec.num_mec = 1;
> +             adev->gfx.mec.num_pipe_per_mec = 4;
> +             adev->gfx.mec.num_queue_per_pipe = 4;
> +             break;
>       default:
>               adev->gfx.me.num_me = 1;
>               adev->gfx.me.num_pipe_per_me = 1;
> --
> 2.25.1





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

  Powered by Linux