devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sudeep Holla <sudeep.holla@arm.com>
To: Jassi Brar <jaswinder.singh@linaro.org>
Cc: Sudeep Holla <sudeep.holla@arm.com>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"ks.giri@samsung.com" <ks.giri@samsung.com>,
	"arnd@arndb.de" <arnd@arndb.de>,
	"ijc@hellion.org.uk" <ijc@hellion.org.uk>,
	Mark Rutland <Mark.Rutland@arm.com>,
	"robh@kernel.org" <robh@kernel.org>,
	Pawel Moll <Pawel.Moll@arm.com>,
	"courtney.cavin@sonymobile.com" <courtney.cavin@sonymobile.com>,
	"mporter@linaro.org" <mporter@linaro.org>,
	"slapdau@yahoo.com.au" <slapdau@yahoo.com.au>,
	"lftan.linux@gmail.com" <lftan.linux@gmail.com>,
	"loic.pallardy@st.com" <loic.pallardy@st.com>,
	"s-anna@ti.com" <s-anna@ti.com>,
	"ashwin.chaugule@linaro.org" <ashwin.chaugule@linaro.org>,
	"bjorn@kryo.se" <bjorn@kryo.se>,
	"patches@linaro.org" <patches@linaro.org>,
	"t.takinishi@jp.fujitsu.com" <t.takinishi@jp.fujitsu.com>,
	"broonie@linaro.org" <broonie@linaro.org>,
	"khilman@linaro.org" <khilman@linaro.org>,
	"mollie.wu@linaro.org" <mollie.wu@linaro.org>,
	"andy.green@linaro.org" <andy.green@linaro.org>,
	"lee.jones@linaro.org" <lee.jones@linaro.org>
Subject: Re: [PATCHv9 2/4] mailbox: Introduce framework for mailbox
Date: Tue, 05 Aug 2014 18:18:49 +0100	[thread overview]
Message-ID: <53E111F9.8010107@arm.com> (raw)
In-Reply-To: <CAJe_Zhf=tBUj-Vf0yoWo-8iBDTCf1NjD_wse8JLcEEPz5AmS6A@mail.gmail.com>

Hi Jassi,

Sorry for late response.

On 02/08/14 04:58, Jassi Brar wrote:
> On 1 August 2014 23:03, Sudeep Holla <sudeep.holla@arm.com> wrote:

[...]
>>
>> Sorry I have no intention to delay this getting merged(I too need it
>> ASAP) as long as the APIs can be extended if needed in future(which I
>> think should be).
>>
>> Now coming back to my original question: If the protocol/client manage
>> the SHM and assume there's some payload associated with a message and
>> controller expects it to be in place before calling send_data, then
>> how can you achieve this without blocking for one command to complete
>> before copying the payload for the next. If you wait in the protocol
>> to update payload before queueing the request, you end-up with no use of
>> Tx queue in mailbox.c
>>
> 1) When you say Client/Protocol manages the SHM, then they should be
> responsible for laying out the SHM with payloads. Not the controller
> driver.  (I hope you don't mean the prepare_data for the client,
> because that would mean even after submitting a packet for
> transmission the client has to respond to yet another call before the
> packet is actually put on the bus.)
>

Agreed even I don't think that's good idea, but ....

> 2) Considering ur example anyway ... Mailbox api queues "void *data"
> which could point to a payload structure on client's temporary buffer
> (like stack). When the packet's turn comes up, the controller driver
> may copy the payload data as the first thing in send_data() and then
> continue to trigger it as usual. Where does the client have to block?
>

That wouldn't help as controller has no idea where is your shared
memory, so it can't do anything with copied data. Anyway, it's better to
take up this when we hit this scenario.

Regards,
Sudeep

  reply	other threads:[~2014-08-05 17:18 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-22 18:54 [PATCHv9 0/4] Common Mailbox Framework Jassi Brar
     [not found] ` <1406055250-29159-1-git-send-email-jaswinder.singh-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2014-07-22 18:55   ` [PATCHv9 1/4] mailbox: rename pl320-ipc specific mailbox.h Jassi Brar
2014-07-22 18:56   ` [PATCHv9 2/4] mailbox: Introduce framework for mailbox Jassi Brar
     [not found]     ` <1406055374-29275-1-git-send-email-jaswinder.singh-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2014-07-23  8:54       ` Lee Jones
2014-07-23 15:00         ` Jassi Brar
     [not found]           ` <CAJe_ZhfaLqgKb3oK-m5Rpae5+zeAEk9-DLFOovq4qjBgg64b-w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-07-23 15:26             ` Lee Jones
2014-07-31 16:56               ` Jassi Brar
     [not found]                 ` <CAJe_ZhcOXyGO49sZUXnqCk9wm7WvQ01b76k7Wqxxi1S3qisDPA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-08-01  8:17                   ` Lee Jones
2014-07-31 17:32     ` Sudeep Holla
2014-07-31 17:58       ` Jassi Brar
2014-08-01  9:39         ` Sudeep Holla
2014-08-01 12:28           ` Jassi Brar
2014-08-01 12:38             ` Sudeep Holla
2014-08-01 16:38               ` Jassi Brar
2014-08-01 17:33                 ` Sudeep Holla
2014-08-02  3:58                   ` Jassi Brar
2014-08-05 17:18                     ` Sudeep Holla [this message]
2014-07-22 18:57   ` [PATCHv9 3/4] doc: add documentation for mailbox framework Jassi Brar
2014-07-22 18:57   ` [PATCHv9 4/4] dt: mailbox: add generic bindings Jassi Brar
2014-07-28 13:50     ` Grant Likely

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=53E111F9.8010107@arm.com \
    --to=sudeep.holla@arm.com \
    --cc=Mark.Rutland@arm.com \
    --cc=Pawel.Moll@arm.com \
    --cc=andy.green@linaro.org \
    --cc=arnd@arndb.de \
    --cc=ashwin.chaugule@linaro.org \
    --cc=bjorn@kryo.se \
    --cc=broonie@linaro.org \
    --cc=courtney.cavin@sonymobile.com \
    --cc=devicetree@vger.kernel.org \
    --cc=ijc@hellion.org.uk \
    --cc=jaswinder.singh@linaro.org \
    --cc=khilman@linaro.org \
    --cc=ks.giri@samsung.com \
    --cc=lee.jones@linaro.org \
    --cc=lftan.linux@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=loic.pallardy@st.com \
    --cc=mollie.wu@linaro.org \
    --cc=mporter@linaro.org \
    --cc=patches@linaro.org \
    --cc=robh@kernel.org \
    --cc=s-anna@ti.com \
    --cc=slapdau@yahoo.com.au \
    --cc=t.takinishi@jp.fujitsu.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;
as well as URLs for NNTP newsgroup(s).