drm/amdgpu: drop redundant check of harvest info
authorGuchun Chen <guchun.chen@amd.com>
Wed, 16 Mar 2022 06:51:31 +0000 (14:51 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 25 Mar 2022 16:40:26 +0000 (12:40 -0400)
Harvest bit setting in IP data structure promises this,
so no need to set it explicitly.

Signed-off-by: Guchun Chen <guchun.chen@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c

index e4fcbb3..5a18228 100644 (file)
@@ -1150,13 +1150,6 @@ void amdgpu_discovery_harvest_ip(struct amdgpu_device *adev)
                adev->harvest_ip_mask |= AMD_HARVEST_IP_VCN_MASK;
                adev->harvest_ip_mask |= AMD_HARVEST_IP_JPEG_MASK;
        }
-       if ((adev->pdev->device == 0x731E &&
-            (adev->pdev->revision == 0xC6 || adev->pdev->revision == 0xC7)) ||
-           (adev->pdev->device == 0x7340 && adev->pdev->revision == 0xC9)  ||
-           (adev->pdev->device == 0x7360 && adev->pdev->revision == 0xC7)) {
-               adev->harvest_ip_mask |= AMD_HARVEST_IP_VCN_MASK;
-               adev->harvest_ip_mask |= AMD_HARVEST_IP_JPEG_MASK;
-       }
 }
 
 union gc_info {