Linux ARM-MSM sub-architecture
 help / color / mirror / Atom feed
From: Mathieu Poirier <mathieu.poirier@linaro.org>
To: "Aiqun(Maria) Yu" <quic_aiquny@quicinc.com>
Cc: arnaud.pouliquen@foss.st.com, linux-arm-msm@vger.kernel.org,
	linux-remoteproc@vger.kernel.org, quic_clew@quicinc.com
Subject: Re: [PATCH v5 2/2] remoteproc: core: change to ordered workqueue for crash handler
Date: Wed, 7 Dec 2022 11:16:32 -0700	[thread overview]
Message-ID: <20221207181632.GA527346@p14s> (raw)
In-Reply-To: <780b40df-809a-67bf-0b0b-f56df70e6343@quicinc.com>

On Tue, Dec 06, 2022 at 09:28:23AM +0800, Aiqun(Maria) Yu wrote:
> On 12/3/2022 1:34 AM, Mathieu Poirier wrote:
> > On Fri, Dec 02, 2022 at 05:45:32PM +0800, Maria Yu wrote:
> > > Only the first detected crash needed to be handled, so change
> > > to ordered workqueue to avoid unnecessary multi active work at
> > > the same time. This will reduce the pm_relax unnecessary concurrency.
> > > 
> > > Signed-off-by: Maria Yu <quic_aiquny@quicinc.com>
> > > ---
> > >   drivers/remoteproc/remoteproc_core.c | 4 ++--
> > >   1 file changed, 2 insertions(+), 2 deletions(-)
> > > 
> > > diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c
> > > index c2d0af048c69..4b973eea10bb 100644
> > > --- a/drivers/remoteproc/remoteproc_core.c
> > > +++ b/drivers/remoteproc/remoteproc_core.c
> > > @@ -2728,8 +2728,8 @@ static void __exit rproc_exit_panic(void)
> > >   static int __init remoteproc_init(void)
> > >   {
> > > -	rproc_recovery_wq = alloc_workqueue("rproc_recovery_wq",
> > > -						WQ_UNBOUND | WQ_FREEZABLE, 0);
> > > +	rproc_recovery_wq = alloc_ordered_workqueue("rproc_recovery_wq",
> > > +						WQ_FREEZABLE, 0);
> > 
> > There is an indentation issue with the second line and this patch doesn't
> > compile:
> > 
> My Clang 14.0.7 didn't have such kind of compilation error.
> what's your CC version pls? Maybe I can have a try to reproduce.

I was either:

arm-linux-gnueabihf-gcc 9.4.0

or 

aarch64-linux-gnu-gcc 9.4.0

I can't remember if I was compiling for 32 or 64 bit.

> 
> Anyway, I will double confirm if there is any difference with current
> patchset with my compile tested patchset as well.
> 
> >    CC      drivers/remoteproc/imx_dsp_rproc.o
> >    AR      drivers/hwspinlock/built-in.a
> > In file included from /home/mpoirier/work/remoteproc/kernel-review/include/linux/rhashtable-types.h:15,
> >                   from /home/mpoirier/work/remoteproc/kernel-review/include/linux/ipc.h:7,
> >                   from /home/mpoirier/work/remoteproc/kernel-review/include/uapi/linux/sem.h:5,
> >                   from /home/mpoirier/work/remoteproc/kernel-review/include/linux/sem.h:5,
> >                   from /home/mpoirier/work/remoteproc/kernel-review/include/linux/sched.h:15,
> >                   from /home/mpoirier/work/remoteproc/kernel-review/include/linux/delay.h:23,
> >                   from /home/mpoirier/work/remoteproc/kernel-review/drivers/remoteproc/remoteproc_core.c:19:
> > /home/mpoirier/work/remoteproc/kernel-review/drivers/remoteproc/remoteproc_core.c: In function ‘remoteproc_init’:
> > /home/mpoirier/work/remoteproc/kernel-review/drivers/remoteproc/remoteproc_core.c:2738:46: warning: too many arguments for format [-Wformat-extra-args]
> >   2738 |  rproc_recovery_wq = alloc_ordered_workqueue("rproc_recovery_wq",
> >        |                                              ^~~~~~~~~~~~~~~~~~~
> > /home/mpoirier/work/remoteproc/kernel-review/include/linux/workqueue.h:419:18: note: in definition of macro ‘alloc_ordered_workqueue’
> >    419 |  alloc_workqueue(fmt, WQ_UNBOUND | __WQ_ORDERED |  \
> >        |                  ^~~
> > 
> > Last but not least, please use the get_maintainer.pl script to make sure the
> > right people are CC'ed on your patchsets.get_maintainer.pl will be re-run for next patchset uploading.
> Thank you for reminder!
> > 
> > Thanks,
> > Mathieu
> > 
> > >   	if (!rproc_recovery_wq) {
> > >   		pr_err("remoteproc: creation of rproc_recovery_wq failed\n");
> > >   		return -ENOMEM;
> > > -- 
> > > 2.17.1
> > > 
> 
> 
> -- 
> Thx and BRs,
> Aiqun(Maria) Yu

  reply	other threads:[~2022-12-07 18:16 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-02  9:45 [PATCH v5 0/2] remoteproc: core: do pm relax when in Maria Yu
2022-12-02  9:45 ` [PATCH v5 1/2] remoteproc: core: do pm relax when in RPROC_OFFLINE Maria Yu
2022-12-02 17:30   ` Mathieu Poirier
2022-12-06  0:58     ` Aiqun(Maria) Yu
2022-12-02 18:09   ` Bjorn Andersson
2022-12-06  1:05     ` Aiqun(Maria) Yu
2022-12-02  9:45 ` [PATCH v5 2/2] remoteproc: core: change to ordered workqueue for crash handler Maria Yu
2022-12-02 17:34   ` Mathieu Poirier
2022-12-06  1:28     ` Aiqun(Maria) Yu
2022-12-07 18:16       ` Mathieu Poirier [this message]
2022-12-02 18:16   ` Bjorn Andersson
2022-12-06  1:42     ` Aiqun(Maria) Yu

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=20221207181632.GA527346@p14s \
    --to=mathieu.poirier@linaro.org \
    --cc=arnaud.pouliquen@foss.st.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-remoteproc@vger.kernel.org \
    --cc=quic_aiquny@quicinc.com \
    --cc=quic_clew@quicinc.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