drm/amdgpu: fix error checking in amdgpu_read_mm_registers for soc21
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 6 Mar 2023 15:35:34 +0000 (10:35 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 10 Mar 2023 03:06:19 +0000 (22:06 -0500)
commit2915e43a033a778816fa4bc621f033576796521e
treecde587ce2971e4a6a1e6d141a5023ae99c197ef2
parent0dcdf8498eae2727bb33cef3576991dc841d4343
drm/amdgpu: fix error checking in amdgpu_read_mm_registers for soc21

Properly skip non-existent registers as well.

Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/2442
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/soc21.c