summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/nv.c
diff options
context:
space:
mode:
authorPrike Liang <Prike.Liang@amd.com>2022-01-10 13:56:24 +0800
committerAlex Deucher <alexander.deucher@amd.com>2022-02-16 17:30:03 -0500
commitb67f00e06f36192da513ac80148b000fbc5b2717 (patch)
tree4af90617ecf0e107ebad233a27d43a8ba8cd0e0a /drivers/gpu/drm/amd/amdgpu/nv.c
parent2fbc5086975679a5c2ba1bac3ecc5942cf7726c5 (diff)
drm/amdgpu: set new revision id for 10.3.7 GC
Add new revision ID for GC 10.3.7 and set cg/pg flags. Signed-off-by: Prike Liang <Prike.Liang@amd.com> Reviewed-by: Huang Rui <ray.huang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/nv.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/nv.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c b/drivers/gpu/drm/amd/amdgpu/nv.c
index 5e9ab31fee6b..66adc4f1aaa8 100644
--- a/drivers/gpu/drm/amd/amdgpu/nv.c
+++ b/drivers/gpu/drm/amd/amdgpu/nv.c
@@ -907,6 +907,11 @@ static int nv_common_early_init(void *handle)
adev->pg_flags = 0;
adev->external_rev_id = adev->rev_id + 0x82;
break;
+ case IP_VERSION(10, 3, 7):
+ adev->cg_flags = 0;
+ adev->pg_flags = 0;
+ adev->external_rev_id = adev->rev_id + 0x01;
+ break;
default:
/* FIXME: not supported yet */
return -EINVAL;