Commit 5d0f903f authored by xinhui pan's avatar xinhui pan Committed by Alex Deucher

drm/amdgpu: let ras initialization a little noticeable

add drm info output if ras initialized successfully.
add ras atomfirmware sanity check.
Signed-off-by: default avatarxinhui pan <xinhui.pan@amd.com>
Reviewed-by: default avatarEvan Quan <evan.quan@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 163def43
...@@ -1357,8 +1357,9 @@ static void amdgpu_ras_check_supported(struct amdgpu_device *adev, ...@@ -1357,8 +1357,9 @@ static void amdgpu_ras_check_supported(struct amdgpu_device *adev,
adev->asic_type != CHIP_VEGA20) adev->asic_type != CHIP_VEGA20)
return; return;
if (amdgpu_atomfirmware_mem_ecc_supported(adev) || if (adev->is_atom_fw &&
amdgpu_atomfirmware_sram_ecc_supported(adev)) (amdgpu_atomfirmware_mem_ecc_supported(adev) ||
amdgpu_atomfirmware_sram_ecc_supported(adev)))
*hw_supported = AMDGPU_RAS_BLOCK_MASK; *hw_supported = AMDGPU_RAS_BLOCK_MASK;
*supported = amdgpu_ras_enable == 0 ? *supported = amdgpu_ras_enable == 0 ?
...@@ -1398,6 +1399,10 @@ int amdgpu_ras_init(struct amdgpu_device *adev) ...@@ -1398,6 +1399,10 @@ int amdgpu_ras_init(struct amdgpu_device *adev)
goto fs_out; goto fs_out;
amdgpu_ras_self_test(adev); amdgpu_ras_self_test(adev);
DRM_INFO("RAS INFO: ras initialized successfully, "
"hardware ability[%x] ras_mask[%x]\n",
con->hw_supported, con->supported);
return 0; return 0;
fs_out: fs_out:
amdgpu_ras_recovery_fini(adev); amdgpu_ras_recovery_fini(adev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment