1. 26 7月, 2022 8 次提交
  2. 22 7月, 2022 3 次提交
  3. 19 7月, 2022 6 次提交
  4. 18 7月, 2022 5 次提交
  5. 13 7月, 2022 1 次提交
    • T
      swiotlb: split up the global swiotlb lock · 20347fca
      Tianyu Lan 提交于
      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.
      
      This patch splits the swiotlb bounce buffer pool into individual areas
      which have their own lock. Each CPU tries to allocate in its own area
      first. Only if that fails does it search other areas. On freeing the
      allocation is freed into the area where the memory was originally
      allocated from.
      
      Area number can be set via swiotlb kernel parameter and is default
      to be possible cpu number. If possible cpu number is not power of
      2, area number will be round up to the next power of 2.
      
      This idea from Andi Kleen patch(https://github.com/intel/tdx/commit/
      4529b5784c141782c72ec9bd9a92df2b68cb7d45).
      Based-on-idea-by: NAndi Kleen <ak@linux.intel.com>
      Signed-off-by: NTianyu Lan <Tianyu.Lan@microsoft.com>
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      20347fca
  6. 12 7月, 2022 1 次提交
  7. 08 7月, 2022 10 次提交
  8. 22 6月, 2022 4 次提交
  9. 20 6月, 2022 1 次提交
  10. 19 6月, 2022 1 次提交
    • L
      Merge tag 'x86-urgent-2022-06-19' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 05c6ca85
      Linus Torvalds 提交于
      Pull x86 fixes from Thomas Gleixner:
      
       - Make RESERVE_BRK() work again with older binutils. The recent
         'simplification' broke that.
      
       - Make early #VE handling increment RIP when successful.
      
       - Make the #VE code consistent vs. the RIP adjustments and add
         comments.
      
       - Handle load_unaligned_zeropad() across page boundaries correctly in
         #VE when the second page is shared.
      
      * tag 'x86-urgent-2022-06-19' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/tdx: Handle load_unaligned_zeropad() page-cross to a shared page
        x86/tdx: Clarify RIP adjustments in #VE handler
        x86/tdx: Fix early #VE handling
        x86/mm: Fix RESERVE_BRK() for older binutils
      05c6ca85