mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 01:04:19 +08:00
Merge branch 'pci/error'
- Clear AER "multiple errors" bits to avoid race that left them set forever (Kuppuswamy Sathyanarayanan) * pci/error: PCI/AER: Clear MULTI_ERR_COR/UNCOR_RCV bits
This commit is contained in:
commit
55fd033bae
@ -101,6 +101,11 @@ struct aer_stats {
|
|||||||
#define ERR_COR_ID(d) (d & 0xffff)
|
#define ERR_COR_ID(d) (d & 0xffff)
|
||||||
#define ERR_UNCOR_ID(d) (d >> 16)
|
#define ERR_UNCOR_ID(d) (d >> 16)
|
||||||
|
|
||||||
|
#define AER_ERR_STATUS_MASK (PCI_ERR_ROOT_UNCOR_RCV | \
|
||||||
|
PCI_ERR_ROOT_COR_RCV | \
|
||||||
|
PCI_ERR_ROOT_MULTI_COR_RCV | \
|
||||||
|
PCI_ERR_ROOT_MULTI_UNCOR_RCV)
|
||||||
|
|
||||||
static int pcie_aer_disable;
|
static int pcie_aer_disable;
|
||||||
static pci_ers_result_t aer_root_reset(struct pci_dev *dev);
|
static pci_ers_result_t aer_root_reset(struct pci_dev *dev);
|
||||||
|
|
||||||
@ -1196,7 +1201,7 @@ static irqreturn_t aer_irq(int irq, void *context)
|
|||||||
struct aer_err_source e_src = {};
|
struct aer_err_source e_src = {};
|
||||||
|
|
||||||
pci_read_config_dword(rp, aer + PCI_ERR_ROOT_STATUS, &e_src.status);
|
pci_read_config_dword(rp, aer + PCI_ERR_ROOT_STATUS, &e_src.status);
|
||||||
if (!(e_src.status & (PCI_ERR_ROOT_UNCOR_RCV|PCI_ERR_ROOT_COR_RCV)))
|
if (!(e_src.status & AER_ERR_STATUS_MASK))
|
||||||
return IRQ_NONE;
|
return IRQ_NONE;
|
||||||
|
|
||||||
pci_read_config_dword(rp, aer + PCI_ERR_ROOT_ERR_SRC, &e_src.id);
|
pci_read_config_dword(rp, aer + PCI_ERR_ROOT_ERR_SRC, &e_src.id);
|
||||||
|
Loading…
Reference in New Issue
Block a user