mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] Add MEMREMAP_WC to fix dma_init_coherent_memory
@ 2015-12-16 16:56 Brian Starkey
  2015-12-16 16:56 ` [PATCH 1/3] memremap: add MEMREMAP_WC flag Brian Starkey
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Brian Starkey @ 2015-12-16 16:56 UTC (permalink / raw)
  To: gregkh; +Cc: catalin.marinas, dan.j.williams, linux-arm-kernel, linux-kernel

Hi,

As discussed here[1], 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.

Patch 3 makes sure that the appropriate memset function is used
when zeroing coherent allocations, which fixes an alignment fault on
arm64.

Best Regards,
Brian

[1] http://lists.infradead.org/pipermail/linux-arm-kernel/2015-December/390857.html

Brian Starkey (3):
  memremap: add MEMREMAP_WC flag
  drivers: dma-coherent: use MEMREMAP_WC for DMA_MEMORY_MAP
  drivers: dma-coherent: use memset_io for DMA_MEMORY_IO

 drivers/base/dma-coherent.c |   25 ++++++++++++++++++++-----
 include/linux/io.h          |    1 +
 kernel/memremap.c           |   15 +++++++++++++--
 3 files changed, 34 insertions(+), 7 deletions(-)

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-12-16 16:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-16 16:56 [PATCH 0/3] Add MEMREMAP_WC to fix dma_init_coherent_memory Brian Starkey
2015-12-16 16:56 ` [PATCH 1/3] memremap: add MEMREMAP_WC flag Brian Starkey
2015-12-16 16:56 ` [PATCH 2/3] drivers: dma-coherent: use MEMREMAP_WC for DMA_MEMORY_MAP Brian Starkey
2015-12-16 16:56 ` [PATCH 3/3] drivers: dma-coherent: use memset_io for DMA_MEMORY_IO mappings Brian Starkey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®