Thread (59 messages) flat view 59 messages, 6 authors, 2011-03-21

[PATCH v4 16/19] ARM: LPAE: Use generic dma_addr_t type definition

From: Russell King - ARM Linux <hidden>
Date: 2011-02-12 10:34:28
Also in: lkml

On Mon, Jan 24, 2011 at 05:55:58PM +0000, Catalin Marinas wrote:
From: Will Deacon <redacted>

This patch uses the types.h implementation in asm-generic to define the
dma_addr_t type as the same width as phys_addr_t.

NOTE: this is a temporary patch until the corresponding patches unifying
the dma_addr_t and removing the dma64_addr_t are merged into mainline.
I'm not too sure about this patch.  All of the DMA devices we have only
take 32-bit addresses for their DMA, so making dma_addr_t 64-bit seems
wrong as we'll implicitly truncate these addresses.

As ARM platforms don't (sanely) support DMA, I think dropping this patch
for the time being would be a good idea, and stick with 32-bit dma_addr_t,
especially as we need to first do a sweep for dma_addr_t usage in device
driver structures (such as dma engine scatter lists.)  These really should
use __le32/__be32/u32 depending on whether they're little endian, big
endian or native endian.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help