[PATCH 4/4] staging: vt6655: correcting parameter related sparse error

2015-01-17 Thread mathieu . poirier
From: Mathieu Poirier mpoirier@t430:~/work/kernel1$ make C=1 M=drivers/staging/vt6655/ LD drivers/staging/vt6655/built-in.o CHECK drivers/staging/vt6655/device_main.c drivers/staging/vt6655/device_main.c:1503:25: warning: incorrect type in argument 1 (different address spaces

[PATCH 3/4] staging: vt6655: fix wrong parameter as reported by sparse

2015-01-17 Thread mathieu . poirier
From: Mathieu Poirier mpoirier@t430:~/work/kernel1$ make C=1 M=drivers/staging/vt6655/ LD drivers/staging/vt6655/built-in.o CHECK drivers/staging/vt6655/device_main.c CC [M] drivers/staging/vt6655/device_main.o CHECK drivers/staging/vt6655/card.c CC [M] drivers/staging

[PATCH 2/4] staging: vt6655: removing dead function as reported by sparse

2015-01-17 Thread mathieu . poirier
From: Mathieu Poirier mpoirier@t430:~/work/kernel1$ make C=1 M=drivers/staging/vt6655/ CHECK drivers/staging/vt6655/mac.c drivers/staging/vt6655/mac.c:162:6: warning: symbol 'MACvGetShortRetryLimit' was not declared. Should it be static? CC [M] drivers/staging/vt6655/mac

Re: [PATCH 1/4] staging: vt6655: correcting function declaration sparse error

2015-01-27 Thread Mathieu Poirier
On 25 January 2015 at 04:39, Greg KH wrote: > On Sat, Jan 17, 2015 at 07:04:23PM -0700, mathieu.poir...@linaro.org wrote: >> From: Mathieu Poirier >> >> mpoirier@t430:~/work/kernel1$ make C=1 M=drivers/staging/vt6655/ >> LD drivers/staging/vt6655/built-in.o &

Re: [PATCH v0 01/11] stm class: Introduce an abstraction for System Trace Module devices

2015-03-19 Thread Mathieu Poirier
On 19 March 2015 at 08:23, Alexander Shishkin wrote: > Mathieu Poirier writes: > >> I forgot to mention in my previous email... I think the hierarchy of >> our respective tracing module along with the generic-stm probably >> needs a review. >> >> Currentl

Re: [PATCH 0/5] coresight: next

2015-03-19 Thread Mathieu Poirier
On 27 February 2015 at 16:04, Mathieu Poirier wrote: > These are the latest coresight patches that I'd like you to consider for > inclusion in your tree. The set is based on v4.0-rc1. > > Thanks, > Mathieu > > Mathieu Poirier (4): > coresight: making cpu

Re: [PATCH v0 01/11] stm class: Introduce an abstraction for System Trace Module devices

2015-03-19 Thread Mathieu Poirier
On 17 March 2015 at 04:37, Alexander Shishkin wrote: > Mathieu Poirier writes: > >> On 7 March 2015 at 04:35, Alexander Shishkin >> wrote: >>> A System Trace Module (STM) is a device exporting data in System Trace >>> Protocol (STP) format as defined by

Re: [PATCH] coresight: moving to new "hwtracing" directory

2015-03-19 Thread Mathieu Poirier
On 19 March 2015 at 16:27, Greg KH wrote: > On Thu, Mar 19, 2015 at 04:02:02PM -0600, Mathieu Poirier wrote: >> Keeping drivers related to HW tracing on ARM, i.e coresight, >> under "drivers/coresight" doesn't make sense when other >> architectures start

Re: [PATCH v0 01/11] stm class: Introduce an abstraction for System Trace Module devices

2015-03-20 Thread Mathieu Poirier
On 20 March 2015 at 08:53, Alexander Shishkin wrote: > Mathieu Poirier writes: > >> As promised I worked on a prototype that connects the coresight-stm >> driver with the generic STM interface you have suggested. Things work >> quite well and aside from the enhancem

[PATCH v2] coresight: moving to new "hwtracing" directory

2015-03-20 Thread Mathieu Poirier
kind can reside, reducing namespace pollution under "drivers/". Signed-off-by: Mathieu Poirier --- Change for v2: - generated patch with -M option --- MAINTAINERS | 2 +- arch/arm/Kconfig.debug

Re: [PATCH v2 01/11] stm class: Introduce an abstraction for System Trace Module devices

2015-03-22 Thread Mathieu Poirier
> + > +[1] > https://software.intel.com/sites/default/files/managed/d3/3c/intel-th-developer-manual.pdf > +[2] > http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0444b/index.html > diff --git a/drivers/Kconfig b/drivers/Kconfig > index c0cc96bab9..9850ab81cc 100644 > --- a/drivers/K

[PATCH 00/11] Support for coresight ETMv4 tracer

2015-04-22 Thread Mathieu Poirier
Please find in this patchset a driver implementation that conforms to the coresight framework and provide support for the Embedded Trace Macrocell version 4. With this driver support for ARM's juno platform can be added to the list of coresight supported architecture. Best regards, Mathieu Prati

[PATCH 10/11] coresight-etm4x: Controls pertaining to the context ID functions

2015-04-22 Thread Mathieu Poirier
From: Pratik Patel Adding sysfs entries to access and configure specifics about the context ID comparator functions. Signed-off-by: Pratik Patel Signed-off-by: Mathieu Poirier --- .../ABI/testing/sysfs-bus-coresight-devices-etm4x | 19 +++ drivers/hwtracing/coresight/coresight-etm4x.c

[PATCH 11/11] coresight-etm4x: Controls pertaining to the VM ID functions

2015-04-22 Thread Mathieu Poirier
From: Pratik Patel Adding sysfs entries to access and configure specifics about the virtual machine ID comparator functions. Signed-off-by: Pratik Patel Signed-off-by: Mathieu Poirier --- .../ABI/testing/sysfs-bus-coresight-devices-etm4x | 20 +++ drivers/hwtracing/coresight/coresight

[PATCH 09/11] coresight-etm4x: Controls pertaining to the selection of resources

2015-04-22 Thread Mathieu Poirier
From: Pratik Patel Adding sysfs entries to control the selection of the resources the trace unit will use as triggers to perform a trace run. Signed-off-by: Pratik Patel Signed-off-by: Mathieu Poirier --- .../ABI/testing/sysfs-bus-coresight-devices-etm4x | 12 drivers/hwtracing

[PATCH 08/11] coresight-etm4x: Controls pertaining to the counter functions

2015-04-22 Thread Mathieu Poirier
From: Pratik Patel Adding sysfs entries related to the counter functionality, more specifically to set, control and reload the counters. Signed-off-by: Pratik Patel Signed-off-by: Mathieu Poirier --- .../ABI/testing/sysfs-bus-coresight-devices-etm4x | 26 drivers/hwtracing/coresight

[PATCH 01/11] coresight-etm4x: Adding CoreSight ETM4x driver

2015-04-22 Thread Mathieu Poirier
From: Pratik Patel This driver manages the CoreSight ETMv4 (Embedded Trace Macrocell) IP block to support HW assisted tracing on ARMv7 and ARMv8 architectures. Signed-off-by: Pratik Patel Signed-off-by: Kaixu Xia Signed-off-by: Mathieu Poirier --- .../ABI/testing/sysfs-bus-coresight-devices

[PATCH 03/11] coresight-etm4x: Controls pertaining to the reset, mode, pe and events

2015-04-22 Thread Mathieu Poirier
/testing/sysfs-bus-coresight-devices-etm4x index 0f579eb24631..9caf70382088 100644 --- a/Documentation/ABI/testing/sysfs-bus-coresight-devices-etm4x +++ b/Documentation/ABI/testing/sysfs-bus-coresight-devices-etm4x @@ -87,3 +87,36 @@ KernelVersion: 4.01 Contact: Mathieu Poirier

[PATCH 02/11] coresight-etm4x: Controls pertaining to tracer configuration

2015-04-22 Thread Mathieu Poirier
-off-by: Mathieu Poirier --- .../ABI/testing/sysfs-bus-coresight-devices-etm4x | 61 +++ drivers/hwtracing/coresight/coresight-etm4x.c | 117 + 2 files changed, 178 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-coresight-devices-etm4x b

[PATCH 04/11] coresight-etm4x: Controls pertaining to various configuration options

2015-04-22 Thread Mathieu Poirier
From: Pratik Patel Adding sysfs entries to configure: . global timestamp. . how often trace synchronisation occur. . the threashold value for cycle counting. . branch and broadcasting regions. Signed-off-by: Pratik Patel Signed-off-by: Mathieu Poirier --- .../ABI/testing/sysfs-bus-coresight

[PATCH 07/11] coresight-etm4x: Controls pertaining to the sequencer functions

2015-04-22 Thread Mathieu Poirier
From: Pratik Patel Adding sysfs entries to access the sequencers related registers, more specifically the sequencer state, the sequencer state transition and the sequencer reset control registers. Signed-off-by: Pratik Patel Signed-off-by: Mathieu Poirier --- .../ABI/testing/sysfs-bus

[PATCH 06/11] coresight-etm4x: Controls pertaining to the address comparator functions

2015-04-22 Thread Mathieu Poirier
. Signed-off-by: Pratik Patel Signed-off-by: Mathieu Poirier --- .../ABI/testing/sysfs-bus-coresight-devices-etm4x | 25 ++ drivers/hwtracing/coresight/coresight-etm4x.c | 423 + 2 files changed, 448 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus

[PATCH 05/11] coresight-etm4x: Controls pertaining to the ViewInst register

2015-04-22 Thread Mathieu Poirier
From: Pratik Patel Adding sysfs entries to control the ViewInst register's event selector along with secure and non-secure exception level instruction tracing. Signed-off-by: Pratik Patel Signed-off-by: Mathieu Poirier --- .../ABI/testing/sysfs-bus-coresight-devices-etm4x

[PATCH] coresight: binding for ETMv4 coresight drivers

2015-04-22 Thread Mathieu Poirier
Adding compatible string for new coresight ETMv4 tracer. Signed-off-by: Mathieu Poirier --- Documentation/devicetree/bindings/arm/coresight.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/coresight.txt b/Documentation/devicetree/bindings/arm

Re: [PATCH 10/11] coresight-etm4x: Controls pertaining to the context ID functions

2015-04-23 Thread Mathieu Poirier
On 23 April 2015 at 09:08, Christopher Covington wrote: > Hi Mathieu, > > On 04/22/2015 06:40 PM, Mathieu Poirier wrote: >> From: Pratik Patel >> >> Adding sysfs entries to access and configure specifics about the >> context ID comparator functions. >> &g

Re: [PATCH] stm class: Adding master and channel parameter to ioctl function

2015-03-30 Thread Mathieu Poirier
On 30 March 2015 at 08:19, Alexander Shishkin wrote: > Mathieu Poirier writes: > >> Hey Alex, > > Hi Mathieu, > >> Have a look at the following patch and see if you agree with my approach. >> If so >> simply add the code to a third version. > > Greg

Re: [PATCH 4/5] coresight-stm: adding driver for CoreSight STM component

2015-03-30 Thread Mathieu Poirier
On 30 March 2015 at 08:04, Alexander Shishkin wrote: > Mathieu Poirier writes: > >> +static int stm_send(void *addr, const void *data, u32 size) >> +{ >> + u32 len = size; >> + >> + if (((unsigned long)data & 0x1) && (size >= 1))

[PATCH 8/8] coresight: moving to new "hwtracing" directory

2015-03-30 Thread Mathieu Poirier
kind can reside, reducing namespace pollution under "drivers/". Signed-off-by: Mathieu Poirier --- MAINTAINERS | 2 +- arch/arm/Kconfig.debug | 2 +- arch/arm64/Kconfig.debug

[PATCH 2/8] coresight: fixing compilation warnings picked up by 64bit compiler

2015-03-30 Thread Mathieu Poirier
Compiling coresight drivers with a 64-bit compiler highlights a couple of formatting issues, which are fixed by this patch. Signed-off-by: Mathieu Poirier --- drivers/coresight/coresight-etb10.c | 4 ++-- drivers/coresight/coresight-tmc.c | 4 ++-- 2 files changed, 4 insertions(+), 4

[PATCH 6/8] coresight: remove the unnecessary configuration coresight-default-sink

2015-03-30 Thread Mathieu Poirier
From: Kaixu Xia The coresight-default-sink configuration option has been removed from the framework. As such remove it from DT and bindings. Signed-off-by: Kaixu Xia Signed-off-by: Mathieu Poirier --- Documentation/devicetree/bindings/arm/coresight.txt | 1 - arch/arm/boot/dts/hip04.dtsi

[PATCH 4/8] coresight: Correcting documentation typographical error

2015-03-30 Thread Mathieu Poirier
Signed-off-by: Mathieu Poirier --- Documentation/trace/coresight.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/trace/coresight.txt b/Documentation/trace/coresight.txt index 02361552a3ea..77d14d51a670 100644 --- a/Documentation/trace/coresight.txt +++ b

[PATCH 5/8] coresight: adding the LINKSINK block as a sink type

2015-03-30 Thread Mathieu Poirier
From: Xia Kaixu >From the TMC TRM, the ETF can be configured as buffer mode, so ETF can be a sink type. Signed-off-by: Xia Kaixu Signed-off-by: Mathieu Poirier --- drivers/coresight/coresight.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/coresi

[PATCH 3/8] coresight: Adding coresight support for arm64 architecture

2015-03-30 Thread Mathieu Poirier
Most CoreSight blocks are 64-bit ready. As such move configuration entries from "arch/arm/Kconfig.config" to the driver's subdirectory and source the newly created Kconfig from architecture specific Kconfig.debug files. Signed-off-by: Mathieu Poirier Acked-by: Catalin Marinas

[PATCH 7/8] coresight-tmc: Adding a status interface to sysfs

2015-03-30 Thread Mathieu Poirier
Knowing the state of various control register is always useful for degging and tuning. As such add an entry in sysfs that expose to userspace the most important registers. Signed-off-by: Mathieu Poirier --- drivers/coresight/coresight-tmc.c | 56 +++ 1 file

[PATCH 1/8] coresight: making cpu index lookup arm64 compliant

2015-03-30 Thread Mathieu Poirier
Function "get_logical_index()" is not available on arm64. Instead of adding the function simply using "of_get_cpu_node()" and comparing the return value with cpu handles yields the same result. Signed-off-by: Mathieu Poirier --- drivers/coresight/of_coresight.c | 18 ++

[PATCH 0/8] coresight: next 4.0-rc6

2015-03-30 Thread Mathieu Poirier
/1503.2/04095.html [2]. http://lkml.iu.edu/hypermail/linux/kernel/1503.2/04716.html Kaixu Xia (1): coresight: remove the unnecessary configuration coresight-default-sink Mathieu Poirier (6): coresight: making cpu index lookup arm64 compliant coresight: fixing compilation warnings picked up by

Re: [PATCH 4/5] coresight-stm: adding driver for CoreSight STM component

2015-04-01 Thread Mathieu Poirier
Adding Al Grant to the conversation - his knowledge on HW tracing for the ARM architecture is definitely an asset for this kind of planning. Please add him to future patchset as well. On 31 March 2015 at 09:04, Alexander Shishkin wrote: > Mathieu Poirier writes: > >> On 30 March 2

Re: [PATCH 4/5] coresight-stm: adding driver for CoreSight STM component

2015-04-01 Thread Mathieu Poirier
+ Al Grant On 1 April 2015 at 08:27, Mathieu Poirier wrote: > Adding Al Grant to the conversation - his knowledge on HW tracing for > the ARM architecture is definitely an asset for this kind of planning. > Please add him to future patchset as well. > > On 31 March 2015 at 0

Re: [PATCH v2 01/11] stm class: Introduce an abstraction for System Trace Module devices

2015-04-24 Thread Mathieu Poirier
[...] > + > +static int __init stm_core_init(void) > +{ > + int err; > + > + err = class_register(&stm_class); > + if (err) > + return err; > + > + err = class_register(&stm_source_class); > + if (err) > + goto err_stm; > + > + err =

Re: [PATCH 01/11] coresight-etm4x: Adding CoreSight ETM4x driver

2015-04-27 Thread Mathieu Poirier
On 24 April 2015 at 09:41, Ivan T. Ivanov wrote: > > On Wed, 2015-04-22 at 16:40 -0600, Mathieu Poirier wrote: >> > >> +static struct amba_id etm4_ids[] = { >> + { /* ETM 4.0 - Hi6220 board */ >> + .id = 0x0003b95d, >&g

Re: [PATCH 01/11] coresight-etm4x: Adding CoreSight ETM4x driver

2015-04-27 Thread Mathieu Poirier
On 24 April 2015 at 09:05, Ivan T. Ivanov wrote: > > On Wed, 2015-04-22 at 16:40 -0600, Mathieu Poirier wrote: >> From: Pratik Patel >> >> This driver manages the CoreSight ETMv4 (Embedded Trace Macrocell) IP block >> to support HW assisted tracing on ARMv7 and ARM

Re: [PATCH] Adjust sysrq_register_handler() to avoid an array subscript warning

2015-04-28 Thread Mathieu Poirier
On 28 April 2015 at 03:49, David Howells wrote: > sysrq_register_handler() iterates over platform_sysrq_reset_seq[] using > ARRAY_SIZE() on sysrq_reset_seq[] as a limit (indeed, the platform array is > expected to be shorter). gcc-5 spots the potential dereference beyond the end > of the array an

Re: [PATCH v2] coresight: adding basic support for Spreadtrum SC9836

2015-04-07 Thread Mathieu Poirier
On 3 April 2015 at 13:51, Olof Johansson wrote: > On Wed, Mar 25, 2015 at 08:52:11PM +0800, Chunyan Zhang wrote: >> Support only for ETF, FUNNEL, STM are included currently. >> Support for ETM, TPIU and the replicator linked to it are not included in >> this version patch. >> >> Signed-off-by: Chu

Re: [PATCH] coresight: fix typo in of_coresight.c

2015-04-28 Thread Mathieu Poirier
On 27 April 2015 at 23:40, Pankaj Dubey wrote: > fixes obvious typo in of_coresight.c > %s/non-configuable/non-configurable > > Signed-off-by: Pankaj Dubey > --- > drivers/hwtracing/coresight/of_coresight.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/hwtracin

Re: [PATCH 01/11] coresight-etm4x: Adding CoreSight ETM4x driver

2015-04-28 Thread Mathieu Poirier
On 28 April 2015 at 02:30, Ivan T. Ivanov wrote: > > On Mon, 2015-04-27 at 09:48 -0600, Mathieu Poirier wrote: >> On 24 April 2015 at 09:41, Ivan T. Ivanov wrote: >> > On Wed, 2015-04-22 at 16:40 -0600, Mathieu Poirier wrote: >> > >>

Re: [PATCH 1/2] coresight: replicator: Add Qualcomm CoreSight Replicator driver

2015-04-29 Thread Mathieu Poirier
On 29 April 2015 at 06:19, Ivan T. Ivanov wrote: > From: Pratik Patel Thanks for crediting the original author. > > This driver manages Qualcomm CoreSight Replicator device, which > resides on the AMBA bus. Replicator has been made programmable to > allow software to turn of the replicator bran

Re: [PATCH 2/2] arm64: dts: qcom: Add msm8916 CoreSight components

2015-04-29 Thread Mathieu Poirier
On 29 April 2015 at 06:20, Ivan T. Ivanov wrote: > Add initial set of CoreSight components found on Qualcomm's 8x16 chipset. > > Signed-off-by: Ivan T. Ivanov > --- > arch/arm64/boot/dts/qcom/msm8916-coresight.dtsi | 244 > > 1 file changed, 244 insertions(+) > create

[PATCH v2 00/11] Support for coresight ETMv4 tracer

2015-04-29 Thread Mathieu Poirier
Please find in this patchset a driver implementation that conforms to the coresight framework and provide support for the Embedded Trace Macrocell version 4. Regards, Mathieu --- Changes for v2: - Rebased on v4.1-rc1. - Fixed mask in the amba_id cells. - Fixed double pm_runtime_put() in error pa

[PATCH v2 03/11] coresight-etm4x: Controls pertaining to the reset, mode, pe and events

2015-04-29 Thread Mathieu Poirier
/testing/sysfs-bus-coresight-devices-etm4x index 0f579eb24631..9caf70382088 100644 --- a/Documentation/ABI/testing/sysfs-bus-coresight-devices-etm4x +++ b/Documentation/ABI/testing/sysfs-bus-coresight-devices-etm4x @@ -87,3 +87,36 @@ KernelVersion: 4.01 Contact: Mathieu Poirier

[PATCH v2 08/11] coresight-etm4x: Controls pertaining to the counter functions

2015-04-29 Thread Mathieu Poirier
From: Pratik Patel Adding sysfs entries related to the counter functionality, more specifically to set, control and reload the counters. Signed-off-by: Pratik Patel Signed-off-by: Mathieu Poirier --- .../ABI/testing/sysfs-bus-coresight-devices-etm4x | 26 drivers/hwtracing/coresight

[PATCH v2 02/11] coresight-etm4x: Controls pertaining to tracer configuration

2015-04-29 Thread Mathieu Poirier
-off-by: Mathieu Poirier --- .../ABI/testing/sysfs-bus-coresight-devices-etm4x | 61 +++ drivers/hwtracing/coresight/coresight-etm4x.c | 117 + 2 files changed, 178 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-coresight-devices-etm4x b

[PATCH v2 10/11] coresight-etm4x: Controls pertaining to the context ID functions

2015-04-29 Thread Mathieu Poirier
From: Pratik Patel Adding sysfs entries to access and configure specifics about the context ID comparator functions. Signed-off-by: Pratik Patel Signed-off-by: Mathieu Poirier --- .../ABI/testing/sysfs-bus-coresight-devices-etm4x | 19 +++ drivers/hwtracing/coresight/coresight-etm4x.c

[PATCH v2 11/11] coresight-etm4x: Controls pertaining to the VM ID functions

2015-04-29 Thread Mathieu Poirier
From: Pratik Patel Adding sysfs entries to access and configure specifics about the virtual machine ID comparator functions. Signed-off-by: Pratik Patel Signed-off-by: Mathieu Poirier --- .../ABI/testing/sysfs-bus-coresight-devices-etm4x | 20 +++ drivers/hwtracing/coresight/coresight

[PATCH v2 09/11] coresight-etm4x: Controls pertaining to the selection of resources

2015-04-29 Thread Mathieu Poirier
From: Pratik Patel Adding sysfs entries to control the selection of the resources the trace unit will use as triggers to perform a trace run. Signed-off-by: Pratik Patel Signed-off-by: Mathieu Poirier --- .../ABI/testing/sysfs-bus-coresight-devices-etm4x | 12 drivers/hwtracing

[PATCH v2 07/11] coresight-etm4x: Controls pertaining to the sequencer functions

2015-04-29 Thread Mathieu Poirier
From: Pratik Patel Adding sysfs entries to access the sequencers related registers, more specifically the sequencer state, the sequencer state transition and the sequencer reset control registers. Signed-off-by: Pratik Patel Signed-off-by: Mathieu Poirier --- .../ABI/testing/sysfs-bus

[PATCH v2 04/11] coresight-etm4x: Controls pertaining to various configuration options

2015-04-29 Thread Mathieu Poirier
From: Pratik Patel Adding sysfs entries to configure: . global timestamp. . how often trace synchronisation occur. . the threashold value for cycle counting. . branch and broadcasting regions. Signed-off-by: Pratik Patel Signed-off-by: Mathieu Poirier --- .../ABI/testing/sysfs-bus-coresight

[PATCH v2 06/11] coresight-etm4x: Controls pertaining to the address comparator functions

2015-04-29 Thread Mathieu Poirier
. Signed-off-by: Pratik Patel Signed-off-by: Mathieu Poirier --- .../ABI/testing/sysfs-bus-coresight-devices-etm4x | 25 ++ drivers/hwtracing/coresight/coresight-etm4x.c | 423 + 2 files changed, 448 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus

[PATCH v2 05/11] coresight-etm4x: Controls pertaining to the ViewInst register

2015-04-29 Thread Mathieu Poirier
From: Pratik Patel Adding sysfs entries to control the ViewInst register's event selector along with secure and non-secure exception level instruction tracing. Signed-off-by: Pratik Patel Signed-off-by: Mathieu Poirier --- .../ABI/testing/sysfs-bus-coresight-devices-etm4x

[PATCH v2 01/11] coresight-etm4x: Adding CoreSight ETM4x driver

2015-04-29 Thread Mathieu Poirier
From: Pratik Patel This driver manages the CoreSight ETMv4 (Embedded Trace Macrocell) IP block to support HW assisted tracing on ARMv7 and ARMv8 architectures. Signed-off-by: Pratik Patel Signed-off-by: Kaixu Xia Signed-off-by: Mathieu Poirier --- .../ABI/testing/sysfs-bus-coresight-devices

Re: [PATCH 2/2] arm64: dts: qcom: Add msm8916 CoreSight components

2015-04-30 Thread Mathieu Poirier
On 30 April 2015 at 03:24, Ivan T. Ivanov wrote: > > On Wed, 2015-04-29 at 10:49 -0600, Mathieu Poirier wrote: >> On 29 April 2015 at 06:20, Ivan T. Ivanov iva...@linaro.org> wrote: > > >> > + >> > + funnel@821000 { >> > + com

Re: [PATCH 1/2] coresight: replicator: Add Qualcomm CoreSight Replicator driver

2015-04-30 Thread Mathieu Poirier
On 30 April 2015 at 01:21, Ivan T. Ivanov wrote: > > On Wed, 2015-04-29 at 10:28 -0600, Mathieu Poirier wrote: >> On 29 April 2015 at 06:19, Ivan T. Ivanov iva...@linaro.org> wrote: > > > >> > - "arm,coresight-etm4x", "arm,pr

Re: [PATCH staging] drivers/hwtracing: fix coresight-etm4x implicit usage

2015-06-04 Thread Mathieu Poirier
@windriver.com > [2] > https://lkml.kernel.org/r/1431287385-1526-1-git-send-email-paul.gortma...@windriver.com > > Cc: Pratik Patel > Cc: Kaixu Xia > Cc: Mathieu Poirier > Cc: Greg Kroah-Hartman > Signed-off-by: Paul Gortmaker > --- > > [Note: Commit 2e1cdfe184

Re: [PATCH staging] drivers/hwtracing: fix coresight-replicator-qcom implicit usage

2015-06-04 Thread Mathieu Poirier
kernel.org/r/1433276168-21550-1-git-send-email-paul.gortma...@windriver.com > [2] > https://lkml.kernel.org/r/1431287385-1526-1-git-send-email-paul.gortma...@windriver.com > > Cc: Pratik Patel > Cc: Ivan T. Ivanov > Cc: Mathieu Poirier > Cc: Greg Kroah-Hartman > Signed

Re: [PATCH 1/6] coresight: remove CORESIGHT_LINKS_AND_SINKS dependencies and selections

2018-05-22 Thread Mathieu Poirier
for CORESIGHT_LINKS_AND_SINKS. Once we've dealt with this topic we can refactor the replicator driver. Thanks, Mathieu > > Suggested-by: Mathieu Poirier > Cc: Alexander Shishkin > Signed-off-by: Kim Phillips > --- > drivers/hwtracing/coresight/Kconfig | 7 ---

Re: [PATCH 5/6] coresight: populate MODULE_AUTHOR, DESCRIPTION, and LICENSEs

2018-05-22 Thread Mathieu Poirier
ight-etb10.c > @@ -758,3 +758,8 @@ static struct amba_driver etb_driver = { > .id_table = etb_ids, > }; > builtin_amba_driver(etb_driver); > + > +MODULE_AUTHOR("Pratik Patel "); > +MODULE_AUTHOR("Mathieu Poirier "); > +MODULE_DESCRIPTION("Arm CoreSight

Re: [PATCH 6/6] coresight: allow to build as modules

2018-05-22 Thread Mathieu Poirier
that unregisters the coresight bus, add > remove fns for most others. > > - fix up modules with ID tables for autoloading on boot > > Cc: Mathieu Poirier > Cc: Alexander Shishkin > Cc: Randy Dunlap > Signed-off-by: Kim Phillips > --- > drivers/hwtracing/core

Re: [PATCH 07/11] dts: juno: Add scatter-gather support for all revisions

2018-05-23 Thread Mathieu Poirier
On 18 May 2018 at 10:39, Suzuki K Poulose wrote: > Advertise that the scatter-gather is properly integrated on > all revisions of Juno board. > > Cc: Mathieu Poirier > Cc: Sudeep Holla > Cc: Liviu Dudau > Cc: Lorenzo Pieralisi > Signed-off-by: Suzuki K Poulose Revi

Re: [PATCH 08/11] coresight: Add generic TMC sg table framework

2018-05-23 Thread Mathieu Poirier
by the drivers. The framework also provides helpers to > sync the data written to the pages with appropriate directions. > > This will be later used by the TMC ETR SG unit and CATU. > > Cc: Mathieu Poirier > Signed-off-by: Suzuki K Poulose > --- > Changes since v1: >

Re: [PATCH] coresight: use put_device() instead of kfree()

2018-03-27 Thread Mathieu Poirier
On 26 March 2018 at 20:30, arvindY wrote: > > > On Tuesday 27 March 2018 03:16 AM, Mathieu Poirier wrote: >> >> drivers/hwtracing/coresight/coresight.c >> On 18 March 2018 at 01:38, Arvind Yadav wrote: >>> >>> Never directly free @dev after calling

Re: [PATCH] coresight: use put_device() instead of kfree()

2018-03-27 Thread Mathieu Poirier
On 27 March 2018 at 10:28, arvindY wrote: > > > On Tuesday 27 March 2018 09:37 PM, Mathieu Poirier wrote: >> >> On 26 March 2018 at 20:30, arvindY wrote: >>> >>> >>> On Tuesday 27 March 2018 03:16 AM, Mathieu Poirier wrote: >>>> >&g

Re: [PATCH] coresight: use put_device() instead of kfree()

2018-03-28 Thread Mathieu Poirier
On 18 March 2018 at 01:38, Arvind Yadav wrote: > Never directly free @dev after calling device_register(), even > if it returned an error. Always use put_device() to give up the > reference initialized. > > Signed-off-by: Arvind Yadav > --- > drivers/hwtracing/coresight/coresight.c | 8

Re: [PATCH] coresight: Remove %px for printing pcsr value

2018-05-02 Thread Mathieu Poirier
mal value. > > So this commit removes useless %px and update section "Output format" > in the document for alignment between the code and document. > > Suggested-by: Kees Cook > Cc: Mathieu Poirier > Signed-off-by: Leo Yan Applied - thanks, Mathieu > --- &

Re: [PATCH] perf tools: Fix indexing for decoder packet queue

2018-05-28 Thread Mathieu Poirier
On 27 May 2018 at 21:13, Leo Yan wrote: > On Fri, May 25, 2018 at 05:10:54PM -0600, Mathieu Poirier wrote: >> The tail of a queue is supposed to be pointing to the next available slot >> in a queue. In this implementation the tail is incremented before it is >> used and

Re: [RFT v3 1/4] perf cs-etm: Generate branch sample for missed packets

2018-05-28 Thread Mathieu Poirier
Leo and/or Robert, On Mon, May 28, 2018 at 04:45:00PM +0800, Leo Yan wrote: > Commit e573e978fb12 ("perf cs-etm: Inject capabilitity for CoreSight > traces") reworks the samples generation flow from CoreSight trace to > match the correct format so Perf report tool can display the samples > properl

Re: [RFT v3 0/4] Perf script: Add python script for CoreSight trace disassembler

2018-05-28 Thread Mathieu Poirier
On 28 May 2018 at 14:03, Arnaldo Carvalho de Melo wrote: > Em Mon, May 28, 2018 at 04:44:59PM +0800, Leo Yan escreveu: >> This patch series is to support for using 'perf script' for CoreSight >> trace disassembler, for this purpose this patch series adds a new >> python script to parse CoreSight t

Re: [PATCH] coresight: include vmalloc.h for vmap/vunmap

2018-06-05 Thread Mathieu Poirier
On 5 June 2018 at 05:48, Arnd Bergmann wrote: > The newly introduced code fails to build in some configurations > unless we include the right headers: > > drivers/hwtracing/coresight/coresight-tmc-etr.c: In function > 'tmc_free_table_pages': > drivers/hwtracing/coresight/coresight-tmc-etr.c:206:3

Re: [PATCH] coresight: Fix check in coresight_tmc_etr_buf_insert_barrier_packet

2018-06-06 Thread Mathieu Poirier
On 1 June 2018 at 05:08, Suzuki K Poulose wrote: > We request for "CORESIGHT_BARRIER_PKT_SIZE" length and we should > be happy when we get that size. > > Cc: Mathieu Poirier > Signed-off-by: Suzuki K Poulose > --- > > Mathieu, > > Please could you p

Re: [PATCH 1/4] amba: Export amba_bustype

2018-05-15 Thread Mathieu Poirier
On 15 May 2018 at 08:37, Kim Phillips wrote: > On Tue, 15 May 2018 14:48:31 +0100 > Russell King - ARM Linux wrote: > >> On Tue, May 15, 2018 at 08:15:19AM -0500, Kim Phillips wrote: >> > On Tue, 15 May 2018 08:59:02 +0200 >> > Ulf Hansson wrote: >> > >> > > On 8 May 2018 at 21:06, Kim Phillips

Re: [PATCH v3] coresight: documentation: update sysfs section

2018-05-15 Thread Mathieu Poirier
got changed in commit 7d83d17795ef ("coresight: tmc: adding sysFS > management entries"). > > Cc: Mathieu Poirier > Cc: Randy Dunlap > Cc: Jonathan Corbet > Signed-off-by: Kim Phillips I'm good with this version - Jonathan, should I take this through my tree of yo

Re: [PATCH v5 1/4] dt-bindings: arm: coresight: Add new compatible for static replicator

2019-04-16 Thread Mathieu Poirier
Hi Leo, On Fri, 12 Apr 2019 at 04:28, Leo Yan wrote: > > CoreSight uses below bindings for replicator: > > Dynamic replicator, aka. configurable replicator: > "arm,coresight-dynamic-replicator", "arm,primecell"; > > Static replicator, aka. non-configurable replicator: > "arm,coresight

Re: [PATCH v5 3/4] dt-bindings: arm: coresight: Unify funnel DT binding

2019-04-16 Thread Mathieu Poirier
gt; Dynamic funnel: > "arm,coresight-dynamic-funnel", "arm,primecell"; > "arm,coresight-funnel", "arm,primecell"; (obsolete) > > At the end of this patch, it gives an example for static funnel DT > binding, and updates the dynamic funn

Re: [PATCH v5 1/4] dt-bindings: arm: coresight: Add new compatible for static replicator

2019-04-17 Thread Mathieu Poirier
On Tue, 16 Apr 2019 at 18:10, Leo Yan wrote: > > On Tue, Apr 16, 2019 at 02:18:40PM -0600, Mathieu Poirier wrote: > > Hi Leo, > > > > On Fri, 12 Apr 2019 at 04:28, Leo Yan wrote: > > > > > > CoreSight uses below bindings for replicator: > >

Re: [PATCH v2 05/36] coresight: tmc: Cleanup power management

2019-04-17 Thread Mathieu Poirier
On Mon, 15 Apr 2019 at 10:05, Suzuki K Poulose wrote: > > Drop the power only if we were successful in probing the device. > > Cc: Mathieu Poirier > Signed-off-by: Suzuki K Poulose > --- > drivers/hwtracing/coresight/coresight-tmc.c | 4 ++-- > 1 file changed, 2 in

Re: [PATCH v2 06/36] coresight: funnel: Clean up device book keeping

2019-04-17 Thread Mathieu Poirier
urposes. All other requests (e.g, power management, > DMA operations) must use the "real" device which is the parent device. > > Cc: Mathieu Poirier > Signed-off-by: Suzuki K Poulose > --- > drivers/hwtracing/coresight/coresight-funnel.c | 10 -- > 1 file cha

Re: [PATCH v2 07/36] coresight: replicator: Cleanup device tracking

2019-04-17 Thread Mathieu Poirier
nal purposes. All other requests (e.g, power management, > DMA operations) must use the "real" device which is the parent device. > > Cc: Mathieu Poirier > Signed-off-by: Suzuki K Poulose > --- > drivers/hwtracing/coresight/coresight-replicator.c | 7 ++- > 1

Re: [PATCH v2 08/36] coresight: tmc: Clean up device specific data

2019-04-17 Thread Mathieu Poirier
nal purposes. All other requests (e.g, power management, > DMA operations) must use the "real" device which is the parent device. > > Since the CATU driver also uses the TMC-SG infrastructure, update > the callers to ensure they pass the appropriate device argument > for the

Re: [PATCH v2 09/36] coresight: catu: Cleanup device specific data

2019-04-17 Thread Mathieu Poirier
On Mon, Apr 15, 2019 at 05:03:52PM +0100, Suzuki K Poulose wrote: > Switch to using the CoreSight device instead of the real > amba device. > > Cc: Mathieu Poirier > Signed-off-by: Suzuki K Poulose > --- > drivers/hwtracing/coresight/coresight-catu.c | 13 +++--

Re: [PATCH v2 10/36] coresight: tpiu: Clean up device specific data

2019-04-17 Thread Mathieu Poirier
On Mon, Apr 15, 2019 at 05:03:53PM +0100, Suzuki K Poulose wrote: > Switch to using the coresight device instead of the parent > amba device. > > Cc: Mathieu Poirier > Signed-off-by: Suzuki K Poulose > --- > drivers/hwtracing/coresight/coresight-tpiu.c | 6 ++

Re: [PATCH v2 11/36] coresight: stm: Cleanup device specific data

2019-04-18 Thread Mathieu Poirier
On Mon, Apr 15, 2019 at 05:03:54PM +0100, Suzuki K Poulose wrote: > Keep track of the STM coresight device which is a child device > of the AMBA device. Since we can get to the coresight_device > from the "device" instance, remove the explicit field. > > Cc: Mathieu

Re: [PATCH v2 14/36] coresight: Rename of_coresight to coresight-platform

2019-04-18 Thread Mathieu Poirier
h this very short changelog, it would certainly be cryptic. Please enhance the description so that someone without background can have a better understanding of what is going on. With that: Reviewed-by: Mathieu Poirier > > Cc: Mathieu Poirier > Signed-off-by: Suzuki K Poulose > -

Re: [PATCH v2 32/36] coresight: Support for ACPI bindings

2019-04-25 Thread Mathieu Poirier
n device of the respective > CPU. > > Cc: "Rafael J. Wysocki" > Cc: Mathieu Poirier > Signed-off-by: Suzuki K Poulose > --- > drivers/hwtracing/coresight/coresight-platform.c | 409 > +++ > 1 file changed, 409 insertions(+) >

Re: [PATCH v2 33/36] coresight: acpi: Support for components

2019-04-25 Thread Mathieu Poirier
On Mon, Apr 15, 2019 at 05:04:16PM +0100, Suzuki K Poulose wrote: > All AMBA devices are handled via ACPI AMBA scan notifier > infrastructure. The platform devices get the ACPI id > added to their driver. > > Cc: "Rafael J. Wysocki" > Cc: Mathieu Poirier >

[PATCH 31/32] coresight: tmc-etf: Add support for CPU-wide trace scenarios

2019-04-25 Thread Mathieu Poirier
modify the HW is overlooked for as long as more than one source is using a sink. Signed-off-by: Mathieu Poirier Tested-by: Leo Yan Tested-by: Robert Walker --- .../hwtracing/coresight/coresight-tmc-etf.c | 40 --- 1 file changed, 35 insertions(+), 5 deletions(-) diff --git a

[PATCH 17/32] coresight: Adding return code to sink::disable() operation

2019-04-25 Thread Mathieu Poirier
In preparation to handle device reference counting inside of the sink drivers, add a return code to the sink::disable() operation so that proper action can be taken if a sink has not been disabled. Signed-off-by: Mathieu Poirier Reviewed-by: Suzuki K Poulose Tested-by: Leo Yan Tested-by

[PATCH 26/32] coresight: tmc-etr: Introduce the notion of process ID to ETR devices

2019-04-25 Thread Mathieu Poirier
In preparation to support CPU-wide trace scenarios, introduce the notion of process ID to ETR devices. That way events monitoring the same process can use the same etr_buf, allowing multiple CPUs to use the same sink. Signed-off-by: Mathieu Poirier Tested-by: Leo Yan Tested-by: Robert Walker

[PATCH 15/32] coresight: etm4x: Skip selector pair 0

2019-04-25 Thread Mathieu Poirier
Resource selector pair 0 is always implemented and reserved. As such it should not be explicitly programmed. Signed-off-by: Mathieu Poirier Reviewed-by: Suzuki K Poulose Tested-by: Leo Yan Tested-by: Robert Walker --- drivers/hwtracing/coresight/coresight-etm4x.c | 7 +-- 1 file changed

[PATCH 20/32] coresight: Properly address concurrency in sink::update() functions

2019-04-25 Thread Mathieu Poirier
When operating in CPU-wide trace scenarios and working with an N:1 source/sink HW topology, update() functions need to be made atomic in order to avoid racing with start and stop operations. Signed-off-by: Mathieu Poirier Reviewed-by: Suzuki K Poulose Tested-by: Leo Yan Tested-by: Robert

[PATCH 29/32] coresight: tmc-etr: Allocate and free ETR memory buffers for CPU-wide scenarios

2019-04-25 Thread Mathieu Poirier
This patch uses the PID of the process being traced to allocate and free ETR memory buffers for CPU-wide scenarios. The implementation is tailored to handle both N:1 and 1:1 source/sink HW topologies. Signed-off-by: Mathieu Poirier Tested-by: Leo Yan Tested-by: Robert Walker

[PATCH 23/32] coresight: Communicate perf event to sink buffer allocation functions

2019-04-25 Thread Mathieu Poirier
Make struct perf_event available to sink buffer allocation functions in order to use the pid they carry to allocate and free buffer memory along with regimenting access to what source a sink can collect data for. Signed-off-by: Mathieu Poirier Tested-by: Leo Yan Tested-by: Robert Walker

[PATCH 25/32] coresight: tmc-etr: Create per-thread buffer allocation function

2019-04-25 Thread Mathieu Poirier
Buffer allocation is different when dealing with per-thread and CPU-wide sessions. In preparation to support CPU-wide trace scenarios simplify things by keeping allocation functions for both type separate. Signed-off-by: Mathieu Poirier Tested-by: Leo Yan Tested-by: Robert Walker

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