linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] swiotlb: Split up single swiotlb lock
@ 2022-06-27 15:31 Tianyu Lan
  2022-06-27 15:31 ` [PATCH 1/2] " Tianyu Lan
  2022-06-27 15:31 ` [PATCH 2/2] x86/ACPI: Set swiotlb area according to the number of lapic entry in MADT Tianyu Lan
  0 siblings, 2 replies; 10+ messages in thread
From: Tianyu Lan @ 2022-06-27 15:31 UTC (permalink / raw)
  To: corbet, rafael, len.brown, pavel, tglx, mingo, bp, dave.hansen,
	x86, hpa, hch, m.szyprowski, robin.murphy, paulmck, akpm,
	keescook, songmuchun, rdunlap, damien.lemoal, michael.h.kelley,
	kys
  Cc: Tianyu Lan, iommu, linux-doc, linux-kernel, linux-pm, vkuznets,
	wei.liu, parri.andrea, thomas.lendacky, linux-hyperv,
	kirill.shutemov, andi.kleen

From: Tianyu Lan <Tianyu.Lan@microsoft.com>

Traditionally swiotlb was not performance critical because it was only
used for slow devices. But in some setups, like TDX/SEV confidential
guests, all IO has to go through swiotlb. Currently swiotlb only has a
single lock. Under high IO load with multiple CPUs this can lead to
significat lock contention on the swiotlb lock.

Patch 1 is to introduce swiotlb area concept and split up single swiotlb
lock.
Patch 2 set swiotlb area number with lapic number


Tianyu Lan (2):
  swiotlb: Split up single swiotlb lock
  x86/ACPI: Set swiotlb area according to the number of lapic entry in
    MADT

 .../admin-guide/kernel-parameters.txt         |   4 +-
 arch/x86/kernel/acpi/boot.c                   |   3 +
 include/linux/swiotlb.h                       |  27 +++
 kernel/dma/swiotlb.c                          | 202 ++++++++++++++----
 4 files changed, 197 insertions(+), 39 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2022-07-06 10:22 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-27 15:31 [PATCH 0/2] swiotlb: Split up single swiotlb lock Tianyu Lan
2022-06-27 15:31 ` [PATCH 1/2] " Tianyu Lan
2022-06-29 14:09   ` Christoph Hellwig
2022-06-27 15:31 ` [PATCH 2/2] x86/ACPI: Set swiotlb area according to the number of lapic entry in MADT Tianyu Lan
2022-06-29 14:04   ` Christoph Hellwig
2022-06-30 17:02     ` Tianyu Lan
2022-07-06  8:00       ` Christoph Hellwig
2022-07-06  8:57         ` Tianyu Lan
2022-07-06  9:02           ` Christoph Hellwig
2022-07-06 10:21             ` Tianyu Lan

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