]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix error checking in amdgpu_read_mm_registers for soc15
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 6 Mar 2023 15:34:20 +0000 (10:34 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Mar 2023 07:50:15 +0000 (08:50 +0100)
commit3612db921fe73930946ec14350672d6cbb55a959
tree00d35a5492ea84c35990751a5eb7936b7e56840e
parent90659aaefbaf17998d1e22e7ab6caec7800fa651
drm/amdgpu: fix error checking in amdgpu_read_mm_registers for soc15

commit 78ce86944ff4e4c7303f28a2d2abf76297e906ab upstream.

Properly skip non-existent registers as well.

Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/2442
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/soc15.c