Skip to contentSkip to conversation

Make QSpan PCI work

PATCH In review John Tyner 2 participants 2 messages Dec 3, 2007 – Dec 5, 2007

lore
Share & tools
lore

John Tyner

author
#0 lore raw

PATCH 1/1 Make QSpan PCI work

The following patch makes the QSpan PCI code compile and work on my hardware. The patch is against 2.4, but I'm hoping it will still be viewed as useful since the code currently does not even compile (2.6 is the same). I had to make a change to move the PCI setup later in the m8xx_setup code as well because the kernel would crash during the pcibios_alloc_controller because the bootmem stuff had not come up yet.

Please CC me on any responses since I'm not subscribed.

Thanks,
John

arch/ppc/kernel/m8xx_setup.c +4 -4
diff -ruNa linux-2.4.35.4.orig/arch/ppc/kernel/m8xx_setup.c linux-2.4.35.4/arch/ppc/kernel/m8xx_setup.c
@@ -65,6 +65,10 @@
 {
 	int	cpm_page;
 
+#ifdef CONFIG_PCI
+	m8xx_setup_pci_ptrs();
+#endif
+
 	cpm_page = (int) alloc_bootmem_pages(PAGE_SIZE);
 
 	/* Reset the Communication Processor Module.
@@ -364,10 +368,6 @@
 	if ( r3 )
 		memcpy( (void *)__res,(void *)(r3+KERNELBASE), sizeof(bd_t) );
 
-#ifdef CONFIG_PCI
-	m8xx_setup_pci_ptrs();
-#endif
-
 #ifdef CONFIG_BLK_DEV_INITRD
 	/* take care of initrd if we have one */
 	if ( r4 )
arch/ppc/kernel/qspan_pci.c +164 -85

393 lines not on this page · raw message

arch/ppc/kernel/qspan_pci.h +195 -0

195 lines not on this page · raw message

#1 lore raw
Quoted 8 lines · On Mon, 3 Dec 2007 13:05:00 -0800 John Tyner wrote:

The following patch makes the QSpan PCI code compile and work on my hardware. The patch is against 2.4, but I'm hoping it will still be viewed as useful since the code currently does not even compile (2.6 is the same). I had to make a change to move the PCI setup later in the m8xx_setup code as well because the kernel would crash during the pcibios_alloc_controller because the bootmem stuff had not come up yet.

This looks interesting, but again would make a lot of sense for powerpc and 2.6. Is that possible to have your patches rebased against 2.6, arch/ppc at least?

Signature · 1 line
Sincerely, Vitaly