summaryrefslogtreecommitdiffstats
path: root/drivers/pci/probe.c
diff options
context:
space:
mode:
authorBjorn Helgaas2012-07-10 03:49:37 +0200
committerBjorn Helgaas2012-07-10 03:50:53 +0200
commit9aac537e0e33f4e4f28b8e7472c283fb6460c650 (patch)
tree0e27b819f093360a0e028b0af20ee8ae6ad949f3 /drivers/pci/probe.c
parentPCI: leave MEM and IO decoding disabled during 64-bit BAR sizing, too (diff)
downloadkernel-qcow2-linux-9aac537e0e33f4e4f28b8e7472c283fb6460c650.tar.gz
kernel-qcow2-linux-9aac537e0e33f4e4f28b8e7472c283fb6460c650.tar.xz
kernel-qcow2-linux-9aac537e0e33f4e4f28b8e7472c283fb6460c650.zip
PCI: disable MEM decoding while updating 64-bit MEM BARs
When we update 64-bit BARs, we have to perform two config writes. Between the writes, the half-written BAR value could match a MEM access intended for another device. This could result in corruption of this device (for writes) or an unexpected response machine check (for reads). To prevent this, disable MEM decoding while updating such BARs. This uses the same safety test as 253d2e5498, which disables both MEM and IO while sizing BARs, namely, we don't disable decoding for host bridge devices. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/probe.c')
0 files changed, 0 insertions, 0 deletions