]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: fix 64-vbit prefetchable memory resource BARs
authorPeter Chubb <peterc@gelato.unsw.edu.au>
Mon, 13 Oct 2008 00:49:04 +0000 (11:49 +1100)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Mon, 20 Oct 2008 17:54:30 +0000 (10:54 -0700)
commit838cab68f9ab9c4cf8a6dc0c9b800c5b23a9f525
treedbf2a270f874c5ef56250021927de9ce56392e35
parent0580ce3a3e5702a92526b76c778a80485fc2bf2d
PCI: fix 64-vbit prefetchable memory resource BARs

Since patch fa5f6199e2d6cc341d94c0a9e0d910b426a56523 my infiniband
controller hasn't worked.  This is because it has 64-bit prefetchable
memory, which was mistakenly being  taken to be 32-bit memory.  The
resource flags in this case are PCI_BASE_ADDRESS_MEM_TYPE_64 |
PCI_BASE_ADDRESS_MEM_PREFETCH.

This patch checks only for the PCI_BASE_ADDRESS_MEM_TYPE_64 bit; thus
whether the region is prefetchable or not is ignored.  This fixes my
Infiniband.

Reviewed-by: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: Peter Chubb <peterc@gelato.unsw.edu.au>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/probe.c