important ppc64 bug fixes

Anton Blanchard anton at samba.org
Tue Nov 11 17:37:32 EST 2003



> - PCI IO windows can start at 0x0		(Anton)

The current pci probe code ignores PCI IO windows that start at 0x0.
This is legal and it can be found on some ppc64 boxes.

 foo-anton/drivers/pci/probe.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/pci/probe.c~pci_patch drivers/pci/probe.c
--- foo/drivers/pci/probe.c~pci_patch	2003-09-06 21:23:49.000000000 -0500
+++ foo-anton/drivers/pci/probe.c	2003-09-06 21:23:49.000000000 -0500
@@ -176,7 +176,7 @@ void __devinit pci_read_bridge_bases(str
 		limit |= (io_limit_hi << 16);
 	}

-	if (base && base <= limit) {
+	if (base <= limit) {
 		res->flags = (io_base_lo & PCI_IO_RANGE_TYPE_MASK) | IORESOURCE_IO;
 		res->start = base;
 		res->end = limit + 0xfff;

_

** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc64-dev mailing list