[AMD Official Use Only - AMD Internal Distribution Only]
Reviewed-by: Ce Sun <[email protected]> ________________________________ From: amd-gfx <[email protected]> on behalf of Khatri, Sunil <[email protected]> Sent: Saturday, April 12, 2025 12:33 AM To: Deucher, Alexander <[email protected]>; [email protected] <[email protected]> Subject: Re: [PATCH] drm/amdgpu: fix no_user_submission check for SDMA Reviewed-by: Sunil Khatri <[email protected]> On 4/11/2025 6:20 PM, Alex Deucher wrote: > Copy paste typo. Use the flag from the sdma structure. > > Fixes: 4310acd4464b ("drm/amdgpu: add ring flag for no user submissions") > Signed-off-by: Alex Deucher <[email protected]> > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c > b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c > index 0ba3ef1e4a068..6a42dea775b10 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c > @@ -427,7 +427,7 @@ static int amdgpu_hw_ip_info(struct amdgpu_device *adev, > type = AMD_IP_BLOCK_TYPE_SDMA; > for (i = 0; i < adev->sdma.num_instances; i++) > if (adev->sdma.instance[i].ring.sched.ready && > - !adev->gfx.gfx_ring[i].no_user_submission) > + !adev->sdma.instance[i].ring.no_user_submission) > ++num_rings; > ib_start_alignment = 256; > ib_size_alignment = 4;
