login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
1
Re: [PATCH] powerpc: fix pci domain detection
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Benjamin Herrenschmidt <benh@...>
To: Arnd Bergmann <arnd@...>
Cc: <linuxppc-dev@...>, <linux-pci@...>, <paulus@...>, <linux-kernel@...>
Subject:
Re: [PATCH] powerpc: fix pci domain detection
Date: Monday, October 1, 2007 - 11:16 pm
On Wed, 2007-09-26 at 16:02 +0200, Arnd Bergmann wrote:
quoted text
> The /proc/bus/pci/* files list PCI domain numbers only for > devices that claim to be on a multi-domain system. The check > for this is broken on powerpc, because the buid value is > truncated to 32 bits. > > There is at least one machine (IBM QS21) that only uses > the high-order bits of the buid, so the return value > of pci_proc_domain() ends up being always zero, which > makes /proc/bus/pci useless. > > Change the logic to always return '1' for a nonzero > buid value. > > Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Good catch ! Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
quoted text
> > diff --git a/arch/powerpc/kernel/pci_64.c b/arch/powerpc/kernel/pci_64.c > index 291ffbc..9f63bdc 100644 > --- a/arch/powerpc/kernel/pci_64.c > +++ b/arch/powerpc/kernel/pci_64.c > @@ -588,7 +588,7 @@ int pci_proc_domain(struct pci_bus *bus) > return 0; > else { > struct pci_controller *hose = pci_bus_to_host(bus); > - return hose->buid; > + return hose->buid != 0; > } > } > > _______________________________________________ > Linuxppc-dev mailing list >
Linuxppc-dev@ozlabs.org
>
https://ozlabs.org/mailman/listinfo/linuxppc-dev
-
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH] powerpc: fix pci domain detection
, Arnd Bergmann
, (Wed Sep 26, 10:02 am)
Re: [PATCH] powerpc: fix pci domain detection
, Benjamin Herrenschmidt
, (Mon Oct 1, 11:16 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Alan Cox
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Jan Engelhardt
intel iommu (Re: -mm merge plans for 2.6.23)
Adrian Bunk
Re: LSM conversion to static interface
Greg Kroah-Hartman
[PATCH 004/196] Chinese: add translation of SubmittingPatches
git
:
openbsd-misc
:
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Andrew Morton
Re: [BUG] New Kernel Bugs
Winkler, Tomas
RE: iwlwifi: fix build bug in "iwlwifi: fix LED stall"
Colocation donated by:
Who's online
There are currently
7 users
and
901 guests
online.
Online users
strcmp
raffaellotdec
mikereynolds
terrysmith514
ComanVasile
pretoriaguesths
olecom
Syndicate