Re: dma_ops->map_page == NULL
From: Jon Smirl <hidden>
Date: 2009-07-07 12:56:36
On Mon, Jul 6, 2009 at 1:51 PM, K=E1ri Dav=ED=F0sson<kari.davidsson@marel.c= om> wrote:
I am doing a driver that uses dma_map_single(). 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. The driver is an of_platform_driver which is declared as an child of the lbp (fsl,lpb) node of the device tree. This is on powerpc 5200b platform.
I have hit this before, in my case the driver pointer was null. It faulted on dma_ops->map_page which had nothing to do with the real problem which was the null driver pointer. I spent a long time looking at this until I figured out that the reported error was bogus compared to the actual problem.
rg kd _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev
--=20 Jon Smirl jonsmirl@gmail.com