Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: enable gfxoff for raven1 refresh

When smu version is larger than 0x41e2b, it will load
raven_kicker_rlc.bin.To enable gfxoff for raven_kicker_rlc.bin,it
needs to avoid adev->pm.pp_feature &= ~PP_GFXOFF_MASK when it loads
raven_kicker_rlc.bin.

Signed-off-by: changzhu <Changfeng.Zhu@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

changzhu and committed by
Alex Deucher
aaff8b44 8973d9ec

+4 -11
+4 -11
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
··· 1042 1042 case CHIP_VEGA20: 1043 1043 break; 1044 1044 case CHIP_RAVEN: 1045 - /* Disable GFXOFF on original raven. There are combinations 1046 - * of sbios and platforms that are not stable. 1047 - */ 1048 - if (!(adev->rev_id >= 0x8 || adev->pdev->device == 0x15d8)) 1049 - adev->pm.pp_feature &= ~PP_GFXOFF_MASK; 1050 - else if (!(adev->rev_id >= 0x8 || adev->pdev->device == 0x15d8) 1051 - &&((adev->gfx.rlc_fw_version != 106 && 1052 - adev->gfx.rlc_fw_version < 531) || 1053 - (adev->gfx.rlc_fw_version == 53815) || 1054 - (adev->gfx.rlc_feature_version < 1) || 1055 - !adev->gfx.rlc.is_rlc_v2_1)) 1045 + if (!(adev->rev_id >= 0x8 || 1046 + adev->pdev->device == 0x15d8) && 1047 + (adev->pm.fw_version < 0x41e2b || /* not raven1 fresh */ 1048 + !adev->gfx.rlc.is_rlc_v2_1)) /* without rlc save restore ucodes */ 1056 1049 adev->pm.pp_feature &= ~PP_GFXOFF_MASK; 1057 1050 1058 1051 if (adev->pm.pp_feature & PP_GFXOFF_MASK)