iommu.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH v2 0/2] Reduce IOTLB flush when pass-through dGPU devices
@ 2017-12-27  9:20 Suravee Suthikulpanit
       [not found] ` <1514366435-12723-1-git-send-email-suravee.suthikulpanit-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Suravee Suthikulpanit @ 2017-12-27  9:20 UTC (permalink / raw)
  To: linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA
  Cc: jroedel-l3A5Bk7waGM, Suravee Suthikulpanit

From: Suravee Suthikulpanit <ssuthiku-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>

Currently, when pass-through dGPU to a guest VM, there are thousands
of IOTLB flush commands sent from IOMMU to end-point-device. This cause
performance issue when launching new VMs, and could cause IOTLB invalidate
time-out issue on certain dGPUs.

This can be avoided by adopting the new fast IOTLB flush APIs.

Cc: Alex Williamson <alex.williamson-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: Joerg Roedel <jroedel-l3A5Bk7waGM@public.gmane.org>

Changes from V1: (https://lkml.org/lkml/2017/11/17/764)

  * Rebased on top of v4.15-rc5

  * Patch 1/2: Fix iommu_tlb_range_add() size parameter to use unmapped
    instead of len. (per Alex)

  * Patch 1/2: Use a list to keep track unmapped IOVAs for VFIO remote
    unpinning. Although, I am still not sure if using a list is the best
    way to keep track the IOVAs. (per Alex)

  * Patch 2/2: Fix logic due to missing spin unlock. (per Tom)
     
Suravee Suthikulpanit (2):
  vfio/type1: Adopt fast IOTLB flush interface when unmap IOVAs
  iommu/amd: Add support for fast IOTLB flushing

 drivers/iommu/amd_iommu.c       | 73 ++++++++++++++++++++++++++++++++-
 drivers/iommu/amd_iommu_init.c  |  7 ++++
 drivers/iommu/amd_iommu_types.h |  7 ++++
 drivers/vfio/vfio_iommu_type1.c | 89 +++++++++++++++++++++++++++++++++++------
 4 files changed, 163 insertions(+), 13 deletions(-)

-- 
1.8.3.1

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

end of thread, other threads:[~2018-01-24 11:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-27  9:20 [RFC PATCH v2 0/2] Reduce IOTLB flush when pass-through dGPU devices Suravee Suthikulpanit
     [not found] ` <1514366435-12723-1-git-send-email-suravee.suthikulpanit-5C7GfCeVMHo@public.gmane.org>
2017-12-27  9:20   ` [RFC PATCH v2 1/2] vfio/type1: Adopt fast IOTLB flush interface when unmap IOVAs Suravee Suthikulpanit
     [not found]     ` <1514366435-12723-2-git-send-email-suravee.suthikulpanit-5C7GfCeVMHo@public.gmane.org>
2018-01-08 20:53       ` Alex Williamson
     [not found]         ` <20180108135329.3c1e2c88-1yVPhWWZRC1BDLzU/O5InQ@public.gmane.org>
2018-01-08 21:07           ` Alex Williamson
2018-01-17 16:54             ` Suravee Suthikulpanit
2018-01-18  3:25           ` Suravee Suthikulpanit
     [not found]             ` <0cdcfade-481a-96de-cadb-291968392318-5C7GfCeVMHo@public.gmane.org>
2018-01-18 17:34               ` Alex Williamson
2017-12-27  9:20   ` [RFC PATCH v2 2/2] iommu/amd: Add support for fast IOTLB flushing Suravee Suthikulpanit
     [not found]     ` <1514366435-12723-3-git-send-email-suravee.suthikulpanit-5C7GfCeVMHo@public.gmane.org>
2018-01-22  3:41       ` Suravee Suthikulpanit
2018-01-24 11:43       ` Suravee Suthikulpanit

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).