[PATCH 1/8] drm/amdgpu: increase AMDGPU_MAX_HWIP_RINGS

Christian König ckoenig.leichtzumerken at gmail.com
Fri Mar 31 06:19:04 UTC 2023



Am 30.03.23 um 21:48 schrieb Alex Deucher:
> From: James Zhu <James.Zhu at amd.com>
>
> [WA] Increase AMDGPU_MAX_HWIP_RINGS to 64 to support more compute
> ring resource. Later need redesign with queue/prirority/scheduler
> factors to reduce AMDGPU_MAX_HWIP_RINGS.

This is just a workaround for internal use and not meant for upstreaming.

The array is used for the load balancing between scheduler instances. 
Since we don't want to load balance between different partitions we 
should not need to increase this.

Christian.


>
> Signed-off-by: James Zhu <James.Zhu at amd.com>
> Acked-by: Christian König <christian.koenig at amd.com>
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h
> index 1f40c0bfb33f..244562ce735c 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h
> @@ -37,7 +37,7 @@ struct amdgpu_vm;
>   
>   /* max number of rings */
>   #define AMDGPU_MAX_RINGS		102
> -#define AMDGPU_MAX_HWIP_RINGS		32
> +#define AMDGPU_MAX_HWIP_RINGS		64
>   #define AMDGPU_MAX_GFX_RINGS		2
>   #define AMDGPU_MAX_SW_GFX_RINGS         2
>   #define AMDGPU_MAX_COMPUTE_RINGS	8



More information about the amd-gfx mailing list