drm/amdgpu: enable gfxoff for raven1 refresh
Subsystems (2)
PATCH 1/1 drm/amdgpu: enable gfxoff for raven1 refresh
From: changzhu <[email protected]>
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.
--- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +4 -9
@@ -1038,17 +1038,12 @@ static void gfx_v9_0_check_if_need_gfxoff(struct amdgpu_device *adev)case CHIP_VEGA20 :break ;case CHIP_RAVEN : -/* Disable GFXOFF on original raven. There are combinations -* of sbios and platforms that are not stable. -*/ -if (!(adev->rev_id >=0x8 || adev->pdev->device ==0x15d8 )) - adev->pm.pp_feature &= ~PP_GFXOFF_MASK ; -else if (!(adev->rev_id >=0x8 || adev->pdev->device ==0x15d8 ) - &&((adev->gfx.rlc_fw_version !=106 && - adev->gfx.rlc_fw_version <531 ) || +if (!(adev->rev_id >=0x8 || adev->pdev->device ==0x15d8 ) + &&((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->gfx.rlc.is_rlc_v2_1) + &&(adev->pm.fw_version <0x41e2b )) adev->pm.pp_feature &= ~PP_GFXOFF_MASK ;if (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 Official Use Only - Internal Distribution Only]
Quoted 18 lines · Changfeng
From: changzhu <[email protected]>
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 avoidadev->pm.pp_feature&= ~PP_GFXOFF_MASK when it loads raven_kicker_rlc.bin.Change-Id I4dffa1783c9ceb5d40df9756d821e2cd7feff84dSigned-off-by changzhu <[email protected]>--- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-)drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0
-0
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static void gfx_v9_0_check_if_need_gfxoff(struct amdgpu_device *adev) · line 1043
Quoted 6 lines
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0
-3@@ -1038,17 +1038,12 @@ static void gfx_v9_0_check_if_need_gfxoff(struct amdgpu_device *adev)case CHIP_VEGA20 :break ;case CHIP_RAVEN : -/* Disable GFXOFF on original raven. There are combinations -* of sbios and platforms that are not stable. -*/
Please add comments that only enable gfxoff on raven kicker so far.
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static void gfx_v9_0_check_if_need_gfxoff(struct amdgpu_device *adev) · line 1046
Quoted 11 lines
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +4
-5-if (!(adev->rev_id >=0x8 || adev->pdev->device ==0x15d8 )) - adev->pm.pp_feature &= ~PP_GFXOFF_MASK ; - else if (!(adev->rev_id >= 0x8 || adev->pdev->device == 0x15d8) - &&((adev->gfx.rlc_fw_version != 106 && - adev->gfx.rlc_fw_version < 531) || +if (!(adev->rev_id >=0x8 || adev->pdev->device ==0x15d8 ) + &&((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.fw_version <0x41e2b ))
I think the if should be below:
if (!(adev->rev_id >= 0x8 || adev->pdev->device == 0x15d8)
&& adev->pm.fw_version < 0x41e2b /* not raven1 fresh */
|| !adev->gfx.rlc.is_rlc_v2_1) /* without rlc save restore ucodes */Thanks,
Ray
Quoted 6 lines
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0
-0adev->pm.pp_feature &= ~PP_GFXOFF_MASK ;if (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