]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Mar 2023 07:50:15 +0000 (08:50 +0100)
commit5f3bbfe8d4da2f376cc6b4cda119baaf11612f39
tree6f6f87f12e9b5d8038fd678591c4933affeb3ba4
parent3612db921fe73930946ec14350672d6cbb55a959
drm/amdgpu: fix error checking in amdgpu_read_mm_registers for soc21

commit 60b76fa95e4e8f070a485ee9be364cec7e4f36fe 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>
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/soc21.c