From: Jennifer Chan <jenniferchan@meta.com>
To: Bjorn Helgaas <helgaas@kernel.org>
Cc: <bhelgaas@google.com>, <linux-pci@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <stable@vger.kernel.org>,
Lukas Wunner <lukas@wunner.de>, Jason Gunthorpe <jgg@nvidia.com>
Subject: Re: [PATCH] PCI: Add d3cold delay quirk for NVIDIA LR10 NVSwitch
Date: Thu, 5 Nov 2026 15:21:33 -0800 [thread overview]
Message-ID: <179392089371.3269676.8761425999098988375@meta.com> (raw)
In-Reply-To: <20261105215148.GA1566818@bhelgaas>
On Thu, Nov 05, 2026, Bjorn Helgaas wrote:
> Do you know where the -EIO is from?
My mistake in the changelog, sorry: it isn't -EIO. The four switches
fail in nvidia-nvswitch chip init, which logs "Failed to initialize
device : -5". That -5 is the driver's own status code
(NVL_INITIALIZATION_TOTAL_FAILURE), not an errno, and probe then returns
-ENODEV. Before that the driver warns while reading its engine
discovery table from BAR0, which looks like MMIO not returning real data
yet. My logs cut off the driver's error text, so I can't say which
access failed.
> Ugh, a second is a long time to wait. Does the kernel you're testing
> include e8df1d194c39 ("PCI: Don't treat ~0 as ready in pci_dev_wait()
> with RRS SV"), by chance? It only appeared in v7.3, so it's pretty
> new.
No, both kernels are v7.1-based without it. The fifth switch fails
because PM_CTRL reads ~0 in pci_power_up(), so the device may well be
returning ~0 after pci_dev_wait() declares it ready. I haven't yet
checked whether the Root Port has RRS SV enabled. I'll check that and
test v7.1 with e8df1d194c39 backported and without this quirk, logging
what pci_dev_wait() reads. If that fixes it, I'll drop this patch.
Thanks,
Jennifer
prev parent reply other threads:[~2026-11-05 23:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-05 20:10 Jennifer Chan
2026-11-05 21:51 ` Bjorn Helgaas
2026-11-05 23:21 ` Jennifer Chan [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=179392089371.3269676.8761425999098988375@meta.com \
--to=jenniferchan@meta.com \
--cc=bhelgaas@google.com \
--cc=helgaas@kernel.org \
--cc=jgg@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=lukas@wunner.de \
--cc=stable@vger.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
all inboxes | Powered by JetHome®