+ powerpc-fix-pci-domain-detection.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     powerpc: fix pci domain detection
has been added to the -mm tree.  Its filename is
     powerpc-fix-pci-domain-detection.patch

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: powerpc: fix pci domain detection
From: Arnd Bergmann <arnd@xxxxxxxx>

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@xxxxxxxxxx>
Acked-by: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---


diff -puN arch/powerpc/kernel/pci_64.c~powerpc-fix-pci-domain-detection arch/powerpc/kernel/pci_64.c
--- a/arch/powerpc/kernel/pci_64.c~powerpc-fix-pci-domain-detection
+++ a/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;
 	}
 }
 
_

Patches currently in -mm which might be from arnd@xxxxxxxx are

powerpc-fix-pci-domain-detection.patch
whitespace-fixes-compat-syscalls.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux