All of lore.kernel.org
 help / color / mirror / Atom feed
From: Felipe Balbi <me@felipebalbi.com>
To: "Kanigeri, Hari" <h-kanigeri2@ti.com>
Cc: balbi@ti.com, Hiroshi Doyu <Hiroshi.DOYU@nokia.com>,
	linux omap <linux-omap@vger.kernel.org>,
	Tony Lindgren <tony@atomide.com>,
	Linux ARM <linux-arm-kernel@lists.infradead.org>,
	Fernando Guzman Lugo <x0095840@ti.com>
Subject: Re: [PATCH v3 5/5] OMAP: mailbox: add notification support for multiple readers
Date: Sat, 20 Nov 2010 01:07:16 +0200	[thread overview]
Message-ID: <1290208036.15533.24.camel@eowin> (raw)
In-Reply-To: <AANLkTi=EMBrb0eHZyzPen2DHGR4ARh1T8ojT7jOVQ67u@mail.gmail.com>

Hi Hari,

On Fri, 2010-11-19 at 08:44 -0600, Kanigeri, Hari wrote:
> Not really :). Please let me know if if I am wrong, what you
> addressing is getting the confirmation that a message is sent and what
> I am addressing with the patch is that a response is received from
> M3/DSP.

You got it wrong. My proposal addresses the same what you say, but in a
different and, IMO, better fashion. There's no need to add a blocking
notifier which you can't be sure when that'll be scheduled. Have you
measured possible worst case scenario of this patch ? What's the latency
added by the blocking notifier ? Imagine user cpu is highly busy, and it
takes a long time to call the blocking notifier, is that acceptable ?

> > Then you kick the transfers which will:
> >
> > request = list_first_entry(mbox->req_list);
> > setup_correct_registers();
> > enable_irq();
> > kick_transfer();
> 
> Writing to the mailbox fifo delivers the message to other side, and if
> the fifo is full the messages are queued up in mbox kfifo, which are
> then deliverd in the order they are received.

isn't that the same as what I suggested ? Messages are queued in the
ordered they are received and sent to BIOS at the same order.

> I don't see a use case where the senders need to know that their
> message is actually written to mbox fifo, if there is one we can look
> into it.

I never said there's such usecase :-)

> That's not true. Even if BIOS doesn't respond to a request, you could
> still keep sending the messages.

but then when do you consider a message "completed" ? When it gets sent
or when you receive a response from BIOS ?

-- 
balbi


WARNING: multiple messages have this Message-ID (diff)
From: me@felipebalbi.com (Felipe Balbi)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 5/5] OMAP: mailbox: add notification support for multiple readers
Date: Sat, 20 Nov 2010 01:07:16 +0200	[thread overview]
Message-ID: <1290208036.15533.24.camel@eowin> (raw)
In-Reply-To: <AANLkTi=EMBrb0eHZyzPen2DHGR4ARh1T8ojT7jOVQ67u@mail.gmail.com>

Hi Hari,

On Fri, 2010-11-19 at 08:44 -0600, Kanigeri, Hari wrote:
> Not really :). Please let me know if if I am wrong, what you
> addressing is getting the confirmation that a message is sent and what
> I am addressing with the patch is that a response is received from
> M3/DSP.

You got it wrong. My proposal addresses the same what you say, but in a
different and, IMO, better fashion. There's no need to add a blocking
notifier which you can't be sure when that'll be scheduled. Have you
measured possible worst case scenario of this patch ? What's the latency
added by the blocking notifier ? Imagine user cpu is highly busy, and it
takes a long time to call the blocking notifier, is that acceptable ?

> > Then you kick the transfers which will:
> >
> > request = list_first_entry(mbox->req_list);
> > setup_correct_registers();
> > enable_irq();
> > kick_transfer();
> 
> Writing to the mailbox fifo delivers the message to other side, and if
> the fifo is full the messages are queued up in mbox kfifo, which are
> then deliverd in the order they are received.

isn't that the same as what I suggested ? Messages are queued in the
ordered they are received and sent to BIOS at the same order.

> I don't see a use case where the senders need to know that their
> message is actually written to mbox fifo, if there is one we can look
> into it.

I never said there's such usecase :-)

> That's not true. Even if BIOS doesn't respond to a request, you could
> still keep sending the messages.

but then when do you consider a message "completed" ? When it gets sent
or when you receive a response from BIOS ?

-- 
balbi

  reply	other threads:[~2010-11-19 23:06 UTC|newest]

Thread overview: 72+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-18 19:15 [PATCH v3 0/5] OMAP: mailbox: enhancements and fixes Hari Kanigeri
2010-11-18 19:15 ` Hari Kanigeri
2010-11-18 19:15 ` [PATCH v3 1/5] OMAP: mailbox: change full flag per mailbox queue instead of global Hari Kanigeri
2010-11-18 19:15   ` Hari Kanigeri
2010-11-18 23:22   ` Cousson, Benoit
2010-11-18 23:22     ` Cousson, Benoit
2010-11-18 19:15 ` [PATCH v3 2/5] OMAP: mailbox: fix rx interrupt disable in omap4 Hari Kanigeri
2010-11-18 19:15   ` Hari Kanigeri
2010-11-18 23:28   ` Cousson, Benoit
2010-11-18 23:28     ` Cousson, Benoit
2010-11-19  0:07     ` Kanigeri, Hari
2010-11-19  0:07       ` Kanigeri, Hari
2010-11-19  8:32       ` Felipe Balbi
2010-11-19  8:32         ` Felipe Balbi
2010-11-19 14:22         ` Kanigeri, Hari
2010-11-19 14:22           ` Kanigeri, Hari
2010-11-19 14:50           ` Cousson, Benoit
2010-11-19 14:50             ` Cousson, Benoit
2010-11-22 10:08             ` Felipe Balbi
2010-11-22 10:08               ` Felipe Balbi
2010-11-22 11:46               ` Kanigeri, Hari
2010-11-22 11:46                 ` Kanigeri, Hari
2010-11-22 11:51                 ` Felipe Balbi
2010-11-22 11:51                   ` Felipe Balbi
2010-11-22 11:58                   ` Kanigeri, Hari
2010-11-22 11:58                     ` Kanigeri, Hari
2010-11-22 14:57                   ` Cousson, Benoit
2010-11-22 14:57                     ` Cousson, Benoit
2010-11-22 14:55               ` Cousson, Benoit
2010-11-22 14:55                 ` Cousson, Benoit
2010-11-23  8:10                 ` Felipe Balbi
2010-11-23  8:10                   ` Felipe Balbi
2010-11-19  8:32   ` Felipe Balbi
2010-11-19  8:32     ` Felipe Balbi
2010-11-18 19:15 ` [PATCH v3 3/5] OMAP: mailbox: fix checkpatch warnings Hari Kanigeri
2010-11-18 19:15   ` Hari Kanigeri
2010-11-19  8:33   ` Felipe Balbi
2010-11-19  8:33     ` Felipe Balbi
2010-11-19 11:52     ` Kanigeri, Hari
2010-11-19 11:52       ` Kanigeri, Hari
2010-11-18 19:15 ` [PATCH v3 4/5] OMAP: mailbox: send message in process context Hari Kanigeri
2010-11-18 19:15   ` Hari Kanigeri
2010-11-19  8:34   ` Felipe Balbi
2010-11-19  8:34     ` Felipe Balbi
2010-11-18 19:15 ` [PATCH v3 5/5] OMAP: mailbox: add notification support for multiple readers Hari Kanigeri
2010-11-18 19:15   ` Hari Kanigeri
2010-11-19  8:50   ` Felipe Balbi
2010-11-19  8:50     ` Felipe Balbi
2010-11-19 11:50     ` Kanigeri, Hari
2010-11-19 11:50       ` Kanigeri, Hari
2010-11-19 12:09       ` Felipe Balbi
2010-11-19 12:09         ` Felipe Balbi
2010-11-19 12:29         ` Kanigeri, Hari
2010-11-19 12:29           ` Kanigeri, Hari
2010-11-19 12:53           ` Felipe Balbi
2010-11-19 12:53             ` Felipe Balbi
2010-11-19 13:57             ` Kanigeri, Hari
2010-11-19 13:57               ` Kanigeri, Hari
2010-11-19 14:25               ` Felipe Balbi
2010-11-19 14:25                 ` Felipe Balbi
2010-11-19 14:44                 ` Kanigeri, Hari
2010-11-19 14:44                   ` Kanigeri, Hari
2010-11-19 23:07                   ` Felipe Balbi [this message]
2010-11-19 23:07                     ` Felipe Balbi
2010-11-20  4:01                     ` Kanigeri, Hari
2010-11-20  4:01                       ` Kanigeri, Hari
2010-11-20 11:31                       ` Felipe Balbi
2010-11-20 11:31                         ` Felipe Balbi
2010-11-20 13:26                         ` Kanigeri, Hari
2010-11-20 13:26                           ` Kanigeri, Hari
  -- strict thread matches above, loose matches on Subject: below --
2010-11-21 20:03 Jacek Burghardt
2010-11-21 20:03 ` Jacek Burghardt

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=1290208036.15533.24.camel@eowin \
    --to=me@felipebalbi.com \
    --cc=Hiroshi.DOYU@nokia.com \
    --cc=balbi@ti.com \
    --cc=h-kanigeri2@ti.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=tony@atomide.com \
    --cc=x0095840@ti.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.