瀏覽代碼

PCI: print out suggestion about using pci=realloc

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>
Yinghai Lu 13 年之前
父節點
當前提交
eb572e7c76
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      drivers/pci/setup-bus.c

+ 3 - 0
drivers/pci/setup-bus.c

@@ -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;
 	}