[PATCHv5 0/7] Add coresight support for SDM845, MSM8998 and MSM8996

From: Sai Prakash Ranjan
Date: Mon Jan 28 2019 - 14:14:36 EST


This patch series adds support for coresight on SDM845, MSM8998, and MSM8996.

* Patch 1 adds device tree nodes for SDM845 coresight components.

* Patch 2 adds device tree nodes for MSM8998 coresight components.

* Patch 3 adds device tree nodes for MSM8996 coresight components.

* Patch 4 enables support for ETMv4.2 and enables SDM845 to make
use of same driver(etm4x).

* Patch 5 adds ETM PIDs for SDM845 and MSM8996.

* Patch 6 adds UCI table for coresight CPU debug module and
also adds a helper macro for making ID insertion simpler.

* Patch 7 is a trivial removal of duplicate header file.

Patch 1 and 4 depends on below AOSS QMP patches by Bjorn:
https://patchwork.kernel.org/patch/10749469/
https://patchwork.kernel.org/patch/10749481/
https://patchwork.kernel.org/patch/10749479/
https://patchwork.kernel.org/patch/10749475/

Patch 2 depends on MSM8998 rpm clocks and rpmcc nodes:
https://lore.kernel.org/lkml/1545099336-5615-1-git-send-email-jhugo@xxxxxxxxxxxxxx/
https://lore.kernel.org/lkml/8f431bde-0e67-8088-5119-7a951d0ead52@xxxxxxx/

Patch 5 and 6 depends on UCI support by Mike Leach:
https://lore.kernel.org/lkml/20190121233151.13363-2-mike.leach@xxxxxxxxxx/

This patch series has been tested on SDM845 MTP and MSM8996
based Dragonboard 820c and MSM8998 MTP.

v5:
* Added coresight support for MSM8998.
* Added ETM PIDs for SDM845 and MSM8996 as suggested
by Suzuki.
* Added UCI table for Coresight CPU debug module.

v4:
* Mask out the minor version as suggested by Mathieu.
* Added the dependent patch description in patch 1.

v3:
* Added arm,scatter-gather property as suggested by Suzuki.

v2:
* Added coresight support for msm8996 based on Vivek's patch.
Cleaned up and added coresight cpu debug nodes for msm8996.
* Merged coresight dtsi file into sdm845.dtsi as suggested by Bjorn
* Addressed Mathieu's feedback about masking the minor version in
etm4_arch_supported() and added a comment for reason to bypass
the AMBA bus discovery method.

Sai Prakash Ranjan (6):
arm64: dts: qcom: sdm845: Add Coresight support
arm64: dts: qcom: msm8998: Add Coresight support
coresight: etm4x: Add support to enable ETMv4.2
coresight: etm4x: Add ETM PIDs for SDM845 and MSM8996
coresight: debug: Add Unique Component Identifier (UCI) table
arm64: dts: qcom: sdm845: Remove the duplicate header inclusion

Vivek Gautam (1):
arm64: dts: qcom: msm8996: Add Coresight support

arch/arm64/boot/dts/qcom/msm8996.dtsi | 434 +++++++++++++++++
arch/arm64/boot/dts/qcom/msm8998.dtsi | 435 ++++++++++++++++++
arch/arm64/boot/dts/qcom/sdm845.dtsi | 435 +++++++++++++++++-
.../hwtracing/coresight/coresight-cpu-debug.c | 41 +-
drivers/hwtracing/coresight/coresight-etm4x.c | 7 +-
5 files changed, 1337 insertions(+), 15 deletions(-)

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