Skip to contentSkip to conversation

clk: qcom: Leave mmss noc on for 8998

PATCH Superseded Jeffrey Hugo 2 participants 2 messages Dec 13, 2018

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: qcom: Leave mmss noc on for 8998

Similar to other qcom targets, gcc_mmss_noc_cfg_ahb_clk should not be disabled. Any mmss access depends on this clock, and its been observed that enabling mmssnoc_axi_rpm_clk with rpmcc results in an implicit access to mmss and will crash the system if gcc_mmss_noc_cfg_ahb_clk is disabled.

---
 drivers/clk/qcom/gcc-msm8998.c | 1 +
 1 file changed, 1 insertion(+)
drivers/clk/qcom/gcc-msm8998.c +1 -0
index 4b75a09..b371308 100644
@@ -2014,6 +2014,7 @@ enum {
 		.hw.init = &(struct clk_init_data){
 			.name = "gcc_mmss_noc_cfg_ahb_clk",
 			.ops = &clk_branch2_ops,
+			.flags = CLK_IGNORE_UNUSED,
 		},
 	},
 };
Signature · 3 lines
Qualcomm Datacenter Technologies as an affiliate of Qualcomm Technologies, Inc.
Qualcomm Technologies, Inc. is a member of the
Code Aurora Forum, a Linux Foundation Collaborative Project.
maintainer
#1 lore raw

Quoting Jeffrey Hugo (2018-12-13 08:59:30)

Quoted 16 lines

Similar to other qcom targets, gcc_mmss_noc_cfg_ahb_clk should not be disabled. Any mmss access depends on this clock, and its been observed that enabling mmssnoc_axi_rpm_clk with rpmcc results in an implicit access to mmss and will crash the system if gcc_mmss_noc_cfg_ahb_clk is disabled.

---
 drivers/clk/qcom/gcc-msm8998.c | 1 +
 1 file changed, 1 insertion(+)
drivers/clk/qcom/gcc-msm8998.c +0 -0
index 4b75a09..b371308 100644

drivers/clk/qcom/gcc-msm8998.c enum { · line 2017

Quoted 4 lines
drivers/clk/qcom/gcc-msm8998.c +1 -0
@@ -2014,6 +2014,7 @@ enum {
                .hw.init = &(struct clk_init_data){
                        .name = "gcc_mmss_noc_cfg_ahb_clk",
                        .ops = &clk_branch2_ops,
+                       .flags = CLK_IGNORE_UNUSED,

It should be marked as CLK_IS_CRITICAL and a comment should be added to the code indicating why it's critical.