<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">
<p style="font-family:Arial;font-size:10pt;color:#0000FF;margin:5pt;" align="Left">
[AMD Official Use Only]<br>
</p>
<br>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Acked-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> Gong, Curry <Curry.Gong@amd.com><br>
<b>Sent:</b> Thursday, February 17, 2022 4:07 AM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Cc:</b> Deucher, Alexander <Alexander.Deucher@amd.com>; Gong, Curry <Curry.Gong@amd.com><br>
<b>Subject:</b> [PATCH] drm/amdgpu: do not enable asic reset for raven2</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">The GPU reset function of raven2 is not maintained or tested, so it should be<br>
very unstable.<br>
<br>
Now the amdgpu_asic_reset function is added to amdgpu_pmops_suspend, which<br>
causes the S3 test of raven2 to fail, so the asic_reset of raven2 is ignored<br>
here.<br>
<br>
Signed-off-by: Chen Gong <curry.gong@amd.com><br>
---<br>
drivers/gpu/drm/amd/amdgpu/soc15.c | 4 ++--<br>
1 file changed, 2 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c<br>
index 25e1ee2bd2f7..4c6775ff7619 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/soc15.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/soc15.c<br>
@@ -586,8 +586,8 @@ soc15_asic_reset_method(struct amdgpu_device *adev)<br>
static int soc15_asic_reset(struct amdgpu_device *adev)<br>
{<br>
/* original raven doesn't have full asic reset */<br>
- if ((adev->apu_flags & AMD_APU_IS_RAVEN) &&<br>
- !(adev->apu_flags & AMD_APU_IS_RAVEN2))<br>
+ if ((adev->apu_flags & AMD_APU_IS_RAVEN) ||<br>
+ (adev->apu_flags & AMD_APU_IS_RAVEN2))<br>
return 0;<br>
<br>
switch (soc15_asic_reset_method(adev)) {<br>
-- <br>
2.25.1<br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>