Skip to contentSkip to conversation

coresight: etm4x: Add support to disable trace unit power up

PATCH Superseded Sai Prakash Ranjan 2 participants 8 messages May 14, 2020 – May 15, 2020

Subsystems (4)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 coresight: etm4x: Add support to disable trace unit power up

From: Tingwei Zhang <[email protected]>

On some Qualcomm Technologies Inc. SoCs like SC7180, there exists a hardware errata where the APSS (Application Processor SubSystem)/CPU watchdog counter is stopped when ETM register TRCPDCR.PU=1. Since the ETMs share the same power domain as that of respective CPU cores, they are powered on when the CPU core is powered on. So we can disable powering up of the trace unit after checking for this errata via new property called "qcom,tupwr-disable".

---
 .../devicetree/bindings/arm/coresight.txt     |  6 ++++
 drivers/hwtracing/coresight/coresight-etm4x.c | 29 ++++++++++++-------
 2 files changed, 25 insertions(+), 10 deletions(-)
Documentation/devicetree/bindings/arm/coresight.txt +6 -0
index 846f6daae71b..d2030128fe46 100644
@@ -108,6 +108,12 @@ its hardware characteristcs.
 	* arm,cp14: must be present if the system accesses ETM/PTM management
 	  registers via co-processor 14.
 
+	* qcom,tupwr-disable: boolean. Indicates that trace unit power up can
+	  be disabled on Qualcomm Technologies Inc. systems where ETMs are in
+	  the same power domain as their CPU cores. This property is required
+	  to identify such systems with hardware errata where the CPU watchdog
+	  counter is stopped when TRCPDCR.PU=1.
+
 * Optional property for TMC:
 
 	* arm,buffer-size: size of contiguous buffer space for TMC ETR
drivers/hwtracing/coresight/coresight-etm4x.c +19 -10
index fb0f5f4f3a91..6886b44f6947 100644
@@ -104,6 +104,11 @@ struct etm4_enable_arg {
 	int rc;
 };
 
+static inline bool etm4_can_disable_tupwr(struct device *dev)
+{
+	return fwnode_property_present(dev_fwnode(dev), "qcom,tupwr-disable");
+}
+
 static int etm4_enable_hw(struct etmv4_drvdata *drvdata)
 {
 	int i, rc;
@@ -196,12 +201,14 @@ static int etm4_enable_hw(struct etmv4_drvdata *drvdata)
 	writel_relaxed(config->vmid_mask0, drvdata->base + TRCVMIDCCTLR0);
 	writel_relaxed(config->vmid_mask1, drvdata->base + TRCVMIDCCTLR1);
 
-	/*
-	 * Request to keep the trace unit powered and also
-	 * emulation of powerdown
-	 */
-	writel_relaxed(readl_relaxed(drvdata->base + TRCPDCR) | TRCPDCR_PU,
-		       drvdata->base + TRCPDCR);
+	if (!etm4_can_disable_tupwr(etm_dev)) {
+		/*
+		 * Request to keep the trace unit powered and also
+		 * emulation of powerdown
+		 */
+		writel_relaxed(readl_relaxed(drvdata->base + TRCPDCR) | TRCPDCR_PU,
+			       drvdata->base + TRCPDCR);
+	}
 
 	/* Enable the trace unit */
 	writel_relaxed(1, drvdata->base + TRCPRGCTLR);
@@ -476,10 +483,12 @@ static void etm4_disable_hw(void *info)
 
 	CS_UNLOCK(drvdata->base);
 
-	/* power can be removed from the trace unit now */
-	control = readl_relaxed(drvdata->base + TRCPDCR);
-	control &= ~TRCPDCR_PU;
-	writel_relaxed(control, drvdata->base + TRCPDCR);
+	if (!etm4_can_disable_tupwr(etm_dev)) {
+		/* power can be removed from the trace unit now */
+		control = readl_relaxed(drvdata->base + TRCPDCR);
+		control &= ~TRCPDCR_PU;
+		writel_relaxed(control, drvdata->base + TRCPDCR);
+	}
 
 	control = readl_relaxed(drvdata->base + TRCPRGCTLR);
 
Signature · 2 lines
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation
#1 lore raw

Good morning Sai,

Quoted 6 lines · Sai Prakash Ranjan

From: Tingwei Zhang <[email protected]>

On some Qualcomm Technologies Inc. SoCs like SC7180, there exists a hardware errata where the APSS (Application Processor SubSystem)/CPU watchdog counter is stopped when ETM register TRCPDCR.PU=1.

Fun stuff...

Quoted 9 lines

Since the ETMs share the same power domain as
that of respective CPU cores, they are powered on when the CPU core is powered on. So we can disable powering up of the trace unit after checking for this errata via new property called "qcom,tupwr-disable".

Quoted 3 lines
---
 .../devicetree/bindings/arm/coresight.txt     |  6 ++++
 drivers/hwtracing/coresight/coresight-etm4x.c | 29 ++++++++++++-------

Please split in two patches.

Quoted 7 lines
 2 files changed, 25 insertions(+), 10 deletions(-)
Documentation/devicetree/bindings/arm/coresight.txt +0 -0
index 846f6daae71b..d2030128fe46 100644

Documentation/devicetree/bindings/arm/coresight.txt its hardware characteristcs. · line 116

Quoted 9 lines
Documentation/devicetree/bindings/arm/coresight.txt +6 -0
@@ -108,6 +108,12 @@ its hardware characteristcs.
 	* arm,cp14: must be present if the system accesses ETM/PTM management
 	  registers via co-processor 14.
 
+	* qcom,tupwr-disable: boolean. Indicates that trace unit power up can
+	  be disabled on Qualcomm Technologies Inc. systems where ETMs are in
+	  the same power domain as their CPU cores. This property is required
+	  to identify such systems with hardware errata where the CPU watchdog
+	  counter is stopped when TRCPDCR.PU=1.
+

I think something like "qcom,skip-power-up" would be clearer.

Also, a better choice of words is that TRCPDCR.PU does not have to be set on Qualcomm...

Quoted 8 lines
Documentation/devicetree/bindings/arm/coresight.txt +0 -0
 * Optional property for TMC:
 
 	* arm,buffer-size: size of contiguous buffer space for TMC ETR
drivers/hwtracing/coresight/coresight-etm4x.c +0 -0
index fb0f5f4f3a91..6886b44f6947 100644

drivers/hwtracing/coresight/coresight-etm4x.c struct etm4_enable_arg { · line 111

Quoted 8 lines
drivers/hwtracing/coresight/coresight-etm4x.c +5 -0
@@ -104,6 +104,11 @@ struct etm4_enable_arg {
 	int rc;
 };
 
+static inline bool etm4_can_disable_tupwr(struct device *dev)
+{
+	return fwnode_property_present(dev_fwnode(dev), "qcom,tupwr-disable");
+}
+

Please call fwnode_property_present() at initialisation time to set a new drvdata::skip_power_up variable. From there just switch on that in etm4_enable/disable_hw().

Thanks,
Mathieu

Quoted 44 lines
drivers/hwtracing/coresight/coresight-etm4x.c +14 -10
 static int etm4_enable_hw(struct etmv4_drvdata *drvdata)
 {
 	int i, rc;
@@ -196,12 +201,14 @@ static int etm4_enable_hw(struct etmv4_drvdata *drvdata)
 	writel_relaxed(config->vmid_mask0, drvdata->base + TRCVMIDCCTLR0);
 	writel_relaxed(config->vmid_mask1, drvdata->base + TRCVMIDCCTLR1);
 
-	/*
-	 * Request to keep the trace unit powered and also
-	 * emulation of powerdown
-	 */
-	writel_relaxed(readl_relaxed(drvdata->base + TRCPDCR) | TRCPDCR_PU,
-		       drvdata->base + TRCPDCR);
+	if (!etm4_can_disable_tupwr(etm_dev)) {
+		/*
+		 * Request to keep the trace unit powered and also
+		 * emulation of powerdown
+		 */
+		writel_relaxed(readl_relaxed(drvdata->base + TRCPDCR) | TRCPDCR_PU,
+			       drvdata->base + TRCPDCR);
+	}
 
 	/* Enable the trace unit */
 	writel_relaxed(1, drvdata->base + TRCPRGCTLR);
@@ -476,10 +483,12 @@ static void etm4_disable_hw(void *info)
 
 	CS_UNLOCK(drvdata->base);
 
-	/* power can be removed from the trace unit now */
-	control = readl_relaxed(drvdata->base + TRCPDCR);
-	control &= ~TRCPDCR_PU;
-	writel_relaxed(control, drvdata->base + TRCPDCR);
+	if (!etm4_can_disable_tupwr(etm_dev)) {
+		/* power can be removed from the trace unit now */
+		control = readl_relaxed(drvdata->base + TRCPDCR);
+		control &= ~TRCPDCR_PU;
+		writel_relaxed(control, drvdata->base + TRCPDCR);
+	}
 
 	control = readl_relaxed(drvdata->base + TRCPRGCTLR);
 
Signature · 2 lines
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation
#2 lore raw

Hi Mathieu,

Quoted 12 lines · Mathieu Poirier

Good morning Sai,

Quoted 6 lines · Sai Prakash Ranjan

From: Tingwei Zhang <[email protected]>

On some Qualcomm Technologies Inc. SoCs like SC7180, there exists a hardware errata where the APSS (Application Processor SubSystem)/CPU watchdog counter is stopped when ETM register TRCPDCR.PU=1.

Fun stuff...

Yes :)

Quoted 6 lines
Quoted 6 lines

Since the ETMs share the same power domain as
that of respective CPU cores, they are powered on when the CPU core is powered on. So we can disable powering up of the trace unit after checking for this errata via new property called "qcom,tupwr-disable".

Quoted 7 lines
Quoted 3 lines

Tingwei is the author, so if I understand correctly, his signed-off-by should appear first, am I wrong?

Quoted 7 lines
Quoted 4 lines
---
 .../devicetree/bindings/arm/coresight.txt     |  6 ++++
 drivers/hwtracing/coresight/coresight-etm4x.c | 29 

++++++++++++-------

Please split in two patches.

Sure, I will split the dt-binding into separate patch, checkpatch did warn.

Quoted 24 lines
Quoted 19 lines
 2 files changed, 25 insertions(+), 10 deletions(-)
Documentation/devicetree/bindings/arm/coresight.txt +0 -0
index 846f6daae71b..d2030128fe46 100644
@@ -108,6 +108,12 @@ its hardware characteristcs.
 	* arm,cp14: must be present if the system accesses ETM/PTM 

management

Documentation/devicetree/bindings/arm/coresight.txt +1 -0
 	  registers via co-processor 14.
 
+	* qcom,tupwr-disable: boolean. Indicates that trace unit power up 

can

Documentation/devicetree/bindings/arm/coresight.txt +1 -0
+	  be disabled on Qualcomm Technologies Inc. systems where ETMs are 

in

Documentation/devicetree/bindings/arm/coresight.txt +1 -0
+	  the same power domain as their CPU cores. This property is 

required

Documentation/devicetree/bindings/arm/coresight.txt +1 -0
+	  to identify such systems with hardware errata where the CPU 

watchdog

Documentation/devicetree/bindings/arm/coresight.txt its hardware characteristcs. · line 116

Quoted 2 lines
Documentation/devicetree/bindings/arm/coresight.txt +2 -0
+	  counter is stopped when TRCPDCR.PU=1.
+

I think something like "qcom,skip-power-up" would be clearer.

Quoted 3 lines

Also, a better choice of words is that TRCPDCR.PU does not have to be set on Qualcomm...

Yes "qcom,skip-power-up" is a lot better, thanks. Also will use something as you suggested for description.

Quoted 11 lines
Quoted 11 lines

* Optional property for TMC:

Documentation/devicetree/bindings/arm/coresight.txt +0 -0
 	* arm,buffer-size: size of contiguous buffer space for TMC ETR
drivers/hwtracing/coresight/coresight-etm4x.c +0 -0
index fb0f5f4f3a91..6886b44f6947 100644
@@ -104,6 +104,11 @@ struct etm4_enable_arg {
 	int rc;
 };
 
Quoted 11 lines

drivers/hwtracing/coresight/coresight-etm4x.c struct etm4_enable_arg { · line 111

Quoted 6 lines
drivers/hwtracing/coresight/coresight-etm4x.c +5 -0
+static inline bool etm4_can_disable_tupwr(struct device *dev)
+{
+	return fwnode_property_present(dev_fwnode(dev), 
 "qcom,tupwr-disable");
+}
+

Please call fwnode_property_present() at initialisation time to set a new drvdata::skip_power_up variable. From there just switch on that in etm4_enable/disable_hw().

Will do, thanks.

Thanks,
Sai

Signature · 2 lines
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation
#3 lore raw
Quoted 29 lines · Sai Prakash Ranjan

Hi Mathieu,

Quoted 12 lines · Mathieu Poirier

Good morning Sai,

Quoted 6 lines · Sai Prakash Ranjan

From: Tingwei Zhang <[email protected]>

On some Qualcomm Technologies Inc. SoCs like SC7180, there exists a hardware errata where the APSS (Application Processor SubSystem)/CPU watchdog counter is stopped when ETM register TRCPDCR.PU=1.

Fun stuff...

Yes :)

Quoted 10 lines
Quoted 9 lines

Since the ETMs share the same power domain as
that of respective CPU cores, they are powered on when the CPU core is powered on. So we can disable powering up of the trace unit after checking for this errata via new property called "qcom,tupwr-disable".

Quoted 6 lines
Quoted 3 lines

Tingwei is the author, so if I understand correctly, his signed-off-by should appear first, am I wrong?

It's a gray area and depends on who's code is more prevalent in the patch. If Tingwei wrote the most of the code then his name is in the "from:" section, yours as co-developer and he signs off on it (as I suggested). If you did most of the work then it is the opposite. Adding a Co-developed and a signed-off with the same name doesn't make sense.

Quoted 11 lines
Quoted 8 lines
Quoted 5 lines
---
 .../devicetree/bindings/arm/coresight.txt     |  6 ++++
 drivers/hwtracing/coresight/coresight-etm4x.c | 29

++++++++++++-------

Please split in two patches.

Sure, I will split the dt-binding into separate patch, checkpatch did warn.

And you still sent me the patch... I usually run checkpatch before all the submissions I review and flatly ignore patches that return errors. You got lucky...

Quoted 74 lines
Quoted 26 lines
Quoted 21 lines
 2 files changed, 25 insertions(+), 10 deletions(-)
Documentation/devicetree/bindings/arm/coresight.txt +0 -0
index 846f6daae71b..d2030128fe46 100644
@@ -108,6 +108,12 @@ its hardware characteristcs.
     * arm,cp14: must be present if the system accesses ETM/PTM

management
registers via co-processor 14.

+ * qcom,tupwr-disable: boolean. Indicates that trace unit power up
can
+ be disabled on Qualcomm Technologies Inc. systems where ETMs are
in
+ the same power domain as their CPU cores. This property is
required
+ to identify such systems with hardware errata where the CPU
watchdog

Documentation/devicetree/bindings/arm/coresight.txt its hardware characteristcs. · line 116

Quoted 2 lines
Documentation/devicetree/bindings/arm/coresight.txt +2 -0
+      counter is stopped when TRCPDCR.PU=1.
+

I think something like "qcom,skip-power-up" would be clearer.

Quoted 4 lines

Also, a better choice of words is that TRCPDCR.PU does not have to be set on
Qualcomm...

Yes "qcom,skip-power-up" is a lot better, thanks. Also will use something as
you suggested for description.

Quoted 12 lines
Quoted 12 lines

* Optional property for TMC:

* arm,buffer-size: size of contiguous buffer space for TMC ETR

drivers/hwtracing/coresight/coresight-etm4x.c +0 -0
index fb0f5f4f3a91..6886b44f6947 100644
@@ -104,6 +104,11 @@ struct etm4_enable_arg {
     int rc;
 };
 
Quoted 12 lines

drivers/hwtracing/coresight/coresight-etm4x.c struct etm4_enable_arg { · line 111

Quoted 6 lines
drivers/hwtracing/coresight/coresight-etm4x.c +5 -0
+static inline bool etm4_can_disable_tupwr(struct device *dev)
+{
+    return fwnode_property_present(dev_fwnode(dev),
 "qcom,tupwr-disable");
+}
+

Please call fwnode_property_present() at initialisation time to set a new
drvdata::skip_power_up variable. From there just switch on that in etm4_enable/disable_hw().

Will do, thanks.

Thanks,
Sai

--
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#4 lore raw

Hi Mathieu,

Quoted 38 lines · Mathieu Poirier
Quoted 29 lines · Sai Prakash Ranjan

Hi Mathieu,

Quoted 12 lines · Mathieu Poirier

Good morning Sai,

Quoted 6 lines · Sai Prakash Ranjan

From: Tingwei Zhang <[email protected]>

On some Qualcomm Technologies Inc. SoCs like SC7180, there exists a hardware errata where the APSS (Application Processor SubSystem)/CPU watchdog counter is stopped when ETM register TRCPDCR.PU=1.

Fun stuff...

Yes :)

Quoted 10 lines
Quoted 9 lines

Since the ETMs share the same power domain as
that of respective CPU cores, they are powered on when the CPU core is powered on. So we can disable powering up of the trace unit after checking for this errata via new property called "qcom,tupwr-disable".

Quoted 6 lines
Quoted 3 lines

Tingwei is the author, so if I understand correctly, his signed-off-by should appear first, am I wrong?

Quoted 7 lines

It's a gray area and depends on who's code is more prevalent in the patch. If Tingwei wrote the most of the code then his name is in the "from:" section, yours as co-developer and he signs off on it (as I suggested). If you did most of the work then it is the opposite. Adding a Co-developed and a signed-off with the same name doesn't make sense.

I did check the documentation for submitting patches:
Documentation/process/submitting-patches.rst. And it clearly states that "Co-developed-by must be followed by Signed-off by the co-author and the last Signed-off-by: must always be that of the developer submitting the patch".

Quoting below from the doc:

Co-developed-by: <snip> ...Since
Co-developed-by: denotes authorship, every Co-developed-by: must be immediately followed by a Signed-off-by: of the associated co-author. Standard sign-off procedure applies, i.e. the ordering of Signed-off-by: tags should reflect the chronological history of the patch insofar as possible, regardless of whether the author is attributed via From: or Co-developed-by:. Notably, the last
Signed-off-by: must always be that of the developer submitting the patch.

Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
Quoted 5 lines
---
 .../devicetree/bindings/arm/coresight.txt     |  6 ++++
 drivers/hwtracing/coresight/coresight-etm4x.c | 29

++++++++++++-------

Please split in two patches.

Quoted 7 lines
Quoted 2 lines

Sure, I will split the dt-binding into separate patch, checkpatch did warn.

And you still sent me the patch... I usually run checkpatch before all the submissions I review and flatly ignore patches that return errors. You got lucky...

I did not mean to ignore it or else I wouldn't have run checkpatch itself. I checked other cases like "arm,scatter-gather" where the binding and the driver change was in a single patch, hence I thought it's not a very strict rule.

Thanks,
Sai

Signature · 2 lines
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation
#5 lore raw
Quoted 57 lines · Sai Prakash Ranjan

Hi Mathieu,

Quoted 38 lines · Mathieu Poirier
Quoted 29 lines · Sai Prakash Ranjan

Hi Mathieu,

Quoted 12 lines · Mathieu Poirier

Good morning Sai,

Quoted 6 lines · Sai Prakash Ranjan

From: Tingwei Zhang <[email protected]>

On some Qualcomm Technologies Inc. SoCs like SC7180, there exists a hardware errata where the APSS (Application Processor SubSystem)/CPU watchdog counter is stopped when ETM register TRCPDCR.PU=1.

Fun stuff...

Yes :)

Quoted 10 lines
Quoted 9 lines

Since the ETMs share the same power domain as
that of respective CPU cores, they are powered on when the CPU core is powered on. So we can disable powering up of the trace unit after checking for this errata via new property called "qcom,tupwr-disable".

Quoted 6 lines
Quoted 3 lines

Tingwei is the author, so if I understand correctly, his signed-off-by should appear first, am I wrong?

Quoted 7 lines

It's a gray area and depends on who's code is more prevalent in the patch. If Tingwei wrote the most of the code then his name is in the "from:" section, yours as co-developer and he signs off on it (as I suggested). If you did most of the work then it is the opposite. Adding a Co-developed and a signed-off with the same name doesn't make sense.

I did check the documentation for submitting patches:
Documentation/process/submitting-patches.rst. And it clearly states that "Co-developed-by must be followed by Signed-off by the co-author and the last Signed-off-by: must always be that of the developer submitting the patch".

Quoting below from the doc:

Quoted 10 lines

Co-developed-by: <snip> ...Since
Co-developed-by: denotes authorship, every Co-developed-by: must be immediately
followed by a Signed-off-by: of the associated co-author. Standard sign-off procedure applies, i.e. the ordering of Signed-off-by: tags should reflect the
chronological history of the patch insofar as possible, regardless of whether
the author is attributed via From: or Co-developed-by:. Notably, the last
Signed-off-by: must always be that of the developer submitting the patch.

Ah yes, glad to see that got clarified. You can ignore my recommendation on that snippet.

Quoted 18 lines
Quoted 10 lines
Quoted 10 lines
Quoted 9 lines
Quoted 6 lines

---
 .../devicetree/bindings/arm/coresight.txt     |  6 ++++
 drivers/hwtracing/coresight/coresight-etm4x.c | 29

++++++++++++-------

Please split in two patches.

Quoted 7 lines
Quoted 2 lines

Sure, I will split the dt-binding into separate patch, checkpatch did warn.

And you still sent me the patch... I usually run checkpatch before all the submissions I review and flatly ignore patches that return errors. You got lucky...

Quoted 4 lines

I did not mean to ignore it or else I wouldn't have run checkpatch itself. I checked other cases like "arm,scatter-gather" where the binding and the driver change was in a single patch, hence I thought it's not a very strict rule.

The patch has another warning for a line over 80 characters, that should have been fixed before sending. Putting DT changes in a separate patch is always better for the DT people. They review tons of patches and making their life easier is always a good thing.

Regards,
Mathieu

Quoted 6 lines

Thanks,
Sai

Signature · 2 lines
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation
#6 lore raw

Hi Mathieu,

Quoted 95 lines · Mathieu Poirier
Quoted 57 lines · Sai Prakash Ranjan

Hi Mathieu,

Quoted 38 lines · Mathieu Poirier
Quoted 29 lines · Sai Prakash Ranjan

Hi Mathieu,

Quoted 12 lines · Mathieu Poirier

Good morning Sai,

Quoted 6 lines · Sai Prakash Ranjan

From: Tingwei Zhang <[email protected]>

On some Qualcomm Technologies Inc. SoCs like SC7180, there exists a hardware errata where the APSS (Application Processor SubSystem)/CPU watchdog counter is stopped when ETM register TRCPDCR.PU=1.

Fun stuff...

Yes :)

Quoted 10 lines
Quoted 9 lines

Since the ETMs share the same power domain as
that of respective CPU cores, they are powered on when the CPU core is powered on. So we can disable powering up of the trace unit after checking for this errata via new property called "qcom,tupwr-disable".

Quoted 6 lines
Quoted 3 lines

Tingwei is the author, so if I understand correctly, his signed-off-by should appear first, am I wrong?

Quoted 7 lines

It's a gray area and depends on who's code is more prevalent in the patch. If Tingwei wrote the most of the code then his name is in the "from:" section, yours as co-developer and he signs off on it (as I suggested). If you did most of the work then it is the opposite. Adding a Co-developed and a signed-off with the same name doesn't make sense.

I did check the documentation for submitting patches:
Documentation/process/submitting-patches.rst. And it clearly states that "Co-developed-by must be followed by Signed-off by the co-author and the last Signed-off-by: must always be that of the developer submitting the patch".

Quoting below from the doc:

Quoted 10 lines

Co-developed-by: <snip> ...Since
Co-developed-by: denotes authorship, every Co-developed-by: must be immediately
followed by a Signed-off-by: of the associated co-author. Standard sign-off procedure applies, i.e. the ordering of Signed-off-by: tags should reflect the
chronological history of the patch insofar as possible, regardless of whether
the author is attributed via From: or Co-developed-by:. Notably, the last
Signed-off-by: must always be that of the developer submitting the patch.

Ah yes, glad to see that got clarified. You can ignore my recommendation on that snippet.

Quoted 18 lines
Quoted 10 lines
Quoted 10 lines
Quoted 9 lines
Quoted 6 lines

---
 .../devicetree/bindings/arm/coresight.txt     |  6 ++++
 drivers/hwtracing/coresight/coresight-etm4x.c | 29

++++++++++++-------

Please split in two patches.

Quoted 7 lines
Quoted 2 lines

Sure, I will split the dt-binding into separate patch, checkpatch did warn.

And you still sent me the patch... I usually run checkpatch before all the submissions I review and flatly ignore patches that return errors. You got lucky...

Quoted 4 lines

I did not mean to ignore it or else I wouldn't have run checkpatch itself. I checked other cases like "arm,scatter-gather" where the binding and the driver change was in a single patch, hence I thought it's not a very strict rule.

Quoted 5 lines

The patch has another warning for a line over 80 characters, that should have been fixed before sending. Putting DT changes in a separate patch is always better for the DT people. They review tons of patches and making their life easier is always a good thing.

Ok, I will fix this and resend. I did not want to change it in case if it affects readability since most maintainers prefer to ignore this 80 characters warning if it affects readability. I will keep this in mind for future patches as well.

Thanks,
Sai

Signature · 7 lines
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#7 lore raw
Quoted 104 lines · Sai Prakash Ranjan

Hi Mathieu,

Quoted 95 lines · Mathieu Poirier
Quoted 57 lines · Sai Prakash Ranjan

Hi Mathieu,

Quoted 38 lines · Mathieu Poirier
Quoted 29 lines · Sai Prakash Ranjan

Hi Mathieu,

Quoted 12 lines · Mathieu Poirier

Good morning Sai,

Quoted 6 lines · Sai Prakash Ranjan

From: Tingwei Zhang <[email protected]>

On some Qualcomm Technologies Inc. SoCs like SC7180, there exists a hardware errata where the APSS (Application Processor SubSystem)/CPU watchdog counter is stopped when ETM register TRCPDCR.PU=1.

Fun stuff...

Yes :)

Quoted 10 lines
Quoted 9 lines

Since the ETMs share the same power domain as
that of respective CPU cores, they are powered on when the CPU core is powered on. So we can disable powering up of the trace unit after checking for this errata via new property called "qcom,tupwr-disable".

Quoted 6 lines
Quoted 3 lines

Tingwei is the author, so if I understand correctly, his signed-off-by should appear first, am I wrong?

Quoted 7 lines

It's a gray area and depends on who's code is more prevalent in the patch. If Tingwei wrote the most of the code then his name is in the "from:" section, yours as co-developer and he signs off on it (as I suggested). If you did most of the work then it is the opposite. Adding a Co-developed and a signed-off with the same name doesn't make sense.

I did check the documentation for submitting patches:
Documentation/process/submitting-patches.rst. And it clearly states that "Co-developed-by must be followed by Signed-off by the co-author and the last Signed-off-by: must always be that of the developer submitting the patch".

Quoting below from the doc:

Quoted 10 lines

Co-developed-by: <snip> ...Since
Co-developed-by: denotes authorship, every Co-developed-by: must be immediately
followed by a Signed-off-by: of the associated co-author. Standard sign-off procedure applies, i.e. the ordering of Signed-off-by: tags should reflect the
chronological history of the patch insofar as possible, regardless of whether
the author is attributed via From: or Co-developed-by:. Notably, the last
Signed-off-by: must always be that of the developer submitting the patch.

Ah yes, glad to see that got clarified. You can ignore my recommendation on that snippet.

Quoted 18 lines
Quoted 10 lines
Quoted 10 lines
Quoted 9 lines
Quoted 6 lines

---
 .../devicetree/bindings/arm/coresight.txt     |  6 ++++
 drivers/hwtracing/coresight/coresight-etm4x.c | 29

++++++++++++-------

Please split in two patches.

Quoted 7 lines
Quoted 2 lines

Sure, I will split the dt-binding into separate patch, checkpatch did warn.

And you still sent me the patch... I usually run checkpatch before all the submissions I review and flatly ignore patches that return errors. You got lucky...

Quoted 4 lines

I did not mean to ignore it or else I wouldn't have run checkpatch itself. I checked other cases like "arm,scatter-gather" where the binding and the driver change was in a single patch, hence I thought it's not a very strict rule.

Quoted 5 lines

The patch has another warning for a line over 80 characters, that should have been fixed before sending. Putting DT changes in a separate patch is always better for the DT people. They review tons of patches and making their life easier is always a good thing.

Quoted 6 lines

Ok, I will fix this and resend. I did not want to change it in case if it affects
readability since most maintainers prefer to ignore this 80 characters warning if
it affects readability. I will keep this in mind for future patches as well.

Now fixed all checkpatch warnings and addressed other review comments. Posted v3 - https://lore.kernel.org/patchwork/cover/1242572/

Thanks,
Sai

Signature · 2 lines
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation