drm/amdgpu: Introduce another ras enable function
authorxinhui pan <xinhui.pan@amd.com>
Mon, 8 Apr 2019 06:49:37 +0000 (14:49 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Apr 2019 18:49:15 +0000 (13:49 -0500)
commit77de502b088fa4b9ed8060085d0c2d49b2e0a306
tree701d1f469780d63df33129e14b67d57bc29ce906
parent191051a1bef8257313d4bc4eafbf201e35e135e7
drm/amdgpu: Introduce another ras enable function

Many parts of the whole SW stack can program the ras enablement state
during the boot. Now we handle that case by adding one function which
check the ras flags and choose different code path.

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