From: Jesse Barnes <jbarnes@virtuousgeek.org>
To: Thomas Renninger <trenn@suse.de>
Cc: Bjorn Helgaas <bhelgaas@google.com>,
linux-pci@vger.kernel.org, Yinghai Lu <yinghai.lu@oracle.com>
Subject: Re: [PATCH] PCI: workaround hard-wired bus number V2
Date: Fri, 10 Feb 2012 11:35:07 -0800 [thread overview]
Message-ID: <20120210113507.5968216f@jbarnes-desktop> (raw)
In-Reply-To: <201201301225.24312.trenn@suse.de>
[-- Attachment #1: Type: text/plain, Size: 1606 bytes --]
On Mon, 30 Jan 2012 12:25:24 +0100
Thomas Renninger <trenn@suse.de> wrote:
> From: Yinghai Lu <yinghai.lu@oracle.com>
>
> Fixes PCI device detection on IBM xSeries IBM 3850 M2 / x3950 M2
> when using ACPI resources (_CRS).
> This is default, a manual workaround (without this patch)
> would be pci=nocrs boot param.
>
> V2: Add dev_warn if the workaround is hit. This should reveal
> how common such setups are (via google) and point to possible
> problems if things are still not working as expected.
> -> Suggested by Jan Beulich.
>
> Tested-by: garyhade@us.ibm.com
> CC: stable@vger.kernel.org
> CC: trenn@suse.de
>
> ---
> drivers/pci/probe.c | 5 +++++
> 1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
> index 7cc9e2f..71eac9c 100644
> --- a/drivers/pci/probe.c
> +++ b/drivers/pci/probe.c
> @@ -651,6 +651,11 @@ int __devinit pci_scan_bridge(struct pci_bus *bus, struct pci_dev *dev, int max,
> dev_dbg(&dev->dev, "scanning [bus %02x-%02x] behind bridge, pass %d\n",
> secondary, subordinate, pass);
>
> + if (!primary && (primary != bus->number) && secondary && subordinate) {
> + dev_warn(&dev->dev, "Primary bus is hard wired to 0\n");
> + primary = bus->number;
> + }
> +
> /* Check if setup is sensible at all */
> if (!pass &&
> (primary != bus->number || secondary <= bus->number)) {
>
Applied, thanks Thomas. I'll send this over to Linus next week
assuming it doesn't blow up before then.
Thanks,
--
Jesse Barnes, Intel Open Source Technology Center
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
prev parent reply other threads:[~2012-02-10 19:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-27 9:11 [PATCH] PCI: workaround hard-wired bus number Thomas Renninger
2012-01-27 16:26 ` Bjorn Helgaas
2012-01-27 17:38 ` Jesse Barnes
2012-01-30 10:43 ` Thomas Renninger
2012-01-30 11:18 ` [PATCH] PCI: workaround hard-wired bus number V2 Thomas Renninger
2012-01-30 11:25 ` Thomas Renninger
2012-02-10 19:35 ` 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=20120210113507.5968216f@jbarnes-desktop \
--to=jbarnes@virtuousgeek.org \
--cc=bhelgaas@google.com \
--cc=linux-pci@vger.kernel.org \
--cc=trenn@suse.de \
--cc=yinghai.lu@oracle.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox