[PATCH v3 7/8] rpmsg: Make rpmsg_{register|unregister}_device() public

2020-10-19 Thread Mathieu Poirier
Make function rpmsg_register_device() and rpmsg_unregister_device() functions public so that they can be used by other clients. While doing so get rid of two obsolete function, i.e register_rpmsg_device() and unregister_rpmsg_device(), to prevent confusion. Signed-off-by: Mathieu Poirier

[PATCH v3 4/8] rpmsg: virtio: Rename rpmsg_create_channel

2020-10-19 Thread Mathieu Poirier
From: Arnaud Pouliquen Rename the internal function as it is internal, and as the name will be used in rpmsg_core. Signed-off-by: Arnaud Pouliquen Signed-off-by: Mathieu Poirier Reviewed-by: Guennadi Liakhovetski --- drivers/rpmsg/virtio_rpmsg_bus.c | 6 +++--- 1 file changed, 3 insertions

[PATCH v3 2/8] rpmsg: virtio: Move from virtio to rpmsg byte conversion

2020-10-19 Thread Mathieu Poirier
Use rpmsg byte conversion functions in order for the RPMSG headers and generic functions to be used by external entities. Signed-off-by: Mathieu Poirier --- drivers/rpmsg/virtio_rpmsg_bus.c | 53 +--- 1 file changed, 28 insertions(+), 25 deletions(-) diff --git a

[PATCH v3 0/8] rpmsg: Make RPMSG name service modular

2020-10-19 Thread Mathieu Poirier
creation internal API rpmsg: virtio: Add rpmsg channel device ops rpmsg: Turn name service into a stand alone driver Mathieu Poirier (4): rpmsg: Introduce __rpmsg{16|32|64} types rpmsg: virtio: Move from virtio to rpmsg byte conversion rpmsg: Move structure rpmsg_ns_msg to header file

[PATCH v3 1/8] rpmsg: Introduce __rpmsg{16|32|64} types

2020-10-19 Thread Mathieu Poirier
Introduce __rpmsg{16|32|64} types along with byte order conversion functions based on an rpmsg_device operation as a foundation to make RPMSG modular and transport agnostic. Suggested-by: Guennadi Liakhovetski Signed-off-by: Mathieu Poirier --- include/linux/rpmsg.h| 51

[PATCH v3 3/8] rpmsg: Move structure rpmsg_ns_msg to header file

2020-10-19 Thread Mathieu Poirier
Move structure rpmsg_ns_msg to its own header file so that it can be used by other entities. Signed-off-by: Mathieu Poirier --- drivers/rpmsg/virtio_rpmsg_bus.c | 32 +--- include/linux/rpmsg_ns.h | 42 2 files changed, 43 insertions

Re: [PATCH V2 7/7] remoteproc: imx_proc: enable virtio/mailbox

2020-10-19 Thread Mathieu Poirier
On Sun, Sep 27, 2020 at 02:41:31PM +0800, Peng Fan wrote: > Use virtio/mailbox to build connection between Remote Proccessors > and Linux. Add delayed work to handle incoming messages. > > Reviewed-by: Richard Zhu > Signed-off-by: Peng Fan > --- > drivers/remoteproc/imx_rproc.c | 112 ++

Re: [PATCH V2 6/7] remoteproc: imx_rproc: support i.MX8MQ/M

2020-10-19 Thread Mathieu Poirier
IMX7D_M4_RST_MASK, > @@ -517,6 +555,8 @@ static int imx_rproc_remove(struct platform_device *pdev) > static const struct of_device_id imx_rproc_of_match[] = { > { .compatible = "fsl,imx7d-cm4", .data = &imx_rproc_cfg_imx7d }, > { .compatible = "

Re: [PATCH V2 5/7] remoteproc: imx_rproc: add i.MX specific parse fw hook

2020-10-19 Thread Mathieu Poirier
f (!index && !strcmp(it.node->name, "vdevbuffer")) { > + index ++; How many vdevs is there in your scenario? Since most of this code is taken from stm32 anyway I would suggest to use "vdev0buffer" and get rid of the "index ++". It

Re: [PATCH V2 4/7] remoteproc: imx_rproc: use devm_ioremap

2020-10-19 Thread Mathieu Poirier
On Sun, Sep 27, 2020 at 02:41:28PM +0800, Peng Fan wrote: > We might need to map an region multiple times, becaue the region might > be shared between remote processors, such i.MX8QM with dual M4 cores. > So use devm_ioremap, not devm_ioremap_resource. > > Reviewed-by: Oleksij Rempel > Reviewed-b

Re: [PATCH V2 1/7] remoteproc: elf: support platform specific memory hook

2020-10-19 Thread Mathieu Poirier
6 +392,8 @@ struct rproc_ops { > int (*load)(struct rproc *rproc, const struct firmware *fw); > int (*sanity_check)(struct rproc *rproc, const struct firmware *fw); > u64 (*get_boot_addr)(struct rproc *rproc, const struct firmware *fw); > + void (*elf_memcpy)(struct

Re: [PATCH] coresight: etm4x: Skip setting LPOVERRIDE bit for qcom,skip-power-up

2020-10-16 Thread Mathieu Poirier
On Fri, Oct 16, 2020 at 03:40:25PM +0530, Sai Prakash Ranjan wrote: > There is a bug on the systems supporting to skip power up > (qcom,skip-power-up) where setting LPOVERRIDE bit(low-power > state override behaviour) will result in CPU hangs/lockups > even on the implementations which supports it.

Re: [PATCH v2 4/9] rpmsg: Move rpmsg_hr and rpmsg_ns_msg to header file

2020-10-15 Thread Mathieu Poirier
On Thu, Oct 15, 2020 at 10:33:25AM +0200, Arnaud POULIQUEN wrote: > Hi Mathieu, > > On 10/14/20 1:25 AM, Mathieu Poirier wrote: > > Move structures rpmsg_hdr and rpmsg_ns_msg to their own header file > > so that they can be used by other entities. > > > &g

Re: [PATCH v2 3/9] rpmsg: virtio: Move from virtio to rpmsg byte conversion

2020-10-15 Thread Mathieu Poirier
On Wed, Oct 14, 2020 at 07:04:32PM +0200, Arnaud POULIQUEN wrote: > > > On 10/14/20 1:25 AM, Mathieu Poirier wrote: > > Use rpmsg byte conversion functions in order for the RPMSG > > headers and generic functions to be used by external entities. > > > &g

Re: [PATCH v2 2/9] rpmsg: Introduce __rpmsg{16|32|64} types

2020-10-15 Thread Mathieu Poirier
Good day, On Wed, Oct 14, 2020 at 06:31:49PM +0200, Arnaud POULIQUEN wrote: > Hi Mathieu, > > On 10/14/20 1:25 AM, Mathieu Poirier wrote: > > Introduce __rpmsg{16|32|64} types along with byte order conversion > > functions based on an rpmsg_device operation as a foundat

Re: [RFC PATCH 1/4] Add a RPMSG driver for the APU in the mt8183

2020-10-15 Thread Mathieu Poirier
On Wed, Oct 14, 2020 at 04:55:34PM -0600, Mathieu Poirier wrote: > Hi Alexandre, > > On Wed, Sep 30, 2020 at 01:53:47PM +0200, Alexandre Bailon wrote: > > This adds a driver to communicate with the APU available > > in the mt8183. The driver is generic and could be used

Re: [PATCH] coresight: etm4x: Add config to exclude kernel mode tracing

2020-10-15 Thread Mathieu Poirier
On Thu, Oct 15, 2020 at 06:15:22PM +0530, Sai Prakash Ranjan wrote: > On production systems with ETMs enabled, it is preferred to > exclude kernel mode(NS EL1) tracing for security concerns and > support only userspace(NS EL0) tracing. So provide an option > via kconfig to exclude kernel mode traci

Re: [RFC PATCH 1/4] Add a RPMSG driver for the APU in the mt8183

2020-10-14 Thread Mathieu Poirier
Hi Alexandre, On Wed, Sep 30, 2020 at 01:53:47PM +0200, Alexandre Bailon wrote: > This adds a driver to communicate with the APU available > in the mt8183. The driver is generic and could be used for other APU. > It mostly provides a userspace interface to send messages and > and share big buffers

Re: [PATCH v2 4/4] ARM: dts: stm32: update stm32mp151 for remote proc synchronization support

2020-10-14 Thread Mathieu Poirier
cfg-tz = <&rcc 0x000 0x1>; > st,syscfg-pdds = <&pwr_mcu 0x0 0x1>; > + st,syscfg-rsc-tbl = <&tamp 0x144 0x>; > + st,syscfg-m4-state = <&tamp 0x148 0x>; Tested-by: Mathieu Poirier > status = "disabled"; > }; > }; > -- > 2.17.1 >

[PATCH v2 1/9] rpmsg: Move rpmsg_endpoint_ops to rpmsg.h

2020-10-14 Thread Mathieu Poirier
Move structure rpmsg_endpoint_ops to header rpmsg.h so that it can be used by other entities. Signed-off-by: Mathieu Poirier --- drivers/rpmsg/rpmsg_internal.h | 19 --- include/linux/rpmsg.h | 24 +--- 2 files changed, 21 insertions(+), 22 deletions

[PATCH v2 0/9] rpmsg: Make RPMSG name service modular

2020-10-14 Thread Mathieu Poirier
ver Mathieu Poirier (5): rpmsg: Move rpmsg_endpoint_ops to rpmsg.h rpmsg: Introduce __rpmsg{16|32|64} types rpmsg: virtio: Move from virtio to rpmsg byte conversion rpmsg: Move rpmsg_hr and rpmsg_ns_msg to header file rpmsg: Make rpmsg_{register|unregister}_device() public drivers/rp

[PATCH v2 8/9] rpmsg: Make rpmsg_{register|unregister}_device() public

2020-10-14 Thread Mathieu Poirier
Make function rpmsg_register_device() and rpmsg_unregister_device() functions public so that they can be used by other clients. While doing so get rid of two obsolete function, i.e register_rpmsg_device() and unregister_rpmsg_device(), to prevent confusion. Signed-off-by: Mathieu Poirier

[PATCH v2 6/9] rpmsg: core: Add channel creation internal API

2020-10-14 Thread Mathieu Poirier
From: Arnaud Pouliquen Add the channel creation API as a first step to be able to define the name service announcement as a rpmsg driver independent from the RPMsg virtio bus. Signed-off-by: Arnaud Pouliquen Signed-off-by: Mathieu Poirier --- drivers/rpmsg/rpmsg_core.c | 44

[PATCH v2 9/9] rpmsg: Turn name service into a stand alone driver

2020-10-14 Thread Mathieu Poirier
From: Arnaud Pouliquen Make the RPMSG name service announcement a stand alone driver so that it can be reused by other subsystems. It is also the first step in making the functionatlity transport independent, i.e that is not tied to virtIO. Co-developed-by: Mathieu Poirier Signed-off-by

[PATCH v2 4/9] rpmsg: Move rpmsg_hr and rpmsg_ns_msg to header file

2020-10-14 Thread Mathieu Poirier
Move structures rpmsg_hdr and rpmsg_ns_msg to their own header file so that they can be used by other entities. Signed-off-by: Mathieu Poirier --- drivers/rpmsg/virtio_rpmsg_bus.c | 58 ++ include/linux/rpmsg_ns.h | 62

[PATCH v2 7/9] rpmsg: virtio: Add rpmsg channel device ops

2020-10-14 Thread Mathieu Poirier
From: Arnaud Pouliquen Implement the create and release of the RPMsg channel for the RPMsg virtio bus. Signed-off-by: Arnaud Pouliquen Signed-off-by: Mathieu Poirier --- drivers/rpmsg/virtio_rpmsg_bus.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/rpmsg

[PATCH v2 2/9] rpmsg: Introduce __rpmsg{16|32|64} types

2020-10-14 Thread Mathieu Poirier
Introduce __rpmsg{16|32|64} types along with byte order conversion functions based on an rpmsg_device operation as a foundation to make RPMSG modular and transport agnostic. Suggested-by: Guennadi Liakhovetski Signed-off-by: Mathieu Poirier --- include/linux/rpmsg.h| 51

[PATCH v2 3/9] rpmsg: virtio: Move from virtio to rpmsg byte conversion

2020-10-14 Thread Mathieu Poirier
Use rpmsg byte conversion functions in order for the RPMSG headers and generic functions to be used by external entities. Signed-off-by: Mathieu Poirier --- drivers/rpmsg/virtio_rpmsg_bus.c | 60 +++- 1 file changed, 35 insertions(+), 25 deletions(-) diff --git a

[PATCH v2 5/9] rpmsg: virtio: Rename rpmsg_create_channel

2020-10-14 Thread Mathieu Poirier
From: Arnaud Pouliquen Rename the internal function as it is internal, and as the name will be used in rpmsg_core. Signed-off-by: Arnaud Pouliquen Signed-off-by: Mathieu Poirier --- drivers/rpmsg/virtio_rpmsg_bus.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a

Re: [PATCH V2 0/7] remoteproc: imx_rproc: support iMX8MQ/M

2020-10-08 Thread Mathieu Poirier
On Wed, 7 Oct 2020 at 18:52, Peng Fan wrote: > > Mathieu, Oleksij > > > Subject: [PATCH V2 0/7] remoteproc: imx_rproc: support iMX8MQ/M > > Do you have time to give a look at this patchset? I will review your patchset after you have reviewed mine[1]. [1]. https://patchwork.kernel.org/project/lin

Re: [PATCH 10/10] rpmsg: ns: Make Name service module transport agnostic

2020-10-07 Thread Mathieu Poirier
On Wed, Sep 30, 2020 at 09:13:27AM +0200, Guennadi Liakhovetski wrote: > On Mon, Sep 21, 2020 at 06:10:00PM -0600, Mathieu Poirier wrote: > > Make name service module transport agnostic by using the rpmsg > > device specific byte conversion routine. > > > > Sig

Re: [PATCH 05/10] rpmsg: virtio: Move virtio RPMSG structures to private header

2020-10-07 Thread Mathieu Poirier
Hi Guennadi, Apologies for the late reply, I've been away. On Wed, Sep 30, 2020 at 09:03:45AM +0200, Guennadi Liakhovetski wrote: > On Mon, Sep 21, 2020 at 06:09:55PM -0600, Mathieu Poirier wrote: > > Move structure virtiproc_info and virtio_rpmsg_channel to rpmsg_internal.h > &

Re: [PATCH 1/4] dt-bindings: Add missing 'unevaluatedProperties'

2020-10-06 Thread Mathieu Poirier
es' or 'additionalProperties'. This has been a > constant source of review issues. > > Signed-off-by: Rob Herring > --- > Documentation/devicetree/bindings/arm/coresight-cti.yaml | 2 ++ For CoreSight: Acked-by: Mathieu Poirier > Documentation/devicetree/bind

Re: [PATCH v2 3/4] remoteproc: mtk_vpu_rproc: Add support of JTAG

2020-09-29 Thread Mathieu Poirier
On Thu, Sep 10, 2020 at 03:01:47PM +0200, Alexandre Bailon wrote: > The DSP could be debugged using JTAG. > The support of JTAG could enabled at build time and it could be enabled > using debugfs. > > Signed-off-by: Alexandre Bailon > --- > drivers/remoteproc/Kconfig | 9 +++ > drivers/remot

Re: [PATCH v2 2/4] remoteproc: Add a remoteproc driver for the MT8183's APU

2020-09-29 Thread Mathieu Poirier
Hi Alexandre, On Thu, Sep 10, 2020 at 03:01:46PM +0200, Alexandre Bailon wrote: > This adds a driver to control the APU present in the MT8183. > This loads the firmware and start the DSP. > > Signed-off-by: Alexandre Bailon > --- > drivers/remoteproc/Kconfig | 10 ++ > drivers/remoteproc/Mak

Re: [PATCH v2 1/4] dt bindings: remoteproc: Add bindings for MT8183 APU

2020-09-29 Thread Mathieu Poirier
On Thu, Sep 10, 2020 at 03:01:45PM +0200, Alexandre Bailon wrote: > This adds dt bindings for the APU present in the MT8183. > > Signed-off-by: Alexandre Bailon > --- > .../bindings/remoteproc/mtk,apu.yaml | 107 ++ > 1 file changed, 107 insertions(+) > create mode 1006

Re: [PATCH 00/10] rpmsg: Make RPMSG name service modular

2020-09-28 Thread Mathieu Poirier
Hey Guennadi, On Mon, Sep 28, 2020 at 11:49:42AM +0200, Guennadi Liakhovetski wrote: > (re-sending, mailing list delivery attempts last Friday failed) > I got your email on Friday but had to tend to other things. > Hi Mathieu, > > On Thu, Sep 24, 2020 at 12:18:53PM -0600,

[PATCH 12/25] coresight: tpiu: Allow tpiu to be built as a module

2020-09-28 Thread Mathieu Poirier
From: Kim Phillips Allow to build coresight-tpiu as a module, for ease of development. - Kconfig becomes a tristate, to allow =m - add a tpiu_remove function, for module unload - add a MODULE_DEVICE_TABLE for autoloading on boot Cc: Mathieu Poirier Cc: Leo Yan Cc: Alexander Shishkin Cc

[PATCH 14/25] coresight: funnel: Allow funnel driver to be built as module

2020-09-28 Thread Mathieu Poirier
From: Kim Phillips Allow to build coresight-funnel as module, for ease of development. - combine static and dynamic funnel init into single module_init/exit call - add funnel_remove functions, for module unload - add a MODULE_DEVICE_TABLE for autoloading on boot Cc: Mathieu Poirier Cc: Leo

[PATCH 13/25] coresight: tmc: Allow tmc to be built as a module

2020-09-28 Thread Mathieu Poirier
MODULE_DEVICE_TABLE for autoloading on boot Cc: Mathieu Poirier Cc: Leo Yan Cc: Alexander Shishkin Cc: Randy Dunlap Cc: Suzuki K Poulose Cc: Greg Kroah-Hartman Cc: Russell King Signed-off-by: Kim Phillips Signed-off-by: Tingwei Zhang Tested-by: Mike Leach Reviewed-by: Suzuki K Poulose Signed-off-by

[PATCH 15/25] coresight: replicator: Allow replicator driver to be built as module

2020-09-28 Thread Mathieu Poirier
for autoloading on boot Cc: Mathieu Poirier Cc: Leo Yan Cc: Alexander Shishkin Cc: Randy Dunlap Cc: Suzuki K Poulose Cc: Greg Kroah-Hartman Cc: Russell King Signed-off-by: Kim Phillips Co-developed-by: Mian Yousaf Kaukab Signed-off-by: Mian Yousaf Kaukab Signed-off-by: Tingwei Zhang

[PATCH 06/25] coresight: Add try_get_module() in coresight_grab_device()

2020-09-28 Thread Mathieu Poirier
. Suggested-by: Suzuki K Poulose Signed-off-by: Tingwei Zhang Tested-by: Mike Leach Reviewed-by: Suzuki K Poulose Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight.c | 60 ++--- 1 file changed, 53 insertions(+), 7 deletions(-) diff --git a/drivers/hwtracing

[PATCH 23/25] coresight: catu: Allow catu drivers to be built as modules

2020-09-28 Thread Mathieu Poirier
: Suzuki K Poulose Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/Kconfig | 5 - drivers/hwtracing/coresight/coresight-catu.c | 15 +++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/drivers/hwtracing/coresight/Kconfig b/drivers/hwtracing

[PATCH 25/25] coresight: etm4x: Fix save and restore of TRCVMIDCCTLR1 register

2020-09-28 Thread Mathieu Poirier
ash Ranjan Reviewed-by: Suzuki K Poulose Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-etm4x-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight-etm4x-core.c b/drivers/hwtracing/coresight/coresigh

[PATCH 22/25] coresight: tmc-etr: Add function to register catu ops

2020-09-28 Thread Mathieu Poirier
Reviewed-by: Suzuki K Poulose Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-catu.c | 22 +-- drivers/hwtracing/coresight/coresight-catu.h | 2 -- .../hwtracing/coresight/coresight-tmc-etr.c | 15 +++-- drivers/hwtracing/coresight/coresight

[PATCH 17/25] coresight: cti: Fix remove sysfs link error

2020-09-28 Thread Mathieu Poirier
. This patch corrects the link removal code. Fixes: 73274abb6557 ("coresight: cti: Add in sysfs links to other coresight devices") Reported-by: Tingwei Zhang Signed-off-by: Mike Leach Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-cti.c | 9 ++--- 1 fi

[PATCH 16/25] coresight: cti: Add function to register cti associate ops

2020-09-28 Thread Mathieu Poirier
From: Tingwei Zhang Add static cti_assoc_ops to coresight core driver. Let cti driver register the add_assoc and remove_assoc call back. Avoid coresight core driver to depend on cti driver. Signed-off-by: Tingwei Zhang Tested-by: Mike Leach Signed-off-by: Mathieu Poirier --- drivers

[PATCH 04/25] coresight: Add coresight prefix to barrier_pkt

2020-09-28 Thread Mathieu Poirier
From: Tingwei Zhang Add coresight prefix to make it specific. It will be a export symbol. Signed-off-by: Mian Yousaf Kaukab Signed-off-by: Tingwei Zhang Reviewed-by: Suzuki K Poulose Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-etb10.c | 2 +- drivers

[PATCH 08/25] coresight: etm: perf: Fix warning caused by etm_setup_aux failure

2020-09-28 Thread Mathieu Poirier
xes: f5200aa9831f38 ("coresight: perf: Refactor function free_event_data()") Signed-off-by: Tingwei Zhang Reviewed-by: Mike Leach Reviewed-by: Suzuki K Poulose Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-etm-perf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 delet

[PATCH 21/25] coresight: cti: Allow cti to be built as a module

2020-09-28 Thread Mathieu Poirier
MODULE_DEVICE_TABLE for autoloading on boot - move cti_remove_conn_xrefs to cti_remove since all sysfs links have gone when system calls device_release. Signed-off-by: Tingwei Zhang Tested-by: Mike Leach Reviewed-by Mike Leach Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/Kconfig

[PATCH 20/25] coresight: cti: Increase reference count when enabling cti

2020-09-28 Thread Mathieu Poirier
d-off-by: Mike Leach Signed-off-by: Tingwei Zhang Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight.c | 17 ++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight.c b/drivers/hwtracing/coresight/coresight.c

[PATCH 18/25] coresight: cti: Fix bug clearing sysfs links on callback

2020-09-28 Thread Mathieu Poirier
called too late in the unload process resulting in a crash. This fixes both the issues. Fixes: 177af8285b59 ("coresight: cti: Enable CTI associated with devices") Reported-by: Tingwei Zhang Signed-off-by: Mike Leach Signed-off-by: Tingwei Zhang Acked-by: Suzuki K Poulose Signed-off-b

[PATCH 24/25] coresight: core: Allow the coresight core driver to be built as a module

2020-09-28 Thread Mathieu Poirier
ister/unregister function calls to the core init/exit functions. - add a MODULE_DEVICE_TABLE for autoloading on boot Cc: Mathieu Poirier Cc: Leo Yan Cc: Alexander Shishkin Cc: Randy Dunlap Cc: Suzuki K Poulose Cc: Greg Kroah-Hartman Cc: Russell King Signed-off-by: Kim Phillips Signed-o

[PATCH 19/25] coresight: cti: Don't disable ect device if it's not enabled

2020-09-28 Thread Mathieu Poirier
established after coresight device is enabled. Signed-off-by: Mike Leach Signed-off-by: Tingwei Zhang Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight.c | 11 --- include/linux/coresight.h | 1 + 2 files changed, 9 insertions(+), 3 deletions

[PATCH 11/25] coresight: etb: Allow etb to be built as a module

2020-09-28 Thread Mathieu Poirier
From: Kim Phillips Allow to build coresight-etb10 as a module, for ease of development. - Kconfig becomes a tristate, to allow =m - add an etb_remove function, for module unload - add a MODULE_DEVICE_TABLE for autoloading on boot Cc: Mathieu Poirier Cc: Leo Yan Cc: Alexander Shishkin Cc

[PATCH 07/25] coresight: stm: Allow to build coresight-stm as a module

2020-09-28 Thread Mathieu Poirier
From: Tingwei Zhang - Kconfig becomes a tristate, to allow =m - add a stm_remove function, for module unload - add a MODULE_DEVICE_TABLE for autoloading on boot Cc: Mathieu Poirier Cc: Leo Yan Cc: Alexander Shishkin Cc: Randy Dunlap Cc: Suzuki K Poulose Cc: Greg Kroah-Hartman Cc: Russell

[PATCH 03/25] coresight: Use IS_ENABLED for CONFIGs that may be modules

2020-09-28 Thread Mathieu Poirier
From: Kim Phillips Checking for ifdef CONFIG_x fails if CONFIG_x=m. Use IS_ENABLED that is true for both built-ins and modules, instead. Required when building coresight components as modules. Cc: Mathieu Poirier Cc: Leo Yan Cc: Alexander Shishkin Cc: Randy Dunlap Cc: Suzuki K Poulose Cc

[PATCH 09/25] coresight: etm3x: Allow etm3x to be built as a module

2020-09-28 Thread Mathieu Poirier
MODULE_DEVICE_TABLE for autoloading on boot - delay advertising the per-cpu etmdrvdata - protect etmdrvdata[] by modifying it on relevant CPU Cc: Mathieu Poirier Cc: Leo Yan Cc: Alexander Shishkin Cc: Randy Dunlap Cc: Suzuki K Poulose Cc: Greg Kroah-Hartman Cc: Russell King Signed-off-by: Kim Phillips

[PATCH 10/25] coresight: etm4x: Allow etm4x to be built as a module

2020-09-28 Thread Mathieu Poirier
MODULE_DEVICE_TABLE for autoloading on boot - delay advertising the per-cpu etmdrvdata - protect etmdrvdata[] by modifying it on relevant CPU Cc: Mathieu Poirier Cc: Leo Yan Cc: Alexander Shishkin Cc: Randy Dunlap Cc: Suzuki K Poulose Cc: Greg Kroah-Hartman Cc: Russell King Signed-off-by: Kim Phillips

[PATCH 02/25] coresight: cpu_debug: Define MODULE_DEVICE_TABLE

2020-09-28 Thread Mathieu Poirier
From: Tingwei Zhang Define a MODULE_DEVICE_TABLE for cpu_debug so module can be auto loaded on boot. Signed-off-by: Tingwei Zhang Reviewed-by: Suzuki K Poulose Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-cpu-debug.c | 2 ++ 1 file changed, 2 insertions(+) diff

[PATCH 05/25] coresight: Export global symbols

2020-09-28 Thread Mathieu Poirier
From: Mian Yousaf Kaukab Export symbols used among coresight modules. Signed-off-by: Mian Yousaf Kaukab Signed-off-by: Tingwei Zhang Tested-by: Mike Leach Reviewed-by: Suzuki K Poulose Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-etm-perf.c | 1 + drivers

[PATCH 01/25] coresight: cpu_debug: Add module name in Kconfig

2020-09-28 Thread Mathieu Poirier
From: Tingwei Zhang Provide name of cpu_debug module in Kconfig help section. Signed-off-by: Tingwei Zhang Tested-by: Mike Leach Reviewed-by: Suzuki K Poulose Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a

[PATCH 00/25] coresight: Next v5.9-rc7

2020-09-28 Thread Mathieu Poirier
Good day, This is the second part we were hoping for, i.e CoreSight modularisation, and a fix for a copy/paste error in the context save/restore process. Please consider for the next merge window. Applies on top of your "char-misc-next" branch. Thanks, Mathieu Kim Phillips (8): coresight: Use

Re: [PATCHv2 2/2] coresight: etm4x: Fix save and restore of TRCVMIDCCTLR1 register

2020-09-28 Thread Mathieu Poirier
On Mon, Sep 28, 2020 at 05:07:09PM +0530, Sai Prakash Ranjan wrote: > In commit f188b5e76aae ("coresight: etm4x: Save/restore state > across CPU low power states"), mistakenly TRCVMIDCCTLR1 register > value was saved in trcvmidcctlr0 state variable which is used to > store TRCVMIDCCTLR0 register va

Re: [PATCH 00/10] rpmsg: Make RPMSG name service modular

2020-09-24 Thread Mathieu Poirier
st and not directly to me > or something similar has happened. > Ok > On Tue, Sep 22, 2020 at 01:12:41PM -0600, Mathieu Poirier wrote: > > Good day Guennadi, > > > > On Tue, 22 Sep 2020 at 02:09, Guennadi Liakhovetski > > wrote: > > > > > >

Re: [PATCH v2 0/4] Add support of mt8183 APU

2020-09-23 Thread Mathieu Poirier
Hi Alexander, Things have been quite busy over the last 3 weeks, preventing me from giving your work the attention it deserves. It is on my radar and will get to it in the next two weeks. Thanks, Mathieu On Thu, Sep 10, 2020 at 03:01:44PM +0200, Alexandre Bailon wrote: > Some Mediatek's SoC ha

Re: [PATCH v11 09/24] coresight: etm3x: allow etm3x to be built as a module

2020-09-22 Thread Mathieu Poirier
On Tue, Sep 15, 2020 at 12:09:18PM -0600, Mathieu Poirier wrote: > On Tue, Sep 15, 2020 at 06:41:01PM +0800, Tingwei Zhang wrote: > > From: Kim Phillips > > > > Allow to build coresight-etm3x as a module, for ease of development. > > > > - Kconfig becomes a t

Re: [PATCH 08/10] rpmsg: core: Add RPMSG byte conversion operations

2020-09-22 Thread Mathieu Poirier
On Tue, Sep 22, 2020 at 04:34:53PM +0200, Arnaud POULIQUEN wrote: > > > On 9/22/20 2:09 AM, Mathieu Poirier wrote: > > Add RPMSG device specific byte conversion operations as a first > > step to separate the RPMSG name space service from the virtIO > > transport la

Re: [PATCH 04/10] rpmsg: Move common structures and defines to headers

2020-09-22 Thread Mathieu Poirier
On Tue, Sep 22, 2020 at 04:26:23PM +0200, Arnaud POULIQUEN wrote: > Hi Mathieu, > > On 9/22/20 2:09 AM, Mathieu Poirier wrote: > > From: Guennadi Liakhovetski > > > > virtio_rpmsg_bus.c keeps RPMsg protocol structure declarations and > > common defines lik

Re: [PATCH 01/10] rpmsg: virtio: rename rpmsg_create_channel

2020-09-22 Thread Mathieu Poirier
On Tue, Sep 22, 2020 at 09:06:03AM +0200, Guennadi Liakhovetski wrote: > On Mon, Sep 21, 2020 at 06:09:51PM -0600, Mathieu Poirier wrote: > > From: Arnaud Pouliquen > > > > Rename the internal function as it is internal, and as > > the name will be used in rpmsg_c

Re: [PATCH 00/10] rpmsg: Make RPMSG name service modular

2020-09-22 Thread Mathieu Poirier
ran the rpmsg_client_sample.c and it just worked, no changes to client code needed. Let's keep talking, it's the only way we'll get through this. Mathieu > > Thanks > Guennadi > > On Mon, Sep 21, 2020 at 06:09:50PM -0600, Mathieu Poirier wrote: > > Hi all,

[PATCH 01/10] rpmsg: virtio: rename rpmsg_create_channel

2020-09-21 Thread Mathieu Poirier
From: Arnaud Pouliquen Rename the internal function as it is internal, and as the name will be used in rpmsg_core. Signed-off-by: Arnaud Pouliquen --- drivers/rpmsg/virtio_rpmsg_bus.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/rpmsg/virtio_rpmsg_bus.c b/

[PATCH 00/10] rpmsg: Make RPMSG name service modular

2020-09-21 Thread Mathieu Poirier
dd channel creation internal API rpmsg: virtio: Add rpmsg channel device ops rpmsg: Turn name service into a stand alone driver rpmsg: virtio: use rpmsg ns device for the ns announcement Guennadi Liakhovetski (1): rpmsg: Move common structures and defines to headers Mathieu Poirier (4

[PATCH 05/10] rpmsg: virtio: Move virtio RPMSG structures to private header

2020-09-21 Thread Mathieu Poirier
Move structure virtiproc_info and virtio_rpmsg_channel to rpmsg_internal.h so that they can be used by rpmsg_ns.c Signed-off-by: Mathieu Poirier --- drivers/rpmsg/rpmsg_internal.h | 62 drivers/rpmsg/virtio_rpmsg_bus.c | 57 - 2

[PATCH 03/10] rpmsg: virtio: Add rpmsg channel device ops

2020-09-21 Thread Mathieu Poirier
From: Arnaud Pouliquen Implement the create and release of the RPMsg channel for the RPMsg virtio bus. Signed-off-by: Arnaud Pouliquen [Moved function declaration above struct virtio_rpmsg_ops] Signed-off-by: Mathieu Poirier --- drivers/rpmsg/virtio_rpmsg_bus.c | 24

[PATCH 04/10] rpmsg: Move common structures and defines to headers

2020-09-21 Thread Mathieu Poirier
/rpmsg_virtio.h to linux/rpmsg_ns.h] Signed-off-by: Mathieu Poirier --- drivers/rpmsg/virtio_rpmsg_bus.c | 78 +- include/linux/rpmsg_ns.h | 83 include/uapi/linux/rpmsg.h | 3 ++ 3 files changed, 88 insertions(+), 76 deletions

[PATCH 07/10] rpmsg: virtio: use rpmsg ns device for the ns announcement

2020-09-21 Thread Mathieu Poirier
From: Arnaud Pouliquen As generic NS driver is available, rely on it for NS management instead of managing it in RPMsg virtio bus. Signed-off-by: Arnaud Pouliquen --- drivers/rpmsg/Kconfig| 1 + drivers/rpmsg/rpmsg_internal.h | 2 - drivers/rpmsg/virtio_rpmsg_bus.c | 84 +++

[PATCH 02/10] rpmsg: core: Add channel creation internal API

2020-09-21 Thread Mathieu Poirier
From: Arnaud Pouliquen Add the channel creation API as a first step to be able to define the name service announcement as a rpmsg driver independent from the RPMsg virtio bus. Signed-off-by: Arnaud Pouliquen --- drivers/rpmsg/rpmsg_core.c | 45 ++ drivers/rp

[PATCH 08/10] rpmsg: core: Add RPMSG byte conversion operations

2020-09-21 Thread Mathieu Poirier
Add RPMSG device specific byte conversion operations as a first step to separate the RPMSG name space service from the virtIO transport layer. Signed-off-by: Mathieu Poirier --- drivers/rpmsg/rpmsg_core.c | 51 ++ drivers/rpmsg/rpmsg_internal.h | 12

[PATCH 06/10] rpmsg: Turn name service into a stand alone driver

2020-09-21 Thread Mathieu Poirier
: Mathieu Poirier --- drivers/rpmsg/Kconfig | 8 +++ drivers/rpmsg/Makefile | 1 + drivers/rpmsg/rpmsg_internal.h | 18 ++ drivers/rpmsg/rpmsg_ns.c | 110 + 4 files changed, 137 insertions(+) create mode 100644 drivers/rpmsg/rpmsg_ns.c

[PATCH 09/10] rpmsg: virtio: Make endianness conversion virtIO specific

2020-09-21 Thread Mathieu Poirier
Introduce rpmsg operations to make byte conversion specific to the virtIO transport layer, therefore avoiding the protocol code from being aware of the virtIO transport specification. Signed-off-by: Mathieu Poirier --- drivers/rpmsg/virtio_rpmsg_bus.c | 36 1

[PATCH 10/10] rpmsg: ns: Make Name service module transport agnostic

2020-09-21 Thread Mathieu Poirier
Make name service module transport agnostic by using the rpmsg device specific byte conversion routine. Signed-off-by: Mathieu Poirier --- drivers/rpmsg/rpmsg_ns.c | 10 -- include/linux/rpmsg_ns.h | 4 ++-- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/rpmsg

Re: [PATCH v2 5/8] rpmsg: introduce reserved rpmsg driver for ns announcement

2020-09-18 Thread Mathieu Poirier
Hey Arnaud, On Tue, Aug 25, 2020 at 06:49:04PM +0200, Arnaud Pouliquen wrote: > The name service announcement should not be linked to the RPMsg virtio bus > but to the RPMsg protocol itself. > > This patch proposes to break the dependency with the RPmsg virtio bus by > the introduction of the res

Re: [PATCH 00/16] coresight: next v5.9-rc5

2020-09-17 Thread Mathieu Poirier
On Thu, 17 Sep 2020 at 03:08, Greg KH wrote: > > On Wed, Sep 16, 2020 at 01:17:21PM -0600, Mathieu Poirier wrote: > > Good morning Greg, > > > > Here are the CS patches I'd like to see included in the v5.10 merge window. > > There might be a part two but I'

Re: [PATCH 6/6] dma-mapping: introduce DMA range map, supplanting dma_pfn_offset

2020-09-16 Thread Mathieu Poirier
"of_dma_get_range: wrong phys addr %pap (expecting > %llx) on node %pOF\n", > + &paddr, expect_paddr, np); > unittest(dma_addr == expect_dma_addr, > - "of_dma_get_range wrong DMA addr (%llx) on node %pOF",

[PATCH 00/16] coresight: next v5.9-rc5

2020-09-16 Thread Mathieu Poirier
evr access coresight: etm4x: Fix mis-usage of nr_resource in sysfs interface Linu Cherian (2): coresight: etm: perf: Sink selection using sysfs is deprecated coresight: Make sysfs functional on topologies with per core sink Mathieu Poirier (1): MAINTAINERS: Add CoreSight mailing list M

[PATCH 04/16] coresight: etm4x: Add Support for HiSilicon ETM device

2020-09-16 Thread Mathieu Poirier
From: Qi Liu Add ETMv4 periperhal ID for HiSilicon Hip08 and Hip09 platform. Hip08 contains ETMv4.2 device and Hip09 contains ETMv4.5 device. Signed-off-by: Qi Liu Acked-by: Suzuki K Poulose Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-etm4x.c | 2 ++ 1 file

[PATCH 02/16] coresight: stm: Support marked packet

2020-09-16 Thread Mathieu Poirier
From: Tingwei Zhang STP_PACKET_MARKED is not supported by STM currently. Add STM_FLAG_MARKED to support marked packet in STM. Signed-off-by: Tingwei Zhang Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-stm.c | 11 +++ include/uapi/linux/coresight-stm.h

[PATCH 01/16] coresight: etm4x: Fix etm4_count race by moving cpuhp callbacks to init

2020-09-16 Thread Mathieu Poirier
tm4x: Convert to hotplug state machine") Suggested-by: Suzuki K Poulose Signed-off-by: Sai Prakash Ranjan Reviewed-by: Stephen Boyd Tested-by: Stephen Boyd Reviewed-by: Suzuki K Poulose Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-etm4x.c | 65 +--

[PATCH 03/16] coresight: fix offset by one error in counting ports

2020-09-16 Thread Mathieu Poirier
: d375b356e687 ("coresight: Fix support for sparsely populated ports") Reported-by: Ruediger Oertel Signed-off-by: Mian Yousaf Kaukab Reviewed-by: Suzuki K Poulose Tested-by: Jeremy Linton Reviewed-by: Jeremy Linton Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight

[PATCH 13/16] coresight: etm: perf: Sink selection using sysfs is deprecated

2020-09-16 Thread Mathieu Poirier
From: Linu Cherian When using the perf interface, sink selection using sysfs is deprecated. Signed-off-by: Linu Cherian Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-etm-perf.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/hwtracing/coresight

[PATCH 12/16] MAINTAINERS: Add CoreSight mailing list

2020-09-16 Thread Mathieu Poirier
Add CoreSight mailing list so that people can participate in patch reviews and know what features are coming next. Signed-off-by: Mathieu Poirier --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 286fd7263982..54cb47e8a0b2 100644 --- a

[PATCH 07/16] coresight: etm4x: Ensure default perf settings filter user/kernel

2020-09-16 Thread Mathieu Poirier
ault filter and initialisation") Reported-by: Leo Yan Signed-off-by: Mike Leach Reviewed-by: Leo Yan Tested-by: Leo Yan Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-etm4x.c | 32 +-- drivers/hwtracing/coresight/coresight-etm4x.h | 3 ++ 2 files changed,

[PATCH 10/16] coresight: etm4x: Handle unreachable sink in perf mode

2020-09-16 Thread Mathieu Poirier
e should at least honor the user's choice and handle the limitations gracefully, by simply skipping the tracing on ETMs which can't reach the requested sink. Cc: Mathieu Poirier Cc: Mike Leach Fixes: f9d81a657bb8 ("coresight: perf: Allow tracing on hotplugged CPUs") Reported

[PATCH 16/16] coresight: etm4x: Fix number of resources check for ETM 4.3 and above

2020-09-16 Thread Mathieu Poirier
.' in patch title, added stable] Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-etm4x.c | 8 +++- drivers/hwtracing/coresight/coresight-etm4x.h | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/hwtracing/coresight/coresight-etm4x.c

[PATCH 11/16] coresight: etm4x: Fix issues on trcseqevr access

2020-09-16 Thread Mathieu Poirier
From: Jonathan Zhou The TRCSEQEVR(3) is reserved, using '@nrseqstate - 1' instead to avoid accessing the reserved register. Cc: Mathieu Poirier Cc: Suzuki K Poulose Cc: Mike Leach Cc: Shaokun Zhang Cc: lizix...@hisilicon.com Fixes: f188b5e76aae ("coresight: etm4x: Save/resto

[PATCH 15/16] coresight: etm4x: Fix mis-usage of nr_resource in sysfs interface

2020-09-16 Thread Mathieu Poirier
From: Jonathan Zhou The member @nr_resource represents how many resource selector pairs, and the pair 0 is always implemented and reserved. So let's multiply by 2 when resetting the selector configuration. And also update the validation of the input @idx. Cc: Mathieu Poirier Cc: Suz

[PATCH 05/16] coresight: cti: disclaim device only when it's claimed

2020-09-16 Thread Mathieu Poirier
] ret_from_fork+0x10/0x18 Fixes: e9b880581d55 ("coresight: cti: Add CPU Hotplug handling to CTI driver") Signed-off-by: Tingwei Zhang Reviewed-by: Mike Leach Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-cti.c | 3 ++- 1 file changed, 2 insertions(+),

[PATCH 08/16] coresight: etm4x: Fix issues within reset interface of sysfs

2020-09-16 Thread Mathieu Poirier
From: Jonathan Zhou The member @nr_addr_cmp is not a bool value, using operator '>' instead to avoid unexpected failure. Cc: Mathieu Poirier Cc: Suzuki K Poulose Cc: Mike Leach Cc: Shaokun Zhang Cc: lizix...@hisilicon.com Fixes: a77de2637c9e ("coresight: etm4x: moving

[PATCH 09/16] coresight: cti: Write regsiters directly in cti_enable_hw()

2020-09-16 Thread Mathieu Poirier
i_enable_hw(). Config->hw_powered has been checked to be true with spinlock holded. CTI is powered and can be programmed until spinlock is released. Fixes: 6a0953ce7de9 ("coresight: cti: Add CPU idle pm notifer to CTI devices") Signed-off-by: Tingwei Zhang [Re-ordered variable declaration

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