mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: netdev-bot+sashiko@kernel.org
To: tim770802@gmail.com
Cc: netdev@vger.kernel.org, chandrashekar.devegowda@intel.com,
	haijun.liu@mediatek.com, ricardo.martinez@linux.intel.com,
	loic.poulain@oss.qualcomm.com, ryazanov.s.a@gmail.com,
	johannes@sipsolutions.net, andrew+netdev@lunn.ch,
	davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
	pabeni@redhat.com, ilpo.jarvinen@linux.intel.com,
	sreehari.kancharla@linux.intel.com,
	m.chetan.kumar@linux.intel.com, horms@kernel.org,
	linux-kernel@vger.kernel.org, tim.jh.chen@wnc.com.tw,
	Chih.Hung.Huang@wnc.com.tw
Subject: Re: [PATCH net v7 4/6] net: wwan: t7xx: do not exit the TX push kthread on resume failure
Date: Tue, 24 Nov 2026 02:29:41 +0000	[thread overview]
Message-ID: <179548738191.3135.16797574721036065540@kernel.org> (raw)
In-Reply-To: <20261120015556.131547-5-tim770802@gmail.com>

Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.

Low priority / nit picks for your consideration:

- [Low] net: wwan: t7xx: wrong Fixes tag for
  t7xx_dpmaif_tx_hw_push_thread() exit

--

> diff --git a/drivers/net/wwan/t7xx/t7xx_hif_dpmaif_tx.c b/drivers/net/wwan/t7xx/t7xx_hif_dpmaif_tx.c
> --- a/drivers/net/wwan/t7xx/t7xx_hif_dpmaif_tx.c
> +++ b/drivers/net/wwan/t7xx/t7xx_hif_dpmaif_tx.c
> @@ -468,8 +469,19 @@ static int t7xx_dpmaif_tx_hw_push_thread(void *arg)
>  		ret = pm_runtime_resume(dpmaif_ctrl->dev);
>  		if (ret < 0 && ret != -EACCES) {
>  			pm_runtime_put_noidle(dpmaif_ctrl->dev);
> -			return ret;
> +			/* Do not exit: t7xx_dpmaif_tx_thread_rel() kthread_stop()s
> +			 * this task. Retry until the resume works or we are stopped.
> +			 */
> +			if (!resume_failed)
> +				dev_err(dpmaif_ctrl->dev,
> +					"Failed to resume for TX push: %d\n", ret);
> +			resume_failed = true;
> +			wait_event_interruptible_timeout(dpmaif_ctrl->tx_wq,
> +							 kthread_should_stop(),
> +							 HZ);
> +			continue;
>  		}
> +		resume_failed = false;
>  
>  		/* A runtime suspended device was resumed above and had its queues
>  		 * restarted, so a stopped queue here belongs to a system suspend

[Severity: Low]
The Fixes tag seems to point at the wrong commit. As far as I can
tell, 46e8f49ed7b3 ("net: wwan: t7xx: Introduce power management")
only added the system suspend/resume PM entity callbacks. It did not
touch t7xx_hif_dpmaif_tx.c at all.

The pm_runtime_resume() call in t7xx_dpmaif_tx_hw_push_thread() came
in with d10b3a695ba0 ("net: wwan: t7xx: Runtime PM"). So did the early
return when ret < 0 && ret != -EACCES. That return is what lets the
kthread exit and leaves dpmaif_ctrl->tx_thread pointing at a dead
task.

The tag drives stable backport selection, so it matters which trees
this lands in. Could you confirm with git blame and, if you agree,
change it to:

Fixes: d10b3a695ba0 ("net: wwan: t7xx: Runtime PM")

-- 
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261120015556.131547-1-tim770802%40gmail.com

  reply	other threads:[~2026-11-24  2:29 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-20  1:55 [PATCH net v7 0/6] net: wwan: t7xx: fix TX push kthread soft lockup on suspend and RX stop issues Tim JH Chen
2026-11-20  1:55 ` [PATCH net v7 1/6] net: wwan: t7xx: fix TX push kthread soft lockup on system suspend Tim JH Chen
2026-11-20  1:55 ` [PATCH net v7 2/6] net: wwan: t7xx: fix runtime PM usage count underflow on -EACCES Tim JH Chen
2026-11-24  2:29   ` netdev-bot+sashiko
2026-11-20  1:55 ` [PATCH net v7 3/6] net: wwan: t7xx: fix skb double free when CLDMA send sees -EACCES Tim JH Chen
2026-11-24  2:29   ` netdev-bot+sashiko
2026-11-20  1:55 ` [PATCH net v7 4/6] net: wwan: t7xx: do not exit the TX push kthread on resume failure Tim JH Chen
2026-11-24  2:29   ` netdev-bot+sashiko [this message]
2026-11-20  1:55 ` [PATCH net v7 5/6] net: wwan: t7xx: complete NAPI on the not-started RX poll early return Tim JH Chen
2026-11-20  1:55 ` [PATCH net v7 6/6] net: wwan: t7xx: fix memory ordering in t7xx_dpmaif_rx_stop() Tim JH Chen
2026-11-24  2:29   ` netdev-bot+sashiko
2026-11-20  2:03 ` [PATCH net v7 0/6] net: wwan: t7xx: fix TX push kthread soft lockup on suspend and RX stop issues netdev-bot+sinfo
2026-11-20  2:42   ` Tim JH Chen

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=179548738191.3135.16797574721036065540@kernel.org \
    --to=netdev-bot+sashiko@kernel.org \
    --cc=Chih.Hung.Huang@wnc.com.tw \
    --cc=andrew+netdev@lunn.ch \
    --cc=chandrashekar.devegowda@intel.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=haijun.liu@mediatek.com \
    --cc=horms@kernel.org \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=johannes@sipsolutions.net \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=loic.poulain@oss.qualcomm.com \
    --cc=m.chetan.kumar@linux.intel.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=ricardo.martinez@linux.intel.com \
    --cc=ryazanov.s.a@gmail.com \
    --cc=sreehari.kancharla@linux.intel.com \
    --cc=tim.jh.chen@wnc.com.tw \
    --cc=tim770802@gmail.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®