All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/4] dma-mapping: Add cache flush/invalidation to dma_{un}map_single
@ 2019-11-15 11:55 Vignesh Raghavendra
  2019-11-15 11:55 ` [U-Boot] [PATCH 1/4] asm: dma-mapping.h: Fix dma mapping functions Vignesh Raghavendra
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Vignesh Raghavendra @ 2019-11-15 11:55 UTC (permalink / raw)
  To: u-boot

Drivers (especially frameworks ported from Linux such as USB) expect
dma_{un}map_single() APIs to take care of cache maintenance. But this is
not the case in U-Boot and few drivers take care of flushing caches
locally. Instead add flush/invalidate calls to DMA APIs in arch specific
dma-mapping.h file so that per driver implementation of these APIs can
be avoided.

I don't have all the affected hardwares. Would greatly appreciate if
these patches work fine on the affected platforms.

Vignesh Raghavendra (4):
  asm: dma-mapping.h: Fix dma mapping functions
  mmc: tmio-common: Drop custom dma mapping functions
  mtd: denali: Drop custom dma mapping functions
  net: macb: Drop local cache flush

 arch/arm/include/asm/dma-mapping.h   | 22 ++++++++++++++++--
 arch/nds32/include/asm/dma-mapping.h | 22 ++++++++++++++++--
 arch/riscv/include/asm/dma-mapping.h | 22 ++++++++++++++++--
 arch/x86/include/asm/dma-mapping.h   | 22 ++++++++++++++++--
 drivers/mmc/tmio-common.c            | 25 +++-----------------
 drivers/mtd/nand/raw/denali.c        | 34 +++-------------------------
 drivers/net/macb.c                   |  4 +---
 7 files changed, 87 insertions(+), 64 deletions(-)

-- 
2.24.0

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

end of thread, other threads:[~2020-01-16  8:56 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-15 11:55 [U-Boot] [PATCH 0/4] dma-mapping: Add cache flush/invalidation to dma_{un}map_single Vignesh Raghavendra
2019-11-15 11:55 ` [U-Boot] [PATCH 1/4] asm: dma-mapping.h: Fix dma mapping functions Vignesh Raghavendra
2019-11-15 12:19   ` Masahiro Yamada
     [not found]   ` <752D002CFF5D0F4FA35C0100F1D73F3FA469DB69@ATCPCS16.andestech.com>
2019-11-19  0:51     ` Rick Chen
2020-01-15 20:47   ` Tom Rini
2020-01-16  8:56     ` Vignesh Raghavendra
2019-11-15 11:55 ` [U-Boot] [PATCH 2/4] mmc: tmio-common: Drop custom " Vignesh Raghavendra
2019-11-15 12:18   ` Masahiro Yamada
2019-11-15 11:55 ` [U-Boot] [PATCH 3/4] mtd: denali: " Vignesh Raghavendra
2019-11-15 12:18   ` Masahiro Yamada
2019-11-15 11:55 ` [U-Boot] [PATCH 4/4] net: macb: Drop local cache flush Vignesh Raghavendra

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.