[Top] [All Lists]

Re: kmalloc issue on MIPS target

To: naveen yadav <>
Subject: Re: kmalloc issue on MIPS target
From: Sergei Shtylyov <>
Date: Wed, 18 Aug 2010 20:09:23 +0400
Cc: Ralf Baechle <>,
In-reply-to: <>
Original-recipient: rfc822;
References: <> <> <> <> <>
User-agent: Thunderbird (X11/20090320)

naveen yadav wrote:

Hi Ralf,

I understand that that I need to make kmalloc.h in my arch specific
folder. But I could not get answer, what should be appropriate
value of  ARCH_KMALLOC_MINALIGN  is it 32 or 128 ?

   You've been replied already that you should set it to 32.


On Wed, Aug 18, 2010 at 8:13 PM, Ralf Baechle <> wrote:
On Wed, Aug 18, 2010 at 07:56:16PM +0530, naveen yadav wrote:

I will give more info.



mips 34kc is processor

and File we are using is  arch/mips/include/asm/mach-generic/kmalloc.h


 * Total overkill for most systems but need as a safe default.
 * Set this one if any device in the system might do non-coherent DMA.


So shall we make value ARCH_KMALLOC_MINALIGN   from 128 to 32. is
there any problem ?

No, that's just what you should do.  You do that by putting a file
that defines ARCH_KMALLOC_MINALIGN into your platforms's
arch/mips/include/asm/mach-<yourplatform>/kmalloc.h just like the ip32
file from your original posting.


WBR, Sergei

<Prev in Thread] Current Thread [Next in Thread>