* [PATCH 0/2] Add new IPCC mailbox to support the coprocessor detach on some stm32mp15x boards
@ 2021-06-14 16:49 Arnaud Pouliquen
2021-06-14 16:49 ` [PATCH 1/2] ARM: dts: stm32: Add coprocessor detach mbox on stm32mp157c-ed1 board Arnaud Pouliquen
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Arnaud Pouliquen @ 2021-06-14 16:49 UTC (permalink / raw)
To: Rob Herring, Alexandre Torgue, Maxime Coquelin
Cc: devicetree, linux-stm32, linux-arm-kernel, linux-remoteproc,
linux-kernel, Arnaud Pouliquen
Purpose:
Add the IPCC channel 4 as "detach" mailbox to support the remoteproc the feature added in [1].
The enable of this feature is a design choice. As consequence, the new mbox is declared
only for stm32mp157c-ed1 & stm32mp15x-dkx boards maintained by ST Microelectronics.
Aim:
Allow to send to the remote processor a HW signal on IPCC channel 4 when user space requests
to detach the main processor from the remote processor (e.g. a reboot of the Linux processor
on a crash).
[1] https://patchwork.ozlabs.org/project/devicetree-bindings/cover/20210331073347.8293-1-arnaud.pouliquen@foss.st.com/
Arnaud Pouliquen (2):
ARM: dts: stm32: Add coprocessor detach mbox on stm32mp157c-ed1 board
ARM: dts: stm32: Add coprocessor detach mbox on stm32mp15x-dkx boards
arch/arm/boot/dts/stm32mp157c-ed1.dts | 4 ++--
arch/arm/boot/dts/stm32mp15xx-dkx.dtsi | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
--
2.17.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] ARM: dts: stm32: Add coprocessor detach mbox on stm32mp157c-ed1 board
2021-06-14 16:49 [PATCH 0/2] Add new IPCC mailbox to support the coprocessor detach on some stm32mp15x boards Arnaud Pouliquen
@ 2021-06-14 16:49 ` Arnaud Pouliquen
2021-06-14 16:49 ` [PATCH 2/2] ARM: dts: stm32: Add coprocessor detach mbox on stm32mp15x-dkx boards Arnaud Pouliquen
2021-07-15 15:16 ` [PATCH 0/2] Add new IPCC mailbox to support the coprocessor detach on some stm32mp15x boards Alexandre TORGUE
2 siblings, 0 replies; 4+ messages in thread
From: Arnaud Pouliquen @ 2021-06-14 16:49 UTC (permalink / raw)
To: Rob Herring, Alexandre Torgue, Maxime Coquelin
Cc: devicetree, linux-stm32, linux-arm-kernel, linux-remoteproc,
linux-kernel, Arnaud Pouliquen
To support the detach feature, add a new mailbox channel to inform
the remote processor on a detach. This signal allows the remote processor
firmware to stop IPC communication and to reinitialize the resources for
a re-attach.
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
---
arch/arm/boot/dts/stm32mp157c-ed1.dts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boot/dts/stm32mp157c-ed1.dts b/arch/arm/boot/dts/stm32mp157c-ed1.dts
index 95b08876b2b3..46b471d09c50 100644
--- a/arch/arm/boot/dts/stm32mp157c-ed1.dts
+++ b/arch/arm/boot/dts/stm32mp157c-ed1.dts
@@ -313,8 +313,8 @@
&m4_rproc {
memory-region = <&retram>, <&mcuram>, <&mcuram2>, <&vdev0vring0>,
<&vdev0vring1>, <&vdev0buffer>;
- mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>;
- mbox-names = "vq0", "vq1", "shutdown";
+ mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>, <&ipcc 3>;
+ mbox-names = "vq0", "vq1", "shutdown", "detach";
interrupt-parent = <&exti>;
interrupts = <68 1>;
status = "okay";
--
2.17.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] ARM: dts: stm32: Add coprocessor detach mbox on stm32mp15x-dkx boards
2021-06-14 16:49 [PATCH 0/2] Add new IPCC mailbox to support the coprocessor detach on some stm32mp15x boards Arnaud Pouliquen
2021-06-14 16:49 ` [PATCH 1/2] ARM: dts: stm32: Add coprocessor detach mbox on stm32mp157c-ed1 board Arnaud Pouliquen
@ 2021-06-14 16:49 ` Arnaud Pouliquen
2021-07-15 15:16 ` [PATCH 0/2] Add new IPCC mailbox to support the coprocessor detach on some stm32mp15x boards Alexandre TORGUE
2 siblings, 0 replies; 4+ messages in thread
From: Arnaud Pouliquen @ 2021-06-14 16:49 UTC (permalink / raw)
To: Rob Herring, Alexandre Torgue, Maxime Coquelin
Cc: devicetree, linux-stm32, linux-arm-kernel, linux-remoteproc,
linux-kernel, Arnaud Pouliquen
To support the detach feature, add a new mailbox channel to inform
the remote processor on a detach. This signal allows the remote processor
firmware to stop IPC communication and to reinitialize the resources for
a re-attach.
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
---
arch/arm/boot/dts/stm32mp15xx-dkx.dtsi | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boot/dts/stm32mp15xx-dkx.dtsi b/arch/arm/boot/dts/stm32mp15xx-dkx.dtsi
index 59f18846cf5d..06c11bad882a 100644
--- a/arch/arm/boot/dts/stm32mp15xx-dkx.dtsi
+++ b/arch/arm/boot/dts/stm32mp15xx-dkx.dtsi
@@ -470,8 +470,8 @@
&m4_rproc {
memory-region = <&retram>, <&mcuram>, <&mcuram2>, <&vdev0vring0>,
<&vdev0vring1>, <&vdev0buffer>;
- mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>;
- mbox-names = "vq0", "vq1", "shutdown";
+ mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>, <&ipcc 3>;
+ mbox-names = "vq0", "vq1", "shutdown", "detach";
interrupt-parent = <&exti>;
interrupts = <68 1>;
status = "okay";
--
2.17.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] Add new IPCC mailbox to support the coprocessor detach on some stm32mp15x boards
2021-06-14 16:49 [PATCH 0/2] Add new IPCC mailbox to support the coprocessor detach on some stm32mp15x boards Arnaud Pouliquen
2021-06-14 16:49 ` [PATCH 1/2] ARM: dts: stm32: Add coprocessor detach mbox on stm32mp157c-ed1 board Arnaud Pouliquen
2021-06-14 16:49 ` [PATCH 2/2] ARM: dts: stm32: Add coprocessor detach mbox on stm32mp15x-dkx boards Arnaud Pouliquen
@ 2021-07-15 15:16 ` Alexandre TORGUE
2 siblings, 0 replies; 4+ messages in thread
From: Alexandre TORGUE @ 2021-07-15 15:16 UTC (permalink / raw)
To: Arnaud Pouliquen, Rob Herring, Maxime Coquelin
Cc: devicetree, linux-stm32, linux-arm-kernel, linux-remoteproc,
linux-kernel
Hi Arnaud
On 6/14/21 6:49 PM, Arnaud Pouliquen wrote:
> Purpose:
> Add the IPCC channel 4 as "detach" mailbox to support the remoteproc the feature added in [1].
>
> The enable of this feature is a design choice. As consequence, the new mbox is declared
> only for stm32mp157c-ed1 & stm32mp15x-dkx boards maintained by ST Microelectronics.
>
> Aim:
> Allow to send to the remote processor a HW signal on IPCC channel 4 when user space requests
> to detach the main processor from the remote processor (e.g. a reboot of the Linux processor
> on a crash).
>
> [1] https://patchwork.ozlabs.org/project/devicetree-bindings/cover/20210331073347.8293-1-arnaud.pouliquen@foss.st.com/
>
> Arnaud Pouliquen (2):
> ARM: dts: stm32: Add coprocessor detach mbox on stm32mp157c-ed1 board
> ARM: dts: stm32: Add coprocessor detach mbox on stm32mp15x-dkx boards
>
> arch/arm/boot/dts/stm32mp157c-ed1.dts | 4 ++--
> arch/arm/boot/dts/stm32mp15xx-dkx.dtsi | 4 ++--
> 2 files changed, 4 insertions(+), 4 deletions(-)
>
Series Applied on stm32-next;
thanks
Alex
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-07-15 15:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-14 16:49 [PATCH 0/2] Add new IPCC mailbox to support the coprocessor detach on some stm32mp15x boards Arnaud Pouliquen
2021-06-14 16:49 ` [PATCH 1/2] ARM: dts: stm32: Add coprocessor detach mbox on stm32mp157c-ed1 board Arnaud Pouliquen
2021-06-14 16:49 ` [PATCH 2/2] ARM: dts: stm32: Add coprocessor detach mbox on stm32mp15x-dkx boards Arnaud Pouliquen
2021-07-15 15:16 ` [PATCH 0/2] Add new IPCC mailbox to support the coprocessor detach on some stm32mp15x boards Alexandre TORGUE
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).