From: Tao Zhou Date: Tue, 13 Jul 2021 21:45:40 +0000 (-0400) Subject: drm/amdgpu: add chip early init for cyan_skillfish X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b515937b414a5b1bbacd6cde1c1f4883808399e3;p=linux.git drm/amdgpu: add chip early init for cyan_skillfish Set cg/pg flags and rev id for cyan_skillfish. Signed-off-by: Tao Zhou Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c b/drivers/gpu/drm/amd/amdgpu/nv.c index de0c08ec8ed07..045a26b1594e6 100644 --- a/drivers/gpu/drm/amd/amdgpu/nv.c +++ b/drivers/gpu/drm/amd/amdgpu/nv.c @@ -1253,6 +1253,11 @@ static int nv_common_early_init(void *handle) else adev->external_rev_id = adev->rev_id + 0x01; break; + case CHIP_CYAN_SKILLFISH: + adev->cg_flags = 0; + adev->pg_flags = 0; + adev->external_rev_id = adev->rev_id + 0x82; + break; default: /* FIXME: not supported yet */ return -EINVAL;