[PATCH v3 22/30] coresight: Rearrange platform data probing

2019-05-07 Thread Suzuki K Poulose
fails, it takes care of freeing the data. Otherwise, coresight_unregister will do the necessary operations. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-catu.c | 14 +++--- drivers/hwtracing/coresight/coresight-etb10.c | 10

[PATCH v3 10/30] coresight: Rename of_coresight to coresight-platform

2019-05-07 Thread Suzuki K Poulose
for DT and the upcoming ACPI support. Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/Makefile | 3 +-- drivers/hwtracing/coresight/{of_coresight.c => coresight-platform.c} | 3 ++- 2 files changed, 3 insertions(+)

[PATCH v3 13/30] coresight: tmc-etr: Rearrange probing default buffer size

2019-05-07 Thread Suzuki K Poulose
As we are about to refactor the platform specific handling, make the default buffer size probing generic. Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-tmc.c | 21 - 1 file changed, 12 insertions(+), 9 deletions

[PATCH v3 02/30] coresight: replicator: Cleanup device tracking

2019-05-07 Thread Suzuki K Poulose
"real" device which is the parent device. Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-replicator.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight-replicator.c

[PATCH v3 07/30] coresight: etm: Clean up device specific data

2019-05-07 Thread Suzuki K Poulose
Track the coresight device instead of the real device. Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-etm.h| 6 ++ .../hwtracing/coresight/coresight-etm3x-sysfs.c| 12 ++-- drivers/hwtracing/coresight/coresight

[PATCH v3 00/30] coresight: Support for ACPI bindings

2019-05-07 Thread Suzuki K Poulose
ng one for CoreSight. Mathieu Poirier (1): coresight: Use coresight device names for sinks in PMU attribute Suzuki K Poulose (29): coresight: funnel: Clean up device book keeping coresight: replicator: Cleanup device tracking coresight: tmc: Clean up device specific data co

[PATCH v3 04/30] coresight: catu: Cleanup device specific data

2019-05-07 Thread Suzuki K Poulose
Switch to using the CoreSight device instead of the real amba device. Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-catu.c | 13 +++-- drivers/hwtracing/coresight/coresight-catu.h | 1 - 2 files changed, 7 insertions(+), 7

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

2019-05-03 Thread Suzuki K Poulose
Hi Mathieu On 17/04/2019 22:23, Mathieu Poirier wrote: On Mon, Apr 15, 2019 at 05:03:51PM +0100, Suzuki K Poulose wrote: In preparation to use a consistent device naming scheme, clean up the device link tracking in replicator driver. Use the "coresight" device instead of the &qu

[PATCH 2/2] coresight: alloc_perf_buf: Do not call smp_processor_id from preemptible

2019-05-03 Thread Suzuki K Poulose
: 22f429f19c4135d51e9 ("coresight: etm-perf: Add support for ETR backend") Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-tmc-etr.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/hwtracing/coresight/cor

[PATCH 1/2] coresight: Do not call smp_processor_id() from preemptible

2019-05-03 Thread Suzuki K Poulose
Fixes: 855ab61c16bf70b646 ("coresight: tmc-etr: Refactor function tmc_etr_setup_perf_buf()") Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-tmc-etr.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/hwtracing

Re: [PATCH v5 4/4] coresight: funnel: Support static funnel

2019-05-03 Thread Suzuki K Poulose
viding register resource and the driver skips registers accessing when detect the register base is NULL. Cc: Mathieu Poirier Cc: Suzuki K Poulose Cc: Wanglai Shi Suggested-by: Suzuki K Poulose Signed-off-by: Leo Yan Reviewed-by: Suzuki K Poulose + if (of_device_

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

2019-04-29 Thread Suzuki K Poulose
Rafael, On 25/04/2019 18:45, Mathieu Poirier wrote: 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" C

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

2019-04-25 Thread Suzuki K Poulose
On 25/04/2019 17:50, Mathieu Poirier wrote: On Mon, Apr 15, 2019 at 05:04:15PM +0100, Suzuki K Poulose wrote: Add support for parsing the ACPI platform description for CoreSight. The connections are encoded in a DSD graph property with CoreSight specific variation of the property. The ETMs

Re: [PATCH v2 25/36] coresight: Rearrange platform data probing

2019-04-25 Thread Suzuki K Poulose
On 22/04/2019 18:16, Mathieu Poirier wrote: On Mon, Apr 15, 2019 at 05:04:08PM +0100, Suzuki K Poulose wrote: We are about to introduce methods to clean up the platform data as we switch to tracking the device reference from "name" to "fwnode handles" for device connectio

Re: [PATCH v2 31/36] coresight: stm: ACPI support for parsing stimulus base

2019-04-25 Thread Suzuki K Poulose
On 23/04/2019 18:59, Mathieu Poirier wrote: On Mon, Apr 15, 2019 at 05:04:14PM +0100, Suzuki K Poulose wrote: The stimulus base for STM device must be listed as the second memory resource, followed by the programming base address as described in "Section 2.3 Resources&quo

Re: [PATCH v2 19/36] coresight: Introduce generic platform data helper

2019-04-23 Thread Suzuki K Poulose
On 04/22/2019 07:09 PM, Mathieu Poirier wrote: Hi Suzuki, On Mon, Apr 15, 2019 at 05:04:02PM +0100, Suzuki K Poulose wrote: So far we have hard coded the DT platform parsing code in every driver. Introduce generic helper to parse the information provided by the firmware in a platform agnostic

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

2019-04-23 Thread Suzuki K Poulose
On 04/17/2019 09:03 PM, Mathieu Poirier wrote: 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

Re: [RESEND][PATCH v2 27/36] drivers: Add a generic helper to match device by fwnode handle

2019-04-18 Thread Suzuki K Poulose
On 04/18/2019 03:39 PM, Rafael J. Wysocki wrote: On Tue, Apr 16, 2019 at 12:53 PM Suzuki K Poulose wrote: On 04/16/2019 11:48 AM, Rafael J. Wysocki wrote: On Tue, Apr 16, 2019 at 12:39 PM Suzuki K Poulose wrote: Make the device_fwnode_match() a generic helper to match device by fwnode

Re: [PATCH v3 2/2] perf/arm-ccn: Clean up CPU hotplug handling

2019-04-16 Thread Suzuki K Poulose
return 0; error_pmu_register: + cpuhp_state_remove_instance_nocalls(CPUHP_AP_PERF_ARM_CCN_ONLINE, + >dt.node); error_set_affinity: - put_cpu(); Super minor nit: We don't need the error_set_affinity label anymore, as we don't do anything here. Otherwise: Reviewed-by: Suzuki K Poulose

Re: [RESEND][PATCH v2 27/36] drivers: Add a generic helper to match device by fwnode handle

2019-04-16 Thread Suzuki K Poulose
On 04/16/2019 11:48 AM, Rafael J. Wysocki wrote: On Tue, Apr 16, 2019 at 12:39 PM Suzuki K Poulose wrote: Make the device_fwnode_match() a generic helper to match device by fwnode handle for use with bus_find_device(). This will be also used by coresight. Cc: Greg Kroah-Hartman Cc: "R

[RESEND][PATCH v2 27/36] drivers: Add a generic helper to match device by fwnode handle

2019-04-16 Thread Suzuki K Poulose
Make the device_fwnode_match() a generic helper to match device by fwnode handle for use with bus_find_device(). This will be also used by coresight. Cc: Greg Kroah-Hartman Cc: "Rafael J. Wysocki" Cc: linux-a...@vger.kernel.org Signed-off-by: Suzuki K Poulose --- Resending with

Re: [PATCH v2 27/36] drivers: Add a generic helper to match device by fwnode handle

2019-04-16 Thread Suzuki K Poulose
Hi Rafael On 04/16/2019 11:20 AM, Rafael J. Wysocki wrote: On Mon, Apr 15, 2019 at 6:06 PM Suzuki K Poulose wrote: Make the device_fwnode_match() a generic helper to match device by fwnode handle for use with bus_find_device(). This will be also used by coresight. Cc: Greg Kroah-Hartman Cc

[PATCH v2 04/36] coresight: catu: Cleanup power management

2019-04-15 Thread Suzuki K Poulose
Drop the power handle only if we were successful. Otherwise the AMBA bus code would do the rest. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-catu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/hwtracing

[PATCH v2 02/36] coresight: etb10: Cleanup power management

2019-04-15 Thread Suzuki K Poulose
We drop the power before we complete the probe successfully. We are supposed to drop it only when we are successful. Also, probing the etb_buffer_length happens with the power turned up. So we don't need to do that again in the helper. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose

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

2019-04-15 Thread Suzuki K Poulose
"real" device which is the parent device. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-replicator.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight-replicator.c b/drivers

[PATCH v2 03/36] coresight: tpiu: Cleanup power management

2019-04-15 Thread Suzuki K Poulose
Drop the power only when we have successfully probed. Otherwise leave it to the amba probe to do the rest. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-tpiu.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers

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

2019-04-15 Thread Suzuki K Poulose
"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 tables. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresigh

[PATCH v2 12/36] coresight: etm: Clean up device specific data

2019-04-15 Thread Suzuki K Poulose
Track the coresight device instead of the real device. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-etm.h| 6 ++ .../hwtracing/coresight/coresight-etm3x-sysfs.c| 12 ++-- drivers/hwtracing/coresight/coresight-etm3x.c

[PATCH v2 17/36] coresight: tmc-etr: Rearrange probing default buffer size

2019-04-15 Thread Suzuki K Poulose
As we are about to refactor the platform specific handling, make the default buffer size probing generic. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-tmc.c | 21 - 1 file changed, 12 insertions(+), 9 deletions(-) diff --git

[PATCH v2 13/36] coresight: etb10: Clean up device specific data

2019-04-15 Thread Suzuki K Poulose
Track the coresight device instead of the real device. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-etb10.c | 32 +-- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight

[PATCH v2 20/36] coresight: Make device to CPU mapping generic

2019-04-15 Thread Suzuki K Poulose
The CoreSight components ETM and CPU-Debug are always associated with CPUs. Replace the of_coresight_get_cpu() with a platform agnostic helper, in preparation to add ACPI support. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-cpu-debug.c | 3

[PATCH v2 15/36] coresight: etm3x: Rearrange cp14 access detection

2019-04-15 Thread Suzuki K Poulose
As we are about to refactor the platform specific handling, move the DT property handling to generic helpers. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-etm3x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH v2 21/36] coresight: Remove cpu field from platform data

2019-04-15 Thread Suzuki K Poulose
CPU field is only used by ETMs and there is a separate API for fetching the same. So, let us use that instead of using the common platform probing helper. Also, remove it from the platform_data. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight

[PATCH v2 19/36] coresight: Introduce generic platform data helper

2019-04-15 Thread Suzuki K Poulose
So far we have hard coded the DT platform parsing code in every driver. Introduce generic helper to parse the information provided by the firmware in a platform agnostic manner, in preparation for the ACPI support. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing

[PATCH v2 24/36] coresight: Reuse platform data structure for connection tracking

2019-04-15 Thread Suzuki K Poulose
-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-tmc-etr.c | 4 +-- drivers/hwtracing/coresight/coresight.c | 46 - include/linux/coresight.h | 8 ++--- 3 files changed, 27 insertions(+), 31 deletions(-) diff --git a/drivers

[PATCH v2 23/36] coresight: Cleanup coresight_remove_conns

2019-04-15 Thread Suzuki K Poulose
of the function. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight.c b/drivers/hwtracing/coresight/coresight.c index 91c63cd..530ad69

[PATCH v2 26/36] coresight: Add support for releasing platform specific data

2019-04-15 Thread Suzuki K Poulose
Add a helper to clean up the platform specific data provided by the firmware. This will be later used for dropping the necessary references when we switch to the fwnode handles for tracking connections. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight

[PATCH v2 28/36] coresight: platform: Use fwnode handle for device search

2019-04-15 Thread Suzuki K Poulose
We match of_node while searching for a device. Make this more generic in preparation for the ACPI support by using fwnode_handle. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-platform.c | 17 +++-- 1 file changed, 7 insertions(+), 10

[TEST PATCH 37/36][EDK2] edk2-platform: juno: Update ACPI CoreSight Bindings

2019-04-15 Thread Suzuki K Poulose
ACPI bindings for CoreSight components on the Juno-r0 board. Please note that the bindings apply only for the juno-r0. The layout on r1 and r2 are slightly different and will need dynamic ACPI table support to be able to use a single UEFI image. Signed-off-by: Suzuki K Poulose --- Platform/ARM

[PATCH v2 30/36] coresight: Use platform agnostic names

2019-04-15 Thread Suzuki K Poulose
are named using "tmc_etf", "tmc_etb", and "tmc_etr" prefixes depending on the configuration of the device. The replicators are not classified as dynamic/static anymore. One could easily figure that out by checking the presence of "mgmt" registers under sysf

[PATCH v2 31/36] coresight: stm: ACPI support for parsing stimulus base

2019-04-15 Thread Suzuki K Poulose
oirier Cc: "Rafael J. Wysocki" Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-stm.c | 43 + 1 file changed, 43 insertions(+) diff --git a/drivers/hwtracing/coresight/coresight-stm.c b/drivers/hwtracing/coresight/coresight

[PATCH v2 29/36] coresight: Use fwnode handle instead of device names

2019-04-15 Thread Suzuki K Poulose
to find the corresponding coresight device. Instead we use the platform agnostic "fwnode handle" of the parent device to find the devices. We also reuse the same fwnode as the parent for the Coresight device we create. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers

[PATCH v2 35/36] [RFC] coresight: add return value for fixup connections

2019-04-15 Thread Suzuki K Poulose
Handle failures in fixing up connections for a newly registered device. This will be useful to handle cases where we fail to expose the links via sysfs for the connections. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight.c | 17 - 1

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

2019-04-15 Thread Suzuki K Poulose
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 Signed-off-by: Suzuki K Poulose --- drivers/acpi/acpi_amba.c | 9

[PATCH v2 36/36] [RFC] coresight: Expose device connections via sysfs

2019-04-15 Thread Suzuki K Poulose
u Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight.c | 120 +--- include/linux/coresight.h | 4 ++ 2 files changed, 113 insertions(+), 11 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight.c b/drivers/

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

2019-04-15 Thread Suzuki K Poulose
Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-platform.c | 409 +++ 1 file changed, 409 insertions(+) diff --git a/drivers/hwtracing/coresight/coresight-platform.c b/drivers/hwtracing/coresight/coresight-platform.c index c9a59fb..224f698 100644 ---

[PATCH v2 34/36] [RFC] coresight: Pass coresight_device for coresight_release_platform_data

2019-04-15 Thread Suzuki K Poulose
As we prepare to expose the links between the devices in sysfs, pass the coresight_device instance to the coresight_release_platform_data in order to free up the connections when the device is removed. No functional changes as such in this patch. Cc: Mathieu Poirier Signed-off-by: Suzuki K

[PATCH v2 22/36] coresight: Remove name from platform description

2019-04-15 Thread Suzuki K Poulose
We are about to use a name independent of the parent AMBA device name. As such, there is no need to have it in the platform description. Let us move this to coresight description instead. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-catu.c

[PATCH v2 27/36] drivers: Add a generic helper to match device by fwnode handle

2019-04-15 Thread Suzuki K Poulose
Make the device_fwnode_match() a generic helper to match device by fwnode handle for use with bus_find_device(). This will be also used by coresight. Cc: Greg Kroah-Hartman Cc: "Rafael J. Wysocki" Signed-off-by: Suzuki K Poulose --- drivers/base/devcon.c| 5 - drivers/base/

[PATCH v2 25/36] coresight: Rearrange platform data probing

2019-04-15 Thread Suzuki K Poulose
fails, it takes care of freeing the data. Otherwise, coresight_unregister will do the necessary operations. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-catu.c | 14 +++--- drivers/hwtracing/coresight/coresight-etb10.c | 10

[PATCH v2 18/36] coresight: platform: Make memory allocation helper generic

2019-04-15 Thread Suzuki K Poulose
Rename the of_coresight_alloc_memory() => coresight_alloc_conns() as it is independent of the underlying firmware type. This is in preparation for the ACPI support. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-platform.c |

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

2019-04-15 Thread Suzuki K Poulose
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 +++-- drivers/hwtracing/coresight/coresight-catu.h | 1 - 2 files changed, 7 insertions(+), 7 deletions

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

2019-04-15 Thread Suzuki K Poulose
the references (fwnode_handle). - Add RFC patches for exposing the device-links via sysfs. - Drop tracking the device in favour of coresight_device. - Name etb10 as "etb" - Fix other comments in v1. - Use a generic helper for searching with fwnode_handle rather than adding

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

2019-04-15 Thread Suzuki K Poulose
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 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight-tpiu.c b

[PATCH v2 16/36] coresight: stm: Rearrange probing the stimulus area

2019-04-15 Thread Suzuki K Poulose
As we are about to refactor the platform specific handling re-arrange some of the DT specific property handling. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-stm.c | 23 +++ 1 file changed, 19 insertions(+), 4 deletions

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

2019-04-15 Thread Suzuki K Poulose
Rename the firmware handling file to a more generic name, in preparation for adding ACPI support. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/Makefile | 3 +- drivers/hwtracing/coresight/coresight-platform.c | 298

[PATCH v2 01/36] coresight: Fix freeing up the coresight connections

2019-04-15 Thread Suzuki K Poulose
use kfree() to release the memory when a device is released (even though we don't support this at the moment). Fix this by leaving it to the automatic freeing of the memory. Fixes: c2c729415b2d2132 ("coresight: platform: Cleanup coresight connection handling") Cc: Mathieu Poirier Sig

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

2019-04-15 Thread Suzuki K Poulose
"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 changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight-funnel.c b/drivers/hwtracin

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

2019-04-15 Thread Suzuki K Poulose
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 insertions(+), 2 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight-tmc.c b/drivers

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

2019-04-15 Thread Suzuki K Poulose
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 Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-

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

2019-04-12 Thread Suzuki K Poulose
quot;; "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 funnel example. Cc: Mathieu Poirier Cc: Suzuki K Poulose Cc: Wanglai Shi Signed-off-by: Leo Yan --- .../devic

Re: [PATCH v5 2/4] coresight: replicator: Add new device id for static replicator

2019-04-12 Thread Suzuki K Poulose
.pm = _dev_pm_ops, .suppress_bind_attrs = true, Reviewed-by: Suzuki K Poulose

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

2019-04-12 Thread Suzuki K Poulose
rs don't show up on the * AMBA bus. As such no need to add "arm,primecell". */ - compatible = "arm,coresight-replicator"; + compatible = "arm,coresight-static-replicator"; Reviewed-by: Suzuki K Poulose

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

2019-04-08 Thread Suzuki K Poulose
bsolete) "arm,coresight-dynamic-funnel", "arm,primecell"; At the end of this patch, it gives an example for static funnel DT binding, and updates the dynamic funnel example. Cc: Mathieu Poirier Cc: Suzuki K Poulose Cc: Wanglai Shi Signed-off-by: Leo Yan --- .../devic

Re: [PATCH v4 2/4] coresight: replicator: Add new device id for static replicator

2019-04-08 Thread Suzuki K Poulose
On 04/06/2019 12:21 PM, Leo Yan wrote: This patch adds a device id for the new static replicator compatible string; it changes the driver name from "coresight-replicator" to "coresight-static-replicator" as well. Signed-off-by: Leo Yan --- drivers/hwtracing/coresight/coresight-replicator.c |

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

2019-04-08 Thread Suzuki K Poulose
On 04/06/2019 12:21 PM, Leo Yan wrote: CoreSight uses below bindings for replicator: Static replicator, aka. non-configurable replicator: "arm,coresight-replicator"; Dynamic replicator, aka. configurable replicator: "arm,coresight-dynamic-replicator", "arm,primecell"; The

Re: [PATCH] stm class: Fix channel free in stm output free path

2019-04-05 Thread Suzuki K Poulose
utput *output) bitmap_release_region(>chan_map[0], output->channel, ilog2(output->nr_chans)); - output->nr_chans = 0; master->nr_free += output->nr_chans; + output->nr_chans = 0; Reviewed-by: Suzuki K Poulose

Re: [PATCH 23/25] coresight: stm: ACPI support for parsing stimulus base

2019-04-04 Thread Suzuki K Poulose
Hi Mathieu, On 28/03/2019 20:41, Mathieu Poirier wrote: On Wed, Mar 20, 2019 at 06:49:40PM +, Suzuki K Poulose wrote: The stimulus base for STM device must be listed as the second memory resource, followed by the programming base address. Add support for parsing the information for ACPI

Re: [PATCH v2 2/2] perf/arm-ccn: Remove broken race mitigation

2019-04-04 Thread Suzuki K Poulose
Hi Robin, On 03/04/2019 18:10, Robin Murphy wrote: Like arm-cci, arm-ccn has the same issue of disabling preemption around operations which can take mutexes. Again, remove the definite bug by simply not trying to fight the theoretical races. And since we are touching the hotplug handling code,

Re: [PATCH v2 1/2] perf/arm-cci: Remove broken race mitigation

2019-04-04 Thread Suzuki K Poulose
notifier, which gets fixed in the process. Reported-by: "Li, Meng" Reported-by: Corentin Labbe Signed-off-by: Robin Murphy Thanks for fixing this. Reviewed-by: Suzuki K Poulose

Re: [PATCH v3 03/20] coresight: etm4x: Skip selector pair 0

2019-04-04 Thread Suzuki K Poulose
On 04/04/2019 04:35, Mathieu Poirier wrote: 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

Re: [PATCH v3 02/20] coresight: etm4x: Add kernel configuration for CONTEXTID

2019-04-04 Thread Suzuki K Poulose
-by: Suzuki K Poulose

Re: [PATCH v3 01/20] coresight: pmu: Adding ITRACE property to cs_etm PMU

2019-04-04 Thread Suzuki K Poulose
On 04/04/2019 04:35, Mathieu Poirier wrote: Add to the capabilities the ITRACE property so that ITRACE START events are generated when the PMU is switched on by the core. Signed-off-by: Mathieu Poirier --- Acked-by: Suzuki K Poulose

Re: [PATCH v3 2/2] coresight: funnel: Support static funnel

2019-03-28 Thread Suzuki K Poulose
register resource and the driver skips registers accessing when detect the register base is NULL. Cc: Mathieu Poirier Cc: Suzuki K Poulose Cc: Wanglai Shi Suggested-by: Suzuki K Poulose Signed-off-by: Leo Yan Reviewed-by: Suzuki K Poulose

Re: [PATCH v3 1/2] dt-bindings: arm: coresight: Support static funnel

2019-03-28 Thread Suzuki K Poulose
On 03/28/2019 02:35 AM, Leo Yan wrote: Document DT binding for static (non-configurable) funnel and give an example for it. Cc: Mathieu Poirier Cc: Suzuki K Poulose Cc: Wanglai Shi Signed-off-by: Leo Yan Reviewed-by: Suzuki K Poulose

Re: [PATCH 21/25] coresight: Use fwnode handle instead of device names

2019-03-28 Thread Suzuki K Poulose
On 03/28/2019 05:42 PM, Mathieu Poirier wrote: On Wed, Mar 20, 2019 at 06:49:38PM +, Suzuki K Poulose wrote: We rely on the device names to find a CoreSight device on the coresight bus. The device name however is obtained from the platform, which is bound to the real platform/amba device

Re: [PATCH 13/25] coresight: etb10: Clean up device specific data

2019-03-28 Thread Suzuki K Poulose
On 03/27/2019 09:39 PM, Mathieu Poirier wrote: On Wed, Mar 20, 2019 at 06:49:30PM +, Suzuki K Poulose wrote: Track the coresight device instead of the real device. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose @@ -701,7 +701,6 @@ static int etb_probe(struct amba_device *adev

Re: [PATCH 15/25] coresight: etm3x: Rearrange cp14 access detection

2019-03-28 Thread Suzuki K Poulose
On 03/27/2019 10:05 PM, Mathieu Poirier wrote: On Wed, Mar 20, 2019 at 06:49:32PM +, Suzuki K Poulose wrote: As we are about to about refactor the platform specific handling, s/about// move the DT property handling to generic helpers. Thanks for spotting. Will fix it. Suzuki

Re: [PATCH 18/25] coresight: Introduce generic platform data helper

2019-03-28 Thread Suzuki K Poulose
On 03/27/2019 10:57 PM, Mathieu Poirier wrote: On Wed, Mar 20, 2019 at 06:49:35PM +, Suzuki K Poulose wrote: So far we have hard coded the DT platform parsing code in every driver. Introduce generic helper to parse the information provided by the firmware in a platform agnostic manner

Re: [PATCH 05/25] coresight: Merge the static and dynamic replicator drivers

2019-03-27 Thread Suzuki K Poulose
On 03/27/2019 03:27 PM, Mathieu Poirier wrote: On Wed, Mar 20, 2019 at 06:49:22PM +, Suzuki K Poulose wrote: Merge the drivers for the two varieties of replicators into a singel one. The dynamic replicator has programming base which can be programmed to filter the trace data. The driver

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

2019-03-27 Thread Suzuki K Poulose
On 03/26/2019 09:53 PM, Mathieu Poirier wrote: Hi Suzuki, On Wed, Mar 20, 2019 at 06:49:25PM +, Suzuki K Poulose wrote: In preparation to use a consistent device naming scheme, clean up the device link tracking in replicator driver. Use the "coresight" device instead of the &qu

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

2019-03-27 Thread Suzuki K Poulose
On 03/26/2019 09:54 PM, Mathieu Poirier wrote: On Wed, Mar 20, 2019 at 06:49:27PM +, 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 | 12

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

2019-03-27 Thread Suzuki K Poulose
On 03/26/2019 09:53 PM, Mathieu Poirier wrote: Hi Suzuki, On Wed, Mar 20, 2019 at 06:49:25PM +, Suzuki K Poulose wrote: In preparation to use a consistent device naming scheme, clean up the device link tracking in replicator driver. Use the "coresight" device instead of the &qu

Re: [PATCH v6 04/10] arm64: Advertise mitigation of Spectre-v2, or lack thereof

2019-03-25 Thread Suzuki K Poulose
of that patch into this and move it earlier] Signed-off-by: Jeremy Linton Reviewed-by: Andre Przywara Tested-by: Stefan Wahren --- Reviewed-by: Suzuki K Poulose

Re: [PATCH -next] coresight: catu: Make catu_helper_ops and catu_ops static

2019-03-22 Thread Suzuki K Poulose
const struct coresight_ops_helper catu_helper_ops = { .enable = catu_enable, .disable = catu_disable, }; -const struct coresight_ops catu_ops = { +static const struct coresight_ops catu_ops = { .helper_ops = _helper_ops, }; Reviewed-by: Suzuki K Poulose

Re: [PATCH 00/25] coresight: Support for ACPI bindings

2019-03-22 Thread Suzuki K Poulose
On 03/20/2019 06:49 PM, Suzuki K Poulose wrote: This series adds the support for CoreSight devices on ACPI based platforms. The device connections are encoded as _DSD graph property[0], with CoreSight specific extensions to indicate the direction of data flow as described in [1]. Components

Re: [PATCH RFC 01/14] arm64/mm: Introduce asid_info structure and move asid_generation/asid_map to it

2019-03-21 Thread Suzuki K Poulose
Hi Julien, On 21/03/2019 16:36, Julien Grall wrote: In an attempt to make the ASID allocator generic, create a new structure asid_info to store all the information necessary for the allocator. For now, move the variables asid_generation and asid_map to the new structure asid_info. Follow-up

[PATCH 03/25] coresight: replicator: Prepare for merging with dynamic-replicator

2019-03-20 Thread Suzuki K Poulose
As a preparatory step to merge the separate drivers for static and dynamic replicators, annotate the static replicator specific details. Also refactor the probe routine to make it generic in order to merge the drivers easily. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers

[PATCH 04/25] coresight: dynamic-replicator: Prepare for merging with static replicator

2019-03-20 Thread Suzuki K Poulose
Rename the dynamic replicator specific routines for merging with the replicator driver. Also re-arrange the probe routine to make it easier to merge. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- .../coresight/coresight-dynamic-replicator.c | 104 + 1 file

[PATCH 07/25] coresight: replicator: Cleanup device tracking

2019-03-20 Thread Suzuki K Poulose
"real" device which is the parent device. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-replicator.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight-replicator.c b/drivers

[PATCH 05/25] coresight: Merge the static and dynamic replicator drivers

2019-03-20 Thread Suzuki K Poulose
lso, while at it, remove the now obsolete DYNAMIC_REPLICATOR config entry. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/Kconfig| 8 - drivers/hwtracing/coresight/Makefile | 1 - .../coresight/coresight-dynamic-replicator.c

[PATCH 12/25] coresight: etm: Clean up device specific data

2019-03-20 Thread Suzuki K Poulose
Track the coresight device instead of the real device. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-etm3x.c | 6 +++--- drivers/hwtracing/coresight/coresight-etm4x.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git

[PATCH 10/25] coresight: tpiu: Clean up device specific data

2019-03-20 Thread Suzuki K Poulose
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 | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight

[PATCH 09/25] coresight: catu: Cleanup device specific data

2019-03-20 Thread Suzuki K Poulose
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 +++-- drivers/hwtracing/coresight/coresight-catu.h | 1 - 2 files changed, 7 insertions(+), 7 deletions

[PATCH 14/25] coresight: Rename of_coresight to coresight-platform

2019-03-20 Thread Suzuki K Poulose
Rename the firmware handling file to a more generic name, in preparation for adding ACPI support. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/Makefile | 3 +- drivers/hwtracing/coresight/coresight-platform.c | 298

[PATCH 15/25] coresight: etm3x: Rearrange cp14 access detection

2019-03-20 Thread Suzuki K Poulose
As we are about to about refactor the platform specific handling, move the DT property handling to generic helpers. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-etm3x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH 23/25] coresight: stm: ACPI support for parsing stimulus base

2019-03-20 Thread Suzuki K Poulose
The stimulus base for STM device must be listed as the second memory resource, followed by the programming base address. Add support for parsing the information for ACPI. Cc: Mathieu Poirier Cc: "Rafael J. Wysocki" Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight

[PATCH 18/25] coresight: Introduce generic platform data helper

2019-03-20 Thread Suzuki K Poulose
So far we have hard coded the DT platform parsing code in every driver. Introduce generic helper to parse the information provided by the firmware in a platform agnostic manner, in preparation for the ACPI support. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing

[PATCH 17/25] coresight: tmc-etr: Rearrange probing default buffer size

2019-03-20 Thread Suzuki K Poulose
As we are about to refactor the platform specific handling, make the default buffer size probing generic. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-tmc.c | 21 - 1 file changed, 12 insertions(+), 9 deletions(-) diff --git

[PATCH 24/25] coresight: Support for ACPI bindings

2019-03-20 Thread Suzuki K Poulose
Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-platform.c | 402 +++ 1 file changed, 402 insertions(+) diff --git a/drivers/hwtracing/coresight/coresight-platform.c b/drivers/hwtracing/coresight/coresight-platform.c index 5eee987..06b1188 100644 ---

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