• Linus Torvalds's avatar
    Merge tag 'iommu-fixes-5.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu · 4d2af08e
    Linus Torvalds authored
    Pull iommu fixes from Joerg Roedel:
     "A couple of fixes for the AMD IOMMU driver have piled up:
    
       - Some fixes for the reworked IO page-table which caused memory leaks
         or did not allow to downgrade mappings under some conditions.
    
       - Locking fixes to fix a couple of possible races around accessing
         'struct protection_domain'. The races got introduced when the
         dma-ops path became lock-less in the fast-path"
    
    * tag 'iommu-fixes-5.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu:
      iommu/amd: Lock code paths traversing protection_domain->dev_list
      iommu/amd: Lock dev_data in attach/detach code paths
      iommu/amd: Check for busy devices earlier in attach_device()
      iommu/amd: Take domain->lock for complete attach/detach path
      iommu/amd: Remove amd_iommu_devtable_lock
      iommu/amd: Remove domain->updated
      iommu/amd: Wait for completion of IOTLB flush in attach_device
      iommu/amd: Unmap all L7 PTEs when downgrading page-sizes
      iommu/amd: Introduce first_pte_l7() helper
      iommu/amd: Fix downgrading default page-sizes in alloc_pte()
      iommu/amd: Fix pages leak in free_pagetable()
    4d2af08e