drm/amdgpu: add is_raven_kicker judgement for raven1
Subsystems (2)
PATCH 1/1 drm/amdgpu: add is_raven_kicker judgement for raven1
From: changzhu <[email protected]>
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.
--- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +9 -2
@@ -1193,6 +1193,14 @@ static bool gfx_v9_0_should_disable_gfxoff(struct pci_dev *pdev)return false; } +static bool is_raven_kicker (struct amdgpu_device *adev) +{ +if (adev->pm.fw_version >=0x41e2b ) +return true; +else +return false; +} +static void gfx_v9_0_check_if_need_gfxoff (struct amdgpu_device *adev) {if (gfx_v9_0_should_disable_gfxoff (adev->pdev))
@@ -1205,9 +1213,8 @@ static void gfx_v9_0_check_if_need_gfxoff(struct amdgpu_device *adev)break ;case CHIP_RAVEN :if (!(adev->rev_id >=0x8 || adev->pdev->device ==0x15d8 ) && - ((adev->gfx.rlc_fw_version !=106 && + ((!is_raven_kicker (adev) && adev->gfx.rlc_fw_version <531 ) || - (adev->gfx.rlc_fw_version ==53815 ) || (adev->gfx.rlc_feature_version <1 ) || !adev->gfx.rlc.is_rlc_v2_1)) adev->pm.pp_feature &= ~PP_GFXOFF_MASK ;
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
[AMD Public Use]
________________________________
From: amd-gfx <[email protected]> on behalf of Changfeng.Zhu <[email protected]>
Sent: Thursday, February 13, 2020 11:03 PM
To: Huang, Ray <[email protected]>; [email protected] <[email protected]>
Cc: Zhu, Changfeng <[email protected]>
Subject: [PATCH] drm/amdgpu: add is_raven_kicker judgement for raven1
From: changzhu <[email protected]>
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.
--- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +9 -2
@@ -1193,6 +1193,14 @@ static bool gfx_v9_0_should_disable_gfxoff(struct pci_dev *pdev)return false; } +static bool is_raven_kicker (struct amdgpu_device *adev) +{ +if (adev->pm.fw_version >=0x41e2b ) +return true; +else +return false; +} +static void gfx_v9_0_check_if_need_gfxoff (struct amdgpu_device *adev) {if (gfx_v9_0_should_disable_gfxoff (adev->pdev))
@@ -1205,9 +1213,8 @@ static void gfx_v9_0_check_if_need_gfxoff(struct amdgpu_device *adev)break ;case CHIP_RAVEN :if (!(adev->rev_id >=0x8 || adev->pdev->device ==0x15d8 ) && - ((adev->gfx.rlc_fw_version !=106 && + ((!is_raven_kicker (adev) && adev->gfx.rlc_fw_version <531 ) || - (adev->gfx.rlc_fw_version ==53815 ) || (adev->gfx.rlc_feature_version <1 ) || !adev->gfx.rlc.is_rlc_v2_1)) adev->pm.pp_feature &= ~PP_GFXOFF_MASK ;
--
2.17.1
_______________________________________________
amd-gfx mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=02%7C01%7Calexander.deucher%40amd.com%7C5839d10e3a0e4c5615ac08d7b102fbc3%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637172498725043115&sdata=3D1zzp0A4FGFntc4f%2F4K3u%2FB4wYKtTtwDsPJkYoIslo%3D&reserved=0
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 8 lines · Changfeng
From: changzhu <[email protected]>
The rlc version of
raven_kicer_rlcis different from the legacy rlc version ofraven_rlc. So it needs to add a judgement function forraven_kicer_rlcand avoid disable GFXOFF when loadingraven_kicer_rlc.Change-Id I00d726cc39eae4ea788c1d5faeb8ce75ec0b884dSigned-off-by changzhu <[email protected]>
Quoted 37 lines
--- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +9
-2@@ -1193,6 +1193,14 @@ static bool gfx_v9_0_should_disable_gfxoff(struct pci_dev *pdev)return false; } +static bool is_raven_kicker (struct amdgpu_device *adev) +{ +if (adev->pm.fw_version >=0x41e2b ) +return true; +else +return false; +} +static void gfx_v9_0_check_if_need_gfxoff (struct amdgpu_device *adev) {if (gfx_v9_0_should_disable_gfxoff (adev->pdev))@@ -1205,9 +1213,8 @@ static void gfx_v9_0_check_if_need_gfxoff(struct amdgpu_device *adev)break ;case CHIP_RAVEN :if (!(adev->rev_id >=0x8 || adev->pdev->device ==0x15d8 ) && - ((adev->gfx.rlc_fw_version !=106 && + ((!is_raven_kicker (adev) && adev->gfx.rlc_fw_version <531 ) || - (adev->gfx.rlc_fw_version ==53815 ) || (adev->gfx.rlc_feature_version <1 ) || !adev->gfx.rlc.is_rlc_v2_1)) adev->pm.pp_feature &= ~PP_GFXOFF_MASK ;Signature · 1 line
2.17.1
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx