[PATCH] drm/amdgpu: Update ring scheduler info as needed
James Zhu
jamesz at amd.com
Tue Jul 18 14:00:07 UTC 2023
On 2023-07-18 08:21, Lijo Lazar wrote:
> Not all rings have scheduler associated. Only update scheduler data for
> rings with scheduler. It could result in out of bound access as total
> rings are more than those associated with particular IPs.
>
> Signed-off-by: Lijo Lazar <lijo.lazar at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/aqua_vanjaram.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/aqua_vanjaram.c b/drivers/gpu/drm/amd/amdgpu/aqua_vanjaram.c
> index 72b629a78c62..d0fc62784e82 100644
> --- a/drivers/gpu/drm/amd/amdgpu/aqua_vanjaram.c
> +++ b/drivers/gpu/drm/amd/amdgpu/aqua_vanjaram.c
> @@ -134,7 +134,7 @@ static int aqua_vanjaram_xcp_sched_list_update(
>
> for (i = 0; i < AMDGPU_MAX_RINGS; i++) {
> ring = adev->rings[i];
> - if (!ring || !ring->sched.ready)
> + if (!ring || !ring->sched.ready || ring->no_scheduler)
[JZ] any case for ring->no_scheduler = true, but ring->sched.ready = true?
> continue;
>
> aqua_vanjaram_xcp_gpu_sched_update(adev, ring, ring->xcp_id);
More information about the amd-gfx
mailing list