mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Beleswar Prasad Padhi <b-padhi@ti.com>
To: Andrew Davis <afd@ti.com>, <andersson@kernel.org>,
	<mathieu.poirier@linaro.org>
Cc: <hnagalla@ti.com>, <u-kumar1@ti.com>, <s-anna@ti.com>,
	<linux-remoteproc@vger.kernel.org>,
	<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v3 3/3] remoteproc: k3-dsp: Acquire mailbox handle during probe routine
Date: Thu, 8 Aug 2024 10:50:36 +0530	[thread overview]
Message-ID: <00311e5c-a8d4-46dd-9f59-f7fea5ae4104@ti.com> (raw)
In-Reply-To: <1d434d6c-42ba-4142-a701-032cf674c50c@ti.com>


On 07/08/24 19:21, Andrew Davis wrote:
> On 8/7/24 1:22 AM, Beleswar Padhi wrote:
>> Acquire the mailbox handle during device probe and do not release handle
>> in stop/detach routine or error paths. This removes the redundant
>> requests for mbox handle later during rproc start/attach. This also
>> allows to defer remoteproc driver's probe if mailbox is not probed yet.
>>
>> Fixes: b8431920391d ("remoteproc: k3-dsp: Add support for IPC-only 
>> mode for all K3 DSPs")
>
> Not sure this patch counts as a "fix". There was a bug yes, and this 
> certainly
> is an improvment that solves the issue, but I like to reserve "Fixes" 
> tags
> for more serious issues. Otherwise this patch will be backported to 
> "stable"
> versions where it might cause things to be *less stable* given the 
> size of


Understood. Will remove Fixes tag in revision.

> the "fix". Also, the commit you selected isn't the source of the issue,
> it only adds another instance of it, getting the mailbox after probe has
> been the case since the first version of this driver.


Correct. My idea was, since we are also making k3_attach()/detach() 
functions NOP, select the later commit because that was where the 
k3_attach()/detach() functions were introduced as well as the "mailbox 
after probe" issue was present.

>
> Rest of the patch LGTM,
>
> Acked-by: Andrew Davis <afd@ti.com>
>
> BTW, I've folded this change (getting mbox in probe) into the new
> K3 M4 driver[0] I just posted, so we should be aligned here accross
> all K3 rproc drivers.


Thanks for this!

>
>
> Andrew
>
> [0] 
> https://lore.kernel.org/linux-arm-kernel/20240802152109.137243-4-afd@ti.com/
[...]

      reply	other threads:[~2024-08-08  5:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-07  6:22 [PATCH v3 0/3] Defer TI's Remoteproc's Probe until Mailbox is Probed Beleswar Padhi
2024-08-07  6:22 ` [PATCH v3 1/3] remoteproc: k3-r5: Use devm_rproc_alloc() helper Beleswar Padhi
2024-08-07 13:37   ` Andrew Davis
2024-08-08  5:10     ` Beleswar Prasad Padhi
2024-08-07  6:22 ` [PATCH v3 2/3] remoteproc: k3-r5: Acquire mailbox handle during probe routine Beleswar Padhi
2024-08-07  6:22 ` [PATCH v3 3/3] remoteproc: k3-dsp: " Beleswar Padhi
2024-08-07 13:51   ` Andrew Davis
2024-08-08  5:20     ` Beleswar Prasad Padhi [this message]

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=00311e5c-a8d4-46dd-9f59-f7fea5ae4104@ti.com \
    --to=b-padhi@ti.com \
    --cc=afd@ti.com \
    --cc=andersson@kernel.org \
    --cc=hnagalla@ti.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-remoteproc@vger.kernel.org \
    --cc=mathieu.poirier@linaro.org \
    --cc=s-anna@ti.com \
    --cc=u-kumar1@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 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®