diff options
author | Brian Starkey <brian.starkey@arm.com> | 2016-03-22 14:27:57 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-03-22 15:36:02 -0700 |
commit | cf61e2a1487d833e4748dead4096584de70bf742 (patch) | |
tree | 311f4ff6e83253a858d583face5d5af9aedb4149 /arch/metag | |
parent | 41b27154874b3a40d6673052d08c8e9fd0c6404f (diff) | |
download | linux-cf61e2a1487d833e4748dead4096584de70bf742.tar.gz linux-cf61e2a1487d833e4748dead4096584de70bf742.tar.bz2 linux-cf61e2a1487d833e4748dead4096584de70bf742.zip |
memremap: don't modify flags
These patches implement a MEMREMAP_WC flag for memremap(), which can be
used to obtain writecombine mappings. This is then used for setting up
dma_coherent_mem regions which use the DMA_MEMORY_MAP flag.
The motivation is to fix an alignment fault on arm64, and the suggestion
to implement MEMREMAP_WC for this case was made at [1]. That particular
issue is handled in patch 4, which makes sure that the appropriate
memset function is used when zeroing allocations mapped as IO memory.
This patch (of 4):
Don't modify the flags input argument to memremap(). MEMREMAP_WB is
already a special case so we can check for it directly instead of
clearing flag bits in each mapper.
Signed-off-by: Brian Starkey <brian.starkey@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/metag')
0 files changed, 0 insertions, 0 deletions