mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: yhlu.kernel@gmail.com
Cc: Ingo Molnar <mingo@elte.hu>,
	kernel list <linux-kernel@vger.kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH] x86_64: don't need set default res if only have one root bus
Date: Sat, 12 Apr 2008 00:54:01 +0200	[thread overview]
Message-ID: <200804120054.01959.rjw@sisk.pl> (raw)
In-Reply-To: <200804111514.53680.yhlu.kernel@gmail.com>

On Saturday, 12 of April 2008, Yinghai Lu wrote:
> only one root bus, don't need to split that root resources.

This patch fixes the issue described at
http://lkml.org/lkml/2008/4/10/304 and in the following thread for me.

> Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>

Tested-by: Rafael J. Wysocki <rjw@sisk.pl>
 
> diff --git a/arch/x86/pci/k8-bus_64.c b/arch/x86/pci/k8-bus_64.c
> index 7ed7f51..c433982 100644
> --- a/arch/x86/pci/k8-bus_64.c
> +++ b/arch/x86/pci/k8-bus_64.c
> @@ -69,7 +69,8 @@ void set_pci_bus_resources_arch_default(struct pci_bus *b)
>  	int j;
>  	struct pci_root_info *info;
>  
> -	if (!pci_root_num)
> +	/* if only one root bus, don't need to anything */
> +	if (pci_root_num < 2)
>  		return;
>  
>  	for (i = 0; i < pci_root_num; i++) {
> 
> 

Thanks,
Rafael

  reply	other threads:[~2008-04-11 22:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-11 22:14 Yinghai Lu
2008-04-11 22:54 ` Rafael J. Wysocki [this message]
2008-04-13  7:47   ` 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=200804120054.01959.rjw@sisk.pl \
    --to=rjw@sisk.pl \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --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 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®