Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756004AbXFWK1r (ORCPT ); Sat, 23 Jun 2007 06:27:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752369AbXFWK1k (ORCPT ); Sat, 23 Jun 2007 06:27:40 -0400 Received: from barikada.upol.cz ([158.194.242.200]:52872 "EHLO barikada.upol.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752111AbXFWK1j (ORCPT ); Sat, 23 Jun 2007 06:27:39 -0400 To: Christoph Lameter Cc: Hugh Dickins , Linus Torvalds , Nicolas Ferre , ARM Linux Mailing List , Linux Kernel list , Marc Pignat , Andrew Victor , Pierre Ossman , Andrew Morton , Russell King Subject: Re: Oops in a driver while using SLUB as a SLAB allocator In-Reply-To: References: <467A4532.40301@rfo.atmel.com> Organization: Palacky University in Olomouc, experimental physics department. User-Agent: jed X-Mailer: slrn (x86_64-pc-linux-glibc-debian) Date: Sat, 23 Jun 2007 12:40:20 +0200 Message-Id: From: Oleg Verych Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1031 Lines: 24 * From: Christoph Lameter * Newsgroups: linux.kernel,linux.ports.arm.kernel * Date: Fri, 22 Jun 2007 13:15:19 -0700 (PDT) > > Here is the corresponding PA-RISC piece. Its as straightforward as > the other one since the only way to make this work properly in the past > was if the sizes passed to the dma alloc functions are page size based. [] > --- linux-2.6.orig/arch/parisc/kernel/pci-dma.c 2007-06-22 13:02:32.000000000 -0700 > +++ linux-2.6/arch/parisc/kernel/pci-dma.c 2007-06-22 13:06:39.000000000 -0700 > @@ -572,7 +572,7 @@ static void *pa11_dma_alloc_noncoherent( > void *addr = NULL; > > /* rely on kmalloc to be cacheline aligned */ > - addr = kmalloc(size, flag); > + addr = (void *)__get_free_pages(flag, get_order(size)); Seems like comment must be removed. ____ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/