Thread (19 messages) 19 messages, 6 authors, 2020-01-13

RE: [PATCH] firmware: arm_scmi: Make scmi core independent of transport type

From: Peng Fan <peng.fan@nxp.com>
Date: 2020-01-13 06:45:40
Also in: lkml

Hi Sudeep,
Subject: Re: [PATCH] firmware: arm_scmi: Make scmi core independent of
transport type

On Thu, Jan 09, 2020 at 03:04:42PM +0530, Viresh Kumar wrote:
quoted
On 09-01-20, 09:18, Arnd Bergmann wrote:
quoted
On Fri, Nov 29, 2019 at 10:32 AM Viresh Kumar [off-list ref]
wrote:
quoted
quoted
quoted
The SCMI specification is fairly independent of the transport
protocol, which can be a simple mailbox (already implemented) or
anything else.
quoted
quoted
quoted
The current Linux implementation however is very much dependent of
the mailbox transport layer.

This patch makes the SCMI core code (driver.c) independent of the
mailbox transport layer and moves all mailbox related code to a
new
file: mailbox.c.

We can now implement more transport protocols to transport SCMI
messages.

The transport protocols just need to provide struct
scmi_transport_ops, with its version of the callbacks to enable exchange
of SCMI messages.
quoted
quoted
quoted
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Conceptually I think this is fine, but as others have said, it would
be better to have another transport implementation posted along with
this to see if the interfaces actually work out.
@Sudeep/Vincent: Do you think we can add another transport
implementation something right away for it ?
Even if we don't add new transport right away, I would like to see if the
requirements are met. I will take a look at you v2 with that in mind anyways.
We need not wait, we I want to see people think it meets their requirement. I
will also add couple of guys working on virtio transport for SCMI when I
respond to your v2. Thanks for posting it.
quoted
@Peng ?
Peng, Did you get a chance to try this with SMC ? If SCMI was the only
usecase, you can try this approach instead of mailbox, now that no one has
any objects to this approach conceptually. Please use v2 as base and update
us.
I will try that, but might be a bit later.

Thanks,
Peng.
--
Regards,
Sudeep
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help