Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030185Ab2B1WIc (ORCPT ); Tue, 28 Feb 2012 17:08:32 -0500 Received: from rcsinet15.oracle.com ([148.87.113.117]:25698 "EHLO rcsinet15.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965660Ab2B1WIY (ORCPT ); Tue, 28 Feb 2012 17:08:24 -0500 From: Yinghai Lu To: Jesse Barnes , Benjamin Herrenschmidt , Tony Luck , David Miller , x86 Cc: Bjorn Helgaas , Dominik Brodowski , Andrew Morton , Linus Torvalds , Greg Kroah-Hartman , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Yinghai Lu Subject: [PATCH 01/24] x86, PCI: add print all root info for nocrs path Date: Tue, 28 Feb 2012 14:07:20 -0800 Message-Id: <1330466863-28469-2-git-send-email-yinghai@kernel.org> X-Mailer: git-send-email 1.7.7 In-Reply-To: <1330466863-28469-1-git-send-email-yinghai@kernel.org> References: <1330466863-28469-1-git-send-email-yinghai@kernel.org> X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-CT-RefId: str=0001.0A090204.4F4D504E.007C,ss=1,re=0.000,fgs=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2007 Lines: 59 Signed-off-by: Yinghai Lu --- arch/x86/pci/amd_bus.c | 2 +- arch/x86/pci/bus_numa.c | 8 ++++++++ arch/x86/pci/bus_numa.h | 1 + 3 files changed, 10 insertions(+), 1 deletions(-) diff --git a/arch/x86/pci/amd_bus.c b/arch/x86/pci/amd_bus.c index 0b6abbe..5f30a98 100644 --- a/arch/x86/pci/amd_bus.c +++ b/arch/x86/pci/amd_bus.c @@ -291,7 +291,7 @@ static int __init early_fill_mp_bus_info(void) } } - print_pci_root_info(info, "bus:", true); + print_all_pci_root_info("ht link", true); return 0; } diff --git a/arch/x86/pci/bus_numa.c b/arch/x86/pci/bus_numa.c index 7251011..df0c552 100644 --- a/arch/x86/pci/bus_numa.c +++ b/arch/x86/pci/bus_numa.c @@ -94,6 +94,14 @@ void print_pci_root_info(struct pci_root_info *info, char *name, bool nodelink) &root_res->res); } +void print_all_pci_root_info(char *name, bool nodelink) +{ + struct pci_root_info *info; + + list_for_each_entry(info, pci_root_infos, list) + print_pci_root_info(info, name, nodelink); +} + void __devinit update_res(struct pci_root_info *info, resource_size_t start, resource_size_t end, unsigned long flags, int merge) { diff --git a/arch/x86/pci/bus_numa.h b/arch/x86/pci/bus_numa.h index d19ac93..deada6a 100644 --- a/arch/x86/pci/bus_numa.h +++ b/arch/x86/pci/bus_numa.h @@ -23,6 +23,7 @@ extern struct list_head pci_root_infos; struct pci_root_info *alloc_pci_root_info(int bus_min, int bus_max, int node, int link); void print_pci_root_info(struct pci_root_info *info, char *name, bool nodelink); +void print_all_pci_root_info(char *name, bool nodelink); extern void update_res(struct pci_root_info *info, resource_size_t start, resource_size_t end, unsigned long flags, int merge); #endif -- 1.7.7 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/