PCI AER: multiple error support
authorZhang, Yanmin <yanmin_zhang@linux.intel.com>
Tue, 16 Jun 2009 05:35:16 +0000 (13:35 +0800)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 16 Jun 2009 21:30:14 +0000 (14:30 -0700)
commit3d5505c56db5c8d1eeca45c325b19e95115afdea
treefe3f99f5f38c2b93f7c4421aaeaf3df604dda374
parent28eb27cf0839a30948335f9b2edda739f48b7a2e
PCI AER: multiple error support

When a root port receives the same errors more than once before the
kernel process them, the Multiple Error Messages Received flags are set
by hardware. Because the root port could only save one kind of
correctable error source id and another uncorrectable error source id at
the same time, the second message sender id is lost if the 2 messages
are sent from 2 different devices. This patch makes the kernel search
all devices under the root port when multiple messages are received.

Reviewed-by: Andrew Patterson <andrew.patterson@hp.com>
Signed-off-by: Zhang Yanmin <yanmin_zhang@linux.intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pcie/aer/aerdrv.h
drivers/pci/pcie/aer/aerdrv_core.c