linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Add MHUv2 support for multiple rx interrupt
@ 2023-03-29 15:39 Cristian Marussi
  2023-03-29 15:39 ` [PATCH 1/2] dt-bindings: mailbox : arm,mhuv2: Allow for more RX interrupts Cristian Marussi
  2023-03-29 15:39 ` [PATCH 2/2] mailbox: arm_mhuv2: Add support for multiple rx interrupt Cristian Marussi
  0 siblings, 2 replies; 10+ messages in thread
From: Cristian Marussi @ 2023-03-29 15:39 UTC (permalink / raw)
  To: linux-kernel, linux-arm-kernel
  Cc: sudeep.holla, cristian.marussi, vincent.guittot,
	souvik.chakravarty, nicola.mazzucato, Tushar.Khandelwal,
	viresh.kumar, jassisinghbrar

Hi,

I was experimenting with a TotalCompute2022 (TC2) [1] reference design
sporting MHUv2 (v2.x) mailboxes and running on top of it an SCMI stack
configured platform-side to use multiple per-protocol channels with
multiple rx interrupts but NOT using a combined interrupt.
(it is not even wired at the hw-level on this platform anyway...)

This configuration seemed not supported by the current driver which
assumes that you have only one rx interrupt, possibly a combined one.

Looking at the MHUv2 spec ([2]/[3] "Channels") seems indeed that
per-channel rx-interrupts are indeed a possibility, beside the combined
one.

This small seriers aims to add such support by simply allowing to
specify multiple rx interrupts in the DT node and taking care to
register the same orginal ISR for all.

On the tx path, instead, I left things unchanged and stuck with the
current approach that just uses one single combined interrupt for the
clear channel interrupt. (if supported at all)

I tested on a TC2 model configured alternatively with MHU v2.1 and v2.0.

Series based on v6.3-rc4.

Any feedback welcome.

Thanks,
Cristian

----
[1]: https://gitlab.arm.com/arm-reference-solutions/arm-reference-solutions-docs/-/blob/master/docs/totalcompute/tc2/tc2_sw_stack.rst
[2]: https://developer.arm.com/documentation/102342/0000/Message-Handling-Unit/About-the-Message-Handling-Unit/Channels?lang=en
[3]: https://developer.arm.com/documentation/101418/0100/Message-Handling-Unit/Message-Handling-Unit-v2/Channel?lang=en


Cristian Marussi (2):
  dt-bindings: mailbox : arm,mhuv2: Allow for more RX interrupts
  mailbox: arm_mhuv2: Add support for multiple rx interrupt

 .../bindings/mailbox/arm,mhuv2.yaml           | 13 +++++---
 drivers/mailbox/arm_mhuv2.c                   | 30 ++++++++++---------
 2 files changed, 25 insertions(+), 18 deletions(-)

-- 
2.34.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-04-12 13:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-29 15:39 [PATCH 0/2] Add MHUv2 support for multiple rx interrupt Cristian Marussi
2023-03-29 15:39 ` [PATCH 1/2] dt-bindings: mailbox : arm,mhuv2: Allow for more RX interrupts Cristian Marussi
2023-03-29 17:44   ` Sudeep Holla
2023-03-30  8:29     ` Cristian Marussi
2023-04-12 13:15       ` Rob Herring
2023-04-12 13:20         ` Cristian Marussi
2023-03-30  7:36   ` Krzysztof Kozlowski
2023-03-30  8:45     ` Cristian Marussi
2023-03-30  7:57   ` Krzysztof Kozlowski
2023-03-29 15:39 ` [PATCH 2/2] mailbox: arm_mhuv2: Add support for multiple rx interrupt Cristian Marussi

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).