Re: ioremap and vmalloc

2008-09-21 Thread Benjamin Herrenschmidt
On Fri, 2008-09-19 at 18:45 +0200, Sébastien Chrétien wrote: > if I write : > ioremap(0x2000,0x4) and ioremap(0x2000,0x5) > > Will it crash ? To give you a rough idea, unless you tweak things like TASK_SIZE, KERNELBASE, CONFIG_LOWMEM_SIZE, etc... and depending on what CPU you use,

Re: ioremap and vmalloc

2008-09-19 Thread Sébastien Chrétien
The chip that I am using is a MPC7448. The Kernel version is 2.6.26. I am developping my own driver. I am making some tests Josh Boyer a écrit : On Fri, Sep 19, 2008 at 06:45:01PM +0200, =?ISO-8859-1?Q?S=E9bastien_Chr=E9tien_ wrote: if I write : ioremap(0x2000,0x4) and ioremap(0x200

Re: ioremap and vmalloc

2008-09-19 Thread Sébastien Chrétien
I made a mistake. The right code is : ioremap(0x2000,0x4) and ioremap(0x8000,0x5) Grant Likely a écrit : On Fri, Sep 19, 2008 at 10:58 AM, Josh Boyer <[EMAIL PROTECTED]> wrote: On Fri, Sep 19, 2008 at 06:45:01PM +0200, =?ISO-8859-1?Q?S=E9bastien_Chr=E9tien_ wrote: i

Re: ioremap and vmalloc

2008-09-19 Thread Sébastien Chrétien
if I write : ioremap(0x2000,0x4) and ioremap(0x2000,0x5) Will it crash ? Josh Boyer a écrit : On Fri, Sep 19, 2008 at 06:34:06PM +0200, =?ISO-8859-1?Q?S=E9bastien_Chr=E9tien_ wrote: The first is ioremap(0x2000,0x1000); The second is ioremap(0x8000,0x1000); I

Re: ioremap and vmalloc

2008-09-19 Thread Grant Likely
On Fri, Sep 19, 2008 at 10:58 AM, Josh Boyer <[EMAIL PROTECTED]> wrote: > On Fri, Sep 19, 2008 at 06:45:01PM +0200, > =?ISO-8859-1?Q?S=E9bastien_Chr=E9tien_ wrote: >> if I write : >> ioremap(0x2000,0x4) and ioremap(0x2000,0x5) >> >> Will it crash ? > > I have no idea. You haven't

Re: ioremap and vmalloc

2008-09-19 Thread Josh Boyer
On Fri, Sep 19, 2008 at 06:45:01PM +0200, =?ISO-8859-1?Q?S=E9bastien_Chr=E9tien_ wrote: > if I write : > ioremap(0x2000,0x4) and ioremap(0x2000,0x5) > > Will it crash ? I have no idea. You haven't given us enough information to really answer that. Basic information needed would

Re: ioremap and vmalloc

2008-09-19 Thread Grant Likely
On Fri, Sep 19, 2008 at 06:34:06PM +0200, =?ISO-8859-1?Q?S=E9bastien_Chr=E9tien_ wrote: > The first is ioremap(0x2000,0x1000); > The second is ioremap(0x8000,0x1000); > Is it too long Well, you're trying to allocate two 256MB regions. That is very large. What kind of device are y

Re: ioremap and vmalloc

2008-09-19 Thread Josh Boyer
On Fri, Sep 19, 2008 at 06:34:06PM +0200, =?ISO-8859-1?Q?S=E9bastien_Chr=E9tien_ wrote: > The first is ioremap(0x2000,0x1000); > The second is ioremap(0x8000,0x1000); > Is it too long The error message you are getting should have been a very strong hint that the answer is "yes."

Re: ioremap and vmalloc

2008-09-19 Thread Sébastien Chrétien
The first is ioremap(0x2000,0x1000); The second is ioremap(0x8000,0x1000); Is it too long Grant Likely a écrit : On Fri, Sep 19, 2008 at 01:15:20PM +0200, =?ISO-8859-1?Q?S=E9bastien_Chr=E9tien_ wrote: Hello, When I use ioremap, the second time, I obtain this message : allo

Re: ioremap and vmalloc

2008-09-19 Thread Grant Likely
On Fri, Sep 19, 2008 at 01:15:20PM +0200, =?ISO-8859-1?Q?S=E9bastien_Chr=E9tien_ wrote: > Hello, > > When I use ioremap, the second time, I obtain this message : > > allocation failed: out of vmalloc space - use vmalloc= to increase > size. > What can I do in order to fix this problem ? How lar

ioremap and vmalloc

2008-09-19 Thread Sébastien Chrétien
Hello, When I use ioremap, the second time, I obtain this message : allocation failed: out of vmalloc space - use vmalloc= to increase size. What can I do in order to fix this problem ? ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlab