]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amd/powerplay: no need to mask workable gfxoff feature for vega12
authorEvan Quan <evan.quan@amd.com>
Thu, 5 Jul 2018 02:44:33 +0000 (10:44 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Jul 2018 19:45:08 +0000 (14:45 -0500)
Gfxoff feature for vega12 is workable. So, there is no need to
mask it any more.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c

index 9b675d9bd162d7b10e0f6d7de147df8894859c26..8994aa5c8cf80cb56734a3737c6bffc39bb3cfe0 100644 (file)
@@ -147,10 +147,10 @@ int hwmgr_early_init(struct pp_hwmgr *hwmgr)
                smu7_init_function_pointers(hwmgr);
                break;
        case AMDGPU_FAMILY_AI:
-               hwmgr->feature_mask &= ~PP_GFXOFF_MASK;
                switch (hwmgr->chip_id) {
                case CHIP_VEGA10:
                case CHIP_VEGA20:
+                       hwmgr->feature_mask &= ~PP_GFXOFF_MASK;
                        hwmgr->smumgr_funcs = &vega10_smu_funcs;
                        vega10_hwmgr_init(hwmgr);
                        break;