From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796196112; b=LYJVQS+pp0xmcJu/TYiEo+N8/btTCRvNGFhJIE24aLSvKDbDbpjj2c0fevOwKmzZNgQo kOP9po9s2FMgb3MdhKw4bmP9FQVGMud5Efur8LUX6LQvPzNEOaGswpm0d8VX+9DBpiQEW ZnrYWVu343KhF8eY5L7cq4BFjOdTUrx6DojkZ/Y2Wdiir58y1XlB2F1x6DJeaeRoDTDlw byPkurLYE9mv7/nL4CbL4mW/ZoC+m3NoNK3pJT7pysyWz0ZayEa3zLFJPU/OWzZxl1EnP C0C1t2Z2F8qE3asHWfj/mUIxZm4Tg/cTF7+OkNRio/gEeXlzekdMHwworuua29NElNw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796196112; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=mzOzU/7rbhYgqnmmaq6q0FHLTS9H9wShKjPppwdmdRM=; b=DiJUPubyKrNftkHDDA/mBAXJM40Hz4+pHm16Hh2R+aG6sVsAveC5fc/beVj3epqnXbyP rSoCHM+qo8w53NzKrE8QwGnCHarvgyN/wXowwKSS0sh6P34v7rcVm2iswTUkP0zntFRl6 SWHcz8U/gSpw7UAVUTw8pHRnTpMCpuCnYcdq2DKqgSE8zaMZRWsMSdzNlhpHf4vXYZJUW zTiQCwzLnnZn1pDJe8Qbhlx72t1PX81utwBQePFdxvTKV4ZHPkUAYdUa42xACt/BjA35S cuiX91SV81BBrRGNqubabct70XQVYsaVVpQUL9ITLJx+u2DvEoB+teaPsjNjjOZbd+w== 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=PSEXwE+v; arc=none smtp.remote-ip=100.103.45.18 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 BDCDD606A32A for ; Wed, 2 Dec 2026 07:21:52 +0000 (UTC) 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=PSEXwE+v 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 Reply-To: sashiko-reviews@lists.linux.dev 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-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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