[PATCH 7/7] arm64: capabilities: Batch cpu_enable callbacks

2018-11-05 Thread Suzuki K Poulose
We use a stop_machine call for each available capability to enable it on all the CPUs available at boot time. Instead we could batch the cpu_enable callbacks to a single stop_machine() call to save us some time. Cc: Vladimir Murzin Signed-off-by: Suzuki K Poulose --- arch/arm64/include/asm

[PATCH 3/7] arm64: capabilities: Merge duplicate entries for Qualcomm erratum 1003

2018-11-05 Thread Suzuki K Poulose
Remove duplicate entries for Qualcomm erratum 1003. Since the entries are not purely based on generic MIDR checks, use the multi_cap_entry type to merge the entries. Cc: Christopher Covington Cc: Will Deacon Signed-off-by: Suzuki K Poulose --- arch/arm64/kernel/cpu_errata.c | 25

[PATCH 5/7] arm64: capabilities: Optimize this_cpu_has_cap

2018-11-05 Thread Suzuki K Poulose
Make use of the sorted capability list to access the capability entry in this_cpu_has_cap() to avoid iterating over the two tables. Cc: Vladimir Murzin Signed-off-by: Suzuki K Poulose --- arch/arm64/kernel/cpufeature.c | 31 +-- 1 file changed, 9 insertions(+), 22

[PATCH 2/7] arm64: capabilities: Merge duplicate Cavium erratum entries

2018-11-05 Thread Suzuki K Poulose
Merge duplicate entries for a single capability using the midr range list for Cavium errata 30115 and 27456. Cc: Andrew Pinski Cc: David Daney Cc: Will Deacon Cc: Catalin Marinas Signed-off-by: Suzuki K Poulose --- arch/arm64/include/asm/cputype.h | 2 ++ arch/arm64/kernel/cpu_errata.c

[PATCH 1/7] arm64: capabilities: Merge entries for ARM64_WORKAROUND_CLEAN_CACHE

2018-11-05 Thread Suzuki K Poulose
Przywara Cc: Mark Rutland Signed-off-by: Suzuki K Poulose --- arch/arm64/kernel/cpu_errata.c | 19 +++ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/arch/arm64/kernel/cpu_errata.c b/arch/arm64/kernel/cpu_errata.c index a509e351..c825bc0 100644 --- a/arch/arm64

Re: [GIT PULL] sprd dts for kernel v4.20-rc1

2018-11-05 Thread Suzuki K Poulose
ere's some problem. Thanks, Chunyan ---- Suzuki K Poulose (1): arm64: dts: sc9836/sc9860: Update coresight bindings for hardware ports arch/arm64/boot/dts/sprd/sc9836.dtsi | 78 +++-- arch/arm64/boot/dts/sprd/s

Re: [PATCH] coresight: tmc: Fix bad register address for CLAIM

2018-10-19 Thread Suzuki K Poulose
e before use") Cc: Suzuki Poulose Cc: Mathieu Poirier Cc: Mike Leach Cc: Robert Walker Signed-off-by: Leo Yan Reviewed-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-tmc-etf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwtracing/co

Re: [PATCH v5 07/17] arm64: add basic pointer authentication support

2018-10-11 Thread Suzuki K Poulose
; add AA64ISAR1.API HWCAP_CAP; use sysreg_clear_set] Signed-off-by: Kristina Martsenko Tested-by: Adam Wallis Cc: Catalin Marinas Cc: Ramana Radhakrishnan Cc: Suzuki K Poulose Cc: Will Deacon diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c index 0dd171c7d71e

Re: [PATCH v6 2/2] ThunderX2: Add Cavium ThunderX2 SoC UNCORE PMU driver

2018-10-11 Thread Suzuki K Poulose
Hi Ganapatrao, On 11/10/18 07:39, Ganapatrao Kulkarni wrote: + +/* + * We must NOT create groups containing events from multiple hardware PMUs, + * although mixing different software and hardware PMUs is allowed. + */ +static bool thunderx2_uncore_validate_event_group(struct perf_event *event) +

[PATCH v2 3/3] arm64: cpufeature: Trap CTR_EL0 access only where it is necessary

2018-10-09 Thread Suzuki K Poulose
When there is a mismatch in the CTR_EL0 field, we trap access to CTR from EL0 on all CPUs to expose the safe value. However, we could skip trapping on a CPU which matches the safe value. Cc: Mark Rutland Cc: Will Deacon Cc: Catalin Marinas Signed-off-by: Suzuki K Poulose --- arch/arm64

[PATCH v2 1/3] arm64: cpufeature: ctr: Fix cpu capability check for late CPUs

2018-10-09 Thread Suzuki K Poulose
the system in an inconsistent state, where the system assumes it has IDC/DIC feature, while the new CPU doesn't. Fixes: commit 6ae4b6e0578886eb36 ("arm64: Add support for new control bits CTR_EL0.DIC and CTR_EL0.IDC") Cc: Philip Elcan Cc: Shanker Donthineni Cc: Mark Rutland Cc:

[PATCH v2 2/3] arm64: cpufeature: Fix handling of CTR_EL0.IDC field

2018-10-09 Thread Suzuki K Poulose
rk Rutland Signed-off-by: Suzuki K Poulose --- arch/arm64/include/asm/cache.h | 40 ++ arch/arm64/kernel/cpu_errata.c | 27 --- arch/arm64/kernel/cpufeature.c | 15 - arch/arm64/kernel/cpuinfo.c| 10 - 4 files changed, 87 i

[PATCH v2 0/3] arm64: cpufeature: Fix handling of CTR_EL0

2018-10-09 Thread Suzuki K Poulose
with raw CTR_EL0.IDC = 0 and effective CTR_EL0.IDC = 1, to boot on a system without IDC available. Suzuki K Poulose (3): arm64: cpufeature: ctr: Fix cpu capability check for late CPUs arm64: cpufeature: Fix handling of CTR_EL0.IDC field arm64: cpufeature: Trap CTR_EL0 access only where it

[PATCH v2 0/3] arm64: cpufeature: Fix handling of CTR_EL0

2018-10-09 Thread Suzuki K Poulose
with raw CTR_EL0.IDC = 0 and effective CTR_EL0.IDC = 1, to boot on a system without IDC available. Suzuki K Poulose (3): arm64: cpufeature: ctr: Fix cpu capability check for late CPUs arm64: cpufeature: Fix handling of CTR_EL0.IDC field arm64: cpufeature: Trap CTR_EL0 access only where it

Re: [PATCH 2/3] arm64: cpufeature: Fix handling of CTR_EL0.IDC field

2018-10-04 Thread Suzuki K Poulose
Hi, On 04/10/18 09:33, Suzuki K Poulose wrote: CTR_EL0.IDC reports the data cache clean requirements for instruction to data coherence. However, if the field is 0, we need to check the CLIDR_EL1 fields to detect the status of the feature. Currently we don't do this and generate a warning

[PATCH 2/3] arm64: cpufeature: Fix handling of CTR_EL0.IDC field

2018-10-04 Thread Suzuki K Poulose
rk Rutland Signed-off-by: Suzuki K Poulose --- arch/arm64/include/asm/cache.h | 40 ++ arch/arm64/kernel/cpu_errata.c | 10 +++-- arch/arm64/kernel/cpufeature.c | 17 +-- arch/arm64/kernel/cpuinfo.c| 10 - 4 files changed, 72 insertions(+), 5

[PATCH 0/3] arm64: cpufeature: Fix handling of CTR_EL0

2018-10-04 Thread Suzuki K Poulose
This series makes sure that we handle the CTR_EL0 field mismatches properly, especially for the IDC field. Also, skip trapping CTR accesses on a CPU if it matches the safe value. Applies on arm64 for-next/core Suzuki K Poulose (3): arm64: cpufeature: ctr: Fix cpu capability check for late CPUs

[PATCH 1/3] arm64: cpufeature: ctr: Fix cpu capability check for late CPUs

2018-10-04 Thread Suzuki K Poulose
the system in an inconsistent state, where the system assumes it has IDC/DIC feature, while the new CPU doesn't. Fixes: commit 6ae4b6e0578886eb36 ("arm64: Add support for new control bits CTR_EL0.DIC and CTR_EL0.IDC") Cc: Philip Elcan Cc: Shanker Donthineni Cc: Mark Rutland Cc:

[PATCH 3/3] arm64: cpufeature: Trap CTR_EL0 access only where it is necessary

2018-10-04 Thread Suzuki K Poulose
When there is a mismatch in the CTR_EL0 field, we trap access to CTR from EL0 on all CPUs to expose the safe value. However, we could skip trapping on a CPU which matches the safe value. Cc: Mark Rutland Cc: Will Deacon Cc: Catalin Marinas Signed-off-by: Suzuki K Poulose --- arch/arm64

Re: [PATCH 1/4] mm/hugetlb: Enable PUD level huge page migration

2018-10-03 Thread Suzuki K Poulose
On 03/10/18 12:10, Anshuman Khandual wrote: On 10/03/2018 03:52 PM, Suzuki K Poulose wrote: On 02/10/18 13:56, Anshuman Khandual wrote: On 10/02/2018 06:08 PM, Suzuki K Poulose wrote: Hi Anshuman On 02/10/18 13:15, Anshuman Khandual wrote: Architectures like arm64 have PUD level

Re: [PATCH 1/4] mm/hugetlb: Enable PUD level huge page migration

2018-10-03 Thread Suzuki K Poulose
On 02/10/18 13:56, Anshuman Khandual wrote: On 10/02/2018 06:08 PM, Suzuki K Poulose wrote: Hi Anshuman On 02/10/18 13:15, Anshuman Khandual wrote: Architectures like arm64 have PUD level HugeTLB pages for certain configs (1GB huge page is PUD based on ARM64_4K_PAGES base page size) that

Re: [PATCH 1/4] mm/hugetlb: Enable PUD level huge page migration

2018-10-02 Thread Suzuki K Poulose
Hi Anshuman On 02/10/18 13:15, Anshuman Khandual wrote: Architectures like arm64 have PUD level HugeTLB pages for certain configs (1GB huge page is PUD based on ARM64_4K_PAGES base page size) that can be enabled for migration. It can be achieved through checking for PUD_SHIFT order based HugeTLB

Re: [PATCH v2 2/7] arm64: uprobes - fix checkpatch issues

2018-09-29 Thread Suzuki K Poulose
On 09/26/2018 01:12 PM, Maciej Slodczyk wrote: Fix checkpatch issues in moved arm uprobes code. Again the patch doesn't have anything to do with arm64, so wrong tag. Otherwise looks fine. Suzuki

Re: [PATCH v2 1/7] arm64: move arm uprobes code to be reused by arm64

2018-09-29 Thread Suzuki K Poulose
On 09/26/2018 01:11 PM, Maciej Slodczyk wrote: Move ARM32 uprobes code from arch/arm/probes/ to a more common location - lib/probes/arm/. This code will be used by ARM64 code when uprobing 32-bit applications. The patch looks OK to me, with the following nit: The subject tag looks incorrect. S

Re: [PATCH v2 04/11] arm64: dts: sc9836/sc9860: Update coresight bindings for hardware ports

2018-09-27 Thread Suzuki K Poulose
+To: Chunyan Zhang Chunyan Zhang, On 09/12/2018 02:53 PM, Suzuki K Poulose wrote: Switch to the new coresight bindings for hw ports How can we push this patch ? Do you generally send the spreadtrum specific changes to ARM soc folks ? Or would you like me to post this directly to ARM soc

Re: [PATCH v2 05/11] arm64: dts: msm8916: Update coresight bindings for hardware ports

2018-09-27 Thread Suzuki K Poulose
Hi Andy On 09/12/2018 02:53 PM, Suzuki K Poulose wrote: Switch to updated coresight bindings for hw ports Cc: Andy Gross Cc: David Brown Cc: Ivan T. Ivanov Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- Changes since v1: - Fixed TPIU port direction - Use better subject tag

Re: [PATCH v5 17/18] kvm: arm64: Limit the minimum number of page table levels

2018-09-25 Thread Suzuki K Poulose
On 09/25/2018 11:00 AM, Auger Eric wrote: Hi Suzuki, On 9/17/18 12:41 PM, Suzuki K Poulose wrote: Since we are about to remove the lower limit on the IPA size, make sure that we do not go to 1 level page table (e.g, with 32bit IPA on 64K host with concatenation) to avoid splitting the host PMD

Re: [PATCH 02/10] irqchip/gic-v3-its: Consolidate LPI_PENDBASE_SZ usage

2018-09-24 Thread Suzuki K Poulose
On 24/09/18 11:50, Julien Thierry wrote: Hi, On 24/09/18 11:33, Suzuki K Poulose wrote: Hi Marc, On 21/09/18 20:59, Marc Zyngier wrote: LPI_PENDING_SZ is always used in conjunction with a max(). Let's factor this in the definition of the macro, and simplify the rest of the code. S

Re: [PATCH 02/10] irqchip/gic-v3-its: Consolidate LPI_PENDBASE_SZ usage

2018-09-24 Thread Suzuki K Poulose
Hi Marc, On 21/09/18 20:59, Marc Zyngier wrote: LPI_PENDING_SZ is always used in conjunction with a max(). Let's factor this in the definition of the macro, and simplify the rest of the code. Signed-off-by: Marc Zyngier --- drivers/irqchip/irq-gic-v3-its.c | 12 1 file changed,

Re: [PATCH v2 11/11] arm: dts: ste-dbx5x0: Update coresight bindings for hardware port

2018-09-21 Thread Suzuki K Poulose
Linus, On 20/09/18 23:02, Linus Walleij wrote: On Wed, Sep 12, 2018 at 6:54 AM Suzuki K Poulose wrote: Switch to the new coresight bindings Cc: Linus Walleij Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose Applied to the ux500 tree. Thanks ! Suzuki IMPORTANT NOTICE: The contents

Re: [PATCH v2 11/11] arm: dts: ste-dbx5x0: Update coresight bindings for hardware port

2018-09-14 Thread Suzuki K Poulose
Hi Linus, On 14/09/18 09:43, Linus Walleij wrote: On Wed, Sep 12, 2018 at 3:54 PM Suzuki K Poulose wrote: Switch to the new coresight bindings Cc: Linus Walleij Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose Acked-by: Linus Walleij Thanks. I guess you will merge this with

Re: [stable PATCH 1/2] arm64: Fix mismatched cache line size detection

2018-09-13 Thread Suzuki K Poulose
Hi Greg, On 12/09/18 20:38, Greg KH wrote: On Tue, Sep 04, 2018 at 10:10:09AM +0100, Suzuki K Poulose wrote: commit 4c4a39dd5fe2d13e2d2fa5fceb8ef95d19fc389a upstream If there is a mismatch in the I/D min line size, we must always use the system wide safe value both in applications and in the

[PATCH v2 02/11] coresight: dts: binding: Update coresight binding examples

2018-09-12 Thread Suzuki K Poulose
While we updated the coresight DT bindings, some of the new examples were not updated due to the order in which they were merged. Let us update all the missed out ones to the new bindings to avoid confusion. Cc: Mathieu Poirier Cc: Rob Herring Cc: Frank Rowand Signed-off-by: Suzuki K Poulose

[PATCH v2 09/11] arm: dts: qcom: Update coresight bindings for hardware ports

2018-09-12 Thread Suzuki K Poulose
Switch to the new hardware port bindings for coresight Cc: Andy Gross Cc: David Brown Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- arch/arm/boot/dts/qcom-apq8064.dtsi | 71 ++- arch/arm/boot/dts/qcom-msm8974.dtsi | 104 +++- 2 files changed

[PATCH v2 06/11] arm: dts: hip04: Update coresight bindings for hardware ports

2018-09-12 Thread Suzuki K Poulose
Switch to the new the hardware port bindings. Cc: Wei Xu Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- arch/arm/boot/dts/hip04.dtsi | 346 ++- 1 file changed, 176 insertions(+), 170 deletions(-) diff --git a/arch/arm/boot/dts/hip04.dtsi b/arch/arm

[PATCH v2 10/11] arm: dts: sama5d2: Update coresight bindings for hardware ports

2018-09-12 Thread Suzuki K Poulose
Switch to the new coresight bindings for hardware ports Cc: Nicolas Ferre Cc: Alexandre Belloni Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- arch/arm/boot/dts/sama5d2.dtsi | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/arch/arm/boot/dts

[PATCH v2 08/11] arm: dts: omap: Update coresight bindings for hardware ports

2018-09-12 Thread Suzuki K Poulose
Switch to the new coresight bindings for hardware ports Cc: linux-o...@vger.kernel.org Cc: "Benoît Cousson" Cc: Tony Lindgren Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- arch/arm/boot/dts/omap3-beagle-xm.dts | 17 ++--- arch/arm/boot/dts/omap3-beagle.d

[PATCH v2 11/11] arm: dts: ste-dbx5x0: Update coresight bindings for hardware port

2018-09-12 Thread Suzuki K Poulose
Switch to the new coresight bindings Cc: Linus Walleij Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- arch/arm/boot/dts/ste-dbx5x0.dtsi | 65 --- 1 file changed, 33 insertions(+), 32 deletions(-) diff --git a/arch/arm/boot/dts/ste-dbx5x0.dtsi b/arch/arm

[PATCH v2 05/11] arm64: dts: msm8916: Update coresight bindings for hardware ports

2018-09-12 Thread Suzuki K Poulose
Switch to updated coresight bindings for hw ports Cc: Andy Gross Cc: David Brown Cc: Ivan T. Ivanov Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- Changes since v1: - Fixed TPIU port direction - Use better subject tag for the patch --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 95

[PATCH v2 07/11] arm: dts: imx7: Update coresight binding for hardware ports

2018-09-12 Thread Suzuki K Poulose
Switch to the updated coresight bindings. Cc: Shawn Guo Cc: Sascha Hauer Cc: Pengutronix Kernel Team Cc: Fabio Estevam Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- arch/arm/boot/dts/imx7d.dtsi | 14 +++--- arch/arm/boot/dts/imx7s.dtsi | 82 2

[PATCH v2 04/11] arm64: dts: sc9836/sc9860: Update coresight bindings for hardware ports

2018-09-12 Thread Suzuki K Poulose
Switch to the new coresight bindings for hw ports Cc: orsonz...@gmail.com Cc: zhang.l...@gmail.com Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- arch/arm64/boot/dts/sprd/sc9836.dtsi | 82 +- arch/arm64/boot/dts/sprd/sc9860.dtsi | 215 ++- 2 files

[PATCH v2 01/11] coresight: dts: binding: Fix example for TPIU component

2018-09-12 Thread Suzuki K Poulose
TPIU component has an input port. The example uses out-ports which is wrong. Let us fix it. Reported-by: Leo Yan Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- Documentation/devicetree/bindings/arm/coresight.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[PATCH v2 03/11] arm64: dts: hi6220: Update coresight bindings for hardware ports

2018-09-12 Thread Suzuki K Poulose
Switch to updated coresight bindings for hw ports. Cc: xuw...@hisilicon.com Cc: lipengche...@huawei.com Cc: Mathieu Poirier Tested-by: Leo Yan Signed-off-by: Suzuki K Poulose --- .../boot/dts/hisilicon/hi6220-coresight.dtsi | 181 +- 1 file changed, 86 insertions(+), 95

[PATCH v2 00/11] dts: Update coresight device tree bindings

2018-09-12 Thread Suzuki K Poulose
y Lindgren Cc: Wei Xu Cc: xuw...@hisilicon.com Cc: zhang.l...@gmail.com Cc: a...@kernel.org Suzuki K Poulose (11): coresight: dts: binding: Fix example for TPIU component coresight: dts: binding: Update coresight binding examples arm64: dts: hi6220: Update coresight bindings for hard

Re: [PATCH 02/11] dts: hisilicon: Update coresight bindings for hardware ports

2018-09-12 Thread Suzuki K Poulose
Hi Leo, On 12/09/18 11:47, leo@linaro.org wrote: On Tue, Sep 11, 2018 at 11:17:03AM +0100, Suzuki K Poulose wrote: Switch to updated coresight bindings for hw ports. As Shawn suggested, please change subject as "arm64: dts: hi6220: " Sure, will do. Cc: xuw...@hisili

Re: [PATCH v5 02/27] arm64: cpufeature: Use alternatives for VHE cpu_enable

2018-09-12 Thread Suzuki K Poulose
On 12/09/18 11:28, James Morse wrote: Hi Julien, On 28/08/18 16:51, Julien Thierry wrote: The cpu_enable callback for VHE feature requires all alternatives to have been applied. This prevents applying VHE alternative separately from the rest. Use an alternative depending on VHE feature to know

Re: [PATCH 04/11] dts: qcom: Update coresight bindings for hardware ports

2018-09-12 Thread Suzuki K Poulose
Hi Leo, On 12/09/18 11:17, leo@linaro.org wrote: Hi Suzuki, On Tue, Sep 11, 2018 at 11:17:05AM +0100, Suzuki K Poulose wrote: Switch to updated coresight bindings for hw ports Cc: Andy Gross Cc: David Brown Cc: Ivan T. Ivanov Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose

Re: [PATCH 06/11] dts: arm: imx7{d,s}: Update coresight binding for hardware ports

2018-09-12 Thread Suzuki K Poulose
On 12/09/18 03:21, Shawn Guo wrote: On Tue, Sep 11, 2018 at 11:17:07AM +0100, Suzuki K Poulose wrote: Switch to the updated coresight bindings. Cc: Shawn Guo Cc: Sascha Hauer Cc: Pengutronix Kernel Team Cc: Fabio Estevam Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose As per the

Re: [PATCH 00/11] dts: Update coresight device tree bindings

2018-09-11 Thread Suzuki K Poulose
On 09/11/2018 11:17 AM, Suzuki K Poulose wrote: Coresight DT bindings have been updated to obey the DTS rules for label/address matching for graph nodes. The changes are in coresight/next tree scheduled for v4.20. This series updates the in kernel dts to match the new bindings along with

Re: [PATCH 11/11] dts: tc2: Update coresight bindings for hardware ports

2018-09-11 Thread Suzuki K Poulose
On 09/11/2018 06:23 PM, Sudeep Holla wrote: On 11/09/18 18:15, Suzuki K Poulose wrote: On 09/11/2018 06:01 PM, Sudeep Holla wrote: On Tue, Sep 11, 2018 at 11:17:12AM +0100, Suzuki K Poulose wrote: Switch to the new coresight bindings I still see the below warnings: vexpress-v2p-ca15_a7

Re: [PATCH 11/11] dts: tc2: Update coresight bindings for hardware ports

2018-09-11 Thread Suzuki K Poulose
On 09/11/2018 06:01 PM, Sudeep Holla wrote: On Tue, Sep 11, 2018 at 11:17:12AM +0100, Suzuki K Poulose wrote: Switch to the new coresight bindings I still see the below warnings: vexpress-v2p-ca15_a7.dtb: Warning (graph_child_address): /replicator/in-ports: graph node has single

[PATCH 01/11] Documentation: dts: Update coresight binding examples

2018-09-11 Thread Suzuki K Poulose
While we updated the coresight DT bindings, some of the new examples were not updated due to the order in which they were merged. Let us update all the missed out ones to the new bindings to avoid confusion. Cc: Mathieu Poirier Cc: Rob Herring Cc: Frank Rowand Signed-off-by: Suzuki K Poulose

[PATCH 05/11] dts: arm: hisilicon: Update coresight bindings for hardware ports

2018-09-11 Thread Suzuki K Poulose
Switch to the new the hardware port bindings. Cc: Wei Xu Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- arch/arm/boot/dts/hip04.dtsi | 322 --- 1 file changed, 183 insertions(+), 139 deletions(-) diff --git a/arch/arm/boot/dts/hip04.dtsi b

[PATCH 11/11] dts: tc2: Update coresight bindings for hardware ports

2018-09-11 Thread Suzuki K Poulose
Switch to the new coresight bindings Cc: Liviu Dudau Cc: Sudeep Holla Cc: Lorenzo Pieralisi Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- arch/arm/boot/dts/vexpress-v2p-ca15_a7.dts | 90 +- 1 file changed, 51 insertions(+), 39 deletions(-) diff --git a

[PATCH 06/11] dts: arm: imx7{d,s}: Update coresight binding for hardware ports

2018-09-11 Thread Suzuki K Poulose
Switch to the updated coresight bindings. Cc: Shawn Guo Cc: Sascha Hauer Cc: Pengutronix Kernel Team Cc: Fabio Estevam Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- arch/arm/boot/dts/imx7d.dtsi | 11 --- arch/arm/boot/dts/imx7s.dtsi | 78

[PATCH 10/11] dts: ste-dbx5x0: Update coresight bindings for hardware port

2018-09-11 Thread Suzuki K Poulose
Switch to the new coresight bindings Cc: Linus Walleij Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- arch/arm/boot/dts/ste-dbx5x0.dtsi | 61 ++- 1 file changed, 35 insertions(+), 26 deletions(-) diff --git a/arch/arm/boot/dts/ste-dbx5x0.dtsi b

[PATCH 09/11] dts: sama5d2: Update coresight bindings for hardware ports

2018-09-11 Thread Suzuki K Poulose
Switch to the new coresight bindings for hardware ports Cc: Nicolas Ferre Cc: Alexandre Belloni Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- arch/arm/boot/dts/sama5d2.dtsi | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/arch/arm/boot/dts

[PATCH 08/11] dts: arm: qcom: Update coresight bindings for hardware ports

2018-09-11 Thread Suzuki K Poulose
Switch to the new hardware port bindings for coresight Cc: Andy Gross Cc: David Brown Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- arch/arm/boot/dts/qcom-apq8064.dtsi | 75 +++-- arch/arm/boot/dts/qcom-msm8974.dtsi | 108 +++- 2

[PATCH 07/11] dts: arm: omap: Update coresight bindings for hardware ports

2018-09-11 Thread Suzuki K Poulose
Switch to the new coresight bindings for hardware ports Cc: linux-o...@vger.kernel.org Cc: "Benoît Cousson" Cc: Tony Lindgren Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- arch/arm/boot/dts/omap3-beagle-xm.dts | 17 ++--- arch/arm/boot/dts/omap3-beagle.d

[PATCH 00/11] dts: Update coresight device tree bindings

2018-09-11 Thread Suzuki K Poulose
: zhang.l...@gmail.com Cc: a...@kernel.org Suzuki K Poulose (11): Documentation: dts: Update coresight binding examples dts: hisilicon: Update coresight bindings for hardware ports dts: spreadtrum: Update coresight bindings for hardware ports dts: qcom: Update coresight bindings for hardware

[PATCH 02/11] dts: hisilicon: Update coresight bindings for hardware ports

2018-09-11 Thread Suzuki K Poulose
Switch to updated coresight bindings for hw ports. Cc: xuw...@hisilicon.com Cc: lipengche...@huawei.com Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- .../arm64/boot/dts/hisilicon/hi6220-coresight.dtsi | 147 - 1 file changed, 85 insertions(+), 62 deletions

[PATCH 03/11] dts: spreadtrum: Update coresight bindings for hardware ports

2018-09-11 Thread Suzuki K Poulose
Switch to the new coresight bindings for hw ports Cc: orsonz...@gmail.com Cc: zhang.l...@gmail.com Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- arch/arm64/boot/dts/sprd/sc9836.dtsi | 74 -- arch/arm64/boot/dts/sprd/sc9860.dtsi | 183

[PATCH 04/11] dts: qcom: Update coresight bindings for hardware ports

2018-09-11 Thread Suzuki K Poulose
Switch to updated coresight bindings for hw ports Cc: Andy Gross Cc: David Brown Cc: Ivan T. Ivanov Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 98 ++- 1 file changed, 63 insertions(+), 35 deletions(-) diff

[PATCH] dts: juno: Enable coresight tmc scatter gather in ETR

2018-09-11 Thread Suzuki K Poulose
is safe to use the mode. All revisions of Juno have a proper ETR connection and hence white list them. Cc: Mathieu Poirier Cc: Mike Leach Cc: Sudeep Holla Cc: Liviu Dudau Cc: Lorenzo Pierlisi Signed-off-by: Suzuki K Poulose --- arch/arm64/boot/dts/arm/juno-base.dtsi | 1 + 1 file changed, 1

[PATCH v2 04/14] coresight: tmc-etb/etf: Prepare to handle errors enabling

2018-09-06 Thread Suzuki K Poulose
Prepare to handle errors in enabling the hardware and report it back to the core driver. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- Changes since v1: - Fix return code for tmc_enable_etf_link (Mathieu Poirier) --- drivers/hwtracing/coresight/coresight-tmc-etf.c | 73

[PATCH v2 01/14] coresight: Handle failures in enabling a trace path

2018-09-06 Thread Suzuki K Poulose
mply ignoring them. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight.c | 32 ++-- 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight.c b/drivers/hwtracing/coresight/coresig

[PATCH v2 03/14] coresight: tmc-etr: Handle errors enabling CATU

2018-09-06 Thread Suzuki K Poulose
Make sure we honor the errors in CATU device and abort the operation. While at it, delay setting the etr_buf for the session until we are sure that we are indeed enabling the ETR. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-tmc-etr.c | 19

[PATCH v2 07/14] coresight: etb10: Handle errors enabling the device

2018-09-06 Thread Suzuki K Poulose
Prepare the etb10 driver to return errors in enabling the device. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- Changes since v1: - Rebased to the coresight/next --- drivers/hwtracing/coresight/coresight-etb10.c | 18 +- 1 file changed, 13 insertions(+), 5 deletions

[PATCH v2 10/14] coresight: etmx: Claim devices before use

2018-09-06 Thread Suzuki K Poulose
Use the CLAIM tags to grab the device for self-hosted usage. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-etm3x.c | 16 +--- drivers/hwtracing/coresight/coresight-etm4x.c | 14 +++--- 2 files changed, 24 insertions(+), 6

[PATCH v2 08/14] coresight: dynamic-replicator: Handle multiple connections

2018-09-06 Thread Suzuki K Poulose
unaffected, except that some unwanted traffic may be pushed to the paths (if the Trace-IDs are not far enough), which is still fine and can be filtered out while processing rather than silently blocking the data. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- .../coresight/coresig

[PATCH v2 09/14] coresight: Add support for CLAIM tag protocol

2018-09-06 Thread Suzuki K Poulose
iver, but this makes the operation much simpler. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-priv.h | 7 +++ drivers/hwtracing/coresight/coresight.c | 86 include/linux/coresight.h| 20 ++

[PATCH v2 12/14] coresight: catu: Claim device before use

2018-09-06 Thread Suzuki K Poulose
Use the CLAIM protocol to grab the ownership of the component when in use. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-catu.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/hwtracing/coresight/coresight-catu.c b/drivers

[PATCH v2 11/14] coresight: funnel: Claim devices before use

2018-09-06 Thread Suzuki K Poulose
Use the CLAIM protocol to grab the ownership of the component. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-funnel.c | 26 +- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/drivers/hwtracing/coresight

[PATCH v2 13/14] coresight: dynamic-replicator: Claim device for use

2018-09-06 Thread Suzuki K Poulose
Use CLAIM protocol to make sure the device is available for use. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- .../coresight/coresight-dynamic-replicator.c | 23 +- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/drivers/hwtracing/coresight

[PATCH v2 14/14] coreisght: tmc: Claim device before use

2018-09-06 Thread Suzuki K Poulose
Use CLAIM tags to make sure the device is available for use. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-tmc-etf.c | 22 +++--- drivers/hwtracing/coresight/coresight-tmc-etr.c | 4 2 files changed, 23 insertions(+), 3

[PATCH v2 05/14] coresight: etm4x: Add support for handling errors

2018-09-06 Thread Suzuki K Poulose
Add support for handling errors in enabling the component. The ETM is enabled via cross call to owner CPU. Make necessary changes to report the error back from the cross call. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-etm4x.c | 39

[PATCH v2 02/14] coresight: tmc-etr: Refactor for handling errors

2018-09-06 Thread Suzuki K Poulose
also avoids turning the CATU on/off during a sysfs read session. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-tmc-etr.c | 67 - 1 file changed, 43 insertions(+), 24 deletions(-) diff --git a/drivers/hwtracing/coresight

[PATCH v2 06/14] coresight: etm3: Add support for handling errors

2018-09-06 Thread Suzuki K Poulose
Add support for reporting errors back from the SMP cross function call for enabling ETM. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- Changes since v1: - Fix build break, missing ;. (Mathieu Poirier) --- drivers/hwtracing/coresight/coresight-etm3x.c | 42

[PATCH v2 00/14] coresight: Implement device claim protocol

2018-09-06 Thread Suzuki K Poulose
V1: - Handle errors is enabling path and disable only the components that were enabled in the iteration. - Fix build break on arm32 (etm3x) - Update commit description for "coresight: Add support for CLAIM tag protocol" Suzuki K Poulose (14): coresight: Handle failures in enabling

[stable PATCH 2/2] arm64: Handle mismatched cache type

2018-09-04 Thread Suzuki K Poulose
utland Cc: Will Deacon Cc: Catalin Marinas Signed-off-by: Suzuki K Poulose --- arch/arm64/include/asm/cpucaps.h | 3 ++- arch/arm64/kernel/cpu_errata.c | 17 ++--- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/arch/arm64/include/asm/cpucaps.h b/arch/arm64/i

[stable PATCH 1/2] arm64: Fix mismatched cache line size detection

2018-09-04 Thread Suzuki K Poulose
: be68a8aaf925 ("arm64: cpufeature: Fix CTR_EL0 field definitions") Cc: # v4.9 Cc: Mark Rutland Cc: Catalin Marinas Reported-by: Will Deacon Signed-off-by: Suzuki K Poulose Signed-off-by: Will Deacon --- arch/arm64/include/asm/cachetype.h | 5 + arch/arm64/kernel/cpu_errata

[PATCH stable 1/2] arm64: Fix mismatched cache line size detection

2018-09-03 Thread Suzuki K Poulose
: be68a8aaf925 ("arm64: cpufeature: Fix CTR_EL0 field definitions") Cc: # v4.14 Cc: Mark Rutland Cc: Catalin Marinas Reported-by: Will Deacon Signed-off-by: Suzuki K Poulose Signed-off-by: Will Deacon --- arch/arm64/include/asm/cache.h | 5 + arch/arm64/kernel/cpu_errata.c | 6 ++

[PATCH stable 2/2] arm64: Handle mismatched cache type

2018-09-03 Thread Suzuki K Poulose
utland Cc: Will Deacon Cc: Catalin Marinas Signed-off-by: Suzuki K Poulose Signed-off-by: Will Deacon --- arch/arm64/include/asm/cpucaps.h | 3 ++- arch/arm64/kernel/cpu_errata.c | 17 ++--- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/arch/arm64/include/asm/c

Re: [RFC V1] perf: qcom: add DDR bandwidth PMU support

2018-08-21 Thread Suzuki K Poulose
Hi Rahul, On 04/07/18 17:57, Rahul Ramasubramanian wrote: Measuring DDR bandwidth allows for an accurate measurement of memory throughput achieved for a given workload. It also breaks down the traffic measurement on a per DDR channel basis. The commit description doesn't help much for someone

Re: [PATCH v3 0/7] perf: Add ioctl for PMU driver configuration

2018-08-21 Thread Suzuki K Poulose
On 08/20/2018 04:25 PM, Kim Phillips wrote: On Mon, 20 Aug 2018 15:36:47 +0100 Suzuki K Poulose wrote: On 08/20/2018 03:22 PM, Kim Phillips wrote: On Mon, 20 Aug 2018 11:03:03 +0100 Suzuki K Poulose wrote: On 08/16/2018 08:28 PM, Mathieu Poirier wrote: On Wed, 15 Aug 2018 at 09:28, Kim

Re: [PATCH v3 0/7] perf: Add ioctl for PMU driver configuration

2018-08-20 Thread Suzuki K Poulose
On 08/20/2018 03:22 PM, Kim Phillips wrote: On Mon, 20 Aug 2018 11:03:03 +0100 Suzuki K Poulose wrote: On 08/16/2018 08:28 PM, Mathieu Poirier wrote: On Wed, 15 Aug 2018 at 09:28, Kim Phillips wrote: On Wed, 15 Aug 2018 10:39:13 +0100 Will Deacon wrote: On Tue, Aug 14, 2018 at 01:42

Re: [PATCH v3 0/7] perf: Add ioctl for PMU driver configuration

2018-08-20 Thread Suzuki K Poulose
On 08/16/2018 08:28 PM, Mathieu Poirier wrote: On Wed, 15 Aug 2018 at 09:28, Kim Phillips wrote: On Wed, 15 Aug 2018 10:39:13 +0100 Will Deacon wrote: On Tue, Aug 14, 2018 at 01:42:27PM -0600, Mathieu Poirier wrote: On Tue, 14 Aug 2018 at 11:09, Kim Phillips wrote: The other thing that's

Re: [PATCH 1/2] coresight: etb10: Refactor etb_drvdata::mode handling

2018-08-16 Thread Suzuki K Poulose
On 16/08/18 16:48, Mathieu Poirier wrote: On Thu, Aug 16, 2018 at 04:13:03PM +0100, Suzuki K Poulose wrote: Hi Mathieu, The patch looks good to me. One minor nit below. You have not included any comment - did you change your mind? Sorry, yes I did. It was about folding the checks where

Re: [PATCH 08/13] coresight: Add support for CLAIM tag protocol

2018-08-16 Thread Suzuki K Poulose
On 15/08/18 00:20, Mathieu Poirier wrote: On Mon, Aug 06, 2018 at 02:41:50PM +0100, Suzuki K Poulose wrote: Add support for the CLAIM tag protocol for negotiating the device ownership with other agents trying to use the coresight component (internal vs. external). The Coresight architecture

Re: [PATCH 06/13] coresight: etb10: Handle errors enabling the device

2018-08-16 Thread Suzuki K Poulose
On 15/08/18 20:38, Mathieu Poirier wrote: On Mon, Aug 06, 2018 at 02:41:48PM +0100, Suzuki K Poulose wrote: Prepare the etb10 driver to return errors in enabling the device. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-etb10.c | 18

Re: [PATCH 05/13] coresight: etm3: Add support for handling errors

2018-08-16 Thread Suzuki K Poulose
On 15/08/18 20:34, Mathieu Poirier wrote: On Mon, Aug 06, 2018 at 02:41:47PM +0100, Suzuki K Poulose wrote: Add support for reporting errors back from the SMP cross function call for enabling ETM. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight

Re: [PATCH 2/2] coresight: etb10: Splitting function etb_enable()

2018-08-16 Thread Suzuki K Poulose
eak; + default: + ret = -EINVAL; + break; + } + + if (ret) + return ret; + + dev_dbg(drvdata->dev, "ETB enabled\n"); + return 0; +} + Looks good. Reviewed-by: Suzuki K Poulose

Re: [PATCH 1/2] coresight: etb10: Refactor etb_drvdata::mode handling

2018-08-16 Thread Suzuki K Poulose
pinlock, flags); - if (local_read(&drvdata->mode) == CS_MODE_SYSFS) { + if (drvdata->mode == CS_MODE_SYSFS) { etb_disable_hw(drvdata); etb_dump_hw(drvdata); etb_enable_hw(drvdata); Looks good to me. Reviewed-by : Suzuki K Poulose

Re: [PATCH 03/13] coresight: tmc-etb/etf: Prepare to handle errors enabling

2018-08-16 Thread Suzuki K Poulose
On 15/08/18 20:22, Mathieu Poirier wrote: On Mon, Aug 06, 2018 at 02:41:45PM +0100, Suzuki K Poulose wrote: Prepare to handle errors in enabling the hardware and report it back to the core driver. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight

[PATCH 03/13] coresight: tmc-etb/etf: Prepare to handle errors enabling

2018-08-06 Thread Suzuki K Poulose
Prepare to handle errors in enabling the hardware and report it back to the core driver. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-tmc-etf.c | 71 +++-- 1 file changed, 44 insertions(+), 27 deletions(-) diff --git a

[PATCH 09/13] coresight: etmx: Claim devices before use

2018-08-06 Thread Suzuki K Poulose
Use the CLAIM tags to grab the device for self-hosted usage. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-etm3x.c | 18 +++--- drivers/hwtracing/coresight/coresight-etm4x.c | 15 --- 2 files changed, 27 insertions(+), 6

[PATCH 11/13] coresight: catu: Claim device before use

2018-08-06 Thread Suzuki K Poulose
Use the CLAIM protocol to grab the ownership of the component when in use. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-catu.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/hwtracing/coresight/coresight-catu.c b/drivers

[PATCH 13/13] coreisght: tmc: Claim device before use

2018-08-06 Thread Suzuki K Poulose
Use CLAIM tags to make sure the device is available for use. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-tmc-etf.c | 22 +++--- drivers/hwtracing/coresight/coresight-tmc-etr.c | 4 2 files changed, 23 insertions(+), 3

[PATCH 08/13] coresight: Add support for CLAIM tag protocol

2018-08-06 Thread Suzuki K Poulose
recommends the reservation of the bits in CLAIM tags for self-hosted and external debug use. This patch implements the protocol for claiming the devices before they are actually used. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-priv.h | 7

[PATCH 02/13] coresight: tmc-etr: Handle errors enabling CATU

2018-08-06 Thread Suzuki K Poulose
Make sure we honor the errors in CATU device and abort the operation. While at it, delay setting the etr_buf for the session until we are sure that we are indeed enabling the ETR. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-tmc-etr.c | 19

<    5   6   7   8   9   10   11   12   13   14   >