From: Kent Russell Date: Mon, 6 Feb 2023 17:21:42 +0000 (-0500) Subject: drm/amdgpu: Add unique_id support for GC 11.0.1/2 X-Git-Tag: v6.6.7~3604^2~3^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c108a18462949fe709ebd6b0be68398d643bc285;p=platform%2Fkernel%2Flinux-starfive.git drm/amdgpu: Add unique_id support for GC 11.0.1/2 These can support unique_id, so create the sysfs file for them Signed-off-by: Kent Russell Reviewed-by: Harish Kasiviswanathan Reviewed-by: Christian König Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org # 6.1.x --- diff --git a/drivers/gpu/drm/amd/pm/amdgpu_pm.c b/drivers/gpu/drm/amd/pm/amdgpu_pm.c index a917036..2f3e239 100644 --- a/drivers/gpu/drm/amd/pm/amdgpu_pm.c +++ b/drivers/gpu/drm/amd/pm/amdgpu_pm.c @@ -1991,6 +1991,8 @@ static int default_attr_update(struct amdgpu_device *adev, struct amdgpu_device_ case IP_VERSION(9, 4, 2): case IP_VERSION(10, 3, 0): case IP_VERSION(11, 0, 0): + case IP_VERSION(11, 0, 1): + case IP_VERSION(11, 0, 2): *states = ATTR_STATE_SUPPORTED; break; default: