linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jiang Liu <jiang.liu@linux.intel.com>
To: Thomas Voegtle <tv@lio96.de>, Bjorn Helgaas <bhelgaas@google.com>,
	Thomas Gleixner <tglx@linutronix.de>,
	Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>,
	x86@kernel.org, "Rafael J. Wysocki" <rjw@rjwysocki.net>,
	Len Brown <lenb@kernel.org>
Cc: Jiang Liu <jiang.liu@linux.intel.com>,
	Dave Airlie <airlied@gmail.com>,
	LKML <linux-kernel@vger.kernel.org>,
	linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org,
	Lv Zheng <lv.zheng@intel.com>
Subject: [Debug 2/2] x86/PCI/ACPI: Gather debug info
Date: Mon,  2 Mar 2015 12:33:21 +0800	[thread overview]
Message-ID: <1425270801-20270-3-git-send-email-jiang.liu@linux.intel.com> (raw)
In-Reply-To: <1425270801-20270-1-git-send-email-jiang.liu@linux.intel.com>


Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
---
 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;
 }
-- 
1.7.10.4


  parent reply	other threads:[~2015-03-02  4:33 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAPM=9tz8HQAZbdfgE15++i++NkArjxqiY3-BjANqDBTo1g-pOw@mail.gmail.com>
2015-02-25  5:46 ` regression in 4.0.0-rc1 with r8169 ethernet Bjorn Helgaas
2015-02-25  7:10 ` Bjorn Helgaas
2015-02-25  8:03   ` Dave Airlie
2015-02-25 22:42     ` Rafael J. Wysocki
2015-02-27 14:50     ` Thomas Voegtle
2015-02-27 22:24       ` Rafael J. Wysocki
2015-02-28  8:06         ` Jiang Liu
2015-02-28  8:36           ` Marcel Holtmann
2015-02-28  8:45             ` Jiang Liu
2015-02-28 10:03           ` Thomas Voegtle
2015-03-02  4:33             ` [Debug 0/2] Debug PCI root resource parsing failure Jiang Liu
2015-03-02  4:33               ` [Debug 1/2] x86/PCI/ACPI: Ignore resources consumed by host bridge itself Jiang Liu
2015-03-02  4:33               ` Jiang Liu [this message]
2015-02-28  8:43   ` regression in 4.0.0-rc1 with r8169 ethernet Jiang Liu
     [not found] <alpine.LSU.2.11.1503020932210.29400@er-systems.de>
2015-03-02  9:51 ` [Debug 0/2] Debug ACPI resource parsing failure Jiang Liu
2015-03-02  9:51   ` [Debug 2/2] x86/PCI/ACPI: Gather debug info Jiang Liu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1425270801-20270-3-git-send-email-jiang.liu@linux.intel.com \
    --to=jiang.liu@linux.intel.com \
    --cc=airlied@gmail.com \
    --cc=bhelgaas@google.com \
    --cc=hpa@zytor.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=lv.zheng@intel.com \
    --cc=mingo@redhat.com \
    --cc=rjw@rjwysocki.net \
    --cc=tglx@linutronix.de \
    --cc=tv@lio96.de \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).