Article View: linux.kernel.netdev
Article #22186Re: [PATCH net v4 4/4] igb: only allow runtime PM if the device can wake up
From: Antonio Quartulli
Date: Tue, 24 Nov 2026 23:57
Date: Tue, 24 Nov 2026 23:57
32 lines
10263 bytes
10263 bytes
On 24/11/2026 22:38, netdev-bot+sashiko@kernel.org wrote: > Thank you for your contribution! Sashiko AI review found 1 potential > issue(s) to consider. > > Critical: 0 ยท High: 0 ยท Medium: 1 ยท Low: 0 > > If you believe none of the issues are legitimate, please reply to each > issue of Medium severity or higher and explain why the AI is wrong. > If any of them are legitimate and you plan to respin, please let patchwork > know by including "pw-bot: cr" as a separate line at the end of your reply > (one such reply per series is enough). > > - [Medium] The runtime PM usage count can end up unbalanced, because the > same decision is made twice. Right: pci_dev_run_wake() can change while the driver is bound. v5 checks it where the runtime suspend is scheduled (the watchdog and igb_runtime_idle()) instead of at probe and remove, which stay unconditional, so the usage count stays balanced. Regards, -- Antonio Quartulli CEO and Co-Founder Mandelbit Srl https://www.mandelbit.com
Technical Details
Message-ID:
<865b2952-d3db-4b51-93ce-28b3254d33c0@mandelbit.com>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370880-linux-kernel-netdev=dewy.ruReferences:
<20261120210134.133238-5-antonio@mandelbit.com> <179555632736.3135.1658046091917963917@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370880-linux-kernel-netdev=dewy.ru From: antonio@mandelbit.com (Antonio Quartulli) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v4 4/4] igb: only allow runtime PM if the device can wake up Date: Wed, 25 Nov 2026 00:57:05 +0100 Organization: Usenet Network Message-ID: <865b2952-d3db-4b51-93ce-28b3254d33c0@mandelbit.com> References: <20261120210134.133238-5-antonio@mandelbit.com> <179555632736.3135.1658046091917963917@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="67484"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:SNk5XKbabfgM+Gfe7KEURFgWnBU= sha256:Km5jWSLGZ/4t9C4OAvOK8w5FB/z41Ef0np9Fzci+kQQ= sha1:JknQVtTZkTaNtqYJIaQFpyhcCrA= sha256:Hdl3wjEbGOpDTjaeuh1S7kP6J+Fvls85vv9OVLUHyNg= Content-Language: en-US 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 836FB125E36; Wed, 25 Nov 2026 02:57:36 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.051 X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=mandelbit.com 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 smzkpzJa7rYi; Wed, 25 Nov 2026 02:57:33 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-370880-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=mandelbit.com X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id BFA4B125E33; Wed, 25 Nov 2026 02:57:24 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 21076348FE; Tue, 24 Nov 2026 23:57:23 +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=1795564643; b=Mz1eSV4EFU1cpX43XLb/LDDRR8q9A7B7grNfoQgY2HtcDUBNvhC2Fip+n1xkEVenVCDN DbxRzfs+Tefv6xAWDyjmMwmzOxT/0E65nyelLXVbFuSONdnzD2IlYmVvuuHHfKbb7yLRJ qHxnzwR5mSSpLJKhpQ05Eakaql1zY7eSmYciRvPgUhnomTnBLsRV1CiNHGFUu7OfKOYwf XGY6HuvRcf3fbbEh+f7aJ+iE73Yf+iwxsVIwvRHDBRoIpOzDLwDWdwkbzSNF4fAzagnCw H3c6PZiD5u5lMEMkoiSC0Sudl7PxNeMr5TofYzxkc8clBHKSsw1/Mgek5DXucRHooVA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795564643; h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature: Message-ID:Date:X-Mailing-List:List-Id:List-Post:List-Help: List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version: User-Agent:Subject:To:Cc:References:Content-Language:From: Organization:In-Reply-To:Content-Type:Content-Transfer-Encoding: X-Rspamd-Queue-Id; bh=FPGxYREIu5QBknQBTYCZT8SkLTQYnWSM7RCkrhgdZV0=; b=A7t9+QCUiazkJL0rh1t8xLm9UGelkG45OttONgTSi9ds8DvLgKYpVF3aQLKlEX07gjFT 7SwMlzy15p/JKAp8kfPsTy5JDnACy6eYsFowOwiNu7jRtI4W6JgP+mQJImCr5k85NZ9Rd IqvNrwsDTBg8pPWtu01NmiiTvN6N/6iAyO10v03jvdIRsxZULTQ9Q/r7QMUBtNNGuUinw RYrBzNEs4JJZsANhLJbaDMUf+mt3ljCYFBo9VkKkIef3hD/6p1AM6K70q8WkPEoxzACpo JD/RSPEbRWLjVZGxz8TQdMiau1WtbwwIEifbBr+9cIrLwCjnz0lo4z2iqbV3TvkbpdQ== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=mandelbit.com header.i=@mandelbit.com header.a=rsa-sha256 header.s=MBO0001 header.b=jhRuRnXH; dmarc=none header.from=mandelbit.com; spf=pass smtp.mailfrom=mandelbit.com; 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 EBF95606A32E; Tue, 24 Nov 2026 23:57:22 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=mandelbit.com header.i=@mandelbit.com header.a=rsa-sha256 header.s=MBO0001 header.b=jhRuRnXH X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=195.10.208.40 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795564637; b=SUHtG3JylGvwXCuupwD831XnZgB1lFDpAapHQnbw0stMp2numWDHrYvSDMwSg9BznHEh 9mI64fqDPPN0+s3ni72q/dze6m+XjEUTw1vP03fWPZwawr8kTaXxEE6PyfokgRmKwDf3Y baoAbtvGKQ04zkFpZZINKv497hznVaojlIfQWcw4i6wVc6twq+2V8hzM/g2qJlXz3/hPg BoCkRgjX6GtVrjcrGy8D8J+6/6adlJLF/F1JPzPRO6RrMn9FiyMhrt8KjNKadXSga1/yC aL2jZgncB1GyJnPGJUrCfZjxv8YLNGRmjxFGNYoQSTVbgPtwMEnZwADYqh5EMipSKAw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795564637; h=DMARC-Filter:Received:DKIM-Signature:Message-ID:Date:MIME-Version: User-Agent:Subject:To:Cc:References:Content-Language:From: Organization:In-Reply-To:Content-Type:Content-Transfer-Encoding: X-Rspamd-Queue-Id; bh=FPGxYREIu5QBknQBTYCZT8SkLTQYnWSM7RCkrhgdZV0=; b=OfqolTBqnTP6KD7R8/5vWbct2PE+ETnYWrxO+GMBgWWTdDdFIAXT8QWbL1mnnxIItVpa X2S20FKJD1Z8PEaV3tLSX8Q1EOKuZMu6Xx206qbce4I/Ie0riEeBM3+LAMR/x3CHt8qWT 4Ul2EssrVUxB7uVg3N1SHg0sjj5jkn5o/waDFJyJLjwjPFCcMVwSYsFHo+sV/1Jr4ZWp6 pQjqzWOTrU3g7u8dO5auhPToKutcv8WKCjSVVpRLC/CQmC5fI4f92daVEw2WOmBwDZDVV h8GU6Z4NDOEXYEyxekOqlKXcOOvu1NOvHSLoyNkRrE9/gbzWGavvFY+onJ6FVxqqzxA== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=mandelbit.com; spf=pass smtp.mailfrom=mandelbit.com; dkim=pass header.d=mandelbit.com header.i=@mandelbit.com header.a=rsa-sha256 header.s=MBO0001 header.b=jhRuRnXH; arc=none smtp.remote-ip=195.10.208.40 X-Received: from mout-b-210.mailbox.org (mout-b-210.mailbox.org [195.10.208.40]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 86023606A31E; Tue, 24 Nov 2026 23:57:16 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 86023606A31E X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mandelbit.com X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mandelbit.com X-Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519MLKEM768 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-b-210.mailbox.org (Postfix) with ESMTPS id 4jZ08y6scNzFqWZ; Wed, 25 Nov 2026 00:57:06 +0100 (CET) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandelbit.com; s=MBO0001; t=1795564627; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FPGxYREIu5QBknQBTYCZT8SkLTQYnWSM7RCkrhgdZV0=; b=jhRuRnXHKgLAEHTss96zJFJab56EGK+9ghs1SA42cJZGYE3lMIK5zLnUa/ks+oqNK8FMql Gbr/EfhYvhFoHkRJgd0TXI/wl+miqCsyiZ4P9zaK8gUAOmAc3virTnIPYz2dOJ7XQg//L9 LwBsX3i0Ed193TMfltUkt3vx/s6RBqeVLLWdOlqTn1JxMksHqNSGt78r3iISB4DKV5s/iG DkzcJ/2dgd+rGILGuvDkG/7fuCTPKLQet/xnMlCs/sZZOkM6YXu39B8k1Y4HBdDHt1EMVr 3EoS4K9ra9Mgy6URGZFyfacAbUWla+dSqvKGYCMj5vxhupNiMTsz1OaVsOpWyw== X-Authentication-Results: outgoing_mbo_mout; dkim=none; spf=pass (outgoing_mbo_mout: domain of antonio@mandelbit.com designates 2001:67c:2050:b231:465::2 as permitted sender) smtp.mailfrom=antonio@mandelbit.com 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 X-User-Agent: Mozilla Thunderbird X-Cc: intel-wired-lan@lists.osuosl.org, anthony.l.nguyen@intel.com, przemyslaw.kitszel@intel.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, janislacis06@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org X-Organization: Mandelbit SRL X-In-Reply-To: <179555632736.3135.1658046091917963917@kernel.org> X-Rspamd-Queue-Id: 4jZ08y6scNzFqWZ