drm/amdgpu: drive all vega asics from the IP discovery table
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 30 Jul 2021 19:50:38 +0000 (15:50 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Oct 2021 19:23:00 +0000 (15:23 -0400)
Rather than hardcoding based on asic_type, use the IP
discovery table to configure the driver.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

index 274ef4a514a29afe1d9da004251ce35cf0f1952a..480708dd2d73bcdb482f65866025c336f9b44a7e 100644 (file)
@@ -2126,22 +2126,6 @@ static int amdgpu_device_ip_early_init(struct amdgpu_device *adev)
                if (r)
                        return r;
                break;
-       case CHIP_VEGA10:
-       case CHIP_VEGA12:
-       case CHIP_VEGA20:
-       case CHIP_RAVEN:
-       case CHIP_ARCTURUS:
-       case CHIP_RENOIR:
-       case CHIP_ALDEBARAN:
-               if (adev->flags & AMD_IS_APU)
-                       adev->family = AMDGPU_FAMILY_RV;
-               else
-                       adev->family = AMDGPU_FAMILY_AI;
-
-               r = soc15_set_ip_blocks(adev);
-               if (r)
-                       return r;
-               break;
        default:
                r = amdgpu_discovery_set_ip_blocks(adev);
                if (r)