Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1856650lqo; Sun, 12 May 2024 23:36:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVLqHjXHERRe+qyViPxWlZW5uIojpCKxViV6lvnJeckXWZZGdztRSNztjCtpDNsdsm3+qdmQ2Sk5nTVvjB3+/FQfyQ1bpywSz61yEIPIQ== X-Google-Smtp-Source: AGHT+IHMtRC/1kvGwQfkKK7A8o0N7QT3HcpB3qxTmUuAXoE3JrZltgshzaJxhX5JZMm4zVGgpsaO X-Received: by 2002:a17:902:8602:b0:1e2:3d05:5f4c with SMTP id d9443c01a7336-1ef43e269e8mr77758425ad.39.1715582209757; Sun, 12 May 2024 23:36:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715582209; cv=pass; d=google.com; s=arc-20160816; b=bf4d//+p/uXtoyOHWAPC5ZJEFCe1iIgs1Imcbfmi/L0c/S8GeF11LJW1v5tp2c5nl1 0wWdCq4m8CYcSOH5zDquiSb0prtQtLPBJCFEeqRBb7FbFqqp0l4Y1GOW19PCmR3zx01O NdQp1/quhegnrTRfOI2iGaYFA3Y8PKRNeAQq7aneQYPYQs3QSNl3KmrTv5t6Sp3vUJ3L msUieinXF22KK73ZCvoUfe605n16IUBgnwEJCN3sl0Vf84QdRAkoDo3zPgbkKu95qpVb nA9X2FkqILaXrh035EH6P6Gae6hh+IfAHLKpAEAMfZT/InXYm/nkVmfOu68Ueucw5kM+ hprA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=0EGtnKPDviboPsBXq5+rgyGQaI5vXPmCAm++Q2hDMm0=; fh=ygSZoIl28KXZMqxc62ATcSCqyue1uO417yv9dfz2J6E=; b=blehlOMa37mArWwjXHnMidANBAX8H3YaAJ1yECeTAY/L7Wr5Q5rNP4cC9LDTO75dZy HWNiIuq8fI4K+3XlFxWhTf8VbnS4A6dlp7MkIe1e1rLqeTIZnbpg2xxFR6zRa3C1uvkA BbZy7re2qhjYPiQThBeLp0EbpixBdZFoPAdMvEU37e+Ufdtb7ueFyMdS3RAbBn97Z1E4 KZ8dWjs07ho9tbsLRoh8rHf/fpFpkylbdbbB7ISVP+L74h1IQVNalsyseuxyz7NENzQF 9BL8BhLj4sb0HO5sJPqDNvyFbZmOgknMuVDOdn9llyZsea1GP/jUSk5Suz5WWRpYAp5c VhjA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tTaxfkDW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-177206-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177206-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0b9cf1ecsi83288505ad.75.2024.05.12.23.36.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 May 2024 23:36:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-177206-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tTaxfkDW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-177206-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177206-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 647DB28124C for ; Mon, 13 May 2024 06:36:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E14CA145FF0; Mon, 13 May 2024 06:36:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tTaxfkDW" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0C40614265; Mon, 13 May 2024 06:36:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715582200; cv=none; b=hTKuiHRp2hCxT7SB31HgZU1jo4J1/TyEJZ2nsQCAMmBSeRMUFeOBcDZNKhIOrij/OVMNehr0UsariJ4vwH63mbjTGaRWHLNH+4S80VbNcCK6XCJM60x5abTLUgq34Mduv7LL4g8nDLFh342SZ8M0j6L3J56bfr2UtOCICBPrWKo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715582200; c=relaxed/simple; bh=TbOvTyRXh66VompTcjMDwvYNM69rIo59zf33ZAIoC3k=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=LIjdeOH36cMpBWmk5u8UJpYaZKQvnK4kpyEC36gaC/VEk3e2S6LW847kMBk23vM3CP0nufMU8GR/PlowD3OOzvh7S1c7NH8nF6RGIT4OFJFjQfGrFiLoOCj69P9HG9cZqBDSY3uUY+JGfkD59lh5qmznWTZhBfEU3nFo6XufPJo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tTaxfkDW; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 49A8EC113CC; Mon, 13 May 2024 06:36:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715582199; bh=TbOvTyRXh66VompTcjMDwvYNM69rIo59zf33ZAIoC3k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tTaxfkDWkpFLHTwZC04kCtJkxNIENzZTmI5PYUKwkt1HRtZwwVBTYbFXCKWXcUsFE lu793V3wsQpVnnxhiyy4l3w5M3BManAyomm+xMwTAyNaim5rV90eGNn3mMiMpD8jsA UqfnBD4pUsnBApFDVrZ72bs8rFERvxkxKcnlGxScNmrpZTFJO+rliEnufnsu6y1QsJ jdnX14KSi0SrFalr1dugXSDJs67FWBNS2YuhD+3FL8+CiNOMhnAtTO7NBueFaBX95U Nzb7vZnq+/kTgT5lFs+P3Qv+b3a98AU3Lm85P6JH8vioKPHQYsZ7kJnumUdy3NbnRA DYkUpN6BPUoVA== Date: Sun, 12 May 2024 23:36:36 -0700 From: Nathan Chancellor To: Maxime Chevallier Cc: davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, Andrew Lunn , Jakub Kicinski , Eric Dumazet , Paolo Abeni , Russell King , linux-arm-kernel@lists.infradead.org, Christophe Leroy , Herve Codina , Florian Fainelli , Heiner Kallweit , Vladimir Oltean , =?iso-8859-1?Q?K=F6ry?= Maincent , Jesse Brandeburg , Marek =?iso-8859-1?Q?Beh=FAn?= , Piergiorgio Beruto , Oleksij Rempel , =?iso-8859-1?Q?Nicol=F2?= Veronese , Simon Horman , mwojtas@chromium.org, Antoine Tenart Subject: Re: [PATCH net-next 0/2] Fix phy_link_topology initialization Message-ID: <20240513063636.GA652533@thelio-3990X> References: <20240507102822.2023826-1-maxime.chevallier@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240507102822.2023826-1-maxime.chevallier@bootlin.com> Hi Maxime, On Tue, May 07, 2024 at 12:28:19PM +0200, Maxime Chevallier wrote: > Nathan and Heiner reported issues that occur when phylib and phy drivers > built as modules expect the phy_link_topology to be initialized, due to > wrong use of IS_REACHABLE. > > This small fixup series addresses that by moving the initialization code > into net/core/dev.c, but at the same time implementing lazy > initialization to only allocate the topology upon the first PHY > insertion. > > This needed some refactoring, namely pass the netdevice itself as a > parameter for phy_link_topology helpers. > > Thanks Heiner for the help on untangling this, and Nathan for the > report. Are you able to prioritize getting this series merged? This has been a problem in -next for over a month now and the merge window is now open. I would hate to see this regress in mainline, as my main system may be affected by it (not sure, I got a new test machine that got bit by it in addition to the other two I noticed it on). Cheers, Nathan