pci: implement "pci=noaer"
For cases in which CONFIG_PCIEAER=y (such as distro kernels), allow users to disable PCIE Advanced Error Reporting by using "pci=noaer" on the kernel command line. This can be used to work around hardware or (kernel) software problems. Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:

zatwierdzone przez
Greg Kroah-Hartman

rodzic
fd6e732186
commit
7f78576366
@@ -81,6 +81,13 @@ static struct pcie_port_service_driver aerdriver = {
|
||||
.reset_link = aer_root_reset,
|
||||
};
|
||||
|
||||
static int pcie_aer_disable;
|
||||
|
||||
void pci_no_aer(void)
|
||||
{
|
||||
pcie_aer_disable = 1; /* has priority over 'forceload' */
|
||||
}
|
||||
|
||||
/**
|
||||
* aer_irq - Root Port's ISR
|
||||
* @irq: IRQ assigned to Root Port
|
||||
@@ -327,6 +334,8 @@ static void aer_error_resume(struct pci_dev *dev)
|
||||
**/
|
||||
static int __init aer_service_init(void)
|
||||
{
|
||||
if (pcie_aer_disable)
|
||||
return -ENXIO;
|
||||
return pcie_port_service_register(&aerdriver);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user