From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (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 BBA87606A331 for ; Wed, 2 Dec 2026 07:21:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=osuosl.org header.i=@osuosl.org header.a=rsa-sha256 header.s=default header.b=OEDTrMUS; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=PSEXwE+v Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 9E0D880EFD; Wed, 2 Dec 2026 07:21:58 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id hnGAqZyQQZ2v; Wed, 2 Dec 2026 07:21:55 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp1.osuosl.org A96DE80F69 Authentication-Results: smtp1.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1796196115; b=UOVKFYAycfL0bQmJboEaJmKtlsQXah/5w/CElHsH/EzFxbTgI0uMocWMnA5oav5Ma8HD PyXlJI9KxVOzYh5Ha9DwTKuYu10uvsBgq5knsoFEKv9z4w6pgWDMN0sttzqlBv+WuDDrd 72E45C4PnUK/UewB9dkQSZSl/9++1xjZhNB9XMi/VK2hjSAkiriVHEXnh7nKCnfpjE9Lb wgShIMSa1+3xLjoVBN3+zuyFUNq4MLpXixCcxbRd78yMcNJ3S8woS7TCht/5crED+Geep HFFjbAQOMIQrd5SEisP5FKx1rhVDH0ubEfPB0+h5TrtyxgFV2B7u3k5DdK2uZgk4Vjg== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1796196115; h=X-Comment:DKIM-Signature:X-Original-To:Delivered-To:Received: Received:X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level: X-Spam-Status:Received:ARC-Filter:Received-SPF:Received:Received: Received:DKIM-Signature:Message-ID:From:Subject:To:Cc:In-Reply-To: References:Content-Type:Content-Transfer-Encoding:Date:X-BeenThere: X-Mailman-Version:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:Reply-To:Errors-To; bh=mzOzU/7rbhYgqnmmaq6q0FHLTS9H9wShKjPppwdmdRM=; b=NTlcMPgmgv/9lLoFFMNyn2bmuQNFex8eor3vJUwWcXnzu5zA3AqM8mbg+X8va6/jGUGT FKDwFqBkMhYul12uRLpFcSvLU+yGv6AHap7aR0pMeAfczM7teWcNEJq6SPwTShUorBu1A Mw5EUY6P0xja3OXSGuB5tzdILeUFXfdDuXmSxLkjaBkRReN+YkasHhqpjLM+qy2uinPyF MhPlqDDeZwqiElBaU6W5zINUs/sorkptupCUKExYteY4qHHcne9KVOhTcbTENi2cm7/lD XA/pG68c5iB8letZtNzHam5T9QZGk0ZsiXfgbwigJrF96KaOtMU8tiWEd13/KB6G56Q== ARC-Authentication-Results: i=1; smtp1.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1796196115; bh=mzOzU/7rbhYgqnmmaq6q0FHLTS9H9wShKjPppwdmdRM=; h=From:Subject:To:Cc:In-Reply-To:References:Date:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Reply-To:From; b=OEDTrMUSPnYInT8ElzfhX9+DswIGJP9cU2bpDfdYH3N3WjsJXqWCOT04hXMWA6KkZ yFD0JGeD87PTPNGRcXJdpz/ox7L9u9RPCjgEkOH2AuIStvf+Ub8RJeZMy0H8cKbN2F jkS4Ri11Pr+s0ZQBTBix8y0YcnX+Oi9Qbz7Sd+pFdDroJ54fOBEmJ1RzIdRdVsJbVF F8O7pkbLqTflaybFb6uGUVeYx8ikk0xRKy9UF3Ruotqd9csxZMKfUOrSNORHdjwDQ/ tnG47dRlsDMzs7vQ3jjEm3dmREGf+wAecaBmPHy9S4AZV0Bzvc0DscBoI5ivHgqFJh tHOlUIwWkqSKw== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp1.osuosl.org (Postfix) with ESMTP id A96DE80F69; Wed, 2 Dec 2026 07:21:55 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists1.osuosl.org (Postfix) with ESMTP id BEE75325 for ; Wed, 2 Dec 2026 07:21:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id B06406076A for ; Wed, 2 Dec 2026 07:21:54 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id BaFDgq9T9a35 for ; Wed, 2 Dec 2026 07:21:54 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp3.osuosl.org C96246077B Authentication-Results: smtp3.osuosl.org; arc=none smtp.remote-ip=172.234.252.31 Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.252.31; helo=sea.source.kernel.org; envelope-from=sashiko-bot@kernel.org; receiver= Authentication-Results: smtp3.osuosl.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=PSEXwE+v Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by smtp3.osuosl.org (Postfix) with ESMTPS id C96246077B for ; Wed, 2 Dec 2026 07:21:53 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id B73AA41B22; Wed, 2 Dec 2026 07:21:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 672401F00893; Wed, 2 Dec 2026 07:21:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796196112; bh=mzOzU/7rbhYgqnmmaq6q0FHLTS9H9wShKjPppwdmdRM=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=PSEXwE+vxAJoUHNqQLU0TuoRwPvJUB1kS6VFxSPjEeCk/4SAFQpZxWT0kWHyuoeTp U5Sp/29hH7ku/vaHXk5YjP+4HtakGITPBGQu9USsiXhNJifVlZUcZILqUF4DBsQDHG 9OmXqzkMKYxpK/IX+YBji8hh0zn/ZMf2BQ/NJYx7w6e0tXkOrlJiZenwd2F0cLhofh J9PH4xoox77Lry58/aKUaJyVUaQmsGXBzVetvExUlLcF0apuFiei4r+SrIhLCBz5e9 19sXKHKY6LKj2WgqsOFeunjemuxWQwNCzWYi6DqodE39Ro05zgU85H0omE3aINt7zW OW50C0g9SpJ6Q== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH iwl-next 3/4] e1000: attach a CE4100 PHY through phylink To: "Joseph Telaak" Cc: intel-wired-lan@lists.osuosl.org, devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261201-e1000-phylink-v1-3-21e6f1c816a0@telaak.dev> References: <20261201-e1000-phylink-v1-0-21e6f1c816a0@telaak.dev> <20261201-e1000-phylink-v1-3-21e6f1c816a0@telaak.dev> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Dec 2026 07:21:52 +0000 X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sashiko-reviews@lists.linux.dev X-Spam-Status: No, score=-10.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 X-Archived-By: Thank you for your contribution! Sashiko AI review found no new issues in this patch, but noticed 1 related pre-existing issue it does not introduce: - [High] e1000: ad-hoc spinlock via __E1000_RESETTING flag in e1000_reinit_locked() [1] -- commit da0da53a09c5ef0583118763d6a533519b6d4ad7 Author: Joseph Telaak e1000: attach a CE4100 PHY through phylink This commit registers the CE4100 MAC's MDIO bus when the device's OF node has a phy-handle property and connects the PHY through phylink on open. > diff --git a/drivers/net/ethernet/intel/e1000/e1000_main.c b/drivers/net/= ethernet/intel/e1000/e1000_main.c > index 2343252b89fa6..60ccfce3c8895 100644 > --- a/drivers/net/ethernet/intel/e1000/e1000_main.c > +++ b/drivers/net/ethernet/intel/e1000/e1000_main.c [ ... ] > @@ -1625,8 +1712,10 @@ int e1000_close(struct net_device *netdev) > set_bit(__E1000_DOWN, &adapter->flags); > clear_bit(__E1000_RESETTING, &adapter->flags); > =20 > - if (adapter->phylink) > + if (adapter->phylink) { > phylink_stop(adapter->phylink); > + phylink_disconnect_phy(adapter->phylink); > + } > =20 > e1000_down(adapter); > e1000_power_down_phy(adapter); [Severity: High] This problem wasn't introduced by this patch, but e1000_close() and e1000_reinit_locked() serialize concurrent reset and administrative paths using an open-coded lock on __E1000_RESETTING in adapter->flags [1]: drivers/net/ethernet/intel/e1000/e1000_main.c:e1000_reinit_locked() { while (test_and_set_bit(__E1000_RESETTING, &adapter->flags)) msleep(1); ... clear_bit(__E1000_RESETTING, &adapter->flags); } Spinning with test_and_set_bit() and sleep calls bypasses lockdep and scheduler tracking, which can hide lock ordering inversions and cause priority inversion when multiple tasks contend for adapter resets. Could this use a mutex instead? [1] https://sashiko.dev/#/bug/linux-6ec4586c-3f46-44f1-86b8-f8ee2578cebf --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261201-e1000-phyl= ink-v1-0-21e6f1c816a0@telaak.dev?part=3D3