🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #24164

Re: [PATCH] net: phy: avoid synchronous module request in async probe context

#24164
From: Andrew Lunn
Date: Sun, 29 Nov 2026 15:38
21 lines
9306 bytes
> Hi Andrew,
> 
> After testing PROBE_FORCE_SYNCHRONOUS on the r8169 MAC driver, the WARN
> still fires. The trace still starts at async_run_entry_fn and goes
> through the parent Sky1 controller probe, so a child driver's probe_type
> does not move it out of the async context.

I suggest you work on this. This seems like a driver code bug, or
maybe a PCI bug. PROBE_FORCE_SYNCHRONOUS should be respected.

As far as i know, there is nothing which requires a subsystem to
support async probe. It is an opt-in option. I'm not sure phylib can
be made to work in async mode. Here is a reply to a different thread,
which explains some background how phylib probes drivers:

https://patchew.org/linux/20261109-device-trust-core-v2-0-3b12d9a9f861@nvidia.com/20261109-device-trust-core-v2-10-3b12d9a9f861@nvidia.com/

Scroll down to  "Maybe some background will help".

	Andrew
Technical Details
Message-ID: <b01fa0aa-c669-4b2e-b7da-dfa75511621e@lunn.ch>
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-373551-linux-kernel-netdev=dewy.ru
References: <20261124070753.25972-1-18255117159@163.com> <179559227928.3135.10596298102368144827@kernel.org> <0437f8be-41ca-4fb8-b775-ed02413ea16d@163.com> <24787f0c-e90e-45f1-a9f3-d0772fbafeaf@lunn.ch> <c1ee530d-21bc-4b50-881f-3be9b2654b9d@163.com> <04208d88-5611-4b08-b4a3-4030d75fa946@lunn.ch> <c0834daa-176e-454b-8408-3818ead9c688@163.com> <cc92cbe1-b65e-4fe8-be18-baae49dfb53b@163.com>

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-373551-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH] net: phy: avoid synchronous module request in async
 probe context
Date: Sun, 29 Nov 2026 16:38:30 +0100
Organization: Usenet Network
Message-ID: <b01fa0aa-c669-4b2e-b7da-dfa75511621e@lunn.ch>
References: <20261124070753.25972-1-18255117159@163.com>
 <179559227928.3135.10596298102368144827@kernel.org>
 <0437f8be-41ca-4fb8-b775-ed02413ea16d@163.com>
 <24787f0c-e90e-45f1-a9f3-d0772fbafeaf@lunn.ch>
 <c1ee530d-21bc-4b50-881f-3be9b2654b9d@163.com>
 <04208d88-5611-4b08-b4a3-4030d75fa946@lunn.ch>
 <c0834daa-176e-454b-8408-3818ead9c688@163.com>
 <cc92cbe1-b65e-4fe8-be18-baae49dfb53b@163.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="1197778"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:6nibCP4B3c6/ptYSAk6pWmeue58= sha256:YZF2fIDC/kwKRkWrXi/bJ0CY8NUXlWT8+OlV1XvDIWw=
	sha1:hmYFT1dqvwW4Og8sho5CgcZdbwI= sha256:fDXG0g8qHTnDITA4evt/TNVYu1FcL3sf+LIU5HSqShk=
Content-Disposition: inline
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 D915C125F98; Sun, 29 Nov 2026 18:39:11 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.151
X-Spam-Status: No, score=-3.151 tagged_above=-9999 required=6.31
	tests=[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 (1024-bit key)
	header.d=lunn.ch
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 07BBZprryktz;
	Sun, 29 Nov 2026 18:39:03 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-373551-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 73185125F99; Sun, 29 Nov 2026 18:38:54 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id 3BF44600773; Sun, 29 Nov 2026 15:38:54 +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=1795966731;
	b=jmHGQZDP9VDrXeVbxajkFj7VGR/9v3JKSGzgwQb1XwZugiE3gMz2/fxUSmdniEwVe8B5
	 IuzAY6itGf2Jd0UsdIFwx6Lr2l7Enwv6Sgh/DidppbqkvLJmCRpEEmZ7vOmMahzApa2Xn
	 D1AEpm1ukxEVOli7iwR9lX0Bt7/0seWgGerFXD7opdqsn3ArczD+wOE2uF3weuTxCMbHT
	 Mdqz3kW6NzEkJC+c7qSl+Mb01d385UaWJYu41U3I5J8S5sk0aJq8qbvzxRQ5ybrnU6m8T
	 yZhruvAr7SPauyt+axk9+ktDPBSFKWZQbQFxpLVI4c2oepofe9RW7tDEVhjU33TuzAg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795966731;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date:
	 From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=9WEUaFZmTynrB9yTwLh4dVJMR6htpZYIeGcuyj250os=;
	b=C0dyD3ckr6wBNu114cuAmXgtpJf7NLKykZ/M0T5QcsCM8F6DBOKicll4yJUpPkHacuNW
	 C6VcDn69+yafhmj0JpOyyN5oAmHWv/vX5Ye+K25MP11PLH5GoEO8KhKZujna4AvLj092h
	 v8TXeci6FVt6YyDhdrscN6H0Wi2IUn3IwZSuHCodDOxAnvhoVQl9EwndYbn99w20jKcR0
	 HDg4rHEdckK5u0URMMLNxLPOvjm/+wUdhfqxim9lc/lEFrZ0stq8bPotJOOMdlIQ0zNsF
	 9MtkmPncQRolxA0mkcUtTia+xQy2IA6w6TYWu46veYedRKh0uV4wWmUSEsmd0lDOUSg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=3f+JK2hm;
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	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 13DBA606A689;
	Sun, 29 Nov 2026 15:38:51 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=3f+JK2hm
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795966730;
	b=LRMLLLBTBt3REtwT2qnd70SBjr4blQPrNAxjgy653cAq//mj0XohjBXFRrGQAv78+imx
	 lcoeI5lH8rSfNbmQo6EY2UlkQz8BSwKgoOTUntROKr9GLKLW67+37upgIkOtLKy+iBTna
	 EGqqhRSuZvoM1NqNLT2Pg1W851Htl7gAXSnLtONBULM9eMcIuje/VCktuSw2jzUtVYRXa
	 X3eiYmYGsDBx/UdWhFNhAoTYaC44oIe+/bFA9t7z107LMUqLaJ1gCPpabTo4gf9ICfkb4
	 LQed6cDeTmuyQrBJZvR8uGOynnvjLRlTcAvuTmm6zFD5jfZaPoCsMsmMwyUwl+zwgTA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795966730;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To;
	bh=9WEUaFZmTynrB9yTwLh4dVJMR6htpZYIeGcuyj250os=;
	b=mM41KUi7bD1PIGtWyPh5R4v6i/XXPPHUvvkDVuNms1uvtwJ2P+T6+hg5H2qKbzT1FHiR
	 nKcBV0ipV2cVkjxyu/L5btg7TWGgmDz30VcmdIt8l/nNkzVKkfKIkkqcaiAB7LVAlHKVr
	 q0nKwbwX7AbLPdB1Xb65UsezxOV41HYVbJu4+ELiyVxNG584+8MamZ3f7rnh6uAYkQ+Od
	 OoJOGh+CizVOCBj9jusJXMa4jFW7KpGk5GVvlrKYHSVrGbyugEKVMFN57wAqBFniHxUuf
	 U3G90HNA68eiHHegzH4y94Z/mEYv7lAI/alh3RFst5sCMrsedbIhDmugX4xEl0KGQvA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=3f+JK2hm;
	arc=none smtp.remote-ip=156.67.10.101
X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id DAE32606A33C
	for <netdev@vger.kernel.org>; Sun, 29 Nov 2026 15:38:49 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DAE32606A33C
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch
X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch;
	s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version:
	References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject:
	Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:
	Content-ID:Content-Description:Content-Disposition:In-Reply-To:References;
	bh=9WEUaFZmTynrB9yTwLh4dVJMR6htpZYIeGcuyj250os=; b=3f+JK2hmUq5x9DAz6UWVrozv2L
	RIK8DT4mRPXbwo9Y6aqDO5tBkm9zu90FInscylnaJUdK2zrFRU8ssHofYpXc4z9J5CW4in9qqr8Ku
	jlLM2EnnXmy2IHDw0y0WMLWyY9ITytmnrJF2ACyxH5jWmqwzXNyAWcKzZlzoHnPkJVhc=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xXgz0-002AEp-BH; Sun, 29 Nov 2026 16:38:30 +0100
X-Cc: netdev-bot+sashiko@kernel.org, hkallweit1@gmail.com,
	davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
	pabeni@redhat.com, linux@armlinux.org.uk, netdev@vger.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-In-Reply-To: <cc92cbe1-b65e-4fe8-be18-baae49dfb53b@163.com>