It's different from raven1.

Signed-off-by: Huang Rui <ray.hu...@amd.com>
Reviewed-by: Feifei Xu <feifei...@amd.com>
Signed-off-by: Alex Deucher <alexander.deuc...@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/soc15.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c 
b/drivers/gpu/drm/amd/amdgpu/soc15.c
index 794cfe4a52d1..0a935604ec9e 100644
--- a/drivers/gpu/drm/amd/amdgpu/soc15.c
+++ b/drivers/gpu/drm/amd/amdgpu/soc15.c
@@ -742,7 +742,10 @@ static int soc15_common_early_init(void *handle)
                                AMD_PG_SUPPORT_CP |
                                AMD_PG_SUPPORT_RLC_SMU_HS;
 
-               adev->external_rev_id = 0x1;
+               if (adev->rev_id >= 0x8)
+                       adev->external_rev_id = adev->rev_id + 0x81;
+               else
+                       adev->external_rev_id = 0x1;
                break;
        case CHIP_PICASSO:
                adev->cg_flags = AMD_CG_SUPPORT_GFX_MGLS |
-- 
2.13.6

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to