All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 5.4 0/8] preserve DMA offsets when using swiotlb
@ 2021-04-05 20:51 Jianxiong Gao
  2021-04-05 20:51 ` [PATCH 5.4 1/8] driver core: add a min_align_mask field to struct device_dma_parameters Jianxiong Gao
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Jianxiong Gao @ 2021-04-05 20:51 UTC (permalink / raw)
  To: stable; +Cc: Jianxiong Gao

Hi all,

This series of backports fixes the SWIOTLB library to maintain the
page offset when mapping a DMA address. The bug that motivated this
patch series manifested when running a 5.4 kernel as a SEV guest with
an NVMe device. However, any device that infers information from the
page offset and is accessed through the SWIOTLB will benefit from this
bug fix.

Jianxiong Gao (7):
  driver core: add a min_align_mask field to struct
    device_dma_parameters
  swiotlb: add a io_tlb_offset helper
  swiotlb: factor out a nr_slots helper
  swiotlb: clean up swiotlb_tbl_unmap_single
  swiotlb: refactor swiotlb_tbl_map_single
  swiotlb: don't modify orig_addr in swiotlb_tbl_sync_single
  nvme-pci: set min_align_mask

Linus Torvalds (1):
  Linux 5.4

 Makefile                    |   2 +-
 drivers/nvme/host/pci.c     |   1 +
 include/linux/device.h      |   1 +
 include/linux/dma-mapping.h |  16 +++
 include/linux/swiotlb.h     |   3 +-
 kernel/dma/swiotlb.c        | 262 ++++++++++++++++++++----------------
 6 files changed, 165 insertions(+), 120 deletions(-)

-- 
2.27.0


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

end of thread, other threads:[~2021-04-06 16:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-05 20:51 [PATCH 5.4 0/8] preserve DMA offsets when using swiotlb Jianxiong Gao
2021-04-05 20:51 ` [PATCH 5.4 1/8] driver core: add a min_align_mask field to struct device_dma_parameters Jianxiong Gao
2021-04-05 20:51 ` [PATCH 5.4 2/8] swiotlb: factor out an io_tlb_offset helper Jianxiong Gao
2021-04-05 20:51 ` [PATCH 5.4 3/8] swiotlb: factor out a nr_slots helper Jianxiong Gao
2021-04-05 20:51 ` [PATCH 5.4 4/8] swiotlb: clean up swiotlb_tbl_unmap_single Jianxiong Gao
2021-04-05 20:51 ` [PATCH 5.4 5/8] swiotlb: refactor swiotlb_tbl_map_single Jianxiong Gao
2021-04-05 20:51 ` [PATCH 5.4 6/8] swiotlb: don't modify orig_addr in swiotlb_tbl_sync_single Jianxiong Gao
2021-04-05 20:51 ` [PATCH 5.4 7/8] swiotlb: respect min_align_mask Jianxiong Gao
2021-04-05 20:51 ` [PATCH 5.4 8/8] nvme-pci: set min_align_mask Jianxiong Gao
2021-04-06 16:10 ` [PATCH 5.4 0/8] preserve DMA offsets when using swiotlb Sasha Levin

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.