Linux clock framework development
 help / color / mirror / Atom feed
* [PATCH 0/5] clk: qcom: gcc: Update the SDCC RCGs to use shared_floor_ops
@ 2025-11-26  4:15 Jagadeesh Kona
  2025-11-26  4:15 ` [PATCH 1/5] clk: qcom: gcc-sm8450: " Jagadeesh Kona
                   ` (6 more replies)
  0 siblings, 7 replies; 24+ messages in thread
From: Jagadeesh Kona @ 2025-11-26  4:15 UTC (permalink / raw)
  To: Bjorn Andersson, Michael Turquette, Stephen Boyd, Vinod Koul,
	Konrad Dybcio, Dmitry Baryshkov, Taniya Das, Melody Olvera,
	Ajit Pandey, Imran Shaik, Luca Weiss
  Cc: Ajit Pandey, Imran Shaik, Taniya Das, linux-arm-msm, linux-clk,
	linux-kernel, Jagadeesh Kona

This series updates the clock ops to clk_rcg2_shared_floor_ops
for the SDCC RCGs on SM8450, SM8750, SM4450, SDX75 and Milos
chipsets.

This change is required to ensure RCG is safely parked during
disable and new parent configuration is programmed in hardware
only when new parent is enabled, to avoid cases where RCG
configuration fails to update and overclocking issues.

Signed-off-by: Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
---
Jagadeesh Kona (5):
      clk: qcom: gcc-sm8450: Update the SDCC RCGs to use shared_floor_ops
      clk: qcom: gcc-sm8750: Update the SDCC RCGs to use shared_floor_ops
      clk: qcom: gcc-sm4450: Update the SDCC RCGs to use shared_floor_ops
      clk: qcom: gcc-sdx75: Update the SDCC RCGs to use shared_floor_ops
      clk: qcom: gcc-milos: Update the SDCC RCGs to use shared_floor_ops

 drivers/clk/qcom/gcc-milos.c  | 6 +++---
 drivers/clk/qcom/gcc-sdx75.c  | 4 ++--
 drivers/clk/qcom/gcc-sm4450.c | 6 +++---
 drivers/clk/qcom/gcc-sm8450.c | 4 ++--
 drivers/clk/qcom/gcc-sm8750.c | 4 ++--
 5 files changed, 12 insertions(+), 12 deletions(-)
---
base-commit: 92fd6e84175befa1775e5c0ab682938eca27c0b2
change-id: 20251125-sdcc_shared_floor_ops-722ccecfe787

Best regards,
-- 
Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>


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

* [PATCH 1/5] clk: qcom: gcc-sm8450: Update the SDCC RCGs to use shared_floor_ops
  2025-11-26  4:15 [PATCH 0/5] clk: qcom: gcc: Update the SDCC RCGs to use shared_floor_ops Jagadeesh Kona
@ 2025-11-26  4:15 ` Jagadeesh Kona
  2025-11-26  7:42   ` Dmitry Baryshkov
                     ` (2 more replies)
  2025-11-26  4:15 ` [PATCH 2/5] clk: qcom: gcc-sm8750: " Jagadeesh Kona
                   ` (5 subsequent siblings)
  6 siblings, 3 replies; 24+ messages in thread
From: Jagadeesh Kona @ 2025-11-26  4:15 UTC (permalink / raw)
  To: Bjorn Andersson, Michael Turquette, Stephen Boyd, Vinod Koul,
	Konrad Dybcio, Dmitry Baryshkov, Taniya Das, Melody Olvera,
	Ajit Pandey, Imran Shaik, Luca Weiss
  Cc: Ajit Pandey, Imran Shaik, Taniya Das, linux-arm-msm, linux-clk,
	linux-kernel, Jagadeesh Kona

Use shared_floor_ops for the SDCC RCGs so the RCG is safely parked
during disable and the new parent configuration is programmed in
hardware only when the new parent is enabled, avoiding cases where
the RCG configuration fails to update.

Fixes: a27ac3806b0a ("clk: qcom: gcc-sm8450: Use floor ops for SDCC RCGs")
Signed-off-by: Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
---
 drivers/clk/qcom/gcc-sm8450.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/clk/qcom/gcc-sm8450.c b/drivers/clk/qcom/gcc-sm8450.c
index 65d7d52bce034335707014797fe9002429212a14..b18bb34889ab28fba13cbf2ca8cf83101e4e0484 100644
--- a/drivers/clk/qcom/gcc-sm8450.c
+++ b/drivers/clk/qcom/gcc-sm8450.c
@@ -1034,7 +1034,7 @@ static struct clk_rcg2 gcc_sdcc2_apps_clk_src = {
 		.parent_data = gcc_parent_data_7,
 		.num_parents = ARRAY_SIZE(gcc_parent_data_7),
 		.flags = CLK_SET_RATE_PARENT,
-		.ops = &clk_rcg2_floor_ops,
+		.ops = &clk_rcg2_shared_floor_ops,
 	},
 };
 
@@ -1057,7 +1057,7 @@ static struct clk_rcg2 gcc_sdcc4_apps_clk_src = {
 		.parent_data = gcc_parent_data_0,
 		.num_parents = ARRAY_SIZE(gcc_parent_data_0),
 		.flags = CLK_SET_RATE_PARENT,
-		.ops = &clk_rcg2_floor_ops,
+		.ops = &clk_rcg2_shared_floor_ops,
 	},
 };
 

-- 
2.34.1


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

* [PATCH 2/5] clk: qcom: gcc-sm8750: Update the SDCC RCGs to use shared_floor_ops
  2025-11-26  4:15 [PATCH 0/5] clk: qcom: gcc: Update the SDCC RCGs to use shared_floor_ops Jagadeesh Kona
  2025-11-26  4:15 ` [PATCH 1/5] clk: qcom: gcc-sm8450: " Jagadeesh Kona
@ 2025-11-26  4:15 ` Jagadeesh Kona
  2025-11-26  7:42   ` Dmitry Baryshkov
                     ` (2 more replies)
  2025-11-26  4:15 ` [PATCH 3/5] clk: qcom: gcc-sm4450: " Jagadeesh Kona
                   ` (4 subsequent siblings)
  6 siblings, 3 replies; 24+ messages in thread
From: Jagadeesh Kona @ 2025-11-26  4:15 UTC (permalink / raw)
  To: Bjorn Andersson, Michael Turquette, Stephen Boyd, Vinod Koul,
	Konrad Dybcio, Dmitry Baryshkov, Taniya Das, Melody Olvera,
	Ajit Pandey, Imran Shaik, Luca Weiss
  Cc: Ajit Pandey, Imran Shaik, Taniya Das, linux-arm-msm, linux-clk,
	linux-kernel, Jagadeesh Kona

Use shared_floor_ops for the SDCC RCGs so the RCG is safely parked
during disable and the new parent configuration is programmed in
hardware only when the new parent is enabled, avoiding cases where
the RCG configuration fails to update.

Fixes: 3267c774f3ff ("clk: qcom: Add support for GCC on SM8750")
Signed-off-by: Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
---
 drivers/clk/qcom/gcc-sm8750.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/clk/qcom/gcc-sm8750.c b/drivers/clk/qcom/gcc-sm8750.c
index def86b71a3da534f07844f01ecb73b424db3bddc..db81569dd4b17de1c70ab5058d4ea186e08ce09e 100644
--- a/drivers/clk/qcom/gcc-sm8750.c
+++ b/drivers/clk/qcom/gcc-sm8750.c
@@ -1030,7 +1030,7 @@ static struct clk_rcg2 gcc_sdcc2_apps_clk_src = {
 		.parent_data = gcc_parent_data_8,
 		.num_parents = ARRAY_SIZE(gcc_parent_data_8),
 		.flags = CLK_SET_RATE_PARENT,
-		.ops = &clk_rcg2_floor_ops,
+		.ops = &clk_rcg2_shared_floor_ops,
 	},
 };
 
@@ -1052,7 +1052,7 @@ static struct clk_rcg2 gcc_sdcc4_apps_clk_src = {
 		.parent_data = gcc_parent_data_0,
 		.num_parents = ARRAY_SIZE(gcc_parent_data_0),
 		.flags = CLK_SET_RATE_PARENT,
-		.ops = &clk_rcg2_floor_ops,
+		.ops = &clk_rcg2_shared_floor_ops,
 	},
 };
 

-- 
2.34.1


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

* [PATCH 3/5] clk: qcom: gcc-sm4450: Update the SDCC RCGs to use shared_floor_ops
  2025-11-26  4:15 [PATCH 0/5] clk: qcom: gcc: Update the SDCC RCGs to use shared_floor_ops Jagadeesh Kona
  2025-11-26  4:15 ` [PATCH 1/5] clk: qcom: gcc-sm8450: " Jagadeesh Kona
  2025-11-26  4:15 ` [PATCH 2/5] clk: qcom: gcc-sm8750: " Jagadeesh Kona
@ 2025-11-26  4:15 ` Jagadeesh Kona
  2025-11-26  8:44   ` Dmitry Baryshkov
                     ` (2 more replies)
  2025-11-26  4:15 ` [PATCH 4/5] clk: qcom: gcc-sdx75: " Jagadeesh Kona
                   ` (3 subsequent siblings)
  6 siblings, 3 replies; 24+ messages in thread
From: Jagadeesh Kona @ 2025-11-26  4:15 UTC (permalink / raw)
  To: Bjorn Andersson, Michael Turquette, Stephen Boyd, Vinod Koul,
	Konrad Dybcio, Dmitry Baryshkov, Taniya Das, Melody Olvera,
	Ajit Pandey, Imran Shaik, Luca Weiss
  Cc: Ajit Pandey, Imran Shaik, Taniya Das, linux-arm-msm, linux-clk,
	linux-kernel, Jagadeesh Kona

Use shared_floor_ops for the SDCC RCGs so the RCG is safely parked
during disable and the new parent configuration is programmed in
hardware only when the new parent is enabled, avoiding cases where
the RCG configuration fails to update.

Fixes: c32c4ef98bac ("clk: qcom: Add GCC driver support for SM4450")
Signed-off-by: Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
---
 drivers/clk/qcom/gcc-sm4450.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/clk/qcom/gcc-sm4450.c b/drivers/clk/qcom/gcc-sm4450.c
index e2d9e4691c5b719adfa86b904394ba85d086c12c..023d840e9f4ef0d6e9e7f16372cb9eb493f623d3 100644
--- a/drivers/clk/qcom/gcc-sm4450.c
+++ b/drivers/clk/qcom/gcc-sm4450.c
@@ -769,7 +769,7 @@ static struct clk_rcg2 gcc_sdcc1_apps_clk_src = {
 		.parent_data = gcc_parent_data_4,
 		.num_parents = ARRAY_SIZE(gcc_parent_data_4),
 		.flags = CLK_SET_RATE_PARENT,
-		.ops = &clk_rcg2_floor_ops,
+		.ops = &clk_rcg2_shared_floor_ops,
 	},
 };
 
@@ -791,7 +791,7 @@ static struct clk_rcg2 gcc_sdcc1_ice_core_clk_src = {
 		.parent_data = gcc_parent_data_4,
 		.num_parents = ARRAY_SIZE(gcc_parent_data_4),
 		.flags = CLK_SET_RATE_PARENT,
-		.ops = &clk_rcg2_floor_ops,
+		.ops = &clk_rcg2_shared_floor_ops,
 	},
 };
 
@@ -815,7 +815,7 @@ static struct clk_rcg2 gcc_sdcc2_apps_clk_src = {
 		.parent_data = gcc_parent_data_6,
 		.num_parents = ARRAY_SIZE(gcc_parent_data_6),
 		.flags = CLK_SET_RATE_PARENT,
-		.ops = &clk_rcg2_floor_ops,
+		.ops = &clk_rcg2_shared_floor_ops,
 	},
 };
 

-- 
2.34.1


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

* [PATCH 4/5] clk: qcom: gcc-sdx75: Update the SDCC RCGs to use shared_floor_ops
  2025-11-26  4:15 [PATCH 0/5] clk: qcom: gcc: Update the SDCC RCGs to use shared_floor_ops Jagadeesh Kona
                   ` (2 preceding siblings ...)
  2025-11-26  4:15 ` [PATCH 3/5] clk: qcom: gcc-sm4450: " Jagadeesh Kona
@ 2025-11-26  4:15 ` Jagadeesh Kona
  2025-11-26  8:44   ` Dmitry Baryshkov
                     ` (2 more replies)
  2025-11-26  4:15 ` [PATCH 5/5] clk: qcom: gcc-milos: " Jagadeesh Kona
                   ` (2 subsequent siblings)
  6 siblings, 3 replies; 24+ messages in thread
From: Jagadeesh Kona @ 2025-11-26  4:15 UTC (permalink / raw)
  To: Bjorn Andersson, Michael Turquette, Stephen Boyd, Vinod Koul,
	Konrad Dybcio, Dmitry Baryshkov, Taniya Das, Melody Olvera,
	Ajit Pandey, Imran Shaik, Luca Weiss
  Cc: Ajit Pandey, Imran Shaik, Taniya Das, linux-arm-msm, linux-clk,
	linux-kernel, Jagadeesh Kona

Use shared_floor_ops for the SDCC RCGs so the RCG is safely parked
during disable and the new parent configuration is programmed in
hardware only when the new parent is enabled, avoiding cases where
the RCG configuration fails to update.

Fixes: 108cdc09b2de ("clk: qcom: Add GCC driver support for SDX75")
Signed-off-by: Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
---
 drivers/clk/qcom/gcc-sdx75.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/clk/qcom/gcc-sdx75.c b/drivers/clk/qcom/gcc-sdx75.c
index 453a6bf8e8786308ef785799f71b6cff8a5a9727..1f3cd58483a2d6ef18b43fc2c4ea38a6f8750c5b 100644
--- a/drivers/clk/qcom/gcc-sdx75.c
+++ b/drivers/clk/qcom/gcc-sdx75.c
@@ -1033,7 +1033,7 @@ static struct clk_rcg2 gcc_sdcc1_apps_clk_src = {
 		.name = "gcc_sdcc1_apps_clk_src",
 		.parent_data = gcc_parent_data_17,
 		.num_parents = ARRAY_SIZE(gcc_parent_data_17),
-		.ops = &clk_rcg2_floor_ops,
+		.ops = &clk_rcg2_shared_floor_ops,
 	},
 };
 
@@ -1057,7 +1057,7 @@ static struct clk_rcg2 gcc_sdcc2_apps_clk_src = {
 		.name = "gcc_sdcc2_apps_clk_src",
 		.parent_data = gcc_parent_data_18,
 		.num_parents = ARRAY_SIZE(gcc_parent_data_18),
-		.ops = &clk_rcg2_floor_ops,
+		.ops = &clk_rcg2_shared_floor_ops,
 	},
 };
 

-- 
2.34.1


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

* [PATCH 5/5] clk: qcom: gcc-milos: Update the SDCC RCGs to use shared_floor_ops
  2025-11-26  4:15 [PATCH 0/5] clk: qcom: gcc: Update the SDCC RCGs to use shared_floor_ops Jagadeesh Kona
                   ` (3 preceding siblings ...)
  2025-11-26  4:15 ` [PATCH 4/5] clk: qcom: gcc-sdx75: " Jagadeesh Kona
@ 2025-11-26  4:15 ` Jagadeesh Kona
  2025-11-26  8:44   ` Dmitry Baryshkov
                     ` (2 more replies)
  2025-11-26  8:50 ` [PATCH 0/5] clk: qcom: gcc: " Imran Shaik
  2025-11-26  9:11 ` Vladimir Zapolskiy
  6 siblings, 3 replies; 24+ messages in thread
From: Jagadeesh Kona @ 2025-11-26  4:15 UTC (permalink / raw)
  To: Bjorn Andersson, Michael Turquette, Stephen Boyd, Vinod Koul,
	Konrad Dybcio, Dmitry Baryshkov, Taniya Das, Melody Olvera,
	Ajit Pandey, Imran Shaik, Luca Weiss
  Cc: Ajit Pandey, Imran Shaik, Taniya Das, linux-arm-msm, linux-clk,
	linux-kernel, Jagadeesh Kona

Use shared_floor_ops for the SDCC RCGs to avoid any overclocking
issues in SDCC usecases.

Fixes: 88174d5d9422 ("clk: qcom: Add Global Clock controller (GCC) driver for Milos")
Signed-off-by: Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
---
 drivers/clk/qcom/gcc-milos.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/clk/qcom/gcc-milos.c b/drivers/clk/qcom/gcc-milos.c
index c9d61b05bafa1618274cd87c83df6fd14131efcf..81fa09ec55d7f6d6cb761affd3b93301a102f61f 100644
--- a/drivers/clk/qcom/gcc-milos.c
+++ b/drivers/clk/qcom/gcc-milos.c
@@ -917,7 +917,7 @@ static struct clk_rcg2 gcc_sdcc1_apps_clk_src = {
 		.name = "gcc_sdcc1_apps_clk_src",
 		.parent_data = gcc_parent_data_9,
 		.num_parents = ARRAY_SIZE(gcc_parent_data_9),
-		.ops = &clk_rcg2_shared_ops,
+		.ops = &clk_rcg2_shared_floor_ops,
 	},
 };
 
@@ -938,7 +938,7 @@ static struct clk_rcg2 gcc_sdcc1_ice_core_clk_src = {
 		.name = "gcc_sdcc1_ice_core_clk_src",
 		.parent_data = gcc_parent_data_10,
 		.num_parents = ARRAY_SIZE(gcc_parent_data_10),
-		.ops = &clk_rcg2_shared_ops,
+		.ops = &clk_rcg2_shared_floor_ops,
 	},
 };
 
@@ -962,7 +962,7 @@ static struct clk_rcg2 gcc_sdcc2_apps_clk_src = {
 		.name = "gcc_sdcc2_apps_clk_src",
 		.parent_data = gcc_parent_data_11,
 		.num_parents = ARRAY_SIZE(gcc_parent_data_11),
-		.ops = &clk_rcg2_shared_ops,
+		.ops = &clk_rcg2_shared_floor_ops,
 	},
 };
 

-- 
2.34.1


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

* Re: [PATCH 1/5] clk: qcom: gcc-sm8450: Update the SDCC RCGs to use shared_floor_ops
  2025-11-26  4:15 ` [PATCH 1/5] clk: qcom: gcc-sm8450: " Jagadeesh Kona
@ 2025-11-26  7:42   ` Dmitry Baryshkov
  2025-11-26  8:47   ` Imran Shaik
  2025-11-26  9:42   ` Taniya Das
  2 siblings, 0 replies; 24+ messages in thread
From: Dmitry Baryshkov @ 2025-11-26  7:42 UTC (permalink / raw)
  To: Jagadeesh Kona
  Cc: Bjorn Andersson, Michael Turquette, Stephen Boyd, Vinod Koul,
	Konrad Dybcio, Dmitry Baryshkov, Taniya Das, Melody Olvera,
	Ajit Pandey, Imran Shaik, Luca Weiss, Ajit Pandey, Imran Shaik,
	Taniya Das, linux-arm-msm, linux-clk, linux-kernel

On Wed, Nov 26, 2025 at 09:45:50AM +0530, Jagadeesh Kona wrote:
> Use shared_floor_ops for the SDCC RCGs so the RCG is safely parked
> during disable and the new parent configuration is programmed in
> hardware only when the new parent is enabled, avoiding cases where
> the RCG configuration fails to update.
> 
> Fixes: a27ac3806b0a ("clk: qcom: gcc-sm8450: Use floor ops for SDCC RCGs")
> Signed-off-by: Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
> ---
>  drivers/clk/qcom/gcc-sm8450.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>


-- 
With best wishes
Dmitry

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

* Re: [PATCH 2/5] clk: qcom: gcc-sm8750: Update the SDCC RCGs to use shared_floor_ops
  2025-11-26  4:15 ` [PATCH 2/5] clk: qcom: gcc-sm8750: " Jagadeesh Kona
@ 2025-11-26  7:42   ` Dmitry Baryshkov
  2025-11-26  8:49   ` Imran Shaik
  2025-11-26  9:44   ` Taniya Das
  2 siblings, 0 replies; 24+ messages in thread
From: Dmitry Baryshkov @ 2025-11-26  7:42 UTC (permalink / raw)
  To: Jagadeesh Kona
  Cc: Bjorn Andersson, Michael Turquette, Stephen Boyd, Vinod Koul,
	Konrad Dybcio, Dmitry Baryshkov, Taniya Das, Melody Olvera,
	Ajit Pandey, Imran Shaik, Luca Weiss, Ajit Pandey, Imran Shaik,
	Taniya Das, linux-arm-msm, linux-clk, linux-kernel

On Wed, Nov 26, 2025 at 09:45:51AM +0530, Jagadeesh Kona wrote:
> Use shared_floor_ops for the SDCC RCGs so the RCG is safely parked
> during disable and the new parent configuration is programmed in
> hardware only when the new parent is enabled, avoiding cases where
> the RCG configuration fails to update.
> 
> Fixes: 3267c774f3ff ("clk: qcom: Add support for GCC on SM8750")
> Signed-off-by: Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
> ---
>  drivers/clk/qcom/gcc-sm8750.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>


-- 
With best wishes
Dmitry

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

* Re: [PATCH 3/5] clk: qcom: gcc-sm4450: Update the SDCC RCGs to use shared_floor_ops
  2025-11-26  4:15 ` [PATCH 3/5] clk: qcom: gcc-sm4450: " Jagadeesh Kona
@ 2025-11-26  8:44   ` Dmitry Baryshkov
  2025-11-26  8:49   ` Imran Shaik
  2025-11-26  9:44   ` Taniya Das
  2 siblings, 0 replies; 24+ messages in thread
From: Dmitry Baryshkov @ 2025-11-26  8:44 UTC (permalink / raw)
  To: Jagadeesh Kona
  Cc: Bjorn Andersson, Michael Turquette, Stephen Boyd, Vinod Koul,
	Konrad Dybcio, Dmitry Baryshkov, Taniya Das, Melody Olvera,
	Ajit Pandey, Imran Shaik, Luca Weiss, Ajit Pandey, Imran Shaik,
	Taniya Das, linux-arm-msm, linux-clk, linux-kernel

On Wed, Nov 26, 2025 at 09:45:52AM +0530, Jagadeesh Kona wrote:
> Use shared_floor_ops for the SDCC RCGs so the RCG is safely parked
> during disable and the new parent configuration is programmed in
> hardware only when the new parent is enabled, avoiding cases where
> the RCG configuration fails to update.
> 
> Fixes: c32c4ef98bac ("clk: qcom: Add GCC driver support for SM4450")
> Signed-off-by: Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
> ---
>  drivers/clk/qcom/gcc-sm4450.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>


-- 
With best wishes
Dmitry

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

* Re: [PATCH 4/5] clk: qcom: gcc-sdx75: Update the SDCC RCGs to use shared_floor_ops
  2025-11-26  4:15 ` [PATCH 4/5] clk: qcom: gcc-sdx75: " Jagadeesh Kona
@ 2025-11-26  8:44   ` Dmitry Baryshkov
  2025-11-26  8:48   ` Imran Shaik
  2025-11-26  9:44   ` Taniya Das
  2 siblings, 0 replies; 24+ messages in thread
From: Dmitry Baryshkov @ 2025-11-26  8:44 UTC (permalink / raw)
  To: Jagadeesh Kona
  Cc: Bjorn Andersson, Michael Turquette, Stephen Boyd, Vinod Koul,
	Konrad Dybcio, Dmitry Baryshkov, Taniya Das, Melody Olvera,
	Ajit Pandey, Imran Shaik, Luca Weiss, Ajit Pandey, Imran Shaik,
	Taniya Das, linux-arm-msm, linux-clk, linux-kernel

On Wed, Nov 26, 2025 at 09:45:53AM +0530, Jagadeesh Kona wrote:
> Use shared_floor_ops for the SDCC RCGs so the RCG is safely parked
> during disable and the new parent configuration is programmed in
> hardware only when the new parent is enabled, avoiding cases where
> the RCG configuration fails to update.
> 
> Fixes: 108cdc09b2de ("clk: qcom: Add GCC driver support for SDX75")
> Signed-off-by: Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
> ---
>  drivers/clk/qcom/gcc-sdx75.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>


-- 
With best wishes
Dmitry

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

* Re: [PATCH 5/5] clk: qcom: gcc-milos: Update the SDCC RCGs to use shared_floor_ops
  2025-11-26  4:15 ` [PATCH 5/5] clk: qcom: gcc-milos: " Jagadeesh Kona
@ 2025-11-26  8:44   ` Dmitry Baryshkov
  2025-11-26  8:49   ` Imran Shaik
  2025-11-26  9:45   ` Taniya Das
  2 siblings, 0 replies; 24+ messages in thread
From: Dmitry Baryshkov @ 2025-11-26  8:44 UTC (permalink / raw)
  To: Jagadeesh Kona
  Cc: Bjorn Andersson, Michael Turquette, Stephen Boyd, Vinod Koul,
	Konrad Dybcio, Dmitry Baryshkov, Taniya Das, Melody Olvera,
	Ajit Pandey, Imran Shaik, Luca Weiss, Ajit Pandey, Imran Shaik,
	Taniya Das, linux-arm-msm, linux-clk, linux-kernel

On Wed, Nov 26, 2025 at 09:45:54AM +0530, Jagadeesh Kona wrote:
> Use shared_floor_ops for the SDCC RCGs to avoid any overclocking
> issues in SDCC usecases.
> 
> Fixes: 88174d5d9422 ("clk: qcom: Add Global Clock controller (GCC) driver for Milos")
> Signed-off-by: Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
> ---
>  drivers/clk/qcom/gcc-milos.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>


-- 
With best wishes
Dmitry

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

* Re: [PATCH 1/5] clk: qcom: gcc-sm8450: Update the SDCC RCGs to use shared_floor_ops
  2025-11-26  4:15 ` [PATCH 1/5] clk: qcom: gcc-sm8450: " Jagadeesh Kona
  2025-11-26  7:42   ` Dmitry Baryshkov
@ 2025-11-26  8:47   ` Imran Shaik
  2025-11-26  9:42   ` Taniya Das
  2 siblings, 0 replies; 24+ messages in thread
From: Imran Shaik @ 2025-11-26  8:47 UTC (permalink / raw)
  To: Jagadeesh Kona, Bjorn Andersson, Michael Turquette, Stephen Boyd,
	Vinod Koul, Konrad Dybcio, Dmitry Baryshkov, Taniya Das,
	Melody Olvera, Ajit Pandey, Imran Shaik, Luca Weiss
  Cc: Ajit Pandey, Taniya Das, linux-arm-msm, linux-clk, linux-kernel



On 11/26/2025 9:45 AM, Jagadeesh Kona wrote:
> Use shared_floor_ops for the SDCC RCGs so the RCG is safely parked
> during disable and the new parent configuration is programmed in
> hardware only when the new parent is enabled, avoiding cases where
> the RCG configuration fails to update.
> 
> Fixes: a27ac3806b0a ("clk: qcom: gcc-sm8450: Use floor ops for SDCC RCGs")
> Signed-off-by: Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
> ---
>  drivers/clk/qcom/gcc-sm8450.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
Reviewed-by: Imran Shaik <imran.shaik@oss.qualcomm.com>

Thanks,
Imran

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

* Re: [PATCH 4/5] clk: qcom: gcc-sdx75: Update the SDCC RCGs to use shared_floor_ops
  2025-11-26  4:15 ` [PATCH 4/5] clk: qcom: gcc-sdx75: " Jagadeesh Kona
  2025-11-26  8:44   ` Dmitry Baryshkov
@ 2025-11-26  8:48   ` Imran Shaik
  2025-11-26  9:44   ` Taniya Das
  2 siblings, 0 replies; 24+ messages in thread
From: Imran Shaik @ 2025-11-26  8:48 UTC (permalink / raw)
  To: Jagadeesh Kona, Bjorn Andersson, Michael Turquette, Stephen Boyd,
	Vinod Koul, Konrad Dybcio, Dmitry Baryshkov, Taniya Das,
	Melody Olvera, Ajit Pandey, Imran Shaik, Luca Weiss
  Cc: Ajit Pandey, Taniya Das, linux-arm-msm, linux-clk, linux-kernel



On 11/26/2025 9:45 AM, Jagadeesh Kona wrote:
> Use shared_floor_ops for the SDCC RCGs so the RCG is safely parked
> during disable and the new parent configuration is programmed in
> hardware only when the new parent is enabled, avoiding cases where
> the RCG configuration fails to update.
> 
> Fixes: 108cdc09b2de ("clk: qcom: Add GCC driver support for SDX75")
> Signed-off-by: Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
> ---
>  drivers/clk/qcom/gcc-sdx75.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
Reviewed-by: Imran Shaik <imran.shaik@oss.qualcomm.com>

Thanks,
Imran

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

* Re: [PATCH 2/5] clk: qcom: gcc-sm8750: Update the SDCC RCGs to use shared_floor_ops
  2025-11-26  4:15 ` [PATCH 2/5] clk: qcom: gcc-sm8750: " Jagadeesh Kona
  2025-11-26  7:42   ` Dmitry Baryshkov
@ 2025-11-26  8:49   ` Imran Shaik
  2025-11-26  9:44   ` Taniya Das
  2 siblings, 0 replies; 24+ messages in thread
From: Imran Shaik @ 2025-11-26  8:49 UTC (permalink / raw)
  To: Jagadeesh Kona, Bjorn Andersson, Michael Turquette, Stephen Boyd,
	Vinod Koul, Konrad Dybcio, Dmitry Baryshkov, Taniya Das,
	Melody Olvera, Ajit Pandey, Imran Shaik, Luca Weiss
  Cc: Ajit Pandey, Taniya Das, linux-arm-msm, linux-clk, linux-kernel



On 11/26/2025 9:45 AM, Jagadeesh Kona wrote:
> Use shared_floor_ops for the SDCC RCGs so the RCG is safely parked
> during disable and the new parent configuration is programmed in
> hardware only when the new parent is enabled, avoiding cases where
> the RCG configuration fails to update.
> 
> Fixes: 3267c774f3ff ("clk: qcom: Add support for GCC on SM8750")
> Signed-off-by: Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
> ---
>  drivers/clk/qcom/gcc-sm8750.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
Reviewed-by: Imran Shaik <imran.shaik@oss.qualcomm.com>

Thanks,
Imran

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

* Re: [PATCH 3/5] clk: qcom: gcc-sm4450: Update the SDCC RCGs to use shared_floor_ops
  2025-11-26  4:15 ` [PATCH 3/5] clk: qcom: gcc-sm4450: " Jagadeesh Kona
  2025-11-26  8:44   ` Dmitry Baryshkov
@ 2025-11-26  8:49   ` Imran Shaik
  2025-11-26  9:44   ` Taniya Das
  2 siblings, 0 replies; 24+ messages in thread
From: Imran Shaik @ 2025-11-26  8:49 UTC (permalink / raw)
  To: Jagadeesh Kona, Bjorn Andersson, Michael Turquette, Stephen Boyd,
	Vinod Koul, Konrad Dybcio, Dmitry Baryshkov, Taniya Das,
	Melody Olvera, Ajit Pandey, Imran Shaik, Luca Weiss
  Cc: Ajit Pandey, Taniya Das, linux-arm-msm, linux-clk, linux-kernel



On 11/26/2025 9:45 AM, Jagadeesh Kona wrote:
> Use shared_floor_ops for the SDCC RCGs so the RCG is safely parked
> during disable and the new parent configuration is programmed in
> hardware only when the new parent is enabled, avoiding cases where
> the RCG configuration fails to update.
> 
> Fixes: c32c4ef98bac ("clk: qcom: Add GCC driver support for SM4450")
> Signed-off-by: Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
> ---
>  drivers/clk/qcom/gcc-sm4450.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
Reviewed-by: Imran Shaik <imran.shaik@oss.qualcomm.com>

Thanks,
Imran

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

* Re: [PATCH 5/5] clk: qcom: gcc-milos: Update the SDCC RCGs to use shared_floor_ops
  2025-11-26  4:15 ` [PATCH 5/5] clk: qcom: gcc-milos: " Jagadeesh Kona
  2025-11-26  8:44   ` Dmitry Baryshkov
@ 2025-11-26  8:49   ` Imran Shaik
  2025-11-26  9:45   ` Taniya Das
  2 siblings, 0 replies; 24+ messages in thread
From: Imran Shaik @ 2025-11-26  8:49 UTC (permalink / raw)
  To: Jagadeesh Kona, Bjorn Andersson, Michael Turquette, Stephen Boyd,
	Vinod Koul, Konrad Dybcio, Dmitry Baryshkov, Taniya Das,
	Melody Olvera, Ajit Pandey, Imran Shaik, Luca Weiss
  Cc: Ajit Pandey, Taniya Das, linux-arm-msm, linux-clk, linux-kernel



On 11/26/2025 9:45 AM, Jagadeesh Kona wrote:
> Use shared_floor_ops for the SDCC RCGs to avoid any overclocking
> issues in SDCC usecases.
> 
> Fixes: 88174d5d9422 ("clk: qcom: Add Global Clock controller (GCC) driver for Milos")
> Signed-off-by: Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
> ---
>  drivers/clk/qcom/gcc-milos.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
Reviewed-by: Imran Shaik <imran.shaik@oss.qualcomm.com>

Thanks,
Imran

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

* Re: [PATCH 0/5] clk: qcom: gcc: Update the SDCC RCGs to use shared_floor_ops
  2025-11-26  4:15 [PATCH 0/5] clk: qcom: gcc: Update the SDCC RCGs to use shared_floor_ops Jagadeesh Kona
                   ` (4 preceding siblings ...)
  2025-11-26  4:15 ` [PATCH 5/5] clk: qcom: gcc-milos: " Jagadeesh Kona
@ 2025-11-26  8:50 ` Imran Shaik
  2025-11-26 17:34   ` Jagadeesh Kona
  2025-11-26  9:11 ` Vladimir Zapolskiy
  6 siblings, 1 reply; 24+ messages in thread
From: Imran Shaik @ 2025-11-26  8:50 UTC (permalink / raw)
  To: Jagadeesh Kona, Bjorn Andersson, Michael Turquette, Stephen Boyd,
	Vinod Koul, Konrad Dybcio, Dmitry Baryshkov, Taniya Das,
	Melody Olvera, Ajit Pandey, Imran Shaik, Luca Weiss
  Cc: Ajit Pandey, Taniya Das, linux-arm-msm, linux-clk, linux-kernel



On 11/26/2025 9:45 AM, Jagadeesh Kona wrote:
> This series updates the clock ops to clk_rcg2_shared_floor_ops
> for the SDCC RCGs on SM8450, SM8750, SM4450, SDX75 and Milos
> chipsets.
> 
> This change is required to ensure RCG is safely parked during
> disable and new parent configuration is programmed in hardware
> only when new parent is enabled, to avoid cases where RCG
> configuration fails to update and overclocking issues.
> 
> Signed-off-by: Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
> ---
> Jagadeesh Kona (5):
>       clk: qcom: gcc-sm8450: Update the SDCC RCGs to use shared_floor_ops
>       clk: qcom: gcc-sm8750: Update the SDCC RCGs to use shared_floor_ops
>       clk: qcom: gcc-sm4450: Update the SDCC RCGs to use shared_floor_ops
>       clk: qcom: gcc-sdx75: Update the SDCC RCGs to use shared_floor_ops
>       clk: qcom: gcc-milos: Update the SDCC RCGs to use shared_floor_ops
> 
>  drivers/clk/qcom/gcc-milos.c  | 6 +++---
>  drivers/clk/qcom/gcc-sdx75.c  | 4 ++--
>  drivers/clk/qcom/gcc-sm4450.c | 6 +++---
>  drivers/clk/qcom/gcc-sm8450.c | 4 ++--
>  drivers/clk/qcom/gcc-sm8750.c | 4 ++--
>  5 files changed, 12 insertions(+), 12 deletions(-)
> ---
> base-commit: 92fd6e84175befa1775e5c0ab682938eca27c0b2
> change-id: 20251125-sdcc_shared_floor_ops-722ccecfe787
> 
> Best regards,

Can you please add similar fix-ups for gcc-qdu1000.c/gcc-x1e80100.c as well.

Thanks,
Imran


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

* Re: [PATCH 0/5] clk: qcom: gcc: Update the SDCC RCGs to use shared_floor_ops
  2025-11-26  4:15 [PATCH 0/5] clk: qcom: gcc: Update the SDCC RCGs to use shared_floor_ops Jagadeesh Kona
                   ` (5 preceding siblings ...)
  2025-11-26  8:50 ` [PATCH 0/5] clk: qcom: gcc: " Imran Shaik
@ 2025-11-26  9:11 ` Vladimir Zapolskiy
  6 siblings, 0 replies; 24+ messages in thread
From: Vladimir Zapolskiy @ 2025-11-26  9:11 UTC (permalink / raw)
  To: Jagadeesh Kona, Bjorn Andersson, Michael Turquette, Stephen Boyd,
	Vinod Koul, Konrad Dybcio, Dmitry Baryshkov, Taniya Das,
	Melody Olvera, Ajit Pandey, Imran Shaik, Luca Weiss
  Cc: Ajit Pandey, Imran Shaik, Taniya Das, linux-arm-msm, linux-clk,
	linux-kernel

On 11/26/25 06:15, Jagadeesh Kona wrote:
> This series updates the clock ops to clk_rcg2_shared_floor_ops
> for the SDCC RCGs on SM8450, SM8750, SM4450, SDX75 and Milos
> chipsets.
> 
> This change is required to ensure RCG is safely parked during
> disable and new parent configuration is programmed in hardware
> only when new parent is enabled, to avoid cases where RCG
> configuration fails to update and overclocking issues.
> 
> Signed-off-by: Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
> ---
> Jagadeesh Kona (5):
>        clk: qcom: gcc-sm8450: Update the SDCC RCGs to use shared_floor_ops
>        clk: qcom: gcc-sm8750: Update the SDCC RCGs to use shared_floor_ops
>        clk: qcom: gcc-sm4450: Update the SDCC RCGs to use shared_floor_ops
>        clk: qcom: gcc-sdx75: Update the SDCC RCGs to use shared_floor_ops
>        clk: qcom: gcc-milos: Update the SDCC RCGs to use shared_floor_ops
> 
>   drivers/clk/qcom/gcc-milos.c  | 6 +++---
>   drivers/clk/qcom/gcc-sdx75.c  | 4 ++--
>   drivers/clk/qcom/gcc-sm4450.c | 6 +++---
>   drivers/clk/qcom/gcc-sm8450.c | 4 ++--
>   drivers/clk/qcom/gcc-sm8750.c | 4 ++--
>   5 files changed, 12 insertions(+), 12 deletions(-)

For all patches in the series

Reviewed-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>

-- 
Best wishes,
Vladimir

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

* Re: [PATCH 1/5] clk: qcom: gcc-sm8450: Update the SDCC RCGs to use shared_floor_ops
  2025-11-26  4:15 ` [PATCH 1/5] clk: qcom: gcc-sm8450: " Jagadeesh Kona
  2025-11-26  7:42   ` Dmitry Baryshkov
  2025-11-26  8:47   ` Imran Shaik
@ 2025-11-26  9:42   ` Taniya Das
  2 siblings, 0 replies; 24+ messages in thread
From: Taniya Das @ 2025-11-26  9:42 UTC (permalink / raw)
  To: Jagadeesh Kona, Bjorn Andersson, Michael Turquette, Stephen Boyd,
	Vinod Koul, Konrad Dybcio, Dmitry Baryshkov, Taniya Das,
	Melody Olvera, Ajit Pandey, Imran Shaik, Luca Weiss
  Cc: Ajit Pandey, Imran Shaik, linux-arm-msm, linux-clk, linux-kernel



On 11/26/2025 9:45 AM, Jagadeesh Kona wrote:
> Use shared_floor_ops for the SDCC RCGs so the RCG is safely parked
> during disable and the new parent configuration is programmed in
> hardware only when the new parent is enabled, avoiding cases where
> the RCG configuration fails to update.
> 
> Fixes: a27ac3806b0a ("clk: qcom: gcc-sm8450: Use floor ops for SDCC RCGs")
> Signed-off-by: Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
> ---
>  drivers/clk/qcom/gcc-sm8450.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/clk/qcom/gcc-sm8450.c b/drivers/clk/qcom/gcc-sm8450.c
> index 65d7d52bce034335707014797fe9002429212a14..b18bb34889ab28fba13cbf2ca8cf83101e4e0484 100644
> --- a/drivers/clk/qcom/gcc-sm8450.c
> +++ b/drivers/clk/qcom/gcc-sm8450.c
> @@ -1034,7 +1034,7 @@ static struct clk_rcg2 gcc_sdcc2_apps_clk_src = {
>  		.parent_data = gcc_parent_data_7,
>  		.num_parents = ARRAY_SIZE(gcc_parent_data_7),
>  		.flags = CLK_SET_RATE_PARENT,
> -		.ops = &clk_rcg2_floor_ops,
> +		.ops = &clk_rcg2_shared_floor_ops,
>  	},
>  };
>  
> @@ -1057,7 +1057,7 @@ static struct clk_rcg2 gcc_sdcc4_apps_clk_src = {
>  		.parent_data = gcc_parent_data_0,
>  		.num_parents = ARRAY_SIZE(gcc_parent_data_0),
>  		.flags = CLK_SET_RATE_PARENT,
> -		.ops = &clk_rcg2_floor_ops,
> +		.ops = &clk_rcg2_shared_floor_ops,
>  	},
>  };
>  
> 

Reviewed-by: Taniya Das <taniya.das@oss.qualcomm.com>

-- 
Thanks,
Taniya Das


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

* Re: [PATCH 2/5] clk: qcom: gcc-sm8750: Update the SDCC RCGs to use shared_floor_ops
  2025-11-26  4:15 ` [PATCH 2/5] clk: qcom: gcc-sm8750: " Jagadeesh Kona
  2025-11-26  7:42   ` Dmitry Baryshkov
  2025-11-26  8:49   ` Imran Shaik
@ 2025-11-26  9:44   ` Taniya Das
  2 siblings, 0 replies; 24+ messages in thread
From: Taniya Das @ 2025-11-26  9:44 UTC (permalink / raw)
  To: Jagadeesh Kona, Bjorn Andersson, Michael Turquette, Stephen Boyd,
	Vinod Koul, Konrad Dybcio, Dmitry Baryshkov, Taniya Das,
	Melody Olvera, Ajit Pandey, Imran Shaik, Luca Weiss
  Cc: Ajit Pandey, Imran Shaik, linux-arm-msm, linux-clk, linux-kernel



On 11/26/2025 9:45 AM, Jagadeesh Kona wrote:
> Use shared_floor_ops for the SDCC RCGs so the RCG is safely parked
> during disable and the new parent configuration is programmed in
> hardware only when the new parent is enabled, avoiding cases where
> the RCG configuration fails to update.
> 
> Fixes: 3267c774f3ff ("clk: qcom: Add support for GCC on SM8750")
> Signed-off-by: Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
> ---
>  drivers/clk/qcom/gcc-sm8750.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/clk/qcom/gcc-sm8750.c b/drivers/clk/qcom/gcc-sm8750.c
> index def86b71a3da534f07844f01ecb73b424db3bddc..db81569dd4b17de1c70ab5058d4ea186e08ce09e 100644
> --- a/drivers/clk/qcom/gcc-sm8750.c
> +++ b/drivers/clk/qcom/gcc-sm8750.c
> @@ -1030,7 +1030,7 @@ static struct clk_rcg2 gcc_sdcc2_apps_clk_src = {
>  		.parent_data = gcc_parent_data_8,
>  		.num_parents = ARRAY_SIZE(gcc_parent_data_8),
>  		.flags = CLK_SET_RATE_PARENT,
> -		.ops = &clk_rcg2_floor_ops,
> +		.ops = &clk_rcg2_shared_floor_ops,
>  	},
>  };
>  
> @@ -1052,7 +1052,7 @@ static struct clk_rcg2 gcc_sdcc4_apps_clk_src = {
>  		.parent_data = gcc_parent_data_0,
>  		.num_parents = ARRAY_SIZE(gcc_parent_data_0),
>  		.flags = CLK_SET_RATE_PARENT,
> -		.ops = &clk_rcg2_floor_ops,
> +		.ops = &clk_rcg2_shared_floor_ops,
>  	},
>  };
>  
> 

Reviewed-by: Taniya Das <taniya.das@oss.qualcomm.com>

-- 
Thanks,
Taniya Das


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

* Re: [PATCH 3/5] clk: qcom: gcc-sm4450: Update the SDCC RCGs to use shared_floor_ops
  2025-11-26  4:15 ` [PATCH 3/5] clk: qcom: gcc-sm4450: " Jagadeesh Kona
  2025-11-26  8:44   ` Dmitry Baryshkov
  2025-11-26  8:49   ` Imran Shaik
@ 2025-11-26  9:44   ` Taniya Das
  2 siblings, 0 replies; 24+ messages in thread
From: Taniya Das @ 2025-11-26  9:44 UTC (permalink / raw)
  To: Jagadeesh Kona, Bjorn Andersson, Michael Turquette, Stephen Boyd,
	Vinod Koul, Konrad Dybcio, Dmitry Baryshkov, Taniya Das,
	Melody Olvera, Ajit Pandey, Imran Shaik, Luca Weiss
  Cc: Ajit Pandey, Imran Shaik, linux-arm-msm, linux-clk, linux-kernel



On 11/26/2025 9:45 AM, Jagadeesh Kona wrote:
> Use shared_floor_ops for the SDCC RCGs so the RCG is safely parked
> during disable and the new parent configuration is programmed in
> hardware only when the new parent is enabled, avoiding cases where
> the RCG configuration fails to update.
> 
> Fixes: c32c4ef98bac ("clk: qcom: Add GCC driver support for SM4450")
> Signed-off-by: Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
> ---
>  drivers/clk/qcom/gcc-sm4450.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/clk/qcom/gcc-sm4450.c b/drivers/clk/qcom/gcc-sm4450.c
> index e2d9e4691c5b719adfa86b904394ba85d086c12c..023d840e9f4ef0d6e9e7f16372cb9eb493f623d3 100644
> --- a/drivers/clk/qcom/gcc-sm4450.c
> +++ b/drivers/clk/qcom/gcc-sm4450.c
> @@ -769,7 +769,7 @@ static struct clk_rcg2 gcc_sdcc1_apps_clk_src = {
>  		.parent_data = gcc_parent_data_4,
>  		.num_parents = ARRAY_SIZE(gcc_parent_data_4),
>  		.flags = CLK_SET_RATE_PARENT,
> -		.ops = &clk_rcg2_floor_ops,
> +		.ops = &clk_rcg2_shared_floor_ops,
>  	},
>  };
>  
> @@ -791,7 +791,7 @@ static struct clk_rcg2 gcc_sdcc1_ice_core_clk_src = {
>  		.parent_data = gcc_parent_data_4,
>  		.num_parents = ARRAY_SIZE(gcc_parent_data_4),
>  		.flags = CLK_SET_RATE_PARENT,
> -		.ops = &clk_rcg2_floor_ops,
> +		.ops = &clk_rcg2_shared_floor_ops,
>  	},
>  };
>  
> @@ -815,7 +815,7 @@ static struct clk_rcg2 gcc_sdcc2_apps_clk_src = {
>  		.parent_data = gcc_parent_data_6,
>  		.num_parents = ARRAY_SIZE(gcc_parent_data_6),
>  		.flags = CLK_SET_RATE_PARENT,
> -		.ops = &clk_rcg2_floor_ops,
> +		.ops = &clk_rcg2_shared_floor_ops,
>  	},
>  };
>  
> 

Reviewed-by: Taniya Das <taniya.das@oss.qualcomm.com>

-- 
Thanks,
Taniya Das


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

* Re: [PATCH 4/5] clk: qcom: gcc-sdx75: Update the SDCC RCGs to use shared_floor_ops
  2025-11-26  4:15 ` [PATCH 4/5] clk: qcom: gcc-sdx75: " Jagadeesh Kona
  2025-11-26  8:44   ` Dmitry Baryshkov
  2025-11-26  8:48   ` Imran Shaik
@ 2025-11-26  9:44   ` Taniya Das
  2 siblings, 0 replies; 24+ messages in thread
From: Taniya Das @ 2025-11-26  9:44 UTC (permalink / raw)
  To: Jagadeesh Kona, Bjorn Andersson, Michael Turquette, Stephen Boyd,
	Vinod Koul, Konrad Dybcio, Dmitry Baryshkov, Taniya Das,
	Melody Olvera, Ajit Pandey, Imran Shaik, Luca Weiss
  Cc: Ajit Pandey, Imran Shaik, linux-arm-msm, linux-clk, linux-kernel



On 11/26/2025 9:45 AM, Jagadeesh Kona wrote:
> Use shared_floor_ops for the SDCC RCGs so the RCG is safely parked
> during disable and the new parent configuration is programmed in
> hardware only when the new parent is enabled, avoiding cases where
> the RCG configuration fails to update.
> 
> Fixes: 108cdc09b2de ("clk: qcom: Add GCC driver support for SDX75")
> Signed-off-by: Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
> ---
>  drivers/clk/qcom/gcc-sdx75.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/clk/qcom/gcc-sdx75.c b/drivers/clk/qcom/gcc-sdx75.c
> index 453a6bf8e8786308ef785799f71b6cff8a5a9727..1f3cd58483a2d6ef18b43fc2c4ea38a6f8750c5b 100644
> --- a/drivers/clk/qcom/gcc-sdx75.c
> +++ b/drivers/clk/qcom/gcc-sdx75.c
> @@ -1033,7 +1033,7 @@ static struct clk_rcg2 gcc_sdcc1_apps_clk_src = {
>  		.name = "gcc_sdcc1_apps_clk_src",
>  		.parent_data = gcc_parent_data_17,
>  		.num_parents = ARRAY_SIZE(gcc_parent_data_17),
> -		.ops = &clk_rcg2_floor_ops,
> +		.ops = &clk_rcg2_shared_floor_ops,
>  	},
>  };
>  
> @@ -1057,7 +1057,7 @@ static struct clk_rcg2 gcc_sdcc2_apps_clk_src = {
>  		.name = "gcc_sdcc2_apps_clk_src",
>  		.parent_data = gcc_parent_data_18,
>  		.num_parents = ARRAY_SIZE(gcc_parent_data_18),
> -		.ops = &clk_rcg2_floor_ops,
> +		.ops = &clk_rcg2_shared_floor_ops,
>  	},
>  };
>  
> 

Reviewed-by: Taniya Das <taniya.das@oss.qualcomm.com>

-- 
Thanks,
Taniya Das


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

* Re: [PATCH 5/5] clk: qcom: gcc-milos: Update the SDCC RCGs to use shared_floor_ops
  2025-11-26  4:15 ` [PATCH 5/5] clk: qcom: gcc-milos: " Jagadeesh Kona
  2025-11-26  8:44   ` Dmitry Baryshkov
  2025-11-26  8:49   ` Imran Shaik
@ 2025-11-26  9:45   ` Taniya Das
  2 siblings, 0 replies; 24+ messages in thread
From: Taniya Das @ 2025-11-26  9:45 UTC (permalink / raw)
  To: Jagadeesh Kona, Bjorn Andersson, Michael Turquette, Stephen Boyd,
	Vinod Koul, Konrad Dybcio, Dmitry Baryshkov, Taniya Das,
	Melody Olvera, Ajit Pandey, Imran Shaik, Luca Weiss
  Cc: Ajit Pandey, Imran Shaik, linux-arm-msm, linux-clk, linux-kernel



On 11/26/2025 9:45 AM, Jagadeesh Kona wrote:
> Use shared_floor_ops for the SDCC RCGs to avoid any overclocking
> issues in SDCC usecases.
> 
> Fixes: 88174d5d9422 ("clk: qcom: Add Global Clock controller (GCC) driver for Milos")
> Signed-off-by: Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
> ---
>  drivers/clk/qcom/gcc-milos.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/clk/qcom/gcc-milos.c b/drivers/clk/qcom/gcc-milos.c
> index c9d61b05bafa1618274cd87c83df6fd14131efcf..81fa09ec55d7f6d6cb761affd3b93301a102f61f 100644
> --- a/drivers/clk/qcom/gcc-milos.c
> +++ b/drivers/clk/qcom/gcc-milos.c
> @@ -917,7 +917,7 @@ static struct clk_rcg2 gcc_sdcc1_apps_clk_src = {
>  		.name = "gcc_sdcc1_apps_clk_src",
>  		.parent_data = gcc_parent_data_9,
>  		.num_parents = ARRAY_SIZE(gcc_parent_data_9),
> -		.ops = &clk_rcg2_shared_ops,
> +		.ops = &clk_rcg2_shared_floor_ops,
>  	},
>  };
>  
> @@ -938,7 +938,7 @@ static struct clk_rcg2 gcc_sdcc1_ice_core_clk_src = {
>  		.name = "gcc_sdcc1_ice_core_clk_src",
>  		.parent_data = gcc_parent_data_10,
>  		.num_parents = ARRAY_SIZE(gcc_parent_data_10),
> -		.ops = &clk_rcg2_shared_ops,
> +		.ops = &clk_rcg2_shared_floor_ops,
>  	},
>  };
>  
> @@ -962,7 +962,7 @@ static struct clk_rcg2 gcc_sdcc2_apps_clk_src = {
>  		.name = "gcc_sdcc2_apps_clk_src",
>  		.parent_data = gcc_parent_data_11,
>  		.num_parents = ARRAY_SIZE(gcc_parent_data_11),
> -		.ops = &clk_rcg2_shared_ops,
> +		.ops = &clk_rcg2_shared_floor_ops,
>  	},
>  };
>  
> 

Reviewed-by: Taniya Das <taniya.das@oss.qualcomm.com>

-- 
Thanks,
Taniya Das


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

* Re: [PATCH 0/5] clk: qcom: gcc: Update the SDCC RCGs to use shared_floor_ops
  2025-11-26  8:50 ` [PATCH 0/5] clk: qcom: gcc: " Imran Shaik
@ 2025-11-26 17:34   ` Jagadeesh Kona
  0 siblings, 0 replies; 24+ messages in thread
From: Jagadeesh Kona @ 2025-11-26 17:34 UTC (permalink / raw)
  To: Imran Shaik, Bjorn Andersson, Michael Turquette, Stephen Boyd,
	Vinod Koul, Konrad Dybcio, Dmitry Baryshkov, Taniya Das,
	Melody Olvera, Ajit Pandey, Imran Shaik, Luca Weiss
  Cc: Ajit Pandey, Taniya Das, linux-arm-msm, linux-clk, linux-kernel



On 11/26/2025 2:20 PM, Imran Shaik wrote:
> 
> 
> On 11/26/2025 9:45 AM, Jagadeesh Kona wrote:
>> This series updates the clock ops to clk_rcg2_shared_floor_ops
>> for the SDCC RCGs on SM8450, SM8750, SM4450, SDX75 and Milos
>> chipsets.
>>
>> This change is required to ensure RCG is safely parked during
>> disable and new parent configuration is programmed in hardware
>> only when new parent is enabled, to avoid cases where RCG
>> configuration fails to update and overclocking issues.
>>
>> Signed-off-by: Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
>> ---
>> Jagadeesh Kona (5):
>>       clk: qcom: gcc-sm8450: Update the SDCC RCGs to use shared_floor_ops
>>       clk: qcom: gcc-sm8750: Update the SDCC RCGs to use shared_floor_ops
>>       clk: qcom: gcc-sm4450: Update the SDCC RCGs to use shared_floor_ops
>>       clk: qcom: gcc-sdx75: Update the SDCC RCGs to use shared_floor_ops
>>       clk: qcom: gcc-milos: Update the SDCC RCGs to use shared_floor_ops
>>
>>  drivers/clk/qcom/gcc-milos.c  | 6 +++---
>>  drivers/clk/qcom/gcc-sdx75.c  | 4 ++--
>>  drivers/clk/qcom/gcc-sm4450.c | 6 +++---
>>  drivers/clk/qcom/gcc-sm8450.c | 4 ++--
>>  drivers/clk/qcom/gcc-sm8750.c | 4 ++--
>>  5 files changed, 12 insertions(+), 12 deletions(-)
>> ---
>> base-commit: 92fd6e84175befa1775e5c0ab682938eca27c0b2
>> change-id: 20251125-sdcc_shared_floor_ops-722ccecfe787
>>
>> Best regards,
> 
> Can you please add similar fix-ups for gcc-qdu1000.c/gcc-x1e80100.c as well.
> 

Sure, I will add fix-ups for above targets also and post v2.

Thanks,
Jagadeesh



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

end of thread, other threads:[~2025-11-26 17:34 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-26  4:15 [PATCH 0/5] clk: qcom: gcc: Update the SDCC RCGs to use shared_floor_ops Jagadeesh Kona
2025-11-26  4:15 ` [PATCH 1/5] clk: qcom: gcc-sm8450: " Jagadeesh Kona
2025-11-26  7:42   ` Dmitry Baryshkov
2025-11-26  8:47   ` Imran Shaik
2025-11-26  9:42   ` Taniya Das
2025-11-26  4:15 ` [PATCH 2/5] clk: qcom: gcc-sm8750: " Jagadeesh Kona
2025-11-26  7:42   ` Dmitry Baryshkov
2025-11-26  8:49   ` Imran Shaik
2025-11-26  9:44   ` Taniya Das
2025-11-26  4:15 ` [PATCH 3/5] clk: qcom: gcc-sm4450: " Jagadeesh Kona
2025-11-26  8:44   ` Dmitry Baryshkov
2025-11-26  8:49   ` Imran Shaik
2025-11-26  9:44   ` Taniya Das
2025-11-26  4:15 ` [PATCH 4/5] clk: qcom: gcc-sdx75: " Jagadeesh Kona
2025-11-26  8:44   ` Dmitry Baryshkov
2025-11-26  8:48   ` Imran Shaik
2025-11-26  9:44   ` Taniya Das
2025-11-26  4:15 ` [PATCH 5/5] clk: qcom: gcc-milos: " Jagadeesh Kona
2025-11-26  8:44   ` Dmitry Baryshkov
2025-11-26  8:49   ` Imran Shaik
2025-11-26  9:45   ` Taniya Das
2025-11-26  8:50 ` [PATCH 0/5] clk: qcom: gcc: " Imran Shaik
2025-11-26 17:34   ` Jagadeesh Kona
2025-11-26  9:11 ` Vladimir Zapolskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox