Re: 2.6.16-rc6-mm2

Badari Pulavarty
2006-06-13T21:49:56Z

On Tue, 2006-06-13 at 18:10 +0400, Sergei Shtylyov wrote:
> Hello.
>
> Andrew Morton wrote:
> > On Mon, 12 Jun 2006 17:09:52 -0500
> > Steve Fox <drfickle@us.ibm.com> wrote:
>
> >>On Fri, 09 Jun 2006 21:40:24 -0700, Andrew Morton wrote:
>
> >>>ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.17-rc6/2.6.17-rc6-mm2/
>
> >>Boot fails on a ppc64 machine.
> >>
> >>[snip]
> >>Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
> >>ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
> >>AMD8111: IDE controller at PCI slot 0000:00:04.1
> >>AMD8111: chipset revision 3
> >>AMD8111: 0000:00:04.1 (rev 03) UDMA133 controller
> >>AMD8111: 100% native mode on irq 32
> >> ide0: BM-DMA at 0x7c00-0x7c07<3>AMD8111: -- Error, unable to allocate DMA table.
> >> ide1: BM-DMA at 0x7c08-0x7c0f<3>AMD8111: -- Error, unable to allocate DMA table.
> >>hda: TOSHIBA MK4019GAXB, ATA DISK drive

Okay. Here is the fix Anton did - which helped my machine.

http://patchwork.ozlabs.org/linuxppc/patch?id=5713

Thanks,
Badari

Index: build/arch/powerpc/kernel/iommu.c
===================================================================
--- build.orig/arch/powerpc/kernel/iommu.c 2006-06-10 19:49:51.000000000 +1000
+++ build/arch/powerpc/kernel/iommu.c 2006-06-10 19:52:12.000000000 +1000
@@ -561,7 +561,7 @@ void *iommu_alloc_coherent(struct iommu_
return NULL;

/* Alloc enough pages (and possibly more) */
- page = alloc_pages_node(flag, order, node);
+ page = alloc_pages_node(node, flag, order);
if (!page)
return NULL;
ret = page_address(page);