[PATCH v3 03/11] coresight: etm4x: Add missing API to set EL match on address filters

2019-10-15 Thread Mike Leach
TRCACATRn registers have match bits for secure and non-secure exception levels which are not accessible by the sysfs API. This adds a new sysfs parameter to enable this - addr_exlevel_s_ns. Reviewed-by: Suzuki K Poulose Signed-off-by: Mike Leach --- .../coresight/coresight-etm4x-sysfs.c

[PATCH v3 07/11] coresight: etm4x: Add view comparator settings API to sysfs.

2019-10-15 Thread Mike Leach
the user to see the current settings of the indexed address comparator without resorting to trial and error when the set type is not known. Reviewed-by: Mathieu Poirier Reviewed-by: Leo Yan Signed-off-by: Mike Leach --- .../coresight/coresight-etm4x-sysfs.c | 52 +++ 1

[PATCH v3 11/11] coresight: etm4x: docs: Adds detailed document for programming etm4x.

2019-10-15 Thread Mike Leach
Add in detailed programmers reference for users wanting to program the CoreSight ETM 4.x driver using sysfs. Signed-off-by: Mike Leach --- .../coresight/coresight-etm4x-reference.rst | 798 ++ 1 file changed, 798 insertions(+) create mode 100644 Documentation/trace/coresight

[PATCH v3 09/11] coresight: etm4x: docs: Update ABI doc for sysfs features added.

2019-10-15 Thread Mike Leach
Update document to include the new sysfs features added during this patchset. Updated to reflect the new sysfs component nameing schema. Signed-off-by: Mike Leach --- .../testing/sysfs-bus-coresight-devices-etm4x | 183 +++--- 1 file changed, 115 insertions(+), 68 deletions

[PATCH v3 04/11] coresight: etm4x: Fix issues with start-stop logic.

2019-10-15 Thread Mike Leach
olling TRCVIPCSSCTLR - start stop control by PE comparators. 3) Default ETM configuration sets a trace all range, and correctly sets the start-stop status bit. This was not being correctly reflected in the 'mode' parameter. Signed-off-by: Mike Leach --- .../coresight/coresi

[PATCH v3 06/11] coresight: etm4x: Improve usability of sysfs - CID and VMID masks.

2019-10-15 Thread Mike Leach
Context ID and VM ID masks required 2 value inputs, even when the second value is ignored as insufficient CID / VMID comparators are implemented. Permit a single value to be used if that is sufficient to cover all implemented comparators. Reviewed-by: Mathieu Poirier Signed-off-by: Mike Leach

[PATCH v3 05/11] coresight: etm4x: Improve usability of sysfs - include/exclude addr.

2019-10-15 Thread Mike Leach
ther use a 3rd input parameter as the include exclude value, or if not present use the current value of 'mode'. Do not change current range when 'mode' changes. Reviewed-by: Mathieu Poirier Signed-off-by: Mike Leach --- .../hwtracing/coresight/coresight-etm4x-sysfs.c| 14

[PATCH v3 10/11] coresight: docs: Create common sub-directory for coresight trace.

2019-10-15 Thread Mike Leach
There are two files in the Documentation/trace directory relating to coresight, with more to follow, so create a Documentation/trace/coresight directory and move existing files there. Update MAINTAINERS to reference this sub-directory rather than the individual files. Signed-off-by: Mike Leach

[PATCH v3 08/11] coresight: etm4x: Add missing single-shot control API to sysfs

2019-10-15 Thread Mike Leach
An API to control single-shot comparator operation was missing from sysfs. This adds the parameters to sysfs to allow programming of this feature. Signed-off-by: Mike Leach --- .../coresight/coresight-etm4x-sysfs.c | 122 ++ drivers/hwtracing/coresight/coresight-etm4x.c

[PATCH v3 00/11] coresight: etm4x: Fixes and updates for sysfs API

2019-10-15 Thread Mike Leach
(from reviews by Mathieu and Leo):- Usability patch split into 2 separate functional patches. Docs patch split into 3 patches. Misc style and comment typo fixes. Mike Leach (11): coresight: etm4x: Fixes for ETM v4.4 architecture updates. coresight: etm4x: Fix input validation for sysfs

[PATCH v3 02/11] coresight: etm4x: Fix input validation for sysfs.

2019-10-15 Thread Mike Leach
max before checking min otherwise wrapped values can set illegal value below min. 4) res_ctrl_store() - update to mask off all res0 bits. Reviewed-by: Leo Yan Reviewed-by: Mathieu Poirier Signed-off-by: Mike Leach Fixes: a77de2637c9eb ("coresight: etm4x: moving sysFS entries to a dedicated

[PATCH v3 01/11] coresight: etm4x: Fixes for ETM v4.4 architecture updates.

2019-10-15 Thread Mike Leach
ETMv4.4 adds in support for tracing secure EL2 (per arch 8.x updates). Patch accounts for this new capability. Reviewed-by: Leo Yan Signed-off-by: Mike Leach --- .../hwtracing/coresight/coresight-etm4x-sysfs.c | 12 ++-- drivers/hwtracing/coresight/coresight-etm4x.c | 5

Re: [PATCH v2 11/11] coresight: etm4x: docs: Adds detailed document for programming etm4x.

2019-09-03 Thread Mike Leach
Hi Mathieu, On Tue, 3 Sep 2019 at 20:38, Mathieu Poirier wrote: > > Hi Mike, > > On Thu, Aug 29, 2019 at 10:33:21PM +0100, Mike Leach wrote: > > Add in detailed programmers reference for users wanting to program the > > CoreSight ETM 4.x driver using sysfs. > >

[PATCH v2 08/11] coresight: etm4x: Add missing single-shot control API to sysfs

2019-08-29 Thread Mike Leach
An API to control single-shot comparator operation was missing from sysfs. This adds the parameters to sysfs to allow programming of this feature. Signed-off-by: Mike Leach --- .../coresight/coresight-etm4x-sysfs.c | 122 ++ drivers/hwtracing/coresight/coresight-etm4x.c

[PATCH v2 02/11] coresight: etm4x: Fix input validation for sysfs.

2019-08-29 Thread Mike Leach
max before checking min otherwise wrapped values can set illegal value below min. 4) res_ctrl_store() - update to mask off all res0 bits. Reviewed-by: Leo Yan Reviewed-by: Mathieu Poirier Signed-off-by: Mike Leach --- .../coresight/coresight-etm4x-sysfs.c | 21 --- 1

[PATCH v2 05/11] coresight: etm4x: Improve usability of sysfs - include/exclude addr.

2019-08-29 Thread Mike Leach
ther use a 3rd input parameter as the include exclude value, or if not present use the current value of 'mode'. Do not change current range when 'mode' changes. Reviewed-by: Mathieu Poirier Signed-off-by: Mike Leach --- .../hwtracing/coresight/coresight-etm4x-sysfs.c| 14

[PATCH v2 04/11] coresight: etm4x: Fix issues with start-stop logic.

2019-08-29 Thread Mike Leach
olling TRCVIPCSSCTLR - start stop control by PE comparators. 3) Default ETM configuration sets a trace all range, and correctly sets the start-stop status bit. This was not being correctly reflected in the 'mode' parameter. Signed-off-by: Mike Leach --- .../coresight/coresi

[PATCH v2 07/11] coresight: etm4x: Add view comparator settings API to sysfs.

2019-08-29 Thread Mike Leach
the user to see the current settings of the indexed address comparator without resorting to trial and error when the set type is not known. Reviewed-by: Mathieu Poirier Reviewed-by: Leo Yan Signed-off-by: Mike Leach --- .../coresight/coresight-etm4x-sysfs.c | 52 +++ 1

[PATCH v2 11/11] coresight: etm4x: docs: Adds detailed document for programming etm4x.

2019-08-29 Thread Mike Leach
Add in detailed programmers reference for users wanting to program the CoreSight ETM 4.x driver using sysfs. Signed-off-by: Mike Leach --- .../coresight/coresight-etm4x-reference.txt | 458 ++ 1 file changed, 458 insertions(+) create mode 100644 Documentation/trace/coresight

[PATCH v2 06/11] coresight: etm4x: Improve usability of sysfs - CID and VMID masks.

2019-08-29 Thread Mike Leach
Context ID and VM ID masks required 2 value inputs, even when the second value is ignored as insufficient CID / VMID comparators are implemented. Permit a single value to be used if that is sufficient to cover all implemented comparators. Reviewed-by: Mathieu Poirier Signed-off-by: Mike Leach

[PATCH v2 10/11] coresight: docs: Create common sub-directory for coresight trace.

2019-08-29 Thread Mike Leach
There are two files in the Documentation/trace directory relating to coresight, with more to follow, so create a Documentation/trace/coresight directory and move existing files there. Update MAINTAINERS to reference this sub-directory rather than the individual files. Signed-off-by: Mike Leach

[PATCH v2 01/11] coresight: etm4x: Fixes for ETM v4.4 architecture updates.

2019-08-29 Thread Mike Leach
ETMv4.4 adds in support for tracing secure EL2 (per arch 8.x updates). Patch accounts for this new capability. Reviewed-by: Leo Yan Signed-off-by: Mike Leach --- .../hwtracing/coresight/coresight-etm4x-sysfs.c | 12 ++-- drivers/hwtracing/coresight/coresight-etm4x.c | 5

[PATCH v2 03/11] coresight: etm4x: Add missing API to set EL match on address filters

2019-08-29 Thread Mike Leach
TRCACATRn registers have match bits for secure and non-secure exception levels which are not accessible by the sysfs API. This adds a new sysfs parameter to enable this - addr_exlevel_s_ns. Signed-off-by: Mike Leach --- .../coresight/coresight-etm4x-sysfs.c | 42 +++ 1

[PATCH v2 09/11] coresight: etm4x: docs: Update ABI doc for sysfs features added.

2019-08-29 Thread Mike Leach
Update document to include the new sysfs features added during this patchset. Updated to reflect the new sysfs component nameing schema. Signed-off-by: Mike Leach --- .../testing/sysfs-bus-coresight-devices-etm4x | 183 +++--- 1 file changed, 115 insertions(+), 68 deletions

[PATCH v2 00/11] coresight: etm4x: Fixes and updates for sysfs API

2019-08-29 Thread Mike Leach
since v1 (from reviews by Mathieu and Leo):- Usability patch split into 2 separate functional patches. Docs patch split into 3 patches. Misc style and comment typo fixes. Mike Leach (11): coresight: etm4x: Fixes for ETM v4.4 architecture updates. coresight: etm4x: Fix input validation for

Re: [PATCH v5 6/9] coresight: add support for CPU debug module

2017-03-29 Thread Mike Leach
+drvdata->edcidsr_present = false; >> >+ drvdata->edvidsr_present = false; >> >+} else if (mode == EDDEVID_IMPL_EDPCSR) { >> >+drvdata->edpcsr_present = true; >> >+drvdata->edcidsr_present = false;

Re: [PATCH v5 6/9] coresight: add support for CPU debug module

2017-03-29 Thread Mike Leach
;> > + debug_disable_func(); >> > +} >> > + >> > +static int debug_probe(struct amba_device *adev, const struct amba_id *id) >> > +{ >> > + void __iomem *base; >> > + struct device *dev = &adev->dev; >> > +

RE: [PATCH V2 3/6] stm class: provision for statically assigned masterIDs

2016-02-05 Thread Mike Leach
es in the STM trace is by channel number allocations only. Best Regards Mike. ---- Mike Leach +44 (0)1254 893911 (Direct) Principal Engineer +44 (0)1254 893900 (Main) Arm Blackburn Design Centre