From: Lukas Wunner <lukas@wunner.de>
To: Harald Dunkel <harri@afaics.de>
Cc: linux-pci@vger.kernel.org
Subject: Re: problem on reboot: pcieport 0000:00:1c:0: pciehp: Slot(0): No link
Date: Sun, 31 Jul 2022 21:02:15 +0200 [thread overview]
Message-ID: <20220731190215.GA19323@wunner.de> (raw)
In-Reply-To: <4013c5d1-5b47-ae2f-1071-17a7b13a3dbe@afaics.de>
On Sun, Jul 31, 2022 at 07:25:06PM +0200, Harald Dunkel wrote:
> kernel 5.18.14 (built from git)
> Qnap TS-559 Pro II, 4*3.5 HDD + 1 SSD, /boot is on USB stick
> Intel(R) Atom(TM) CPU D525
> Debian Sid
>
> On a reboot after some runtime my Qnap TS-559 Pro II shuts down cleanly, but
> after the kernel and initrd are loaded again it writes an endless stream of
> messages to the console
>
> pcieport 0000:00:1c:0: pciehp: Slot(0): Card present
> pcieport 0000:00:1c:0: pciehp: Slot(0): No link
> pcieport 0000:00:1c:0: pciehp: Slot(0): Card present
> pcieport 0000:00:1c:0: pciehp: Slot(0): No link
[...]
Is this a regression? Was it also present on older kernel versions?
The PCIe Root Port 0000:00:1c:0 is hotplug-capable and is constantly
signaling an interrupt. Upon checking the Slot Status register,
the PCIe hotplug driver discovers that the Presence Detect bit is set,
i.e. the hardware signals hotplug of a card. However when trying
to bring up the slot, the link fails to go up.
What's the Secondary Bus number of that Root Port? Is there a PCIe
device below it or is the Presence Detect bit just a phantom?
If you open a bug at bugzilla.kernel.org and attach full dmesg and
lspci -vvv output plus an ACPI dump, we can analyze the issue further,
but I suspect this is a BIOS issue (vendor probably forgot to disable
that Root Port) and you need to ask your vendor for a BIOS update.
It doesn't look like a bug in the kernel to me at first glance.
If your vendor is unresponsive, you can try removing the offending
Root Port via sysfs on boot.
Thanks,
Lukas
prev parent reply other threads:[~2022-07-31 19:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-31 17:25 problem on reboot: pcieport 0000:00:1c:0: pciehp: Slot(0): No link Harald Dunkel
2022-07-31 19:02 ` Lukas Wunner [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=20220731190215.GA19323@wunner.de \
--to=lukas@wunner.de \
--cc=harri@afaics.de \
--cc=linux-pci@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;
as well as URLs for NNTP newsgroup(s).