drm/amdgpu: fix error checking in amdgpu_read_mm_registers for nv
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Mar 2023 13:59:13 +0000 (08:59 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 10 Mar 2023 03:06:19 +0000 (22:06 -0500)
commitb42fee5e0b44344cfe4c38e61341ee250362c83f
tree7b91b262b12b0a85fc0f9bab92ba06607bbed7c0
parent2915e43a033a778816fa4bc621f033576796521e
drm/amdgpu: fix error checking in amdgpu_read_mm_registers for nv

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/nv.c