<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Reviewed-by: Alex Deucher <alexander.deucher@amd.com><br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Pan, Xinhui<br>
<b>Sent:</b> Tuesday, March 12, 2019 6:13 AM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org<br>
<b>Cc:</b> Deucher, Alexander; Quan, Evan; Zhang, Hawking<br>
<b>Subject:</b> [PATCH 1/2] drm/amdgpu: let ras initialization a little noticeable</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">add drm info output if ras initialized successfully.<br>
add ras atomfirmware sanity check.<br>
<br>
Signed-off-by: xinhui pan <xinhui.pan@amd.com><br>
---<br>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 9 +++++++--<br>
1 file changed, 7 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c<br>
index 1f47974b1184..10ce40d2c040 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c<br>
@@ -1357,8 +1357,9 @@ static void amdgpu_ras_check_supported(struct amdgpu_device *adev,<br>
adev->asic_type != CHIP_VEGA20)<br>
return;<br>
<br>
- if (amdgpu_atomfirmware_mem_ecc_supported(adev) ||<br>
- amdgpu_atomfirmware_sram_ecc_supported(adev))<br>
+ if (adev->is_atom_fw &&<br>
+ (amdgpu_atomfirmware_mem_ecc_supported(adev) ||<br>
+ amdgpu_atomfirmware_sram_ecc_supported(adev)))<br>
*hw_supported = AMDGPU_RAS_BLOCK_MASK;<br>
<br>
*supported = amdgpu_ras_enable == 0 ?<br>
@@ -1398,6 +1399,10 @@ int amdgpu_ras_init(struct amdgpu_device *adev)<br>
goto fs_out;<br>
<br>
amdgpu_ras_self_test(adev);<br>
+<br>
+ DRM_INFO("RAS INFO: ras initialized successfully, "<br>
+ "hardware ability[%x] ras_mask[%x]\n",<br>
+ con->hw_supported, con->supported);<br>
return 0;<br>
fs_out:<br>
amdgpu_ras_recovery_fini(adev);<br>
-- <br>
2.17.1<br>
<br>
</div>
</span></font></div>
</body>
</html>