Thread (9 messages) flat view 9 messages, 6 authors, 2009-07-08

Re: dma_ops->map_page == NULL

From: Mark Nelson <hidden>
Date: 2009-07-07 00:13:23

On Tuesday 07 July 2009 03:51:00 K=E1ri Dav=ED=F0sson wrote:
I am doing a driver that uses dma_map_single().
=20
After changing to to linux 2.6.29.3 I am getting
segfaults in dma_map_single() because dma_ops->map_page is NULL.
Actually dma_ops looks funky too.
When the 32 and 64bit DMA code was merged in .28 , map_/unmap_page() was
added in favour of map_/unmap_single() (which was later removed in .29)
so you'll have to replace your calls to dma_map_single() with
dma_map_page(). Just pass it the page and offset rather than the address.

Hope that helps!
Mark.
=20
The driver is an of_platform_driver which is declared as an child of
the lbp (fsl,lpb) node of the device tree.
=20
This is on powerpc 5200b platform.
=20
rg
kd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help