lkml.org 
[lkml]   [2022]   [Jun]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/2] swiotlb: Split up single swiotlb lock
Date
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

\
 
 \ /
  Last update: 2022-06-27 17:34    [W:0.098 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site