Skip to content

MIPS: Extend plat_* abstractions, cache support

Kevin Cernekee linux-mips lkml 1 version Applied

Status from this message: Queued for 2.6.31. Thanks Kevin!

Get series with b4
b4 am 0483452db22e72f57289e63fcf097120d94c2a37.1240533480.git@localhost

Versions newest first

  1. v1 Latest3 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3MIPS: Add size and direction arguments to plat_unmap_dma_mem()arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h arch/mips/include/asm/mach-generic/dma-coherence.h arch/mips/include/asm/mach-ip27/dma-coherence.h +4 more+16 -100 replies
2/3MIPS: Pass struct device to plat_dma_addr_to_phys()arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h arch/mips/include/asm/mach-generic/dma-coherence.h arch/mips/include/asm/mach-ip27/dma-coherence.h +4 more+20 -130 replies
3/3MIPS: Support 64-byte D-cache line sizearch/mips/include/asm/r4kcache.h arch/mips/mm/c-r4k.c+13 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] MIPS: Extend plat_* abstractions, cache support

Hi,

I am upgrading an SoC to the 2.6.29.1 kernel from an earlier version, and in the process I am switching over the old board support customizations to use the newer, cleaner plat_* functions. I found two cases where the plat_* functions did not provide enough information, so I had to modify the API:

plat_unmap_dma_mem() - Our handler needs to know the size and direction of the DMA mapping. This information is not encoded in the DMA address, so it needed to be passed in explicitly.

plat_dma_addr_to_phys() - The bus<->physical address mappings differ based on which bus is being used. It is not always possible to infer which bus is being used from the bus address alone, so I added a "struct device" to the function definition.

Also, our MIPS core uses 64-byte D$ lines, so I needed to generate the corresponding blast* functions.

These patches apply against the linux-mips.org GIT tree.