]> git.karo-electronics.de Git - linux-beck.git/commitdiff
PCI: print out suggestion about using pci=realloc
authorYinghai Lu <yinghai@kernel.org>
Fri, 24 Feb 2012 03:23:31 +0000 (19:23 -0800)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 24 Feb 2012 16:47:53 +0000 (08:47 -0800)
let user know they could try if pci=realloc could help.

-v2: update suggestion text.

Suggested-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/setup-bus.c

index 219722df68d6f294489b981a97821bd2307bd4e6..e21e1c237301950b77c0bb517f5625f98f0f70a4 100644 (file)
@@ -1347,6 +1347,9 @@ again:
                goto enable_and_dump;
 
        if (tried_times >= pci_try_num) {
+               if (pci_realloc_enable == undefined)
+                       printk(KERN_INFO "Some PCI device resources are unassigned, try booting with pci=realloc\n");
+
                free_list(&fail_head);
                goto enable_and_dump;
        }