From: Prike Liang <[email protected]>

Disable clock gating and power gating on the early bring up phase.

Signed-off-by: Prike Liang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/soc21.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/soc21.c 
b/drivers/gpu/drm/amd/amdgpu/soc21.c
index 40d23738ee4e..a920bcb9f5b3 100644
--- a/drivers/gpu/drm/amd/amdgpu/soc21.c
+++ b/drivers/gpu/drm/amd/amdgpu/soc21.c
@@ -688,6 +688,12 @@ static int soc21_common_early_init(void *handle)
                adev->external_rev_id = adev->rev_id + 0x80;
                break;
 
+
+       case IP_VERSION(11, 5, 0):
+               adev->cg_flags = 0;
+               adev->pg_flags = 0;
+               adev->external_rev_id = adev->rev_id + 0x1;
+               break;
        default:
                /* FIXME: not supported yet */
                return -EINVAL;
-- 
2.41.0

Reply via email to