From: Niklas Cassel <cassel@kernel.org>
To: Anand Moon <linux.amoon@gmail.com>
Cc: "Manivannan Sadhasivam" <manivannan.sadhasivam@linaro.org>,
"Lorenzo Pieralisi" <lpieralisi@kernel.org>,
"Krzysztof Wilczyński" <kw@linux.com>,
"Rob Herring" <robh@kernel.org>,
"Bjorn Helgaas" <bhelgaas@google.com>,
"Heiko Stuebner" <heiko@sntech.de>,
linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] PCI: dw-rockchip: Enable async probe by default
Date: Fri, 3 Jan 2025 12:31:29 +0100 [thread overview]
Message-ID: <Z3fKkTSFFcU9gQLg@ryzen> (raw)
In-Reply-To: <20240809073610.2517-1-linux.amoon@gmail.com>
On Fri, Aug 09, 2024 at 01:06:09PM +0530, Anand Moon wrote:
> Rockchip DWC PCIe driver currently waits for the combo PHY link
> (PCIe 3.0, PCIe 2.0, and SATA 3.0) to be established link training
> during boot, it also waits for the link to be up, which could consume
> several milliseconds during boot.
>
> To optimize boot time, this commit allows asynchronous probing.
> This change enables the PCIe link establishment to occur in the
> background while other devices are being probed.
>
> Signed-off-by: Anand Moon <linux.amoon@gmail.com>
> ---
> v2: update the commit message to describe the changs.
> ---
Hello Anand,
I tried this patch.
It gives me the following splat on rock5b (rk3588):
[ 1.412108] WARNING: CPU: 5 PID: 59 at kernel/module/kmod.c:143 __request_module+0x1c0/0x298
[ 1.412853] Modules linked in:
[ 1.413125] CPU: 5 UID: 0 PID: 59 Comm: kworker/u32:1 Not tainted 6.13.0-rc1+ #38
[ 1.413781] Hardware name: Radxa ROCK 5B (DT)
[ 1.414163] Workqueue: async async_run_entry_fn
[ 1.414565] pstate: 60400009 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 1.415175] pc : __request_module+0x1c0/0x298
[ 1.415559] lr : __request_module+0x1bc/0x298
[ 1.415943] sp : ffff8000804333f0
[ 1.416234] x29: ffff800080433470 x28: ffff42bec2e40000 x27: ffff42bec2e400c8
[ 1.416860] x26: ffff42bec1739000 x25: ffffb5bec9400e18 x24: 0000000000000000
[ 1.417485] x23: ffffb5bec93e1a90 x22: 0000000000000001 x21: ffffb5bec74298f8
[ 1.418111] x20: ffff800080433620 x19: ffff800080433410 x18: 0000000000000006
[ 1.418736] x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000
[ 1.419360] x14: 0000000000000001 x13: 0000000000000000 x12: 0000000000000000
[ 1.419985] x11: 0000000000000000 x10: 0000000000000000 x9 : ffffb5bec750b834
[ 1.420611] x8 : ffff800080433468 x7 : 0000000000000000 x6 : 0000000000000000
[ 1.421235] x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000030
[ 1.421860] x2 : 0000000000000008 x1 : ffffb5bec750b708 x0 : 0000000000000001
[ 1.422486] Call trace:
[ 1.422701] __request_module+0x1c0/0x298 (P)
[ 1.423086] __request_module+0x1bc/0x298 (L)
[ 1.423471] phy_request_driver_module+0x120/0x178
[ 1.423895] phy_device_create+0x230/0x250
[ 1.424257] get_phy_device+0x80/0x168
[ 1.424588] mdiobus_scan+0x20/0xa0
[ 1.424896] __mdiobus_register+0x21c/0x460
[ 1.425265] __devm_mdiobus_register+0x78/0xf8
[ 1.425657] rtl_init_one+0x7c8/0x1140
[ 1.425989] local_pci_probe+0x48/0xc0
[ 1.426323] pci_device_probe+0xcc/0x248
[ 1.426671] really_probe+0xc4/0x2d0
[ 1.426989] __driver_probe_device+0x80/0x130
[ 1.427374] driver_probe_device+0x44/0x168
[ 1.427745] __device_attach_driver+0xc0/0x148
[ 1.428138] bus_for_each_drv+0x90/0x100
[ 1.428486] __device_attach+0xa8/0x1a0
[ 1.428826] device_attach+0x1c/0x38
[ 1.429143] pci_bus_add_device+0xb4/0x1e0
[ 1.429505] pci_bus_add_devices+0x48/0xa0
[ 1.429867] pci_bus_add_devices+0x74/0xa0
[ 1.430228] pci_host_probe+0x94/0x100
[ 1.430560] dw_pcie_host_init+0x258/0x720
[ 1.430923] rockchip_pcie_probe+0x2ec/0x510
[ 1.431300] platform_probe+0x70/0xe8
[ 1.431623] really_probe+0xc4/0x2d0
[ 1.431940] __driver_probe_device+0x80/0x130
[ 1.432326] driver_probe_device+0x44/0x168
[ 1.432696] __device_attach_driver+0xc0/0x148
[ 1.433089] bus_for_each_drv+0x90/0x100
[ 1.433436] __device_attach_async_helper+0xbc/0xe8
[ 1.433865] async_run_entry_fn+0x3c/0xf0
[ 1.434219] process_one_work+0x158/0x3c8
[ 1.434574] worker_thread+0x2d4/0x3f8
[ 1.434907] kthread+0x118/0x128
[ 1.435193] ret_from_fork+0x10/0x20
Perhaps we should defer this patch until phylib core has been fixed?
For more info, see:
https://lore.kernel.org/netdev/Z3fJQEVV4ACpvP3L@ryzen/T/#u
Kind regards,
Niklas
next prev parent reply other threads:[~2025-01-03 11:33 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-09 7:36 [PATCH v2] PCI: dw-rockchip: Enable async probe by default Anand Moon
2025-01-03 11:31 ` Niklas Cassel [this message]
2025-01-03 13:54 ` Anand Moon
2025-01-03 14:25 ` Niklas Cassel
2025-01-03 14:40 ` Anand Moon
2025-01-03 14:45 ` Niklas Cassel
2025-01-03 15:06 ` Anand Moon
2025-01-03 15:10 ` Niklas Cassel
2025-01-03 15:29 ` Anand Moon
2025-01-03 15:45 ` Niklas Cassel
2025-01-05 16:35 ` Manivannan Sadhasivam
2025-01-05 17:46 ` Anand Moon
2025-01-03 16:04 ` Andrew Lunn
2025-01-05 17:46 ` Anand Moon
2025-01-05 17:57 ` Andrew Lunn
2025-01-06 7:58 ` Anand Moon
2025-01-06 12:02 ` Niklas Cassel
2025-01-06 13:44 ` Andrew Lunn
2025-01-07 11:13 ` Anand Moon
2025-01-07 13:13 ` Andrew Lunn
2025-01-07 14:57 ` Anand Moon
2025-01-15 17:49 ` Manivannan Sadhasivam
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=Z3fKkTSFFcU9gQLg@ryzen \
--to=cassel@kernel.org \
--cc=bhelgaas@google.com \
--cc=heiko@sntech.de \
--cc=kw@linux.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=linux.amoon@gmail.com \
--cc=lpieralisi@kernel.org \
--cc=manivannan.sadhasivam@linaro.org \
--cc=robh@kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).