linux-clk.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] clk: qcom: Avoid SMMU/cx gdsc corner cases
@ 2019-12-17 17:19 Jeffrey Hugo
  2019-12-19  6:02 ` Stephen Boyd
  0 siblings, 1 reply; 2+ messages in thread
From: Jeffrey Hugo @ 2019-12-17 17:19 UTC (permalink / raw)
  To: mturquette, sboyd
  Cc: agross, bjorn.andersson, linux-arm-msm, linux-clk, linux-kernel,
	Jeffrey Hugo

Mark the msm8998 cpu CX gdsc as votable and use the hw control to avoid
corner cases with SMMU per hardware documentation.

Fixes: 3f7df5baa259 ("clk: qcom: Add MSM8998 GPU Clock Controller (GPUCC) driver")
Signed-off-by: Jeffrey Hugo <jeffrey.l.hugo@gmail.com>
---
 drivers/clk/qcom/gpucc-msm8998.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/clk/qcom/gpucc-msm8998.c b/drivers/clk/qcom/gpucc-msm8998.c
index e5e2492b20c5..9b3923af02a1 100644
--- a/drivers/clk/qcom/gpucc-msm8998.c
+++ b/drivers/clk/qcom/gpucc-msm8998.c
@@ -242,10 +242,12 @@ static struct clk_branch gfx3d_isense_clk = {
 
 static struct gdsc gpu_cx_gdsc = {
 	.gdscr = 0x1004,
+	.gds_hw_ctrl = 0x1008,
 	.pd = {
 		.name = "gpu_cx",
 	},
 	.pwrsts = PWRSTS_OFF_ON,
+	.flags = VOTABLE,
 };
 
 static struct gdsc gpu_gx_gdsc = {
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] clk: qcom: Avoid SMMU/cx gdsc corner cases
  2019-12-17 17:19 [PATCH] clk: qcom: Avoid SMMU/cx gdsc corner cases Jeffrey Hugo
@ 2019-12-19  6:02 ` Stephen Boyd
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Boyd @ 2019-12-19  6:02 UTC (permalink / raw)
  To: Jeffrey Hugo, mturquette
  Cc: agross, bjorn.andersson, linux-arm-msm, linux-clk, linux-kernel,
	Jeffrey Hugo

Quoting Jeffrey Hugo (2019-12-17 09:19:05)
> Mark the msm8998 cpu CX gdsc as votable and use the hw control to avoid
> corner cases with SMMU per hardware documentation.
> 
> Fixes: 3f7df5baa259 ("clk: qcom: Add MSM8998 GPU Clock Controller (GPUCC) driver")
> Signed-off-by: Jeffrey Hugo <jeffrey.l.hugo@gmail.com>
> ---

Applied to clk-fixes


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-12-19  6:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-17 17:19 [PATCH] clk: qcom: Avoid SMMU/cx gdsc corner cases Jeffrey Hugo
2019-12-19  6:02 ` Stephen Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).