drm/amd/display: Fix Power Gating Configuration
Subsystems (3)
cover drm/amd/display: Fix Power Gating Configuration
Hi all,
I am submitting two patches to correct power gating configurations in the AMD display driver.
1. Patch 1/2 (Fixes: 46825fcfbe16): Corrects DOMAIN10_PG_CONFIG to use DOMAIN10_POWER_FORCEON.
2. Patch 2/2 (Fixes: 46825fcfbe16): Corrects DOMAIN11_PG_CONFIG to use DOMAIN11_POWER_FORCEON.
Thanks for reviewing!
Zicheng Qu (2):
drm/amd/display: Fix incorrect power gating configuration for DOMAIN10 drm/amd/display: Fix incorrect power gating configuration for DOMAIN11
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.34.1
PATCH 1/2 drm/amd/display: Fix incorrect power gating configuration for DOMAIN10
The current implementation incorrectly updates DOMAIN10_PG_CONFIG with DOMAIN8_POWER_FORCEON, which is not the intended behavior. This patch corrects the power gating configuration by updating DOMAIN10_PG_CONFIG with DOMAIN10_POWER_FORCEON, preventing potential issues related to power management.
--- drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c +1 -1
@@ -317,7 +317,7 @@ void dcn20_enable_power_gating_plane(if (REG (DOMAIN8_PG_CONFIG ))REG_UPDATE (DOMAIN8_PG_CONFIG ,DOMAIN8_POWER_FORCEON , force_on);if (REG (DOMAIN10_PG_CONFIG )) -REG_UPDATE (DOMAIN10_PG_CONFIG ,DOMAIN8_POWER_FORCEON , force_on); +REG_UPDATE (DOMAIN10_PG_CONFIG ,DOMAIN10_POWER_FORCEON , force_on);/* DPP0/1/2/3/4/5 */ REG_UPDATE (DOMAIN1_PG_CONFIG ,DOMAIN1_POWER_FORCEON , force_on);
Signature · 1 line
2.34.1
Re: [PATCH 1/2] drm/amd/display: Fix incorrect power gating configuration for DOMAIN10
Quoted 6 lines · Zicheng Qu
The current implementation incorrectly updates
DOMAIN10_PG_CONFIGwithDOMAIN8_POWER_FORCEON, which is not the intended behavior. This patch corrects the power gating configuration by updatingDOMAIN10_PG_CONFIGwithDOMAIN10_POWER_FORCEON, preventing potential issues related to power management.
The bitfield is the same for both so there is no functional change. This is just a cosmetic change to use the right bitfield macro.
Alex
Quoted 23 lines
Fixes 46825fcfbe16 ("drm/amd/display: avoid power gate domains that doesn't exist")Signed-off-by Zicheng Qu <[email protected]>--- drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c +1
-2@@ -317,7 +317,7 @@ void dcn20_enable_power_gating_plane(if (REG (DOMAIN8_PG_CONFIG ))REG_UPDATE (DOMAIN8_PG_CONFIG ,DOMAIN8_POWER_FORCEON , force_on);if (REG (DOMAIN10_PG_CONFIG )) -REG_UPDATE (DOMAIN10_PG_CONFIG ,DOMAIN8_POWER_FORCEON , force_on); +REG_UPDATE (DOMAIN10_PG_CONFIG ,DOMAIN10_POWER_FORCEON , force_on);/* DPP0/1/2/3/4/5 */ REG_UPDATE (DOMAIN1_PG_CONFIG ,DOMAIN1_POWER_FORCEON , force_on); --2.34.1
PATCH 2/2 drm/amd/display: Fix incorrect power gating configuration for DOMAIN11
In reply to Zicheng QuThe current implementation incorrectly updates DOMAIN11_PG_CONFIG with DOMAIN9_POWER_FORCEON, which is not the intended behavior. This patch corrects the power gating configuration by updating DOMAIN11_PG_CONFIG with DOMAIN11_POWER_FORCEON, preventing potential issues related to power management.
--- drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c +1 -1
@@ -327,7 +327,7 @@ void dcn20_enable_power_gating_plane(if (REG (DOMAIN9_PG_CONFIG ))REG_UPDATE (DOMAIN9_PG_CONFIG ,DOMAIN9_POWER_FORCEON , force_on);if (REG (DOMAIN11_PG_CONFIG )) -REG_UPDATE (DOMAIN11_PG_CONFIG ,DOMAIN9_POWER_FORCEON , force_on); +REG_UPDATE (DOMAIN11_PG_CONFIG ,DOMAIN11_POWER_FORCEON , force_on);/* DCS0/1/2/3/4/5 */ REG_UPDATE (DOMAIN16_PG_CONFIG ,DOMAIN16_POWER_FORCEON , force_on);
Signature · 1 line
2.34.1
Re: [PATCH 2/2] drm/amd/display: Fix incorrect power gating configuration for DOMAIN11
Quoted 6 lines · Zicheng Qu
The current implementation incorrectly updates
DOMAIN11_PG_CONFIGwithDOMAIN9_POWER_FORCEON, which is not the intended behavior. This patch corrects the power gating configuration by updatingDOMAIN11_PG_CONFIGwithDOMAIN11_POWER_FORCEON, preventing potential issues related to power management.
The bitfield is the same for both so there is no functional change. This is just a cosmetic change to use the right bitfield macro.
Alex
Quoted 23 lines
Fixes 46825fcfbe16 ("drm/amd/display: avoid power gate domains that doesn't exist")Signed-off-by Zicheng Qu <[email protected]>--- drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c +1
-2@@ -327,7 +327,7 @@ void dcn20_enable_power_gating_plane(if (REG (DOMAIN9_PG_CONFIG ))REG_UPDATE (DOMAIN9_PG_CONFIG ,DOMAIN9_POWER_FORCEON , force_on);if (REG (DOMAIN11_PG_CONFIG )) -REG_UPDATE (DOMAIN11_PG_CONFIG ,DOMAIN9_POWER_FORCEON , force_on); +REG_UPDATE (DOMAIN11_PG_CONFIG ,DOMAIN11_POWER_FORCEON , force_on);/* DCS0/1/2/3/4/5 */ REG_UPDATE (DOMAIN16_PG_CONFIG ,DOMAIN16_POWER_FORCEON , force_on); --2.34.1
Quoted 10 lines · Zicheng Qu
Hi all,
I am submitting two patches to correct power gating configurations in the AMD display driver.
1. Patch 1/2 (Fixes:
46825fcfbe16): CorrectsDOMAIN10_PG_CONFIGto useDOMAIN10_POWER_FORCEON.
2. Patch 2/2 (Fixes:46825fcfbe16): CorrectsDOMAIN11_PG_CONFIGto useDOMAIN11_POWER_FORCEON.
Hi Zicheng,
Do you have more details about the issue? Could you describe the bug that you are fixing?
Thanks
Siqueira
Quoted 9 lines
Thanks for reviewing!
Zicheng Qu (2):
drm/amd/display: Fix incorrect power gating configuration for DOMAIN10 drm/amd/display: Fix incorrect power gating configuration for DOMAIN11drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)