All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/3] dma-mapping: introduce a new dma api
@ 2019-10-22 12:55 ` Laurentiu Tudor
  0 siblings, 0 replies; 22+ messages in thread
From: Laurentiu Tudor @ 2019-10-22 12:55 UTC (permalink / raw)
  To: hch, joro, Ioana Ciocoi Radulescu, linux-kernel, iommu, netdev,
	Ioana Ciornei
  Cc: Leo Li, robin.murphy, Diana Madalina Craciun, davem,
	Madalin-cristian Bucur, Laurentiu Tudor

From: Laurentiu Tudor <laurentiu.tudor@nxp.com>

This series introduces a new dma api called dma_addr_to_phys_addr()
that converts a dma address to the corresponding physical address.
It consists in a new dma map op and the wrapper api, both added
in the first patch. The second patch adds an implementation in the
iommu dma glue code and wires it up. The third patch updates a driver
to use the new api.

Note: Originally i wanted to use the simpler api name dma_to_phys()
but it's already used in the dma direct apis. It would be great if
there would be a solution (unifying them?) to use this nicer naming.

Context: https://lkml.org/lkml/2019/5/31/684

Laurentiu Tudor (3):
  dma-mapping: introduce a new dma api dma_addr_to_phys_addr()
  iommu/dma: wire-up new dma op dma_addr_to_phys_addr()
  dpaa2_eth: use dma_addr_to_phys_addr() new dma api

 drivers/iommu/dma-iommu.c                     | 12 +++++++++++
 .../net/ethernet/freescale/dpaa2/dpaa2-eth.c  | 21 +++++++------------
 .../net/ethernet/freescale/dpaa2/dpaa2-eth.h  |  1 -
 include/linux/dma-mapping.h                   | 21 +++++++++++++++++++
 4 files changed, 40 insertions(+), 15 deletions(-)

-- 
2.17.1


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

end of thread, other threads:[~2019-10-24 11:27 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-22 12:55 [RFC PATCH 0/3] dma-mapping: introduce a new dma api Laurentiu Tudor
2019-10-22 12:55 ` Laurentiu Tudor
2019-10-22 12:55 ` [RFC PATCH 1/3] dma-mapping: introduce a new dma api dma_addr_to_phys_addr() Laurentiu Tudor
2019-10-22 12:55   ` Laurentiu Tudor
2019-10-22 13:25   ` Robin Murphy
2019-10-22 13:25     ` Robin Murphy
2019-10-22 13:53     ` Laurentiu Tudor
2019-10-22 13:53       ` Laurentiu Tudor
2019-10-23 11:53     ` Laurentiu Tudor
2019-10-23 11:53       ` Laurentiu Tudor
2019-10-24  2:01       ` hch
2019-10-24  2:01         ` hch
2019-10-24  7:49         ` Laurentiu Tudor
2019-10-24  7:49           ` Laurentiu Tudor
2019-10-24 11:04           ` Robin Murphy
2019-10-24 11:04             ` Robin Murphy
2019-10-24 11:27             ` Laurentiu Tudor
2019-10-24 11:27               ` Laurentiu Tudor
2019-10-22 12:55 ` [RFC PATCH 2/3] iommu/dma: wire-up new dma op dma_addr_to_phys_addr() Laurentiu Tudor
2019-10-22 12:55   ` Laurentiu Tudor
2019-10-22 12:55 ` [RFC PATCH 3/3] dpaa2_eth: use dma_addr_to_phys_addr() new dma api Laurentiu Tudor
2019-10-22 12:55   ` Laurentiu Tudor

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.