diff options
author | Suresh Reddy <[email protected]> | 2015-03-20 06:28:25 -0400 |
---|---|---|
committer | David S. Miller <[email protected]> | 2015-03-20 13:25:51 -0400 |
commit | 25848c9015964d9d97dffd48bbb88b75a25d0a1b (patch) | |
tree | 0e321b8836c83eb8a757bfdaabb339b1ee938318 /lib/memory-notifier-error-inject.c | |
parent | c8ba4ad0b59c511578f8f706aae711f01c990794 (diff) |
be2net: use PCI MMIO read instead of config read for errors
When an EEH error occurs, the device/slot is disconnected. This condition
is more reliably detected (i.e., returns all ones) with an MMIO read rather
than a config read -- especially on power platforms.
Hence, this patch fixes EEH error detection by replacing config reads with
MMIO reads for reading the error registers. The error registers in
Skyhawk-R/BE2/BE3 are accessible both via the config space and the
PCICFG (BAR0) memory space.
Reported-by: Gavin Shan <[email protected]>
Signed-off-by: Suresh Reddy <[email protected]>
Signed-off-by: Sathya Perla <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions