From: Jesse Barnes <jbarnes@virtuousgeek.org>
To: "Jan Beulich" <JBeulich@novell.com>
Cc: "Mauro Carvalho Chehab" <mchehab@redhat.com>, <mingo@elte.hu>,
<tglx@linutronix.de>, <arozansk@redhat.com>,
"Michal Marek" <mmarek@suse.cz>, <linux-kernel@vger.kernel.org>,
<hpa@zytor.com>
Subject: Re: [PATCH, resend] x86/PCI: don't export a __devinit function
Date: Tue, 22 Feb 2011 15:25:40 -0800 [thread overview]
Message-ID: <20110222152540.5023e9f1@jbarnes-desktop> (raw)
In-Reply-To: <4D5E45FB0200007800032A45@vpn.id2.novell.com>
On Fri, 18 Feb 2011 09:12:11 +0000
"Jan Beulich" <JBeulich@novell.com> wrote:
> Like this:
>
> --- a/arch/x86/pci/mmconfig-shared.c
> +++ b/arch/x86/pci/mmconfig-shared.c
> @@ -606,6 +606,16 @@ static void __init __pci_mmcfg_init(int
> if (list_empty(&pci_mmcfg_list))
> return;
>
> + if (pcibios_last_bus < 0) {
> + const struct pci_mmcfg_region *cfg;
> +
> + list_for_each_entry(cfg, &pci_mmcfg_list, list) {
> + if (cfg->segment)
> + break;
> + pcibios_last_bus = cfg->end_bus;
> + }
> + }
> +
> if (pci_mmcfg_arch_init())
> pci_probe = (pci_probe & ~PCI_PROBE_MASK) | PCI_PROBE_MMCONF;
> else {
>
> I (unsuccessfully so far) tried to find someone at Intel who could
> confirm that this approach is usable namely on those Xeon 55xx
> systems that the edac driver tries to deal with, which is why I
> didn't submit this so far.
What's the actual user of pcibios_last_bus we're concerned about here?
Presumably pcibios_fixup_peer_bridges(), since that's the only place
that might be affected by a positive value...
So in that sense, the above seems like a good fix; we should initialize
pcibios_last_bus to a reasonable value based on the configuration we
discover in the MCFG table.
--
Jesse Barnes, Intel Open Source Technology Center
prev parent reply other threads:[~2011-02-22 23:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-17 16:08 Jan Beulich
2011-02-17 17:21 ` Yinghai Lu
2011-02-18 9:07 ` Jan Beulich
2011-02-17 18:12 ` Mauro Carvalho Chehab
2011-02-17 23:12 ` Yinghai Lu
2011-02-18 0:12 ` Mauro Carvalho Chehab
2011-02-18 9:12 ` Jan Beulich
2011-02-22 23:25 ` Jesse Barnes [this message]
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=20110222152540.5023e9f1@jbarnes-desktop \
--to=jbarnes@virtuousgeek.org \
--cc=JBeulich@novell.com \
--cc=arozansk@redhat.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mchehab@redhat.com \
--cc=mingo@elte.hu \
--cc=mmarek@suse.cz \
--cc=tglx@linutronix.de \
/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
all inboxes | Powered by JetHome®