From: Ingo Molnar <mingo@elte.hu>
To: Yinghai Lu <yinghai@kernel.org>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>,
linux-pci@vger.kernel.org,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 3/3] pci: don't printout if the bus res size is 0
Date: Sat, 18 Apr 2009 11:16:33 +0200 [thread overview]
Message-ID: <20090418091633.GN7678@elte.hu> (raw)
In-Reply-To: <49E99355.6090609@kernel.org>
* Yinghai Lu <yinghai@kernel.org> wrote:
>
> also print out if it is prefetechable mmio
>
> [Impact: cleanup]
>
> Signed-off-by: Yinghai Lu <yinghai@kernel.org>
>
> ---
> drivers/pci/setup-bus.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> Index: linux-2.6/drivers/pci/setup-bus.c
> ===================================================================
> --- linux-2.6.orig/drivers/pci/setup-bus.c
> +++ linux-2.6/drivers/pci/setup-bus.c
> @@ -558,11 +558,13 @@ static void pci_bus_dump_res(struct pci_
>
> for (i = 0; i < PCI_BUS_NUM_RESOURCES; i++) {
> struct resource *res = bus->resource[i];
> - if (!res)
> + if (!res || !res->end)
> continue;
>
> dev_printk(KERN_DEBUG, &bus->dev, "resource %d %s %pR\n", i,
> - (res->flags & IORESOURCE_IO) ? "io: " : "mem:", res);
> + (res->flags & IORESOURCE_IO) ? "io: " :
> + ((res->flags & IORESOURCE_PREFETCH)? "pref mem":"mem:"),
> + res);
'pref mem' is easily mistaken for 'preferential memory' or something
similar. Would printing "prefetchable-mem" still be OK?
Ingo
next prev parent reply other threads:[~2009-04-18 9:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-18 8:43 [PATCH 1/3] x86/pci: fix -1 calling to e820_all_mapped with mmconfig Yinghai Lu
2009-04-18 8:44 ` [PATCH 2/3] pci: don't assume pref memio are 64bit -v2 Yinghai Lu
2009-04-18 9:15 ` Ingo Molnar
2009-04-18 17:01 ` Yinghai Lu
2009-04-18 20:09 ` Ivan Kokshaysky
2009-04-18 20:25 ` Ingo Molnar
2009-04-18 8:46 ` [PATCH 3/3] pci: don't printout if the bus res size is 0 Yinghai Lu
2009-04-18 9:16 ` Ingo Molnar [this message]
2009-04-18 9:17 ` [PATCH 1/3] x86/pci: fix -1 calling to e820_all_mapped with mmconfig Ingo Molnar
2009-04-22 22:04 ` Jesse Barnes
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=20090418091633.GN7678@elte.hu \
--to=mingo@elte.hu \
--cc=jbarnes@virtuousgeek.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=yinghai@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