[RFC PATCH 46/57] driver: Add variants of driver_find_device()

2019-06-03 Thread Suzuki K Poulose
Add a wrappers to lookup a device by name for a given driver, by various generic properties of a device. This can avoid the proliferation of custom match functions throughout the drivers. Cc: Greg Kroah-Hartman Cc: "Rafael J. Wysocki" Signed-off-by: Suzuki K Poulose --- include/linu

[RFC PATCH 50/57] drivers: iommu: arm-smmu: Use driver_find_device_by_fwnode() helper

2019-06-03 Thread Suzuki K Poulose
Reuse the driver_find_device_by_fwnode() helper to lookup devices. Cc: Will Deacon Cc: Robin Murphy Cc: Joerg Roedel Signed-off-by: Suzuki K Poulose --- drivers/iommu/arm-smmu-v3.c | 9 ++--- drivers/iommu/arm-smmu.c| 9 ++--- 2 files changed, 4 insertions(+), 14 deletions

[RFC PATCH 55/57] drivers: scsi: Use bus_find_next_device() helper

2019-06-03 Thread Suzuki K Poulose
Reuse the generic helper to find the next device. Cc: "James E.J. Bottomley" Cc: "Martin K. Petersen" Signed-off-by: Suzuki K Poulose --- drivers/scsi/scsi_proc.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/scsi/scsi_proc.c b/driv

[RFC PATCH 57/57] drivers: i2c-amd: Use driver_find_next_device() helper

2019-06-03 Thread Suzuki K Poulose
Reuse the generic helper to find the first device matching the driver. Cc: Elie Morisse Cc: Nehal Shah Cc: Shyam Sundar S K Signed-off-by: Suzuki K Poulose --- drivers/i2c/busses/i2c-amd-mp2-pci.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/i2c/busses

[RFC PATCH 54/57] drivers: pci: Use bus_find_next_device() helper

2019-06-03 Thread Suzuki K Poulose
Reuse the generic helper to find the next device on bus. Cc: Bjorn Helgaas Signed-off-by: Suzuki K Poulose --- drivers/pci/probe.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index f9ef7ad..3504695 100644 --- a/drivers/pci

[RFC PATCH 41/57] drivers: net: phy: Use class_find_device_by_of_node helper

2019-06-03 Thread Suzuki K Poulose
Use the generic helper to find a device matching the of_node. Cc: Andrew Lunn Cc: Florian Fainelli Cc: Heiner Kallweit Cc: "David S. Miller" Signed-off-by: Suzuki K Poulose --- drivers/net/phy/mdio_bus.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/d

[RFC PATCH 42/57] drivers: regulator: Use class_find_device_by_of_node helper

2019-06-03 Thread Suzuki K Poulose
Use the generic helper to find a device matching the of_node. Cc: Liam Girdwood Cc: Mark Brown Signed-off-by: Suzuki K Poulose --- drivers/regulator/of_regulator.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/regulator/of_regulator.c b/drivers/regulator

[RFC PATCH 44/57] drivers: usb : Use class_find_device_by_fwnode() helper

2019-06-03 Thread Suzuki K Poulose
Reuse the generic helper to find a device by fwnode handle. Cc: Greg Kroah-Hartman Cc: Heikki Krogerus Cc: linux-...@vger.kernel.org Signed-off-by: Suzuki K Poulose --- drivers/usb/roles/class.c | 8 +--- drivers/usb/typec/class.c | 8 +--- 2 files changed, 2 insertions(+), 14

[RFC PATCH 27/57] drivers: Unify the match prototype for bus_find_device with class_find_device

2019-06-03 Thread Suzuki K Poulose
Cameron Cc: Hartmut Knaack Cc: Grygorii Strashko Cc: "David S. Miller" Cc: Bjorn Helgaas Cc: Sebastian Ott Cc: Peter Oberparleiter Cc: Harald Freudenberger Cc: "James E.J. Bottomley" Cc: "Martin K. Petersen" Cc: Andreas Noever Cc: Michael Jamet Cc: Felipe Balbi C

[RFC PATCH 28/57] drivers: class: Add variants of class_find_device()

2019-06-03 Thread Suzuki K Poulose
Similar to the bus_find_device_by_*() helpers add wrappers for class_find_device() to find devices by generic attributes. Cc: Greg Kroah-Hartman Cc: "Rafael J. Wysocki" Signed-off-by: Suzuki K Poulose --- include/linux/device.h | 58

[RFC PATCH 31/57] drivers: rtc: Use class_find_device_by_name() helper

2019-06-03 Thread Suzuki K Poulose
Use the new class_find_device_by_name() helper. Cc: Alessandro Zummo Cc: Alexandre Belloni Cc: linux-...@vger.kernel.org Signed-off-by: Suzuki K Poulose --- drivers/rtc/interface.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers/rtc/interface.c b

[RFC PATCH 22/57] drivers: i2c: Use generic helper to match device by acpi_dev

2019-06-03 Thread Suzuki K Poulose
Switch to the generic helper to match device by acpi_dev. Cc: Mika Westerberg Cc: Wolfram Sang cc: linux-...@vger.kernel.org Signed-off-by: Suzuki K Poulose --- drivers/i2c/i2c-core-acpi.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/i2c/i2c-core-acpi.c b

[RFC PATCH 30/57] drivers: leds: Use class_find_device_by_name() helper

2019-06-03 Thread Suzuki K Poulose
Use the new class_find_device_by_name() helper. Cc: Jacek Anaszewski Cc: Pavel Machek Cc: Dan Murphy Cc: linux-l...@vger.kernel.org Signed-off-by: Suzuki K Poulose --- drivers/leds/led-class.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/leds/led

[RFC PATCH 32/57] drivers: s390-crypto: Use class_device_find_by_name() helper

2019-06-03 Thread Suzuki K Poulose
Use the new class_find_device_by_name() helper. Cc: Harald Freudenberger Cc: Martin Schwidefsky Cc: Heiko Carstens Signed-off-by: Suzuki K Poulose --- drivers/s390/crypto/zcrypt_api.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/s390/crypto

[RFC PATCH 26/57] drivers: acpi: Clean up acpi_dev_match_cb

2019-06-03 Thread Suzuki K Poulose
fael J. Wysocki" Cc: Len Brown Cc: linux-a...@vger.kernel.org Signed-off-by: Suzuki K Poulose --- drivers/acpi/utils.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/acpi/utils.c b/drivers/acpi/utils.c index 7def63a..1391b63 100644 --- a/drivers/acpi/util

[RFC PATCH 35/57] drivers: core: Reuse generic match by device type helper

2019-06-03 Thread Suzuki K Poulose
Use the generic helper to match the device type of a given device. Cc: Greg Kroah-Hartman Cc: "Rafael J. Wysocki" Signed-off-by: Suzuki K Poulose --- drivers/base/core.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/base/core.c b/drivers/base/co

[RFC PATCH 17/57] drivers: Add generic match by device type helper

2019-06-03 Thread Suzuki K Poulose
Add a generic helper routine to match the device type of a given device. Cc: Greg Kroah-Hartman Cc: "Rafael J. Wysocki" Cc: Ulf Hansson Signed-off-by: Suzuki K Poulose --- drivers/base/core.c| 6 ++ include/linux/device.h | 15 +++ 2 files changed, 21 insertion

[RFC PATCH 16/57] net: hns_roce: Use bus_find_device_by_fwnode helper

2019-06-03 Thread Suzuki K Poulose
Switch to using the bus_find_device_by_fwnode helper Cc: Doug Ledford Cc: Jason Gunthorpe Signed-off-by: Suzuki K Poulose --- drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v1.c b

[RFC PATCH 12/57] of: platform: Use bus_find_device_by_of_node helper

2019-06-03 Thread Suzuki K Poulose
Switch to using the bus_find_device_by_of_node helper Cc: Frank Rowand Cc: Rob Herring Cc: devicet...@vger.kernel.org Signed-off-by: Suzuki K Poulose --- drivers/of/platform.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/of/platform.c b/drivers

[RFC PATCH 09/57] drivers: sound: rockchip: rk3399: Use bus_find_device_by_of_node helper

2019-06-03 Thread Suzuki K Poulose
Switch to using the bus_find_device_by_of_node helper Cc: Heiko Stuebner Cc: Takashi Iwai Cc: Mark Brown Cc: Liam Girdwood Cc: linux-rockc...@lists.infradead.org Signed-off-by: Suzuki K Poulose --- sound/soc/rockchip/rk3399_gru_sound.c | 9 ++--- 1 file changed, 2 insertions(+), 7

[RFC PATCH 02/57] drivers: ipmi: Drop device reference

2019-06-03 Thread Suzuki K Poulose
Drop the reference to a device found via bus_find_device() Cc: Corey Minyard Cc: Arnd Bergmann Cc: Greg Kroah-Hartman Signed-off-by: Suzuki K Poulose --- drivers/char/ipmi/ipmi_si_platform.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/char/ipmi/ipmi_si_platform.c b/drivers

[RFC PATCH 03/57] drivers: coresight: Drop device references found via bus_find_device

2019-06-03 Thread Suzuki K Poulose
We must drop references to the device found via bus_find_device(). Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight.c b/drivers

[RFC PATCH 01/57] drivers: s390/cio: Use driver_for_each_device

2019-06-03 Thread Suzuki K Poulose
-by: Suzuki K Poulose --- drivers/s390/cio/ccwgroup.c | 18 -- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/drivers/s390/cio/ccwgroup.c b/drivers/s390/cio/ccwgroup.c index 4ebf6d4..a006945 100644 --- a/drivers/s390/cio/ccwgroup.c +++ b/drivers/s390/cio/ccwgroup.c

Re: [PATCH v4 26/30] coresight: Use platform agnostic names

2019-06-03 Thread Suzuki K Poulose
Hi Mike, On 29/05/2019 10:32, Mike Leach wrote: Hi, Why am I not seeing references to coresight-cpu-debug in here? In other places in this patchset CPU debug has been changed, but there appears to be no platform agnostic name here, nor any ACPI type name either. Is cpu-debug remaining device

[PATCH v3 0/4] coresight: Do not call smp_processor_id from preemptible contexts

2019-05-30 Thread Suzuki K Poulose
NUMA_NO_NODE instead of numa_node_id() for event->cpu == -1. (Robin Murphy) Suzuki K Poulose (4): coresight: tmc-etr: Do not call smp_processor_id() from preemptible coresight: tmc-etr: alloc_perf_buf: Do not call smp_processor_id from preemptible coresight: tmc-etf: Do not c

[PATCH v3 2/4] coresight: tmc-etr: alloc_perf_buf: Do not call smp_processor_id from preemptible

2019-05-30 Thread Suzuki K Poulose
Fixes: 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 v3 3/4] coresight: tmc-etf: Do not call smp_processor_id from preemptible

2019-05-30 Thread Suzuki K Poulose
Fixes: 2e499bbc1a929ac ("coresight: tmc: implementing TMC-ETF AUX space API") Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-tmc-etf.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/hwtracing/coresight/cor

[PATCH v3 4/4] coresight: etb10: Do not call smp_processor_id from preemptible

2019-05-30 Thread Suzuki K Poulose
sight: etb10: implementing AUX API") Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-etb10.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight-etb10.c b/drivers/hwtracing/coresight/cores

[PATCH v3 1/4] coresight: tmc-etr: Do not call smp_processor_id() from preemptible

2019-05-30 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 1/4] coresight: tmc-etr: Do not call smp_processor_id() from preemptible

2019-05-30 Thread Suzuki K Poulose
Hi Robin, On 10/05/2019 11:38, Robin Murphy wrote: Hi Suzuki, On 10/05/2019 10:31, Suzuki K Poulose wrote: Instead of using smp_processor_id() to figure out the node, use the numa_node_id() for the current CPU node to avoid splats like : diff --git a/drivers/hwtracing/coresight

[PATCH] Documentation: coresight: Update the generic device names

2019-05-30 Thread Suzuki K Poulose
Update the documentation to reflect the new naming scheme with latest changes. Reported-by: Leo Yan Cc: Mathieu Poirier Cc: Jonathan Corbet Signed-off-by: Suzuki K Poulose --- Documentation/trace/coresight.txt | 34 +++--- 1 file changed, 19 insertions(+), 15

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

2019-05-28 Thread Suzuki K Poulose
Hi Mathieu, On 28/05/2019 18:36, Mathieu Poirier wrote: On Tue, 28 May 2019 at 11:32, Mathieu Poirier wrote: ... I have applied this set. Thanks. As Leo pointed out it would be interesting to update the documentation in "Documentation/trace/coresight.txt". I am on it, will send

[PATCH] mm, compaction: Make sure we isolate a valid PFN

2019-05-24 Thread Suzuki K Poulose
by ensuring that the page belongs to a valid PFN when we fallback to using the lower limit of the scan range upon failure in fast_isolate_freepages(). Fixes: 5a811889de10f1eb ("mm, compaction: use free lists to quickly locate a migration target") Reported-by: Marc Zyngier Signed-off-by: Suzuki

mm/compaction: BUG: NULL pointer dereference

2019-05-24 Thread Suzuki K Poulose
Hi, We are hitting NULL pointer dereferences while running stress tests with KVM. See splat [0]. The test is to spawn 100 VMs all doing standard debian installation (Thanks to Marc's automated scripts, available here [1] ). The problem has been reproduced with a better rate of success from

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

2019-05-23 Thread Suzuki K Poulose
Hi Leo, On 23/05/2019 15:32, Leo Yan wrote: Hi Suzuki, On Wed, May 22, 2019 at 11:34:33AM +0100, Suzuki K Poulose wrote: [...] Changes since v2: - Drop the patches exposing device links via sysfs, to be posted as separate series. Thanks for sharing the git tree linkage in another

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

2019-05-23 Thread Suzuki K Poulose
On 22/05/2019 11:34, 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

[PATCH v4 06/30] coresight: stm: Cleanup device specific data

2019-05-22 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. Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-

[PATCH v4 03/30] coresight: tmc: Clean up device specific data

2019-05-22 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. Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/core

[PATCH v4 11/30] coresight: etm3x: Rearrange cp14 access detection

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

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

2019-05-22 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 v4 12/30] coresight: stm: Rearrange probing the stimulus area

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

[PATCH v4 08/30] coresight: etb10: Clean up device specific data

2019-05-22 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-etb10.c | 32 +-- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/hwtracing/coresight

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

2019-05-22 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 v4 21/30] coresight: Reuse platform data structure for connection tracking

2019-05-22 Thread Suzuki K Poulose
Signed-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

[PATCH v4 15/30] coresight: Make sure device uses DT for obsolete compatible check

2019-05-22 Thread Suzuki K Poulose
As we prepare to add support for ACPI bindings, let us make sure we do the compatible check only if we are sure we are dealing with a DT based system. Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-funnel.c | 3 ++- drivers/hwtracing

[PATCH v4 17/30] coresight: Make device to CPU mapping generic

2019-05-22 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. Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-cpu-debug.c

[PATCH v4 19/30] coresight: Remove name from platform description

2019-05-22 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. Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight

[PATCH v4 09/30] coresight: Use coresight device names for sinks in PMU attribute

2019-05-22 Thread Suzuki K Poulose
From: Mathieu Poirier Move to using the coresight device name instead of the parent device name for SINK attribute for PMU. Signed-off-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-etm-perf.c | 8 1 file changed, 4 insertions(+), 4

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

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

[PATCH v4 27/30] coresight: stm: ACPI support for parsing stimulus base

2019-05-22 Thread Suzuki K Poulose
fael J. Wysocki" Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-stm.c | 53 - 1 file changed, 52 insertions(+), 1 deletion(-) diff --git a/drivers/hwtracing/coresight/coresight-stm.c b/drivers/hwtracing

[PATCH v4 23/30] coresight: Add support for releasing platform specific data

2019-05-22 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. Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing

[PATCH v4 26/30] coresight: Use platform agnostic names

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

[PATCH v4 25/30] coresight: Use fwnode handle instead of device names

2019-05-22 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. Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --

[PATCH v4 28/30] coresight: Support for ACPI bindings

2019-05-22 Thread Suzuki K Poulose
eu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-platform.c | 464 +++ 1 file changed, 464 insertions(+) diff --git a/drivers/hwtracing/coresight/coresight-platform.c b/drivers/hwtracing/coresight/coresight-platform.c index 49112a5..6fef

[TEST PATCH 31/30][EDK2] edk2-platform: juno: Update ACPI CoreSight Bindings

2019-05-22 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 v4 30/30] coresight: acpi: Support for platform devices

2019-05-22 Thread Suzuki K Poulose
Add support for platform devices which do not appear on the AMBA bus. Cc: "Rafael J. Wysocki" Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-replicator.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-)

[PATCH v4 20/30] coresight: Cleanup coresight_remove_conns

2019-05-22 Thread Suzuki K Poulose
of the function. Reviewed-by: 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 04b5d3c

[PATCH v4 16/30] coresight: Introduce generic platform data helper

2019-05-22 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. Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers

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

2019-05-22 Thread Suzuki K Poulose
th fwnode_handle rather than adding 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 spec

[PATCH v4 05/30] coresight: tpiu: Clean up device specific data

2019-05-22 Thread Suzuki K Poulose
Switch to using the coresight device instead of the parent amba device. Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-tpiu.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight

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

2019-05-22 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 v4 24/30] coresight: platform: Use fwnode handle for device search

2019-05-22 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. Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-platform.c | 16 +--- 1 file changed, 9

[PATCH v4 14/30] coresight: platform: Make memory allocation helper generic

2019-05-22 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. Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-platform.c |

[PATCH v4 18/30] coresight: Remove cpu field from platform data

2019-05-22 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. Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight

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

2019-05-22 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/coresight-platform.c | 298 +++ drivers/hwtracing/coresight/of_coresight.c | 297

[PATCH v4 29/30] coresight: acpi: Support for AMBA components

2019-05-22 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" Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/acpi/acpi_amba.c | 9 + 1 file changed, 9

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

2019-05-22 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

[PATCH v4 01/30] coresight: funnel: Clean up device book keeping

2019-05-22 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-funnel.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight-funnel.c b/drivers

[PATCH 0/4] coresight: Do not call smp_processor_id from preemptible contexts

2019-05-10 Thread Suzuki K Poulose
We have a few places where we call smp_processor_id() from preemptible contexts during the perf buffer handling. We do this to figure out the numa node for the allocation in case the event is not CPU bound. Use numa_node_id() instead in such cases to avoid a splat. Suzuki K Poulose (4

[PATCH 1/4] coresight: tmc-etr: Do not call smp_processor_id() from preemptible

2019-05-10 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

[PATCH 4/4] coresight: etb10: Do not call smp_processor_id from preemptible

2019-05-10 Thread Suzuki K Poulose
sight: etb10: implementing AUX API") Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-etb10.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight-etb10.c b/drivers/hwtracing/coresight/cores

[PATCH 2/4] coresight: tmc-etr: alloc_perf_buf: Do not call smp_processor_id from preemptible

2019-05-10 Thread Suzuki K Poulose
Fixes: 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 3/4] coresight: tmc-etf: Do not call smp_processor_id from preemptible

2019-05-10 Thread Suzuki K Poulose
Fixes: 2e499bbc1a929ac ("coresight: tmc: implementing TMC-ETF AUX space API") Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-tmc-etf.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/hwtracing/coresight/cor

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

2019-05-08 Thread Suzuki K Poulose
On 08/05/2019 17:39, Mathieu Poirier wrote: Hi Suzuki, On Fri, 3 May 2019 at 10:04, Suzuki K Poulose wrote: Instead of using smp_processor_id() to figure out the node, use the numa_node_id() for the current CPU node to avoid splats like : BUG: using smp_processor_id() in preemptible

Re: [PATCH v2 00/11] dts: Update DT bindings for CoreSight replicator and funnel

2019-05-08 Thread Suzuki K Poulose
is now misleading ;-), but that doesn't matter. For the entire series : Acked-by: Suzuki K Poulose

[PATCH v3 01/30] coresight: funnel: Clean up device book keeping

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-funnel.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight-funnel.c b/drivers

[PATCH v3 08/30] coresight: etb10: 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-etb10.c | 32 +-- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/hwtracing/coresight

[PATCH v3 06/30] coresight: stm: Cleanup device specific data

2019-05-07 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. Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-

[PATCH v3 09/30] coresight: Use coresight device names for sinks in PMU attribute

2019-05-07 Thread Suzuki K Poulose
From: Mathieu Poirier Move to using the coresight device name instead of the parent device name for SINK attribute for PMU. Signed-off-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-etm-perf.c | 8 1 file changed, 4 insertions(+), 4

[PATCH v3 05/30] coresight: tpiu: Clean up device specific data

2019-05-07 Thread Suzuki K Poulose
Switch to using the coresight device instead of the parent amba device. Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-tpiu.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight

[PATCH v3 03/30] coresight: tmc: Clean up device specific data

2019-05-07 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. Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/core

[PATCH v3 12/30] coresight: stm: Rearrange probing the stimulus area

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

[PATCH v3 11/30] coresight: etm3x: Rearrange cp14 access detection

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

[PATCH v3 23/30] coresight: Add support for releasing platform specific data

2019-05-07 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 v3 21/30] coresight: Reuse platform data structure for connection tracking

2019-05-07 Thread Suzuki K Poulose
Signed-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

[PATCH v3 15/30] coresight: Make sure device uses DT for obsolete compatible check

2019-05-07 Thread Suzuki K Poulose
As we prepare to add support for ACPI bindings, let us make sure we do the compatible check only if we are sure we are dealing with a DT based system. Cc: Leo Yan Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-funnel.c | 3 ++- drivers

[PATCH v3 20/30] coresight: Cleanup coresight_remove_conns

2019-05-07 Thread Suzuki K Poulose
of the function. Reviewed-by: 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 04b5d3c

[PATCH v3 26/30] coresight: Use platform agnostic names

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

[PATCH v3 17/30] coresight: Make device to CPU mapping generic

2019-05-07 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. Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-cpu-debug.c

[PATCH v3 14/30] coresight: platform: Make memory allocation helper generic

2019-05-07 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. Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-platform.c |

[PATCH v3 29/30] coresight: acpi: Support for AMBA components

2019-05-07 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 + 1 file changed, 9 insertion

[PATCH v3 25/30] coresight: Use fwnode handle instead of device names

2019-05-07 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 v3 24/30] coresight: platform: Use fwnode handle for device search

2019-05-07 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 --- Change since v2: - Drop the generic helper. It requires further clean up, and will be dealt

[TEST PATCH 31/30][EDK2] edk2-platform: juno: Update ACPI CoreSight Bindings

2019-05-07 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 v3 28/30] coresight: Support for ACPI bindings

2019-05-07 Thread Suzuki K Poulose
Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-platform.c | 464 +++ 1 file changed, 464 insertions(+) diff --git a/drivers/hwtracing/coresight/coresight-platform.c b/drivers/hwtracing/coresight/coresight-platform.c index 49112a5..6fef873 100644 ---

[PATCH v3 19/30] coresight: Remove name from platform description

2019-05-07 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. Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight

[PATCH v3 30/30] coresight: acpi: Support for platform devices

2019-05-07 Thread Suzuki K Poulose
Add support for platform devices which do not appear on the AMBA bus. Cc: "Rafael J. Wysocki" Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-replicator.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-)

[PATCH v3 27/30] coresight: stm: ACPI support for parsing stimulus base

2019-05-07 Thread Suzuki K Poulose
fael J. Wysocki" Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-stm.c | 53 - 1 file changed, 52 insertions(+), 1 deletion(-) diff --git a/drivers/hwtracing/coresight/coresight-stm.c b/drivers/hwtracing

[PATCH v3 18/30] coresight: Remove cpu field from platform data

2019-05-07 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. Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight

[PATCH v3 16/30] coresight: Introduce generic platform data helper

2019-05-07 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 --- Changes since v2: - Use

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