Subject: Re: pq2_find_bridges hangs system

From: Kalle Pokki <[email-masked]>
Date: Fri, 02 Dec 2005 16:09:33 +0200

Alex BASTOS wrote:

>The Tranfer Error makes not many sense for me, as _TEA is pulled-up.
>Maybe the oops after that is caused by the bad call return point?
>  
>
I remember using this to prevent machine check exceptions during the PCI 
scan. This is in the beginning of the pciauto_bus_scan() function.

--- trunk/linux/arch/ppc/syslib/pci_auto.c	(revision 127)
+++ trunk/linux/arch/ppc/syslib/pci_auto.c	(revision 128)
@@ -382,6 +382,10 @@
 	unsigned short vid;
 	unsigned char header_type;
 
+
+	/* must ignore machine checks during scan */
+	*(volatile unsigned short *) 0xf0010888 &= ~0x0800;
+
 	/*
 	 * Fetch our I/O and memory space upper boundaries used
 	 * to allocated base addresses on this hose.