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 14:53:33 +0100	[thread overview]
Message-ID: <7291e5d7-fb63-57cf-c029-7a9f3b757c35@arm.com> (raw)
In-Reply-To: <CABb+yY1r+bQCHUxzsH3DLx1kTkz8g=jOT1_S9PnqjfBrLhe9TA@mail.gmail.com>



On 25/05/17 14:44, Jassi Brar wrote:
> On Thu, May 25, 2017 at 7:05 PM, Sudeep Holla <sudeep.holla@arm.com> wrote:
>>>> 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.
>>>>
>>> If SCMI is to be usable over different platforms, there has to be 2
>>> sub-parts of the SCMI - one platform agnostic high level protocol
>>> implementation, and the other platform specific 'transport' layer
>>> where actual message xfer is done.
>>>
>>
>> It recommends doorbell kind of interface for the transport.
>>
>>> For the Nth time:-
>>>     The 'mssg' in mbox_send_message(struct mbox_chan *chan, void
>>> *mssg) is platform specific. For MHU it is simple u32*, whereas for
>>> other platform it will be like 'struct my_protocol_message *'
>>>
>>> I can't make it any clearer.
>>>
>>
>> Why is that ? Just because it was used on your platform like that ?
>> Sorry that's not a valid reason.
>>
> To be clear, by "other platform" I mean platforms with mailbox
> controller other than MHU.  (Not to mean SCMI can't run on MHU as of
> today).
> 

It can't run along with existing SCPI without some hacking. You need to
add a layer that is platform specific which is *hacky*.

> Do you intend SCMI to run only on platforms that have MHU controller?
> I hope not.
> 

Definitely not, that's the whole point. It should work with any
controller that supports doorbell mode.

> Now re-read my last post until you get it.
> 
Just propose the binding yourself.

On juno, say we will use low priority channel

BIT(0) - SCPI
BIT(1) - SCMI (general)
BIT(2) - SCMI (notification)
BIT(3) - A totally new protocol
:
:
with each of the above with specific shared memory reserved for them.

Beware we don't need any of these info in either of the driver as it
may change with another platform. So this info has to come from DT.
So I am requesting you to propose the binding if you think you can
better than the one I have.

I can base my code on that.

-- 
Regards,
Sudeep

  reply	other threads:[~2017-05-25 13:53 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
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 [this message]
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=7291e5d7-fb63-57cf-c029-7a9f3b757c35@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®