drm/amdgpu: read reg in each iterator of psp_wait_for loop
authorZhang, Jerry <Jerry.Zhang@amd.com>
Fri, 14 Jul 2017 10:20:17 +0000 (18:20 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Jul 2017 20:28:02 +0000 (16:28 -0400)
commit2890decfd9969cac21067ca0c734fbccaf74d634
tree99ce7988ec5882125cbb5179b4d1c90c1e91956f
parentbe448a4dd48f4b23274103fb58379f4e1f317de8
drm/amdgpu: read reg in each iterator of psp_wait_for loop

v2: fix the SOS loading failure for PSP v3.1

Signed-off-by: Junwei Zhang <Jerry.Zhang@amd.com>
Cc: stable@vger.kernel.org
Acked-by: Alex Deucher <alexander.deucher@amd.com> (v1)
Acked-by: Huang Rui <ray.huang@amd.com> (v1)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
drivers/gpu/drm/amd/amdgpu/psp_v3_1.c