summaryrefslogtreecommitdiffstats
path: root/COPYING
diff options
context:
space:
mode:
authorBrian Starkey <brian.starkey@arm.com>2016-03-22 14:27:57 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2016-03-22 15:36:02 -0700
commitcf61e2a1487d833e4748dead4096584de70bf742 (patch)
tree311f4ff6e83253a858d583face5d5af9aedb4149 /COPYING
parent41b27154874b3a40d6673052d08c8e9fd0c6404f (diff)
downloadlinux-cf61e2a1487d833e4748dead4096584de70bf742.tar.bz2
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 'COPYING')
0 files changed, 0 insertions, 0 deletions