linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv5 0/2] coresight: Do not default to CPU0 for missing CPU phandle
@ 2019-06-27 18:15 Sai Prakash Ranjan
  2019-06-27 18:15 ` [PATCHv5 1/2] dt-bindings: coresight: Change CPU phandle to required property Sai Prakash Ranjan
  2019-06-27 18:15 ` [PATCHv5 2/2] coresight: Do not default to CPU0 for missing CPU phandle Sai Prakash Ranjan
  0 siblings, 2 replies; 12+ messages in thread
From: Sai Prakash Ranjan @ 2019-06-27 18:15 UTC (permalink / raw)
  To: Mathieu Poirier, Suzuki K Poulose, Rob Herring, devicetree,
	Leo Yan, Alexander Shishkin, David Brown, Mark Rutland
  Cc: Sai Prakash Ranjan, Rajendra Nayak, linux-arm-msm, linux-kernel,
	Sibi Sankar, Vivek Gautam, linux-arm-kernel

In case of missing CPU phandle, the affinity is set default to
CPU0 which is not a correct assumption. Fix this in coresight
platform to set affinity to invalid and abort the probe in drivers.
Also update the dt-bindings accordingly.

v5:
 * Separate out the dt-bindings patch.

v4:
 * Fix return for !CONFIG_ACPI and !CONFIG_OF.

v3:
 * Addressed review comments from Suzuki and updated
   acpi_coresight_get_cpu.
 * Removed patch 2 which had invalid check for online
   cpus.

v2:
 * Addressed review comments from Suzuki and Mathieu.
 * Allows the probe of etm and cpu-debug to abort earlier
   in case of unavailability of respective cpus.

Sai Prakash Ranjan (2):
  dt-bindings: coresight: Change CPU phandle to required property
  coresight: Do not default to CPU0 for missing CPU phandle

 .../bindings/arm/coresight-cpu-debug.txt      |  4 ++--
 .../devicetree/bindings/arm/coresight.txt     |  8 +++++---
 .../hwtracing/coresight/coresight-cpu-debug.c |  3 +++
 drivers/hwtracing/coresight/coresight-etm3x.c |  3 +++
 drivers/hwtracing/coresight/coresight-etm4x.c |  3 +++
 .../hwtracing/coresight/coresight-platform.c  | 20 +++++++++----------
 6 files changed, 26 insertions(+), 15 deletions(-)

-- 
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
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2019-07-04 11:05 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-27 18:15 [PATCHv5 0/2] coresight: Do not default to CPU0 for missing CPU phandle Sai Prakash Ranjan
2019-06-27 18:15 ` [PATCHv5 1/2] dt-bindings: coresight: Change CPU phandle to required property Sai Prakash Ranjan
2019-07-03 20:02   ` Mathieu Poirier
2019-07-04  6:43     ` Sai Prakash Ranjan
2019-07-04  7:02       ` Greg Kroah-Hartman
2019-07-04  8:08         ` Marc Gonzalez
2019-07-04  8:18           ` Greg Kroah-Hartman
2019-07-04  8:20             ` Sai Prakash Ranjan
2019-07-04  8:51             ` Marc Gonzalez
2019-07-04 11:05               ` Greg Kroah-Hartman
2019-06-27 18:15 ` [PATCHv5 2/2] coresight: Do not default to CPU0 for missing CPU phandle Sai Prakash Ranjan
2019-07-03 20:03   ` Mathieu Poirier

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).