<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:#008000;margin:15pt;" align="Left">
[Public]<br>
</p>
<br>
<div>
<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> Chen, Guchun <Guchun.Chen@amd.com><br>
<b>Sent:</b> Wednesday, March 16, 2022 2:53 AM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org>; Zhang, Hawking <Hawking.Zhang@amd.com>; Koenig, Christian <Christian.Koenig@amd.com>; Pan, Xinhui <Xinhui.Pan@amd.com>; Deucher, Alexander <Alexander.Deucher@amd.com><br>
<b>Cc:</b> Chen, Guchun <Guchun.Chen@amd.com><br>
<b>Subject:</b> [PATCH] drm/amdgpu: drop redundant check of harvest info</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Harvest bit setting in IP data structure promises this,<br>
so no need to set it explicitly.<br>
<br>
Signed-off-by: Guchun Chen <guchun.chen@amd.com><br>
---<br>
 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 7 -------<br>
 1 file changed, 7 deletions(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c<br>
index e4fcbb385a62..5a182288391b 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c<br>
@@ -1150,13 +1150,6 @@ void amdgpu_discovery_harvest_ip(struct amdgpu_device *adev)<br>
                 adev->harvest_ip_mask |= AMD_HARVEST_IP_VCN_MASK;<br>
                 adev->harvest_ip_mask |= AMD_HARVEST_IP_JPEG_MASK;<br>
         }<br>
-       if ((adev->pdev->device == 0x731E &&<br>
-            (adev->pdev->revision == 0xC6 || adev->pdev->revision == 0xC7)) ||<br>
-           (adev->pdev->device == 0x7340 && adev->pdev->revision == 0xC9)  ||<br>
-           (adev->pdev->device == 0x7360 && adev->pdev->revision == 0xC7)) {<br>
-               adev->harvest_ip_mask |= AMD_HARVEST_IP_VCN_MASK;<br>
-               adev->harvest_ip_mask |= AMD_HARVEST_IP_JPEG_MASK;<br>
-       }<br>
 }<br>
 <br>
 union gc_info {<br>
-- <br>
2.17.1<br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>