[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-pci
Subject:    Re: problem on reboot: pcieport 0000:00:1c:0: pciehp: Slot(0): No link
From:       Lukas Wunner <lukas () wunner ! de>
Date:       2022-07-31 18:58:07
Message-ID: 20220731190215.GA19323 () wunner ! de
[Download RAW message or body]

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 in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic