]> git.itanic.dy.fi Git - linux-stable/blobdiff - drivers/gpu/drm/amd/amdgpu/soc21.c
drm/amdgpu: differentiate external rev id for gfx 11.5.0
[linux-stable] / drivers / gpu / drm / amd / amdgpu / soc21.c
index 9cca5732b5dbf396ff4dff7bc27a812700d8a034..fd4505fa4f670bc42bff0086082e8d08879371a4 100644 (file)
@@ -712,7 +712,10 @@ static int soc21_common_early_init(void *handle)
                        AMD_PG_SUPPORT_VCN |
                        AMD_PG_SUPPORT_JPEG |
                        AMD_PG_SUPPORT_GFX_PG;
-               adev->external_rev_id = adev->rev_id + 0x1;
+               if (adev->rev_id == 0)
+                       adev->external_rev_id = 0x1;
+               else
+                       adev->external_rev_id = adev->rev_id + 0x10;
                break;
        default:
                /* FIXME: not supported yet */