kernel panic while doing dma_alloc_coherent() function

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Mon Jul 22 08:28:45 EDT 2013


On Mon, 22 Jul 2013 17:14:48 +0530, sandeep kumar said:

> While porting the SD card controller driver, i am seeing a kernel panic.
> While tracing with printk, i am struck at
>
> in arch/arm/mm/dma_mapping.c ,
> Function,
>
> static struct page *__dma_alloc_buffer(struct device *dev, size_t size, gfp_t gfp)
> {
>       <snip>
> .....
>     ptr = page_address(page);
>     memset(ptr, 0, size);
>     dmac_flush_range(ptr, ptr + size); --> struck here

Convince us that the values of page, ptr, and size are correct at this
point in the code.  And if you can't, fix them so they *are* correct.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 865 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130722/17a3def8/attachment.bin 


More information about the Kernelnewbies mailing list