Skip to contentSkip to conversation

drm/amd/display: Fix Power Gating Configuration

PATCH In review Zicheng Qu 3 participants 6 messages Nov 5, 2024 – Nov 6, 2024

Subsystems (3)
lore
Share & tools
lore

Zicheng Qu

author
#0 lore raw

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
author
#1 lore raw

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.

Fixes 46825fcfbe16 ("drm/amd/display: avoid power gate domains that doesn't exist")
---
 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
index a80c08582932..67a77274d813 100644
@@ -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
#2 lore raw

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_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.

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")
---
 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
index a80c08582932..67a77274d813 100644
@@ -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

author
#3 lore raw

PATCH 2/2 drm/amd/display: Fix incorrect power gating configuration for DOMAIN11

In reply to Zicheng Qu

The 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.

Fixes 46825fcfbe16 ("drm/amd/display: avoid power gate domains that doesn't exist")
---
 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
index 67a77274d813..bc21eb0b2760 100644
@@ -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
#4 lore raw

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_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.

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")
---
 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
index 67a77274d813..bc21eb0b2760 100644
@@ -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

#5 lore raw
In reply to Zicheng Qu
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): Corrects DOMAIN10_PG_CONFIG to use DOMAIN10_POWER_FORCEON.
2. Patch 2/2 (Fixes: 46825fcfbe16): Corrects DOMAIN11_PG_CONFIG to use DOMAIN11_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 DOMAIN11

  drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)