system generating an NMI due to 80696f991424d ("PCI: pciehp: Tolerate Presence Detect hardwired to zero")
Hi,
I got a bug report about some systems generating an NMI and subsequently crashing bisected down to 80696f991424d. Apparently these systems do not react well to __pciehp_enable_slot while no card is present. Restoring the check to __pciehp_enable_slot() removed in 80696f991424d makes the current kernels work.
What is to be done? Do you want a special case for the affected systems based on DMI, or should I revert 80696f991424d?
Regards
Oliver
Quoted 5 lines · Oliver Neukum
I got a bug report about some systems generating an NMI and subsequently crashing bisected down to
80696f991424d. Apparently these systems do not react well to__pciehp_enable_slotwhile no card is present. Restoring the check to__pciehp_enable_slot()removed in80696f991424dmakes the current kernels work.
That's odd, these systems must be setting the Data Link Layer Link Active bit in the Link Status Register even though no card is present.
Quoted 2 lines
What is to be done? Do you want a special case for the affected systems based on DMI, or should I revert
80696f991424d?
It would be good if we could get a better idea what's going on before deciding what action to take. What systems are we talking about exactly? Can you provide dmesg and lspci -vvvv output including the NMI, e.g. by attaching it to a new bugzilla?
Thanks,
Lukas
[cc += Stuart]
Quoted 9 lines · Lukas Wunner
Quoted 5 lines · Oliver Neukum
I got a bug report about some systems generating an NMI and subsequently crashing bisected down to
80696f991424d. Apparently these systems do not react well to__pciehp_enable_slotwhile no card is present. Restoring the check to__pciehp_enable_slot()removed in80696f991424dmakes the current kernels work.That's odd, these systems must be setting the Data Link Layer Link Active bit in the Link Status Register even though no card is present.
Recent PCIe versions allow turning off in-band presence detect, in which case the DLLLA bit can be set even though Presence Detect is not set. You may be dealing with one of those systems but without full dmesg and lspci output this is just an educated guess.
A series was submitted by Dell last year to support disabling in-band presence detect, but it hasn't been merged yet by Bjorn:
https://lore.kernel.org/linux-pci/[email protected]/
You may want to try if that series helps.
Thanks,
Lukas
Quoted 11 lines
Quoted 2 lines
What is to be done? Do you want a special case for the affected systems based on DMI, or should I revert
80696f991424d?It would be good if we could get a better idea what's going on before deciding what action to take. What systems are we talking about exactly? Can you provide dmesg and lspci -vvvv output including the NMI, e.g. by attaching it to a new bugzilla?
Thanks,
Lukas
Am Donnerstag, den 16.01.2020, 06:35 +0100 schrieb Lukas Wunner:
Quoted 18 lines
[cc += Stuart]
Quoted 9 lines · Lukas Wunner
Quoted 5 lines · Oliver Neukum
I got a bug report about some systems generating an NMI and subsequently crashing bisected down to
80696f991424d. Apparently these systems do not react well to__pciehp_enable_slotwhile no card is present. Restoring the check to__pciehp_enable_slot()removed in80696f991424dmakes the current kernels work.That's odd, these systems must be setting the Data Link Layer Link Active bit in the Link Status Register even though no card is present.
Recent PCIe versions allow turning off in-band presence detect, in which case the DLLLA bit can be set even though Presence Detect is not set. You may be dealing with one of those systems but without full dmesg and lspci output this is just an educated guess.
Quoted 6 lines
A series was submitted by Dell last year to support disabling in-band presence detect, but it hasn't been merged yet by Bjorn:
https://lore.kernel.org/linux-pci/[email protected]/
You may want to try if that series helps.
Hi,
it has been tested and it does the job. May I ask whether you could ack it or propose necessary changes, so that we can proceed?
Regards
Oliver
Lukas Wunner
Tested-by Oliver NeukumQuoted 16 lines · Oliver Neukum
Am Donnerstag, den 16.01.2020, 06:35 +0100 schrieb Lukas Wunner:
Quoted 15 lines · Oliver Neukum
Quoted 5 lines
I got a bug report about some systems generating an NMI and subsequently crashing bisected down to
80696f991424d. Apparently these systems do not react well to__pciehp_enable_slotwhile no card is present. Restoring the check to__pciehp_enable_slot()removed in80696f991424dmakes the current kernels work.Recent PCIe versions allow turning off in-band presence detect, in which case the DLLLA bit can be set even though Presence Detect is not set. You may be dealing with one of those systems but without full dmesg and lspci output this is just an educated guess.
A series was submitted by Dell last year to support disabling in-band presence detect, but it hasn't been merged yet by Bjorn:
Quoted 6 lines
Quoted 3 lines
https://lore.kernel.org/linux-pci/[email protected]/
You may want to try if that series helps.
it has been tested and it does the job. May I ask whether you could ack it or propose necessary changes, so that we can proceed?
Thanks for testing, so I assume that's a
The series has already been reviewed by Mika Westerberg, additionally Andy Shevchenko has provided a Reviewed-by for each individual patch. Nevertheless I've just also reviewed it once more and provided my opinion in a separate e-mail.
The patches are not forgotten, they're still marked "New" in patchwork:
https://patchwork.kernel.org/cover/11212969/
So I assume Bjorn will get to them after the merge window closes (and after taking a breather).
Thanks,
Lukas
Am Samstag, den 08.02.2020, 21:31 +0100 schrieb Lukas Wunner:
Quoted 3 lines
Thanks for testing, so I assume that's a
Tested-by Oliver Neukum <[email protected]>
Yes, this is tested.
HTH
Oliver