drm/amdgpu: fix commit 4ef9d7d
Subsystems (2)
PATCH 1/1 drm/amdgpu: fix commit 4ef9d7d
For picasso(adev->pdev->device == 0x15d8)&raven2(adev->rev_id >= 0x8), firmware is sufficient to support gfxoff.
In commit 4ef9d7dc2db166cbe83fe4621385f034c9347fd2, for picasso&raven2, return directly and cause gfxoff disabled.
--- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +7 -7
@@ -1027,14 +1027,14 @@ static void gfx_v9_0_check_if_need_gfxoff(struct amdgpu_device *adev)case CHIP_VEGA20 :break ;case CHIP_RAVEN : -if (adev->rev_id >=0x8 || adev->pdev->device ==0x15d8 ) -break ; -if ((adev->gfx.rlc_fw_version !=106 && - 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) +if (!(adev->rev_id >=0x8 || adev->pdev->device ==0x15d8 ) + &&((adev->gfx.rlc_fw_version !=106 && + 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 ; +if (adev->pm.pp_feature &PP_GFXOFF_MASK ) adev->pg_flags |=AMD_PG_SUPPORT_GFX_PG | AMD_PG_SUPPORT_CP |
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1566920009-8378-1-git-send-email-aaron.liu-5C7GfCeVMHo@public.gmane.org
Alex Deucher
Reviewed-byQuoted 7 lines · Aaron Liu
For
picasso(adev->pdev->device == 0x15d8)&raven2(adev->rev_id >=0x8), firmware is sufficient to support gfxoff.
In commit4ef9d7dc2db166cbe83fe4621385f034c9347fd2, for picasso&raven2, return directly and cause gfxoff disabled.Signed-off-by Aaron Liu <[email protected]>
Quoted 33 lines
--- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +7
-8@@ -1027,14 +1027,14 @@ static void gfx_v9_0_check_if_need_gfxoff(struct amdgpu_device *adev)case CHIP_VEGA20 :break ;case CHIP_RAVEN : -if (adev->rev_id >=0x8 || adev->pdev->device ==0x15d8 ) -break ; -if ((adev->gfx.rlc_fw_version !=106 && - 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) +if (!(adev->rev_id >=0x8 || adev->pdev->device ==0x15d8 ) + &&((adev->gfx.rlc_fw_version !=106 && + 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 ; +if (adev->pm.pp_feature &PP_GFXOFF_MASK ) adev->pg_flags |=AMD_PG_SUPPORT_GFX_PG | AMD_PG_SUPPORT_CP | --2.7.4
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Huang, Ray
Reviewed-by Huang Rui-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Aaron Liu
Sent: Tuesday, August 27, 2019 12:33 PM
To: [email protected]
Cc: Liu, Aaron <[email protected]>
Subject: [PATCH] drm/amdgpu: fix commit 4ef9d7d
For picasso(adev->pdev->device == 0x15d8)&raven2(adev->rev_id >= 0x8), firmware is sufficient to support gfxoff. In commit 4ef9d7dc2db166cbe83fe4621385f034c9347fd2, for picasso&raven2, return directly and cause gfxoff disabled.
--- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +7 -7
@@ -1027,14 +1027,14 @@ static void gfx_v9_0_check_if_need_gfxoff(struct amdgpu_device *adev)case CHIP_VEGA20 :break ;case CHIP_RAVEN : -if (adev->rev_id >=0x8 || adev->pdev->device ==0x15d8 ) -break ; -if ((adev->gfx.rlc_fw_version !=106 && - 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) +if (!(adev->rev_id >=0x8 || adev->pdev->device ==0x15d8 ) + &&((adev->gfx.rlc_fw_version !=106 && + 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 ; +if (adev->pm.pp_feature &PP_GFXOFF_MASK ) adev->pg_flags |=AMD_PG_SUPPORT_GFX_PG | AMD_PG_SUPPORT_CP |
--
2.7.4
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx