All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bhaumik Bhatt <bbhatt@codeaurora.org>
To: Loic Poulain <loic.poulain@linaro.org>
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>,
	Manivannan Sadhasivam <mani@kernel.org>,
	linux-arm-msm <linux-arm-msm@vger.kernel.org>,
	Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>,
	clew@codeaurora.org
Subject: Re: [PATCH v3] bus: mhi: Add inbound buffers allocation flag
Date: Thu, 24 Jun 2021 14:00:30 -0700	[thread overview]
Message-ID: <7c9cd043ed4a5e0bd0d82d8c6ca1b212@codeaurora.org> (raw)
In-Reply-To: <CAMZdPi_wKHQszTaJH8neHHGWJzRO9P7Zr3XTq0nSRku4EKnhuQ@mail.gmail.com>

On 2021-06-24 03:45 PM, Loic Poulain wrote:
> Hi Bjorn,
> 
> On Thu, 24 Jun 2021 at 22:30, Bjorn Andersson
> <bjorn.andersson@linaro.org> wrote:
>> 
>> On Thu 24 Jun 15:28 CDT 2021, Loic Poulain wrote:
>> 
>> > Currently, the MHI controller driver defines which channels should
>> > have their inbound buffers allocated and queued. But ideally, this is
>> > something that should be decided by the MHI device driver instead,
>> > which actually deals with that buffers.
>> >
>> > Add a flag parameter to mhi_prepare_for_transfer allowing to specify
>> > if buffers have to be allocated and queued by the MHI stack.
>> >
>> > Keep auto_queue flag for now, but should be removed at some point.
>> >
>> > Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
>> > Tested-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
>> > Reviewed-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
>> > Reviewed-by: Hemant Kumar <hemantk@codeaurora.org>
>> > Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
>> > Acked-by: Jakub Kicinski <kuba@kernel.org>
>> > Link: https://lore.kernel.org/r/1621603519-16773-1-git-send-email-loic.poulain@linaro.org
>> > Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
>> 
>> What's the intention with this patch? Why is Mani the last S-o-b when
>> you're the one sending it and why is it sent only to linux-arm-msm@?
> 
> Actually the previous version of that patch has already been applied
> to mhi-next, but has been nacked as part of Mani's PR, so it's a quick
> follow-up fix to address the issue.
> 
>> And completely separate of the practical matters, is it true that qrtr
>> is the only client that use this pre-allocation feature?
> 
> yes.
> 
>> Would it be a net gain to simplify the core and add buffer allocation 
>> to qrtr instead?
> 
> Yes, I 100% agree, but I however would prefer to keep that for a
> follow-up series since this patch fixes a real issue for MHI/PCI
> modems (no inbound QRTR buffers allocated).
> 
> Regards,
> Loic
I had discussed this with Chris Lew a while ago and he also agreed qrtr 
can
queue inbound buffers.

This patch is good and we can continue to have flexibility for clients 
since
this allows MHI controller to not have to bother about some of the 
unnecessary
plugins/booleans we maintain on behalf of clients.

They can have more control this way and less headache for us.

Thanks,
Bhaumik
---
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora 
Forum,
a Linux Foundation Collaborative Project

  reply	other threads:[~2021-06-24 21:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-24 20:28 [PATCH v3] bus: mhi: Add inbound buffers allocation flag Loic Poulain
2021-06-24 20:30 ` Bjorn Andersson
2021-06-24 22:45   ` Loic Poulain
2021-06-24 21:00     ` Bhaumik Bhatt [this message]
2021-06-24 21:09     ` Bjorn Andersson
2021-06-25  5:08     ` Manivannan Sadhasivam

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=7c9cd043ed4a5e0bd0d82d8c6ca1b212@codeaurora.org \
    --to=bbhatt@codeaurora.org \
    --cc=bjorn.andersson@linaro.org \
    --cc=clew@codeaurora.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=loic.poulain@linaro.org \
    --cc=mani@kernel.org \
    --cc=manivannan.sadhasivam@linaro.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.