Skip to content
Commit e354597c authored by Peter Chubb's avatar Peter Chubb Committed by Jesse Barnes
Browse files

PCI: fix 64-vbit prefetchable memory resource BARs

Since patch 6ac665c6

 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: default avatarMatthew Wilcox <matthew@wil.cx>
Signed-off-by: default avatarPeter Chubb <peterc@gelato.unsw.edu.au>
Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
parent 557848c3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment