mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sudeep Holla <sudeep.holla@arm.com>
To: Jassi Brar <jassisinghbrar@gmail.com>
Cc: Sudeep Holla <sudeep.holla@arm.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Devicetree List <devicetree@vger.kernel.org>,
	Alexey Klimov <alexey.klimov@arm.com>
Subject: Re: [PATCH v2 0/6] mailbox: arm_mhu: add support for doorbell mode
Date: Thu, 25 May 2017 12:30:38 +0100	[thread overview]
Message-ID: <cd57b90c-4250-64df-9142-d12ac7ed7ad3@arm.com> (raw)
In-Reply-To: <CABb+yY1eS_cXjCCpgQs18-W3KXPy-K7mPJSkWNb6wFe-is5fDw@mail.gmail.com>



On 24/05/17 11:56, Jassi Brar wrote:
> On Wed, May 24, 2017 at 3:46 PM, Sudeep Holla <sudeep.holla@arm.com> wrote:
>>
>> Hi,
>>
>> This series adds doorbell support to ARM MHU mailbox controller driver.
>> Since we need to callback the different client based on the doorbel bits
>> triggered from the remote, we can manage with single channel for the set
>> of 32 doorbells.
>>
>> Regards,
>> Sudeep
>>
>> v1->v2:
>>         - Removed the notion od subchannels
>>         - Treat each bit in the MHU register as a doorbell and hence
>>           different channel with respect to mailbox framework
>>
> Whatever happened to the endless explanations I gave you, how the MHU
> driver already supports your usecase?
> 

Yes but you didn't respond to my queries:
1. The client driver is generic and expects it to be doorbell like
   mailbox controller. I am referring to SCMI which will be released
   soon. We can't embed ARM MHU or any other mailbox controller info
   into that.

2. How do we call multiple clients from mhu_irq ? I have Slot/bit 0
   being used by SCPI protocol(already in mainline) and slot 1/2 or more
   will be used by SCMI ?

3. We already have mailbox-sti.c which implements exactly the same logic
   of doorbell. Why did you not push back to implement something like
   arm_mhu.c then ? I am confused as why you are so particular in this
   case ?

Few more things to note here:

1. Just because the platform you worked used MHU to pass the command
   doesn't mean that's the only one use-case and others have to
   workaround in the client drivers.

2. Read the specification again. It's clear that it's designed for
   doorbell kind of usage. All I am asking is to support that both in
   the binding and implementation. And lets not assume or make it work
   with one protocol. It's generic IP and can be used in either
   doorbell way or the way it's currently supported.

3. That's one of the reason for just have 2 set's of registers as it's
   possible to use them as 32 different doorbells. Otherwise 2 channels
   is too limited for any platform.

Please address my queries instead of claiming that you can workout a
solution. I simply want the mailbox and protocol independent and hence
the binding. I don't like the idea of you proposed(i.e. 32-bit data to
be written to the controller register).

-- 
Regards,
Sudeep

  reply	other threads:[~2017-05-25 11:30 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-24 10:16 Sudeep Holla
2017-05-24 10:16 ` [PATCH v2 1/6] mailbox: arm_mhu: reorder header inclusion and drop unneeded ones Sudeep Holla
2017-05-24 10:16 ` [PATCH v2 2/6] Documentation: devicetree: add bindings to support ARM MHU doorbells Sudeep Holla
2017-05-25 13:22   ` Jassi Brar
2017-05-25 13:23     ` Sudeep Holla
2017-05-31 17:08       ` Rob Herring
2017-05-31 17:12         ` Sudeep Holla
2017-06-02  5:45         ` Jassi Brar
2017-06-02  9:32           ` Sudeep Holla
2017-07-05 18:02             ` Sudeep Holla
2017-07-06  6:28               ` Jassi Brar
2017-07-06  9:18                 ` Sudeep Holla
2017-07-06  9:27                   ` Jassi Brar
2017-07-06  9:33                     ` Sudeep Holla
2017-07-06 14:37                       ` Jassi Brar
2017-07-06 16:44                         ` Sudeep Holla
2017-07-06 18:37                           ` Jassi Brar
2017-07-07 11:32                             ` Sudeep Holla
2017-07-07 13:12                               ` Jassi Brar
2017-07-07 13:32                                 ` Sudeep Holla
2017-05-25 16:04     ` Sudeep Holla
2017-05-24 10:16 ` [PATCH v2 3/6] mailbox: arm_mhu: migrate to threaded irq handler Sudeep Holla
2017-05-24 10:16 ` [PATCH v2 4/6] mailbox: arm_mhu: re-factor data structure to add doorbell support Sudeep Holla
2017-05-24 10:16 ` [PATCH v2 5/6] mailbox: arm_mhu: add full support for the doorbells Sudeep Holla
2017-05-24 10:16 ` [PATCH v2 6/6] mailbox: arm_mhu: add support to read and record mbox-name Sudeep Holla
2017-05-24 10:56 ` [PATCH v2 0/6] mailbox: arm_mhu: add support for doorbell mode Jassi Brar
2017-05-25 11:30   ` Sudeep Holla [this message]
2017-05-25 13:20     ` Jassi Brar
2017-05-25 13:35       ` Sudeep Holla
2017-05-25 13:44         ` Jassi Brar
2017-05-25 13:53           ` Sudeep Holla
2017-05-25 14:07             ` Jassi Brar
2017-05-25 14:15               ` 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=cd57b90c-4250-64df-9142-d12ac7ed7ad3@arm.com \
    --to=sudeep.holla@arm.com \
    --cc=alexey.klimov@arm.com \
    --cc=devicetree@vger.kernel.org \
    --cc=jassisinghbrar@gmail.com \
    --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®