From patchwork Mon Mar 2 04:33:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiang Liu X-Patchwork-Id: 5909971 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 38FB9BF6C3 for ; Mon, 2 Mar 2015 04:31:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6414820218 for ; Mon, 2 Mar 2015 04:31:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 60A3320222 for ; Mon, 2 Mar 2015 04:31:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753581AbbCBEa7 (ORCPT ); Sun, 1 Mar 2015 23:30:59 -0500 Received: from mga01.intel.com ([192.55.52.88]:7512 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753487AbbCBEav (ORCPT ); Sun, 1 Mar 2015 23:30:51 -0500 Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP; 01 Mar 2015 20:30:50 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,674,1418112000"; d="scan'208";a="461151221" Received: from gerry-dev.bj.intel.com ([10.238.158.72]) by FMSMGA003.fm.intel.com with ESMTP; 01 Mar 2015 20:24:42 -0800 From: Jiang Liu To: Thomas Voegtle , Bjorn Helgaas , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, "Rafael J. Wysocki" , Len Brown Cc: Jiang Liu , Dave Airlie , LKML , linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org, Lv Zheng Subject: [Debug 2/2] x86/PCI/ACPI: Gather debug info Date: Mon, 2 Mar 2015 12:33:21 +0800 Message-Id: <1425270801-20270-3-git-send-email-jiang.liu@linux.intel.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1425270801-20270-1-git-send-email-jiang.liu@linux.intel.com> References: <1425270801-20270-1-git-send-email-jiang.liu@linux.intel.com> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Jiang Liu --- arch/x86/pci/acpi.c | 3 +++ drivers/acpi/resource.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/arch/x86/pci/acpi.c b/arch/x86/pci/acpi.c index ddafc9e8b9b3..d5e4e77684ef 100644 --- a/arch/x86/pci/acpi.c +++ b/arch/x86/pci/acpi.c @@ -230,6 +230,7 @@ static void validate_resources(struct device *dev, struct list_head *crs_res, bool free = false; resource_size_t end; + pr_warn("pci_root validate resource %pR\n", entry->res); res1 = entry->res; if (!(res1->flags & type)) goto next; @@ -288,6 +289,7 @@ static void add_resources(struct pci_root_info *info, validate_resources(&info->bridge->dev, crs_res, IORESOURCE_IO); resource_list_for_each_entry_safe(entry, tmp, crs_res) { + pr_warn("pci_root add resource %pR\n", entry->res); res = entry->res; if (res->flags & IORESOURCE_MEM) root = &iomem_resource; @@ -346,6 +348,7 @@ static void probe_pci_root_info(struct pci_root_info *info, "no IO and memory resources present in _CRS\n"); else resource_list_for_each_entry_safe(entry, tmp, list) { + pr_warn("pci_root probe resource %pR\n", entry->res); if (entry->res->flags & IORESOURCE_WINDOW) entry->res->name = info->name; else diff --git a/drivers/acpi/resource.c b/drivers/acpi/resource.c index 4752b9939987..55cfd9423ff4 100644 --- a/drivers/acpi/resource.c +++ b/drivers/acpi/resource.c @@ -470,6 +470,7 @@ static acpi_status acpi_dev_new_resource_entry(struct resource_win *win, rentry->offset = win->offset; resource_list_add_tail(rentry, c->list); c->count++; + pr_warn("acpi new resource %pR\n", rentry->res); return AE_OK; } @@ -615,6 +616,7 @@ int acpi_dev_filter_resource_type(struct acpi_resource *ares, default: break; } + pr_warn("acpi filter resource type %lx, types %lx\n", type, types); return (type & types) ? 0 : 1; }