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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
-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
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
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
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
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
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
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
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
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
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
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
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
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
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
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-
"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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
--
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
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
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(-)
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
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
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
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
"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
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
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 |
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
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
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
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
"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
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
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
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
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
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
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
is now misleading ;-), but that doesn't matter.
For the entire series :
Acked-by: 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
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
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-
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
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
"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
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
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
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
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
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
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
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
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
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 |
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
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
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
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
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
---
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
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(-)
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
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
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
601 - 700 of 5007 matches
Mail list logo