From df9de85de43844c7cf3dc78399ceee0f8b1005bb Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Mon, 1 Sep 2014 12:19:31 +0200 Subject: pci: only migrate large 64bit bars above 4G Signed-off-by: Gerd Hoffmann --- src/fw/pciinit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fw/pciinit.c b/src/fw/pciinit.c index c0634bcb..680b7786 100644 --- a/src/fw/pciinit.c +++ b/src/fw/pciinit.c @@ -761,6 +761,8 @@ static void pci_region_migrate_64bit_entries(struct pci_region *from, continue; if (entry->dev->class == PCI_CLASS_SERIAL_USB) continue; + if (entry->size < (1<<21)) // 2M == hugepage size + continue; // Move from source list to destination list. hlist_del(&entry->node); hlist_add(&entry->node, last); -- cgit