public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] i386: run BIOS PCI detection before direct
@ 2006-03-17  0:03 Dave Hansen
  2006-03-17 10:38 ` Andy Whitcroft
  0 siblings, 1 reply; 5+ messages in thread
From: Dave Hansen @ 2006-03-17  0:03 UTC (permalink / raw)
  To: linux-kernel; +Cc: akpm, ak, gregkh, Dave Hansen


from 2.6.16-rc3-mm1 through at least 2.6.16-rc6-mm1 a patch from
Andi Kleen, titled

        x86_64-i386-pci-ordering.patch

which is now called:

	gregkh-pci-pci-give-pci-config-access-initialization-a-defined-ordering.patch

has caused a 4-way PIII Xeon (non-NUMA) to stop detecting its SCSI
card.  I believe this is also the issue keeping -mm from booting
on "elm3b67" from http://test.kernel.org/. 

The following patch reverts the ordering of the PCI detection code
to always run the BIOS initialization, first.  As far as I can
tell, this was the original behavior, and it makes my machine boot
again.

Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
---

 work-dave/arch/i386/pci/init.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff -puN arch/i386/pci/init.c~run-bios-first-take2 arch/i386/pci/init.c
--- work/arch/i386/pci/init.c~run-bios-first-take2	2006-03-16 15:55:00.000000000 -0800
+++ work-dave/arch/i386/pci/init.c	2006-03-16 15:55:47.000000000 -0800
@@ -12,13 +12,13 @@ static __init int pci_access_init(void)
 #endif
 	if (raw_pci_ops)
 		return 0;
-#ifdef CONFIG_PCI_DIRECT
-	pci_direct_init();
+#ifdef CONFIG_PCI_BIOS
+	pci_pcbios_init();
 #endif
 	if (raw_pci_ops)
 		return 0;
-#ifdef CONFIG_PCI_BIOS
-	pci_pcbios_init();
+#ifdef CONFIG_PCI_DIRECT
+	pci_direct_init();
 #endif
 	return 0;
 }
_

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] i386: run BIOS PCI detection before direct
  2006-03-17  0:03 [PATCH] i386: run BIOS PCI detection before direct Dave Hansen
@ 2006-03-17 10:38 ` Andy Whitcroft
  2006-03-22 13:10   ` Andi Kleen
  0 siblings, 1 reply; 5+ messages in thread
From: Andy Whitcroft @ 2006-03-17 10:38 UTC (permalink / raw)
  To: Dave Hansen; +Cc: linux-kernel, akpm, ak, gregkh

Dave Hansen wrote:
> from 2.6.16-rc3-mm1 through at least 2.6.16-rc6-mm1 a patch from
> Andi Kleen, titled
> 
>         x86_64-i386-pci-ordering.patch
> 
> which is now called:
> 
> 	gregkh-pci-pci-give-pci-config-access-initialization-a-defined-ordering.patch
> 
> has caused a 4-way PIII Xeon (non-NUMA) to stop detecting its SCSI
> card.  I believe this is also the issue keeping -mm from booting
> on "elm3b67" from http://test.kernel.org/. 
> 
> The following patch reverts the ordering of the PCI detection code
> to always run the BIOS initialization, first.  As far as I can
> tell, this was the original behavior, and it makes my machine boot
> again.
> 
> Signed-off-by: Dave Hansen <haveblue@us.ibm.com>

Ran this through the nightly regression suite on the affected machine
and it boots fine with this patch applied.

-apw

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] i386: run BIOS PCI detection before direct
  2006-03-17 10:38 ` Andy Whitcroft
@ 2006-03-22 13:10   ` Andi Kleen
  2006-03-22 22:08     ` Greg KH
  0 siblings, 1 reply; 5+ messages in thread
From: Andi Kleen @ 2006-03-22 13:10 UTC (permalink / raw)
  To: Andy Whitcroft; +Cc: Dave Hansen, linux-kernel, akpm, gregkh

On Friday 17 March 2006 11:38, Andy Whitcroft wrote:
> Dave Hansen wrote:
> > from 2.6.16-rc3-mm1 through at least 2.6.16-rc6-mm1 a patch from
> > Andi Kleen, titled
> > 
> >         x86_64-i386-pci-ordering.patch
> > 
> > which is now called:
> > 
> > 	gregkh-pci-pci-give-pci-config-access-initialization-a-defined-ordering.patch
> > 
> > has caused a 4-way PIII Xeon (non-NUMA) to stop detecting its SCSI
> > card.  I believe this is also the issue keeping -mm from booting
> > on "elm3b67" from http://test.kernel.org/. 
> > 
> > The following patch reverts the ordering of the PCI detection code
> > to always run the BIOS initialization, first.  As far as I can
> > tell, this was the original behavior, and it makes my machine boot
> > again.
> > 
> > Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
> 
> Ran this through the nightly regression suite on the affected machine
> and it boots fine with this patch applied.

I fixed this up my copy of the patch.

Also fixed the warning with CONFIG_ACPI=n

Thanks,

-Andi

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] i386: run BIOS PCI detection before direct
  2006-03-22 22:08     ` Greg KH
@ 2006-03-22 21:37       ` Andi Kleen
  0 siblings, 0 replies; 5+ messages in thread
From: Andi Kleen @ 2006-03-22 21:37 UTC (permalink / raw)
  To: Greg KH; +Cc: Andy Whitcroft, Dave Hansen, linux-kernel, akpm

On Wednesday 22 March 2006 23:08, Greg KH wrote:

> 
> Care to send me that copy of the patch so I can forward it on?

ftp://ftp.firstfloor.org/pub/ak/x86_64/quilt/patches/i386-pci-ordering

-Andi

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] i386: run BIOS PCI detection before direct
  2006-03-22 13:10   ` Andi Kleen
@ 2006-03-22 22:08     ` Greg KH
  2006-03-22 21:37       ` Andi Kleen
  0 siblings, 1 reply; 5+ messages in thread
From: Greg KH @ 2006-03-22 22:08 UTC (permalink / raw)
  To: Andi Kleen; +Cc: Andy Whitcroft, Dave Hansen, linux-kernel, akpm

On Wed, Mar 22, 2006 at 02:10:47PM +0100, Andi Kleen wrote:
> On Friday 17 March 2006 11:38, Andy Whitcroft wrote:
> > Dave Hansen wrote:
> > > from 2.6.16-rc3-mm1 through at least 2.6.16-rc6-mm1 a patch from
> > > Andi Kleen, titled
> > > 
> > >         x86_64-i386-pci-ordering.patch
> > > 
> > > which is now called:
> > > 
> > > 	gregkh-pci-pci-give-pci-config-access-initialization-a-defined-ordering.patch
> > > 
> > > has caused a 4-way PIII Xeon (non-NUMA) to stop detecting its SCSI
> > > card.  I believe this is also the issue keeping -mm from booting
> > > on "elm3b67" from http://test.kernel.org/. 
> > > 
> > > The following patch reverts the ordering of the PCI detection code
> > > to always run the BIOS initialization, first.  As far as I can
> > > tell, this was the original behavior, and it makes my machine boot
> > > again.
> > > 
> > > Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
> > 
> > Ran this through the nightly regression suite on the affected machine
> > and it boots fine with this patch applied.
> 
> I fixed this up my copy of the patch.
> 
> Also fixed the warning with CONFIG_ACPI=n

Care to send me that copy of the patch so I can forward it on?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-03-22 22:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-17  0:03 [PATCH] i386: run BIOS PCI detection before direct Dave Hansen
2006-03-17 10:38 ` Andy Whitcroft
2006-03-22 13:10   ` Andi Kleen
2006-03-22 22:08     ` Greg KH
2006-03-22 21:37       ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox