diff options
author | Brian Starkey <brian.starkey@arm.com> | 2016-03-22 22:27:57 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-03-22 23:36:02 +0100 |
commit | cf61e2a1487d833e4748dead4096584de70bf742 (patch) | |
tree | 311f4ff6e83253a858d583face5d5af9aedb4149 /drivers/ide/cy82c693.c | |
parent | kernel/signal.c: add compile-time check for __ARCH_SI_PREAMBLE_SIZE (diff) | |
download | linux-cf61e2a1487d833e4748dead4096584de70bf742.tar.xz 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 'drivers/ide/cy82c693.c')
0 files changed, 0 insertions, 0 deletions