drm/amdgpu: Enable unique_id for Aldebaran
authorKent Russell <kent.russell@amd.com>
Mon, 13 Dec 2021 18:15:20 +0000 (13:15 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Dec 2021 13:54:43 +0000 (08:54 -0500)
It's supported, so support the unique_id sysfs file

Signed-off-by: Kent Russell <kent.russell@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/amdgpu_pm.c

index 082539c..dfefb14 100644 (file)
@@ -2090,7 +2090,8 @@ static int default_attr_update(struct amdgpu_device *adev, struct amdgpu_device_
        } else if (DEVICE_ATTR_IS(unique_id)) {
                if (asic_type != CHIP_VEGA10 &&
                    asic_type != CHIP_VEGA20 &&
-                   asic_type != CHIP_ARCTURUS)
+                   asic_type != CHIP_ARCTURUS &&
+                   asic_type != CHIP_ALDEBARAN)
                        *states = ATTR_STATE_UNSUPPORTED;
        } else if (DEVICE_ATTR_IS(pp_features)) {
                if (adev->flags & AMD_IS_APU || asic_type < CHIP_VEGA10)