All of lore.kernel.org
 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>,
	"linux-arm-kernel@lists.infradead.org" 
	<linux-arm-kernel@lists.infradead.org>,
	Arnd Bergmann <arnd@arndb.de>,
	Bjorn Andersson <bjorn.andersson@linaro.org>
Subject: Re: [PATCH] mailbox: add support for doorbell/signal mode controllers
Date: Thu, 2 Nov 2017 12:37:22 +0000	[thread overview]
Message-ID: <0a08fa09-864c-00e0-34f3-9c6f6b8fc036@arm.com> (raw)
In-Reply-To: <CABb+yY11a3y8A8NGUXED8qzg0aS_ikMK-EvB3yG31kP5pewNNw@mail.gmail.com>



On 02/11/17 12:21, Jassi Brar wrote:
> On Thu, Nov 2, 2017 at 5:19 PM, Sudeep Holla <sudeep.holla@arm.com> wrote:
>> On 02/11/17 11:26, Jassi Brar wrote:
> 
>>>>> 1) Where does the  "whatever_value_to_trigger_signal"  come from?
>>>>
>>>> Controller specific.
>>>>
>>>>> That has to come from client.
>>>>
>>>> No.
>>>>
>>> Again, let me know what does the controller expect 'val' to be
>>>
>>>   writel(val, MAILBOX_A2B_CMD(chans->idx))
>>>
>>
>> It depends on the controller. Whatever value that can generate a signal
>> to remote.
>>
> As you _know_, the controller expects any non-zero value. Now what
> value would you write in there?
> 

I just said its *non-zero value* to give example. What action needs to
be done to trigger the doorbell is *entirely* controller specific and
typically it's a bit in the register.

>>
>> 1. pcc_send_data (drivers/mailbox/pcc.c)
>> 2. sti_mbox_send_data (drivers/mailbox/mailbox-sti.c)
>> 3. qcom_apcs_ipc_send_data (drivers/mailbox/qcom-apcs-ipc-mailbox.c)
>> 4. tegra_hsp_doorbell_send_data (drivers/mailbox/tegra-hsp.c)
>>
>> And SCMI fits the above case.
>>
> These are only 4 out of 14. Can we overlook that your implementation
> rules out 70% controllers.
> 

I am *not* saying we will break other 10 controllers. All I am says
there are 4 controllers that can make use of this new feature. 4 is good
number IMO to generalize something.

> BTW these 4 don't even need any send_signal() api, they would remain
> unchanged. What's the new api for?
> 

Sure, it's working fine doesn't mean it can't be used at all. That's not
a right argument TBH.

-- 
Regards,
Sudeep

WARNING: multiple messages have this Message-ID (diff)
From: sudeep.holla@arm.com (Sudeep Holla)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] mailbox: add support for doorbell/signal mode controllers
Date: Thu, 2 Nov 2017 12:37:22 +0000	[thread overview]
Message-ID: <0a08fa09-864c-00e0-34f3-9c6f6b8fc036@arm.com> (raw)
In-Reply-To: <CABb+yY11a3y8A8NGUXED8qzg0aS_ikMK-EvB3yG31kP5pewNNw@mail.gmail.com>



On 02/11/17 12:21, Jassi Brar wrote:
> On Thu, Nov 2, 2017 at 5:19 PM, Sudeep Holla <sudeep.holla@arm.com> wrote:
>> On 02/11/17 11:26, Jassi Brar wrote:
> 
>>>>> 1) Where does the  "whatever_value_to_trigger_signal"  come from?
>>>>
>>>> Controller specific.
>>>>
>>>>> That has to come from client.
>>>>
>>>> No.
>>>>
>>> Again, let me know what does the controller expect 'val' to be
>>>
>>>   writel(val, MAILBOX_A2B_CMD(chans->idx))
>>>
>>
>> It depends on the controller. Whatever value that can generate a signal
>> to remote.
>>
> As you _know_, the controller expects any non-zero value. Now what
> value would you write in there?
> 

I just said its *non-zero value* to give example. What action needs to
be done to trigger the doorbell is *entirely* controller specific and
typically it's a bit in the register.

>>
>> 1. pcc_send_data (drivers/mailbox/pcc.c)
>> 2. sti_mbox_send_data (drivers/mailbox/mailbox-sti.c)
>> 3. qcom_apcs_ipc_send_data (drivers/mailbox/qcom-apcs-ipc-mailbox.c)
>> 4. tegra_hsp_doorbell_send_data (drivers/mailbox/tegra-hsp.c)
>>
>> And SCMI fits the above case.
>>
> These are only 4 out of 14. Can we overlook that your implementation
> rules out 70% controllers.
> 

I am *not* saying we will break other 10 controllers. All I am says
there are 4 controllers that can make use of this new feature. 4 is good
number IMO to generalize something.

> BTW these 4 don't even need any send_signal() api, they would remain
> unchanged. What's the new api for?
> 

Sure, it's working fine doesn't mean it can't be used at all. That's not
a right argument TBH.

-- 
Regards,
Sudeep

  reply	other threads:[~2017-11-02 12:37 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-01 16:32 [PATCH] mailbox: add support for doorbell/signal mode controllers Sudeep Holla
2017-11-01 16:32 ` Sudeep Holla
2017-11-01 18:03 ` Jassi Brar
2017-11-01 18:03   ` Jassi Brar
2017-11-01 18:15   ` Sudeep Holla
2017-11-01 18:15     ` Sudeep Holla
2017-11-01 22:17     ` Bjorn Andersson
2017-11-01 22:17       ` Bjorn Andersson
2017-11-02  3:02       ` Jassi Brar
2017-11-02  3:02         ` Jassi Brar
2017-11-02  3:27         ` Bjorn Andersson
2017-11-02  3:27           ` Bjorn Andersson
2017-11-02  4:48           ` Jassi Brar
2017-11-02  4:48             ` Jassi Brar
2017-11-02  2:39     ` Jassi Brar
2017-11-02  2:39       ` Jassi Brar
2017-11-02 10:47       ` Sudeep Holla
2017-11-02 10:47         ` Sudeep Holla
2017-11-02 11:26         ` Jassi Brar
2017-11-02 11:26           ` Jassi Brar
2017-11-02 11:49           ` Sudeep Holla
2017-11-02 11:49             ` Sudeep Holla
2017-11-02 12:21             ` Jassi Brar
2017-11-02 12:21               ` Jassi Brar
2017-11-02 12:37               ` Sudeep Holla [this message]
2017-11-02 12:37                 ` Sudeep Holla
2017-11-02 14:52                 ` Jassi Brar
2017-11-02 14:52                   ` Jassi Brar
2017-11-01 22:12   ` Bjorn Andersson
2017-11-01 22:12     ` Bjorn Andersson
2017-11-02  2:56     ` Jassi Brar
2017-11-02  2:56       ` Jassi Brar
2017-11-02 10:51     ` Sudeep Holla
2017-11-02 10:51       ` 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=0a08fa09-864c-00e0-34f3-9c6f6b8fc036@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 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.