Skip to contentSkip to conversation

drm/msm: fix a6xx_gmu_clear_oob

PATCH Applied Jonathan Marek 4 participants 4 messages Feb 8, 2021 – May 26, 2021

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/msm: fix a6xx_gmu_clear_oob

The cleanup patch broke a6xx_gmu_clear_oob, fix it by adding the missing bitshift operation.

Fixes 555c50a4a19b ("drm/msm: Clean up GMU OOB set/clear handling")
---
 drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/msm/adreno/a6xx_gmu.c +1 -1
index 71c917f909af..91cf46f84025 100644
@@ -339,7 +339,7 @@ void a6xx_gmu_clear_oob(struct a6xx_gmu *gmu, enum a6xx_gmu_oob_state state)
 	else
 		bit = a6xx_gmu_oob_bits[state].ack_new;
 
-	gmu_write(gmu, REG_A6XX_GMU_HOST2GMU_INTR_SET, bit);
+	gmu_write(gmu, REG_A6XX_GMU_HOST2GMU_INTR_SET, 1 << bit);
 }
 
 /* Enable CPU control of SPTP power power collapse */
Signature · 6 lines
2.26.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Jonathan Marek

The cleanup patch broke a6xx_gmu_clear_oob, fix it by adding the missing bitshift operation.

Fixes 555c50a4a19b ("drm/msm: Clean up GMU OOB set/clear handling")

Thanks. I feel silly that I missed that.

Quoted 20 lines
---
 drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/msm/adreno/a6xx_gmu.c +1 -1
index 71c917f909af..91cf46f84025 100644
@@ -339,7 +339,7 @@ void a6xx_gmu_clear_oob(struct a6xx_gmu *gmu, enum a6xx_gmu_oob_state state)
 	else
 		bit = a6xx_gmu_oob_bits[state].ack_new;
 
-	gmu_write(gmu, REG_A6XX_GMU_HOST2GMU_INTR_SET, bit);
+	gmu_write(gmu, REG_A6XX_GMU_HOST2GMU_INTR_SET, 1 << bit);
 }
 
 /* Enable CPU control of SPTP power power collapse */
Signature · 1 line
2.26.1
Signature · 6 lines
The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by
#2 lore raw
Quoted 11 lines · Jordan Crouse
Quoted 5 lines · Jonathan Marek

The cleanup patch broke a6xx_gmu_clear_oob, fix it by adding the missing bitshift operation.

Fixes 555c50a4a19b ("drm/msm: Clean up GMU OOB set/clear handling")

Thanks. I feel silly that I missed that.

Yeah, oops.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to Jonathan Marek
This patch was applied to qcom/linux.git (refs/heads/for-next):

Hello:

This patch was applied to qcom/linux.git (refs/heads/for-next):

Quoted 8 lines · On Mon, 8 Feb 2021 13:55:54 -0500 you wrote:

The cleanup patch broke a6xx_gmu_clear_oob, fix it by adding the missing bitshift operation.

Fixes 555c50a4a19b ("drm/msm: Clean up GMU OOB set/clear handling")
---
 drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Here is the summary with links:
- drm/msm: fix a6xx_gmu_clear_oob

    https://git.kernel.org/qcom/c/65aee407a0f5

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html