Re: can device drivers return non-ram via vm_ops->nopage?

From: Russell King
Date: Sun Mar 21 2004 - 19:00:02 EST


On Sun, Mar 21, 2004 at 03:51:31PM -0800, Linus Torvalds wrote:
> That might be the minimal fix, since it would basically involve:
> - change whatever offensive "virt_to_page()" calls into
> "dma_map_to_page()".
> - implement "dma_map_to_page()" for all architectures.
>
> Would that make people happy?

Unfortunately this doesn't make dwmw2 happy - he claims to have machines
which implement dma_alloc_coherent using RAM which doesn't have any
struct page associated with it.

I've already got the interface you suggest above for ARM, and I'd have
taken this further had dwmw2 not chimed in.

--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: 2.6 PCMCIA - http://pcmcia.arm.linux.org.uk/
2.6 Serial core
-
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/