๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #21487

Re: [PATCH net v7 4/6] net: wwan: t7xx: do not exit the TX push kthread on resume failure

#21487
From: netdev-bot+sashiko
Date: Tue, 24 Nov 2026 02:29
57 lines
10255 bytes
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
Technical Details
Message-ID: <179548738191.3135.16797574721036065540@kernel.org>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.endofthelinebbs.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369971-linux-kernel-netdev=dewy.ru
References: <20261120015556.131547-5-tim770802@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.endofthelinebbs.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369971-linux-kernel-netdev=dewy.ru
From: netdev-bot+sashiko@kernel.org
Newsgroups: linux.kernel.netdev
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
Organization: Usenet Network
Message-ID: <179548738191.3135.16797574721036065540@kernel.org>
References: <20261120015556.131547-5-tim770802@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="4035138"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:Jmt5IZaWbIzuXtaQNipGKxzmK0U= sha256:STg9ruqWY7MxqHUL/CFsAMCv3NeFJjQK5YwAZykCFns=
	sha1:Nf5fWxDV9JByEVNAY+p50l50O5E= sha256:XT82joW8Z2Wvdy7JF+9sZyMOIs1Sf87IROAVgXhlp7M=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 31751125DC7; Tue, 24 Nov 2026 05:30:01 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.4
X-Spam-Status: No, score=-3.4 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 8aLDkoHh6YdN;
	Tue, 24 Nov 2026 05:29:57 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-369971-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 358F4125DCA; Tue, 24 Nov 2026 05:29:45 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id BD0D32E8A2; Tue, 24 Nov 2026 02:29:44 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1795487384;
	b=AHuzZ/Cn7Y234YgCxZSi6QF5NBfzCJIcA6E1DhDHzorXY46RMcuYP1Qr3gINSy/02Abg
	 qhL2KeOrQJOfjN2sP13l922V6pE55gX65GVJJxCLrHXcK8MCrNzNtPPn5rRzMFnXanZlR
	 Jzl97DgBJkXxk88Y0KJ6Av2+Oregt2a2CKimG/BKh7INGubBYpGyHrWoYtokIUONHey8h
	 bNDzeoAqJZgrpfk/HzMhBtd5VCdD0fGjSTfCT1fPOl919V7C7ZQA4PwvEnBb9bncc83tg
	 DcdJH9Ika9pKFEsWno8ReVQTI1r/09KjDs6NnX2GUxy3q210HcT++aW8h1CqSbrOjuQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795487384;
	h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc:
	 Date:Message-ID:In-Reply-To:References:X-sashiko-severity:
	 Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version;
	bh=TS/eTkS+HHxORAn1RQh4jjy30JBgtF0noHxXbDta8Ks=;
	b=uy1tJLBpbXgVrynrVhS8cbXQ5t9YYLudFCEug+vzi6k4x+AakM4+JAPxFknV4G9BdPNj
	 +3KN+6wYggSCgv7yA0ofYaQQjXPUZH+ippZg+1t2984+yo1uC0o/GS9SvMYE+KRRMHWw7
	 18UvVsIEAZCLT+y/rDa4ea8IhJT1R0GKD577AlPFhNVGBWaSCLUZz31/790XQ1wl0/Bfc
	 Ktgo3AWv2lsTn6WwrhQ8q6mA5+nvh83S0GDae1m39fufzzitdzgGobH+InZuqWSEwWe3q
	 AahvB8hd/AVnvituhMRkrv8QMc7qt/9IFhUKwPj5TnO5CisdgqJ35PKEREaloOZGYAg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=JJvvcG5M;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 82C0D606A33B;
	Tue, 24 Nov 2026 02:29:44 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=JJvvcG5M
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795487383;
	b=ORqc9uOagvNDlxqAJwzZ1jDKXOC5YVUGAIBLTYLU81OKpj6xgHmtzCWVww43JwYCppAi
	 J2HGTiGuuYKtWeWhinwd26k1DZQWQchUC07aOzB9E0QEXPZVoOlzXY1s+BGLsI/eHkik9
	 Rz+k4A6wpyD7XNv8yqCGRW6Mnf2jwjd3l6oDwAXdE0zIBfH02MqNW905C7Tuy8dsV/3ye
	 PuFXeGlZfsTeitZsAgQ7Iq25rF0dcUUloiODb/tYWSbxYoePIQzgH46Cza9aIY0PEKUx8
	 E7gg67wzyB2IPxcuMst4z8K0IRd5yrv1aKtn84kvGMHlmK1Ha6zZLTV5hL2Kl7vLung==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795487383;
	h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID:
	 In-Reply-To:References:X-sashiko-severity:Content-Type:
	 Content-Transfer-Encoding:MIME-Version;
	bh=TS/eTkS+HHxORAn1RQh4jjy30JBgtF0noHxXbDta8Ks=;
	b=apmvG/yFETKUah0stHnRpf5lHiYcji65XFmoQD7bI5pHWKb53z9DMRWfuFdfJ/5BAyPf
	 Wxq77WNP3dna8Bo6Yp0U4MwOIBU84WviHrrdNERcU/B3o6whGo+przWgivER/z8UKpJRV
	 6ibdfoMxO/OzBOOp9/aWQkA37xcg/PEVd1/lf49d2PlByHESuVeDe/AEg5FKbY31RV3As
	 Gr1/TpSnqD4VMRH8s4WCOeFmn0b50HpTRw4zWdaiI1Ite8joRtWgIeXL50tI97U8wJV2s
	 6WPxNdwNPSST5zkWv/1zau8BNkZB2co8W1grP+TqHLV26oeGuZQfpgo8VkxDfpeW4vA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=JJvvcG5M;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id A119E606A327;
	Tue, 24 Nov 2026 02:29:43 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5AC1E1F000C0;
	Tue, 24 Nov 2026 02:29:42 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795487383;
	bh=TS/eTkS+HHxORAn1RQh4jjy30JBgtF0noHxXbDta8Ks=;
	h=Subject:From:To:Cc:Date:In-Reply-To:References;
	b=JJvvcG5MALJ7lSa1MnTsXQXda22NfoyiFmmwbCjPKGty9Y9ouNKa2vNsmdkC0u3XH
	 Q9LdUAaLLkFXEvbuooKR0Q/0kbExjDprjcoYGxz5/c2nDEr632l1KiU0GTMui+n5Ls
	 vXIcZpTVa2YfYDvsaEWOhiYgujznhAdbyXf5qXVU6k+b4sBG6TvpdM9aKdloXxx86q
	 ErnDkn6mIyUnqYvj3S9HwL+1sO9lhZDoP8SbRUDsnsM4/NGvNeayd+yMAtFR1WJw3+
	 Odb4BJIUWiSCcvxoGhCTx/3NexsQISiXU7RxffpKiEYXyP1SpuKKvZvNZaws8rYvUc
	 E3WObRIJN6aDw==
X-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
X-In-Reply-To: <20261120015556.131547-5-tim770802@gmail.com>
X-sashiko-severity: Low
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list