drm/amdgpu: init gfx_v9_4_3 external_rev_id
authorHawking Zhang <Hawking.Zhang@amd.com>
Sun, 23 Oct 2022 12:27:59 +0000 (20:27 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:48:17 +0000 (09:48 -0400)
it is used for user space driver to identify gfx_v9_4_3 chip

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Le Ma <le.ma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/soc15.c

index 206013d276c1a9a8871bb534ddd6feecd69cf5ac..06a18b2f6e04138c000c0ad07bbca2115c5d08d7 100644 (file)
@@ -1127,6 +1127,7 @@ static int soc15_common_early_init(void *handle)
                        AMD_PG_SUPPORT_VCN |
                        AMD_PG_SUPPORT_VCN_DPG |
                        AMD_PG_SUPPORT_JPEG;
+               adev->external_rev_id = adev->rev_id + 0x46;
                break;
        default:
                /* FIXME: not supported yet */