Cheap Linux Hardware - ARM linux DMA alloc question

This is Interesting: Free IT Magazines  
Home > Archive > Cheap Linux Hardware > July 2007 > ARM linux DMA alloc question





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author ARM linux DMA alloc question
jz

2007-07-26, 1:15 am

Hi,

I am using Linux kernel 2.6.12.6 for my ARM project.
I use dma_alloc_writecombine() to allocate DMA uncached
memory. The default consistent memory is define in
CONSISTENT_BASE and CONSISTENT_END as 0xffc00000 and
0xffe00000 which is 2MB. Since I need about 4MB of
DMA memory, so I changed CONSISTENT_BASE to 0xffa00000,
but I got kernel OOPS:

kernel BUG at arch/arm/mm/consistent.c:218!
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = 67f28000
[00000000] *pgd=07ef2031, *pte=00000000, *ppte=00000000
Internel error: Oops: 817 [#1]


Can anyone shed some light on me regarding this problem?
Thanks.
David M

2007-07-26, 7:15 am

On Wed, 25 Jul 2007 21:04:06 -0700, jz rearranged some electrons to form:

> Hi,
>
> I am using Linux kernel 2.6.12.6 for my ARM project.
> I use dma_alloc_writecombine() to allocate DMA uncached
> memory. The default consistent memory is define in
> CONSISTENT_BASE and CONSISTENT_END as 0xffc00000 and
> 0xffe00000 which is 2MB. Since I need about 4MB of
> DMA memory, so I changed CONSISTENT_BASE to 0xffa00000,
> but I got kernel OOPS:
>
> kernel BUG at arch/arm/mm/consistent.c:218!
> Unable to handle kernel NULL pointer dereference at virtual address 00000000
> pgd = 67f28000
> [00000000] *pgd=07ef2031, *pte=00000000, *ppte=00000000
> Internel error: Oops: 817 [#1]
>
>
> Can anyone shed some light on me regarding this problem?
> Thanks.


Looks like you have an uninitialized (zero-value) pointer that you are
trying to use. That's what "null pointer" means.

--
David M (dmacchiarolo)
http://home.triad.rr.com/redsled
T/S 53
sled351 Linux 2.4.18-14 has been up 2 days 8:48

jz

2007-07-26, 1:17 pm



David M wrote:
> On Wed, 25 Jul 2007 21:04:06 -0700, jz rearranged some electrons to form:
>
>
>
>
> Looks like you have an uninitialized (zero-value) pointer that you are
> trying to use. That's what "null pointer" means.
>


Hi,

This would happen only when DMA malloc have grown over 2 MB.

Thanks.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com