mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hans Zhang <18255117159@163.com>
To: Andrew Lunn <andrew@lunn.ch>
Cc: hkallweit1@gmail.com, davem@davemloft.net, edumazet@kernel.org,
	kuba@kernel.org, pabeni@redhat.com, bhelgaas@google.com,
	mani@kernel.org, linux@armlinux.org.uk, netdev@vger.kernel.org,
	linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [RFC] PCIe host controller async probe vs PHY request_module deadlock
Date: Sat, 28 Nov 2026 00:03:45 +0800	[thread overview]
Message-ID: <c09512dc-b926-48b6-99eb-d7ba13cc276b@163.com> (raw)
In-Reply-To: <582bbeb8-13ec-4533-92d4-7216c20fb78f@lunn.ch>



On 11/27/26 22:59, Andrew Lunn wrote:
>> Andrew suggested:
>>
>> drivers/pci/controller/cadence/pci-sky1.c | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/pci/controller/cadence/pci-sky1.c
>> b/drivers/pci/controller/cadence/pci-sky1.c
>> index 82f4ae5c04a8..4448ee3d5e73 100644
>> --- a/drivers/pci/controller/cadence/pci-sky1.c
>> +++ b/drivers/pci/controller/cadence/pci-sky1.c
>> @@ -235,7 +235,7 @@ static struct platform_driver sky1_pcie_driver = {
>>   	.driver = {
>>   		.name = "sky1-pcie",
>>   		.of_match_table = of_sky1_pcie_match,
>> -		.probe_type = PROBE_PREFER_ASYNCHRONOUS,
>> +		.probe_type = PROBE_FORCE_SYNCHRONOUS,
> 
> Sorry, i was ambiguous. I meant the MAC driver should probe
> synchronous, not the PCIe bus driver.
> 
> I don't know the details, but i assume this is some sort of tree, and
> a list. The root node enumerates, and adds to the list of things to be
> probed. The device core then has a bunch of workers which take stuff
> off the list and does the probe. Those probes can add more things to
> the list, and it works its way down the tree. The first iteration will
> only pull jobs of the list which have PROBE_PREFER_ASYNCHRONOUS, so
> you can prevent branches of the tree from enumerating by setting
> PROBE_FORCE_SYNCHRONOUS on the driver at that level in the tree.
> 
> So i assume you can mark the MAC driver hanging of the PCIe bus probe
> to happen later, while other sorts of PCIe devices probe async?
> 


Hello Andrew,


Would you have time to review the previous discussion? Additionally, I 
will continue to conduct tests based on your previous reply.

https://lore.kernel.org/driver-core/DGZJBMG2Y738.2MU5LXVGEDD47@kernel.org/

The modification will be made in the MAC driver.


Best regards,
Hans



  reply	other threads:[~2026-11-27 16:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27  7:43 Hans Zhang
2026-11-27  8:02 ` Hans Zhang
2026-11-27 14:59   ` Andrew Lunn
2026-11-27 16:03     ` Hans Zhang [this message]
2026-11-27 15:01   ` Shawn Lin
2026-11-27 16:00     ` Hans Zhang
2026-11-27  7:46 Hans Zhang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c09512dc-b926-48b6-99eb-d7ba13cc276b@163.com \
    --to=18255117159@163.com \
    --cc=andrew@lunn.ch \
    --cc=bhelgaas@google.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=hkallweit1@gmail.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=mani@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®