All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dullfire <dullfire@yahoo.com>
To: Bjorn Helgaas <helgaas@kernel.org>,
	Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>,
	Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Cc: "Krzysztof Wilczyński" <kwilczynski@kernel.org>,
	linux-pci@vger.kernel.org
Subject: Re: [Bug 219513] New: PCIe drivers do not bind
Date: Tue, 19 Nov 2024 11:17:32 -0600	[thread overview]
Message-ID: <084ce275-34db-4243-85ea-4ef2f6ba670e@yahoo.com> (raw)
In-Reply-To: <20241119140434.GA2260828@bhelgaas>



On 11/19/24 08:04, Bjorn Helgaas wrote:
> On Tue, Nov 19, 2024 at 12:55:36PM +0000, bugzilla-daemon@kernel.org wrote:
>> https://bugzilla.kernel.org/show_bug.cgi?id=219513
>>
>>           Hardware: Sparc64
>>           Priority: P3
>>           Reporter: dullfire@yahoo.com
>>         Regression: No
>>
>> Created attachment 307241
>>   --> https://bugzilla.kernel.org/attachment.cgi?id=307241&action=edit
>> debug info (some shell commands to check the PCIe devices and drivers)
>>
>> In linux-next (next-20241118), since
>> commit 03cfe0e05650 ("PCI/pwrctl: Ensure that the pwrctl drivers are probed
>> before the PCI client drivers")
>> PCIe drivers no longer bind (at least on the tested SPARCv9 system).
>>
>> It appears a "supplier" devlink is created, however it is are dormant. see
>> attached "bug-info.txt"
> 
> Thanks for the report.  It sounds like you bisected this to
> 03cfe0e05650?  Can you attach a complete dmesg log to the bugzilla?
Yes, a bisect pointed at 03cfe0e05650. After finding that I tried the patch below
to verify, since a trivial revert wasn't possible on next-20241118, and the PCIe
drivers started binding again, and everything seemed functional.

diff --git a/drivers/pci/bus.c b/drivers/pci/bus.c
index b0e3cfdaa276..6d87773784b9 100644
--- a/drivers/pci/bus.c
+++ b/drivers/pci/bus.c
@@ -404,7 +404,7 @@ void pci_bus_add_device(struct pci_dev *dev)
         * PCI client drivers.
         */
        pdev = of_find_device_by_node(dn);
-       if (pdev) {
+       if (pdev && false) {
                if (!device_link_add(&dev->dev, &pdev->dev,
                                     DL_FLAG_AUTOREMOVE_CONSUMER))
                        pci_err(dev, "failed to add device link between %s and %s\n",

Obviously not a fix, but it did help verify the issue.
> 
> This commit is queued for v6.13, and the merge window is now open, so
> if it's a regression, we need to resolve it or drop it ASAP.

Regards,
Jonathan Currier

      parent reply	other threads:[~2024-11-19 18:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-219513-41252@https.bugzilla.kernel.org/>
2024-11-19 14:04 ` [Bug 219513] New: PCIe drivers do not bind Bjorn Helgaas
2024-11-19 14:16   ` Bartosz Golaszewski
2024-11-19 16:57     ` Dullfire
2024-11-19 17:27       ` Manivannan Sadhasivam
2024-11-19 17:48         ` Dullfire
2024-11-19 17:17   ` Dullfire [this message]

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=084ce275-34db-4243-85ea-4ef2f6ba670e@yahoo.com \
    --to=dullfire@yahoo.com \
    --cc=bartosz.golaszewski@linaro.org \
    --cc=helgaas@kernel.org \
    --cc=kwilczynski@kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=manivannan.sadhasivam@linaro.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.