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

drm/amdgpu: add is_raven_kicker judgement for raven1

The rlc version of raven_kicer_rlc is different from the legacy rlc
version of raven_rlc. So it needs to add a judgement function for
raven_kicer_rlc and avoid disable GFXOFF when loading raven_kicer_rlc.

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

authored by

changzhu and committed by
Alex Deucher
debcf837 b08c3ed6

+9 -2
+9 -2
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
··· 1193 1193 return false; 1194 1194 } 1195 1195 1196 + static bool is_raven_kicker(struct amdgpu_device *adev) 1197 + { 1198 + if (adev->pm.fw_version >= 0x41e2b) 1199 + return true; 1200 + else 1201 + return false; 1202 + } 1203 + 1196 1204 static void gfx_v9_0_check_if_need_gfxoff(struct amdgpu_device *adev) 1197 1205 { 1198 1206 if (gfx_v9_0_should_disable_gfxoff(adev->pdev)) ··· 1213 1205 break; 1214 1206 case CHIP_RAVEN: 1215 1207 if (!(adev->rev_id >= 0x8 || adev->pdev->device == 0x15d8) && 1216 - ((adev->gfx.rlc_fw_version != 106 && 1208 + ((!is_raven_kicker(adev) && 1217 1209 adev->gfx.rlc_fw_version < 531) || 1218 - (adev->gfx.rlc_fw_version == 53815) || 1219 1210 (adev->gfx.rlc_feature_version < 1) || 1220 1211 !adev->gfx.rlc.is_rlc_v2_1)) 1221 1212 adev->pm.pp_feature &= ~PP_GFXOFF_MASK;