Article View: linux.kernel.netdev
Article #10397Re: [PATCH net] net: ethernet: adi: adin1110: mask the RX IRQ of the port being stopped
From: Yuehong Wu
Date: Tue, 03 Nov 2026 12:09
Date: Tue, 03 Nov 2026 12:09
33 lines
9998 bytes
9998 bytes
Hi, Here is the information missing from the changelog: - How the issue was found: during a code review of the driver that was assisted by an AI coding assistant (an LLM). The assistant compared adin1110_net_stop() against the bit definitions and the mapping used by adin1110_port_rx_ready(); I then checked the finding against the register semantics used by adin1110_net_open() (IMASK1: 1 = masked). - Triggered or theoretical: theoretical. I have not triggered it and there is no reproducer. Expected symptoms if it is hit: on ADIN2111, bringing one port down masks the peer port's RX-ready interrupt so the peer stops receiving, while the port that was brought down keeps its own RX interrupt enabled; since the interrupt is level triggered and adin1110_read_frames() skips the FIFO while netif_oper_up() is false, pending frames keep re-asserting it. On the single-port ADIN1110 the RX interrupt is never masked at all. - Hardware: none. The change was not tested on real hardware; it was compile-tested only (CONFIG_ADIN1110=m, x86_64) and passes scripts/checkpatch.pl --strict. Per Documentation/process/generated-content.rst, the tool assistance is noted above. I have reviewed the analysis and the change and take responsibility for them. If another revision is needed, I will fold this information into the commit message. Thanks, Yuehong Wu
Technical Details
Message-ID:
<20261103-adin1110-clarify-1-yuehongwu@cmss.chinamobile.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-355556-linux-kernel-netdev=dewy.ruReferences:
<20261103-adin1110-net-stop-1-yuehongwu@cmss.chinamobile.com> <179370682903.488859.10553739131009732027@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-355556-linux-kernel-netdev=dewy.ru From: wuyuehong@cmss.chinamobile.com (Yuehong Wu) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] net: ethernet: adi: adin1110: mask the RX IRQ of the port being stopped Date: Tue, 03 Nov 2026 20:09:33 +0800 Organization: Usenet Network Message-ID: <20261103-adin1110-clarify-1-yuehongwu@cmss.chinamobile.com> References: <20261103-adin1110-net-stop-1-yuehongwu@cmss.chinamobile.com> <179370682903.488859.10553739131009732027@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="3179262"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:HChB99itV5tSGKlQMhPGkmehzcA= sha256:Z/kFi36wXV8eeDFpQYrZ/j6/mjAkdi/l6WBq2e8qINM= sha1:d9ycAHxl5U4vcazGh4Do5SYDmyU= sha256:NuSwse5yR8RdApKSwornPXH/iEZsd+JBlx8qwXB2TNg= 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 C83F01128BE; Tue, 3 Nov 2026 16:53:43 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -2.751 X-Spam-Status: No, score=-2.751 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_INVALID=0.1, DKIM_SIGNED=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=fail (1024-bit key) reason="fail (body has been altered)" header.d=cmss.chinamobile.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 56HU1d72eGRW; Tue, 3 Nov 2026 16:53:40 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-355556-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=cmss.chinamobile.com X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 075601128BA; Tue, 3 Nov 2026 16:53:31 +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 ED8BF64CF4; Tue, 3 Nov 2026 12:09:39 +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=1793707779; b=tCT1tlHbS+05dWbIRph9sRtd0gnA7txrVQ+mSKNWdfjN8Ct24cyIA3sSLLzpO93KdxQ/ zspLNvPGa4kqX/5fmQYf060BqBzWn7+NhgeZWQHtk5+BXNlcpXWIt4IL0nKkGrZpCDoBM 7RgDmlv6Up9ATsSJB2ywkHwn2zfe01OgXOT5uZPMAIeu7MnVRPAWx4juIcKkjsm+i45/f 61Ukt5p1Lij6qyPNkEdL7FAssQkP15ue6weqDNARuorpIx7GCX6eYXZ8hTl9LhqeWOsX/ Rk+v9Q86czl3xcipg07OIoMnmD0CsfecxY6QWkLnuwD08+Qm1mKEOXuvYBd8UrFylYg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793707779; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:X-RM-TagInfo: X-RM-SPAM-FLAG:Received:X-RM-TRANSID:X-RM-TagInfo:X-RM-SPAM-FLAG: Received:X-RM-TRANSID:From:To:Cc:Subject:Date:Message-ID:In-Reply-To: References:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type: Content-Transfer-Encoding:X-Mailer; bh=qOgVcaVCfVDurCdKkOzwU6BX+3zAlyWvZ5jp4m/3mPw=; b=eo6+lm+8pif2bIJBywq5/mMG/O80gaWByfW2tBZuCtsQULaY2dpXtTkCC0n9vDbRlT16 cTHlfnjqeiFHMdxBHN64++8B9Cj1mxh73blA7lj3AlUoFPSdzERp24CqIJKR+B6WJN/YS e/EcC/cpVuUUq8ZDTO85ehx0JKoIwjjS2gIERuozyTh2WhDYxRUKrNuWEE5xwANNr6H01 qqxKufTglpoKyZ73O1eq+z1Klu3byzuGbtNJsUWufquu8ASwJtsTe7A9m4I8xxUZvKDa5 8lTLRZMJgVPuMYa1e6SqfsusDopPDvTx3nFw3KQpnoXsk3bVfTPVLxctJMz7+1LLW5w== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=cmss.chinamobile.com header.i=@cmss.chinamobile.com header.a=rsa-sha256 header.s=default header.b=ip3Fe6JO; dmarc=pass header.from=cmss.chinamobile.com; spf=pass smtp.mailfrom=cmss.chinamobile.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 01F3E606A336; Tue, 3 Nov 2026 12:09:39 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=cmss.chinamobile.com header.i=@cmss.chinamobile.com header.a=rsa-sha256 header.s=default header.b=ip3Fe6JO X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=111.22.67.151 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793707778; b=wPZEAMWPInsc4EDUJ4knJC9wEW1Pyf/RKNLtIf1A0YU7bbWEbv9td+DTbmdu0epHrm7A Bz1akD69krWD/kt2vKZM0xz9PJHKOnl7q1RbbXhdCh+NbAqd0XeCydPBRAVl1yeysSTe+ Exaq/jQVbkWsDfjkrhs6MWvV/UXoEgWkRCL0mSUSaGYwhowrJS2egOHbvuD4xR3hajxuK riz7tJUiORjNlaoRCbCLynNlD/jElRFMmmJL2ZAEZg1XHCl8/1BT4PyFcjcFfpZbi6eQV r/VgFVltTfMdw0/3aoPOwQeAOVkpHJ1geTDCzueou1FQbFJ+qdrKOfPMJU8a3Bx3afQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793707778; h=DMARC-Filter:DKIM-Signature:X-RM-TagInfo:X-RM-SPAM-FLAG:Received: X-RM-TRANSID:X-RM-TagInfo:X-RM-SPAM-FLAG:Received:X-RM-TRANSID:From: To:Cc:Subject:Date:Message-ID:In-Reply-To:References:MIME-Version: Content-Type:Content-Transfer-Encoding:X-Mailer; bh=qOgVcaVCfVDurCdKkOzwU6BX+3zAlyWvZ5jp4m/3mPw=; b=aF2jJ4G/tstsQ9WWGKyvT5UFrse01kgEgdHGZuFvx2FVWA/4y2vjxIMmQJrtpIYBK6yp FAQxDIV24fxszsEo91MKcOqu9WzhGvo5pSM398Ggt1wJErSDvryg4JPEszcJ8ZRswrSYh Xao4Q+d1/q+LhVpo3U/H8EbFttgxXB9CgXyRFMRtEAubT0D15O5tnmH3jETZ5vQ7DngLr /jTS6jmINucCxgoXgFOEMjsw3Puf/+VM5nxgfbgi1OmZIzhho7Iz4OOIXYpU8fVi/zRLQ rNLMu/KCIpwCgkm5gKmaZn2MoLAvLD+CxdLSixrEWzZxubN3BYHwcyomXFWn142Vyng== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=cmss.chinamobile.com; spf=pass smtp.mailfrom=cmss.chinamobile.com; dkim=pass header.d=cmss.chinamobile.com header.i=@cmss.chinamobile.com header.a=rsa-sha256 header.s=default header.b=ip3Fe6JO; arc=none smtp.remote-ip=111.22.67.151 X-Received: from cmccmta8.chinamobile.com (cmccmta8.chinamobile.com [111.22.67.151]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E1599606A32D; Tue, 3 Nov 2026 12:09:35 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E1599606A32D X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=cmss.chinamobile.com X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cmss.chinamobile.com X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmss.chinamobile.com; s=default; l=0; h=from:subject:message-id:to:cc:mime-version; bh=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=; b=ip3Fe6JOQaCT+v808aulAvX66nfYRcwickWpP+CoQfXLol5xUKo4DlI4WqMbcO/iokObv+kHf6AEC EExEw/5c1yr0vpidgkIfZ+HpC7TKJOysIzc/CvhatfhKkY46t/wrK7HUbI2JQ/5zNHnB+9q6Wnj1Dy H+Ay0osxhaKS9GrM= X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 X-Received: from spf.mail.chinamobile.com (unknown[10.188.0.87]) by rmmx-syy-dmz-app06-12006 (RichMail) with SMTP id 2ee66ae9cefcbdc-6136c; Tue, 03 Nov 2026 20:09:34 +0800 (CST) X-RM-TRANSID: 2ee66ae9cefcbdc-6136c X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 X-Received: from dsh.local (unknown[10.55.1.72]) by rmsmtp-syy-appsvr09-12009 (RichMail) with SMTP id 2ee96ae9cefdd64-f8da8; Tue, 03 Nov 2026 20:09:34 +0800 (CST) X-RM-TRANSID: 2ee96ae9cefdd64-f8da8 X-Cc: netdev-bot+sinfo@kernel.org, linux-kernel@vger.kernel.org X-In-Reply-To: <179370682903.488859.10553739131009732027@kernel.org> 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-Mailer: git-send-email 2.43.0