linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC net-next 0/4] devmem/io_uring: Allow devices without parent PCI device
@ 2025-07-02 17:24 Dragos Tatulea
  2025-07-02 17:24 ` [RFC net-next 1/4] net: Allow non parent devices to be used for ZC DMA Dragos Tatulea
                   ` (3 more replies)
  0 siblings, 4 replies; 24+ messages in thread
From: Dragos Tatulea @ 2025-07-02 17:24 UTC (permalink / raw)
  To: almasrymina, asml.silence, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Simon Horman, Andrew Lunn,
	Jens Axboe, Saeed Mahameed, Tariq Toukan, Leon Romanovsky
  Cc: Dragos Tatulea, cratiu, netdev, linux-kernel, io-uring,
	linux-rdma

The io_uring and devmem code is assuming that the parent device of the
netdev is a DMA capable device. This is not always the case.

Some devices do have a DMA capable device that can be used, but not as
parent: mlx5 SFs have an auxdev as parent, but they do have an
associated PCI device.

Also, if DMA is not supported the operation should be blocked. Otherwise
the mapping will return success with 0 mapped entries and the caller
will consider the mapping as succesful.

This RFC is supposed to start the discussion on the best way to:
- Block the binding operation early if not supported.
- Allow devices that support this usecase but don't have a
  parent device as a PCI device.

Dragos Tatulea (4):
  net: Allow non parent devices to be used for ZC DMA
  io_uring/zcrx: Use the new netdev_get_dma_dev() API
  net: devmem: Use the new netdev_get_dma_dev() API
  net/mlx5e: Enable HDS zerocopy flows for SFs

 drivers/net/ethernet/mellanox/mlx5/core/en_main.c |  3 +++
 include/linux/netdevice.h                         | 13 +++++++++++++
 io_uring/zcrx.c                                   |  2 +-
 net/core/devmem.c                                 | 10 +++++++++-
 4 files changed, 26 insertions(+), 2 deletions(-)

-- 
2.50.0


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

end of thread, other threads:[~2025-07-11 13:51 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-02 17:24 [RFC net-next 0/4] devmem/io_uring: Allow devices without parent PCI device Dragos Tatulea
2025-07-02 17:24 ` [RFC net-next 1/4] net: Allow non parent devices to be used for ZC DMA Dragos Tatulea
2025-07-02 18:32   ` Jakub Kicinski
2025-07-02 20:01     ` Dragos Tatulea
2025-07-02 20:53       ` Jakub Kicinski
2025-07-03 11:58         ` Parav Pandit
2025-07-04 13:11           ` Dragos Tatulea
2025-07-07 18:44             ` Mina Almasry
2025-07-07 21:35               ` Dragos Tatulea
2025-07-07 21:55                 ` Mina Almasry
2025-07-08  8:52                   ` Parav Pandit
2025-07-08 10:47                   ` Pavel Begunkov
2025-07-08 14:23                   ` Dragos Tatulea
2025-07-08 11:08             ` Pavel Begunkov
2025-07-08 14:26               ` Dragos Tatulea
2025-07-10 23:58           ` Jakub Kicinski
2025-07-11  2:52             ` Parav Pandit
2025-07-11 13:51               ` Jakub Kicinski
2025-07-08 11:06   ` Pavel Begunkov
2025-07-08 14:10     ` Mina Almasry
2025-07-08 15:25       ` Pavel Begunkov
2025-07-02 17:24 ` [RFC net-next 2/4] io_uring/zcrx: Use the new netdev_get_dma_dev() API Dragos Tatulea
2025-07-02 17:24 ` [RFC net-next 3/4] net: devmem: " Dragos Tatulea
2025-07-02 17:24 ` [RFC net-next 4/4] net/mlx5e: Enable HDS zerocopy flows for SFs Dragos Tatulea

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).