mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sudeep Holla <sudeep.holla@arm.com>
To: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: Jassi Brar <jassisinghbrar@gmail.com>,
	Sudeep Holla <sudeep.holla@arm.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	"linux-arm-kernel@lists.infradead.org" 
	<linux-arm-kernel@lists.infradead.org>,
	Arnd Bergmann <arnd@arndb.de>
Subject: Re: [PATCH] mailbox: add support for doorbell/signal mode controllers
Date: Thu, 2 Nov 2017 10:51:33 +0000	[thread overview]
Message-ID: <9c0a0af0-6a2d-4394-a274-2e52ea65845d@arm.com> (raw)
In-Reply-To: <20171101221217.GA28761@minitux>



On 01/11/17 22:12, Bjorn Andersson wrote:
> On Wed 01 Nov 11:03 PDT 2017, Jassi Brar wrote:
>> On Wed, Nov 1, 2017 at 10:02 PM, Sudeep Holla <sudeep.holla@arm.com> wrote:
> [..]
>>>
>>> This is rough idea I have on extending mailbox interface to support
>>> the doorbell requirements.
>>>
>> What doorbell requirements does the api not support?
>> QComm's APCS IPC is what you call a "doorbell" controller and is
>> already supported by the API. It could run SCMI even easier than MHU
>> (your controller).
>>
> 
> I agree; from a mbox consumer perspective a doorbell should be a mailbox
> channel that when signalled will ring the bell, i.e. the message is not
> significant and should not be provided by the client.
> 

Exactly.

> If the message is significant and is not derived from the mailbox
> channel (e.g. channel id -> bit in register) it is not a mailbox
> doorbell, it's s regular mailbox used as a doorbell.
> 

Agreed, in my case(ARM MHU) it's indeed a register bit.

> 
> The potential improvement I see in the Qualcomm case is to wrap the
> mbox_send_message(chan, NULL); mbox_client_txdone(chan, 0); calls in one
> simple "mbox_ring_door_bell(chan)" - but I haven't investigated the
> validity of this as a generic function.
> 

Yes that's exactly what I want to do as we make progress with this
patch. For that we find need to add send_signal(chan), instead of
send_data(chan, data).
-- 
Regards,
Sudeep

      parent reply	other threads:[~2017-11-02 10:51 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-01 16:32 Sudeep Holla
2017-11-01 18:03 ` Jassi Brar
2017-11-01 18:15   ` Sudeep Holla
2017-11-01 22:17     ` Bjorn Andersson
2017-11-02  3:02       ` Jassi Brar
2017-11-02  3:27         ` Bjorn Andersson
2017-11-02  4:48           ` Jassi Brar
2017-11-02  2:39     ` Jassi Brar
2017-11-02 10:47       ` Sudeep Holla
2017-11-02 11:26         ` Jassi Brar
2017-11-02 11:49           ` Sudeep Holla
2017-11-02 12:21             ` Jassi Brar
2017-11-02 12:37               ` Sudeep Holla
2017-11-02 14:52                 ` Jassi Brar
2017-11-01 22:12   ` Bjorn Andersson
2017-11-02  2:56     ` Jassi Brar
2017-11-02 10:51     ` Sudeep Holla [this message]

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=9c0a0af0-6a2d-4394-a274-2e52ea65845d@arm.com \
    --to=sudeep.holla@arm.com \
    --cc=arnd@arndb.de \
    --cc=bjorn.andersson@linaro.org \
    --cc=jassisinghbrar@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®