drm/amdgpu: Issue ras TA disable/enable cmd forcely on boot
authorxinhui pan <xinhui.pan@amd.com>
Wed, 8 May 2019 08:13:03 +0000 (16:13 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 24 May 2019 17:20:50 +0000 (12:20 -0500)
commit7af23ebe93fe52a30b2338450c8cd40a4f5210d4
treeb0559e1c09dc5ba9c25c281e5b6c9d3b6758f126
parentb152e8e13e883656c0012504c451d483579aa842
drm/amdgpu: Issue ras TA disable/enable cmd forcely on boot

Check ras TA error code and return EAGAIN.
Issue ras enable/disable cmd without checking currect state.
Looks like ras TA will handle current state == target state case.

Now driver might need do a reset to satisfy ras TA.

Signed-off-by: xinhui pan <xinhui.pan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c