Re: [PATCH] ARM: allow, but warn, when issuing ioremap() on RAM

From: Guennadi Liakhovetski
Date: Sat Oct 09 2010 - 14:59:07 EST


On Sat, 9 Oct 2010, Arnd Bergmann wrote:

> On Saturday 09 October 2010 13:59:45 Felipe Contreras wrote:
> > I know of tidspbridge, in my original mail I listed some links, one
> > which mentions: sh_mobile_ceu_camera, maybe i.MX31 users of the
> > mx3_camera driver: pcm037 and mx31moboard.
> >
> > http://article.gmane.org/gmane.linux.ports.sh.devel/8560
>
> sh_mobile_ceu_camera looks fine on mainline. It only remaps
> the mmio registers, so no problem there. No arm platform even
> declares the device, so the report must be with an external tree.
>
> The mx3_camera driver also looks fine, there is only one ioremap
> in there, which is completely sane.

Arnd, the drivers are fine, they just use the videobuf-dma-contig.c
driver, which calls dma_alloc_coherent(). But the platforms, that use
those drivers reserve that memory from system RAM dma_alloc_coherent(NULL,
...) and dma_declare_coherent_memory(), and this is what breaks currently.
As Felipe and Uwe in another mail in this thread mention, there are
currently two platforms in the mainline, that do this. mx1, mx2, omap1 and
mach-shmobile platforms are potentially affected too.

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/