Linux-i3c Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/4] mipi-i3c-hci: Make able to work with IOMMU enabled
@ 2025-08-22 10:56 Jarkko Nikula
  2025-08-22 10:56 ` [PATCH v4 1/4] i3c: master: Add helpers for DMA mapping and bounce buffer handling Jarkko Nikula
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Jarkko Nikula @ 2025-08-22 10:56 UTC (permalink / raw)
  To: linux-i3c; +Cc: Alexandre Belloni, Frank Li, Jarkko Nikula

Hi

Here's the 4th version of common I3C core DMA mapping and bounce buffering
handling and making the MIPI I3C HCI able to work with IOMMU enabled.

Changes to the v3:
- patch 1/4: Renamed variable "need_bounce" to "force_bounce" and document
  both true and false argument values.
- patch 3/4: Added Reviewed-by tag.

Changes to the v2:
- patch 1/4: Use explicit kfree() calls in i3c_master_dma_unmap_single().
  Empty line added to the i3c_master_dma_map_single().
- patch 2/4: Call explicitly i3c_master_dma_unmap_single() in
  hci_dma_unmap_xfer().
- patch 4/4: Added Reviewed-by tag.

Changes to the v1:
- DMA mapping length is also cache_line_size() aligned in order to avoid
  possible double bouncing from the SWIOTLB.
- Using DEFINE_FREE and __free infra for cleanup and changes to the other
  patches accordingly.
- Added more description to the patch 1/4 commit log and slight corrections
  to others.


Jarkko Nikula (4):
  i3c: master: Add helpers for DMA mapping and bounce buffer handling
  i3c: mipi-i3c-hci: Use core helpers for DMA mapping and bounce
    buffering
  i3c: mipi-i3c-hci: Use physical device pointer with DMA API
  i3c: mipi-i3c-hci: Use own DMA bounce buffer management for I2C
    transfers

 drivers/i3c/master.c                   | 74 ++++++++++++++++++++++++++
 drivers/i3c/master/mipi-i3c-hci/core.c | 40 +-------------
 drivers/i3c/master/mipi-i3c-hci/dma.c  | 69 ++++++++++++++----------
 drivers/i3c/master/mipi-i3c-hci/hci.h  |  3 +-
 include/linux/i3c/master.h             | 26 +++++++++
 5 files changed, 144 insertions(+), 68 deletions(-)

-- 
2.47.2


-- 
linux-i3c mailing list
linux-i3c@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-i3c

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

end of thread, other threads:[~2025-09-14 20:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-22 10:56 [PATCH v4 0/4] mipi-i3c-hci: Make able to work with IOMMU enabled Jarkko Nikula
2025-08-22 10:56 ` [PATCH v4 1/4] i3c: master: Add helpers for DMA mapping and bounce buffer handling Jarkko Nikula
2025-08-25 16:21   ` Frank Li
2025-08-22 10:56 ` [PATCH v4 2/4] i3c: mipi-i3c-hci: Use core helpers for DMA mapping and bounce buffering Jarkko Nikula
2025-08-25 16:23   ` Frank Li
2025-08-22 10:56 ` [PATCH v4 3/4] i3c: mipi-i3c-hci: Use physical device pointer with DMA API Jarkko Nikula
2025-08-22 10:56 ` [PATCH v4 4/4] i3c: mipi-i3c-hci: Use own DMA bounce buffer management for I2C transfers Jarkko Nikula
2025-09-14 20:31 ` [PATCH v4 0/4] mipi-i3c-hci: Make able to work with IOMMU enabled Alexandre Belloni

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