wentalou 1712fb1a2f drm/amdgpu: amdgpu_device_recover_vram always failed if only one node in shadow_list
amdgpu_bo_restore_shadow would assign zero to r if succeeded.
r would remain zero if there is only one node in shadow_list.
current code would always return failure when r <= 0.
restart the timeout for each wait was a rather problematic bug as well.
The value of tmo SHOULD be changed, otherwise we wait tmo jiffies on each loop.

Signed-off-by: Wentao Lou <Wentao.Lou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-04-04 10:22:06 -05:00
..
2018-10-24 20:04:03 -05:00
2019-03-04 12:02:55 +10:00
2019-03-04 12:02:55 +10:00
2015-06-03 21:03:15 -04:00
2019-02-18 13:27:15 +10:00
2017-10-20 13:28:44 -04:00
2019-01-14 10:58:37 +01:00
2015-06-03 21:03:15 -04:00
2019-01-14 15:04:47 -05:00
2019-01-14 15:04:47 -05:00
2018-11-29 10:34:03 +10:00
2018-08-28 11:22:42 -05:00
2015-06-03 21:03:17 -04:00
2019-02-18 13:27:15 +10:00
2016-08-31 15:21:09 -04:00
2019-03-04 12:02:55 +10:00
2019-01-14 15:04:47 -05:00
2019-01-14 15:04:47 -05:00