drm/amdgpu: Improve error checking in amdgpu_virt_rlcg_reg_rw (v2)
authorVictor Lu <victorchengchi.lu@amd.com>
Mon, 12 Feb 2024 22:33:45 +0000 (17:33 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 22 Feb 2024 15:27:23 +0000 (10:27 -0500)
commit8093383ae7f5f196e3d4f3cc47abb557c81b9e6f
tree2f4b825a245fafe8ae87885d5614dfe4503daec6
parentd6a76c0a5a75b519ce81cd472077f9e76db5d6c3
drm/amdgpu: Improve error checking in amdgpu_virt_rlcg_reg_rw (v2)

The current error detection only looks for a timeout.
This should be changed to also check scratch_reg1 for any errors
returned from RLCG.

v2: remove new error value

Signed-off-by: Victor Lu <victorchengchi.lu@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h