drm/amdgpu: fix coding error of mmhub pg enablement
authorLikun Gao <Likun.Gao@amd.com>
Mon, 6 Jul 2020 02:54:26 +0000 (10:54 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 Jul 2020 13:01:24 +0000 (09:01 -0400)
MMHUB powergating should be disabled on navi12 and enabled on sienna
cichlid.

Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/nv.c

index 4b87506..3568491 100644 (file)
@@ -707,8 +707,7 @@ static int nv_common_early_init(void *handle)
                adev->pg_flags = AMD_PG_SUPPORT_VCN |
                        AMD_PG_SUPPORT_VCN_DPG |
                        AMD_PG_SUPPORT_JPEG |
-                       AMD_PG_SUPPORT_ATHUB |
-                       AMD_PG_SUPPORT_MMHUB;
+                       AMD_PG_SUPPORT_ATHUB;
                /* guest vm gets 0xffffffff when reading RCC_DEV0_EPF0_STRAP0,
                 * as a consequence, the rev_id and external_rev_id are wrong.
                 * workaround it by hardcoding rev_id to 0 (default value).
@@ -731,7 +730,8 @@ static int nv_common_early_init(void *handle)
                adev->pg_flags = AMD_PG_SUPPORT_VCN |
                        AMD_PG_SUPPORT_VCN_DPG |
                        AMD_PG_SUPPORT_JPEG |
-                       AMD_PG_SUPPORT_ATHUB;
+                       AMD_PG_SUPPORT_ATHUB |
+                       AMD_PG_SUPPORT_MMHUB;
                adev->external_rev_id = adev->rev_id + 0x28;
                break;
        default: