From: Jesse Barnes <jbarnes@virtuousgeek.org>
To: Yinghai Lu <yhlu.kernel@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>, Thomas Gleixner <tglx@linutronix.de>,
"H. Peter Anvin" <hpa@zytor.com>,
Andrew Morton <akpm@linux-foundation.org>,
Linus Torvalds <torvalds@linux-foundation.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] x86: unify using pci_mmcfg_insert_resource
Date: Wed, 10 Sep 2008 11:49:05 -0700 [thread overview]
Message-ID: <200809101149.06592.jbarnes@virtuousgeek.org> (raw)
In-Reply-To: <1220083122-4058-1-git-send-email-yhlu.kernel@gmail.com>
Ingo, is this stuff in the same branch with the BAR debugging fix?
Thanks,
Jesse
On Saturday, August 30, 2008 12:58 am Yinghai Lu wrote:
> even with known_bridge insert them late too.
>
> Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
>
> Index: linux-2.6/arch/x86/pci/mmconfig-shared.c
> ===================================================================
> --- linux-2.6.orig/arch/x86/pci/mmconfig-shared.c
> +++ linux-2.6/arch/x86/pci/mmconfig-shared.c
> @@ -209,7 +209,7 @@ static int __init pci_mmcfg_check_hostbr
> return name != NULL;
> }
>
> -static void __init pci_mmcfg_insert_resources(unsigned long
> resource_flags) +static void __init pci_mmcfg_insert_resources(void)
> {
> #define PCI_MMCFG_RESOURCE_NAME_LEN 19
> int i;
> @@ -233,7 +233,7 @@ static void __init pci_mmcfg_insert_reso
> cfg->pci_segment);
> res->start = cfg->address;
> res->end = res->start + (num_buses << 20) - 1;
> - res->flags = IORESOURCE_MEM | resource_flags;
> + res->flags = IORESOURCE_MEM | IORESOURCE_BUSY;
> insert_resource(&iomem_resource, res);
> names += PCI_MMCFG_RESOURCE_NAME_LEN;
> }
> @@ -434,11 +434,9 @@ static void __init __pci_mmcfg_init(int
> (pci_mmcfg_config[0].address == 0))
> return;
>
> - if (pci_mmcfg_arch_init()) {
> - if (known_bridge)
> - pci_mmcfg_insert_resources(IORESOURCE_BUSY);
> + if (pci_mmcfg_arch_init())
> pci_probe = (pci_probe & ~PCI_PROBE_MASK) | PCI_PROBE_MMCONF;
> - } else {
> + else {
> /*
> * Signal not to attempt to insert mmcfg resources because
> * the architecture mmcfg setup could not initialize.
> @@ -475,7 +473,7 @@ static int __init pci_mmcfg_late_insert_
> * marked so it won't cause request errors when __request_region is
> * called.
> */
> - pci_mmcfg_insert_resources(0);
> + pci_mmcfg_insert_resources();
>
> return 0;
> }
next prev parent reply other threads:[~2008-09-10 18:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-30 7:58 [PATCH] x86: unify using pci_mmcfg_insert_resource Yinghai Lu
2008-08-30 7:58 ` [PATCH] pci: fix merging left out for BAR print out Yinghai Lu
2008-08-30 7:58 ` [PATCH] x86: split e820 reserved entries record to late v4 Yinghai Lu
2008-08-30 7:58 ` [PATCH] x86: split e820 reserved entries record to late v4 - fix v3 Yinghai Lu
2008-09-10 18:49 ` Jesse Barnes [this message]
2008-09-11 8:20 ` [PATCH] x86: unify using pci_mmcfg_insert_resource Ingo Molnar
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=200809101149.06592.jbarnes@virtuousgeek.org \
--to=jbarnes@virtuousgeek.org \
--cc=akpm@linux-foundation.org \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=tglx@linutronix.de \
--cc=torvalds@linux-foundation.org \
--cc=yhlu.kernel@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.