mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Florian Fainelli <f.fainelli@gmail.com>
To: "André Przywara" <andre.przywara@arm.com>,
	"Peng Fan" <peng.fan@nxp.com>,
	"Jassi Brar" <jassisinghbrar@gmail.com>
Cc: Rob Herring <robh+dt@kernel.org>,
	Mark Rutland <mark.rutland@arm.com>,
	Sudeep Holla <sudeep.holla@arm.com>, ",
	Sascha Hauer" <kernel@pengutronix.de>,
	dl-linux-imx <linux-imx@nxp.com>, Shawn Guo <shawnguo@kernel.org>,
	"festevam@gmail.com" <festevam@gmail.com>,
	Devicetree List <devicetree@vger.kernel.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	"linux-arm-kernel@lists.infradead.org" 
	<linux-arm-kernel@lists.infradead.org>,
	"van.freenix@gmail.com" <van.freenix@gmail.com>
Subject: Re: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox
Date: Wed, 26 Jun 2019 10:07:45 -0700	[thread overview]
Message-ID: <886589a4-cc51-1c01-6ade-4a6a683407d2@gmail.com> (raw)
In-Reply-To: <20c6cd30-642d-5f6e-15b8-2ef925ed90a6@arm.com>

On 6/26/19 10:05 AM, André Przywara wrote:
>> So I introduced interrupt in V2. In my testcase, after smc call done,
>> it means firmware->smc mailbox->firmware done. Interrupt notification
>> from firmware->Linux, means firmware has done the operation.
>>
>> When using interrupts, we could not know res.a0 as smc sync call.
>>
>> Interrupts is not a must in my testcase, Florian, Andre, do you have
>> any comments? Should I keep interrupts in V3 or drop it as Jassi comments?
> 
> The smc mailbox is by its very design a one-way channel - and it's
> synchronous. I think this is all the mailbox driver should be concerned
> about. The fact that there is a protocol user that would benefit from a
> return channel is a separate issue.
> The SCMI binding explicitly mentions *two* mailboxes, one TX, one RX, so
> the return channel could be very well implemented by a separate driver.
> I am wondering if we get away without a functioning return channel, at
> least for a subset of SCMI functionality? Can we use some dummy driver?
> Or specify another smc channel with some unhandled/ignored channel ID
> for that purpose?
> 
> So I would leave the IRQ return channel out for now, unless we
> desperately need it.

That's fine, the initial point was specifically about the binding
already defining an optional interrupt property, but that can be removed
too if this is too much confusion or opens up the discussion beyond this
submission.
-- 
Florian

  reply	other threads:[~2019-06-26 17:07 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-03  8:30 [PATCH V2 0/2] mailbox: arm: introduce smc triggered mailbox peng.fan
2019-06-03  8:30 ` [PATCH V2 1/2] DT: mailbox: add binding doc for the ARM SMC mailbox peng.fan
2019-06-03 16:22   ` Florian Fainelli
2019-06-03 16:56     ` Sudeep Holla
2019-06-03 17:18       ` Andre Przywara
2019-06-06  2:51         ` Florian Fainelli
2019-06-06  3:24         ` Peng Fan
2019-06-20  9:22   ` Sudeep Holla
2019-06-20 16:13     ` Andre Przywara
2019-06-20 16:27       ` Jassi Brar
2019-07-08 22:19   ` Rob Herring
2019-07-09  1:40     ` Peng Fan
2019-07-09 13:31       ` Rob Herring
2019-06-03  8:30 ` [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox peng.fan
2019-06-03 16:32   ` Florian Fainelli
2019-06-06  3:35     ` Peng Fan
2019-06-06 13:20     ` Andre Przywara
2019-06-10  1:32       ` Peng Fan
2019-06-10 10:00         ` Andre Przywara
2019-06-12 12:59         ` Peng Fan
2019-06-12 17:18           ` Andre Przywara
2019-06-20  9:23   ` Sudeep Holla
2019-06-20 10:21     ` Peng Fan
2019-06-20 11:15       ` Sudeep Holla
2019-06-25  7:28         ` Peng Fan
2019-06-20 16:50   ` Jassi Brar
2019-06-25  7:20     ` Peng Fan
2019-06-26 17:05       ` André Przywara
2019-06-26 17:07         ` Florian Fainelli [this message]
2019-06-25  7:30     ` Peng Fan
2019-06-25 14:36       ` Jassi Brar
2019-06-26 13:31         ` Peng Fan
2019-06-26 16:31           ` Jassi Brar
2019-06-26 16:44           ` Florian Fainelli
2019-06-26 17:09             ` Sudeep Holla
2019-06-27 18:10               ` Florian Fainelli
2019-06-26 18:27             ` Jassi Brar
2019-06-27  9:09               ` Sudeep Holla
2019-06-27 15:32                 ` Jassi Brar
2019-06-27 17:07                   ` Sudeep Holla
2019-06-26 17:02           ` Sudeep Holla

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=886589a4-cc51-1c01-6ade-4a6a683407d2@gmail.com \
    --to=f.fainelli@gmail.com \
    --cc=andre.przywara@arm.com \
    --cc=devicetree@vger.kernel.org \
    --cc=festevam@gmail.com \
    --cc=jassisinghbrar@gmail.com \
    --cc=kernel@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-imx@nxp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=peng.fan@nxp.com \
    --cc=robh+dt@kernel.org \
    --cc=shawnguo@kernel.org \
    --cc=sudeep.holla@arm.com \
    --cc=van.freenix@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome