Date: Fri, 5 Aug 2022 11:38:09 +0200
From: Joerg Roedel <joro@8bytes.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Will Deacon <will@kernel.org>, linux-kernel@vger.kernel.org,
	iommu@lists.linux.dev
Subject: [git pull] IOMMU Updates for Linux v5.20


--kkANkCbkvbfH1mSU
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi Linus,

The following changes since commit e0dccc3b76fb35bb257b4118367a883073d7390e:

  Linux 5.19-rc8 (2022-07-24 13:26:27 -0700)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git tags/iommu-u=
pdates-v5.20-or-v6.0

for you to fetch changes up to c10100a416c16b598bf5155e759307b34dac0d7d:

  Merge branches 'arm/exynos', 'arm/mediatek', 'arm/msm', 'arm/smmu', 'virt=
io', 'x86/vt-d', 'x86/amd' and 'core' into next (2022-07-29 12:06:56 +0200)

----------------------------------------------------------------
IOMMU Updates for Linux v5.20/v6.0:

Including:

	- Most intrusive patch is small and changes the default
	  allocation policy for DMA addresses. Before the change the
	  allocator tried its best to find an address in the first 4GB.
	  But that lead to performance problems when that space gets
	  exhaused, and since most devices are capable of 64-bit DMA
	  these days, we changed it to search in the full DMA-mask
	  range from the beginning.  This change has the potential to
	  uncover bugs elsewhere, in the kernel or the hardware. There
	  is a Kconfig option and a command line option to restore the
	  old behavior, but none of them is enabled by default.

	- Add Robin Murphy as reviewer of IOMMU code and maintainer for
	  the dma-iommu and iova code

	- Chaning IOVA magazine size from 1032 to 1024 bytes to save
	  memory

	- Some core code cleanups and dead-code removal

	- Support for ACPI IORT RMR node

	- Support for multiple PCI domains in the AMD-Vi driver

	- ARM SMMU changes from Will Deacon:

	  - Add even more Qualcomm device-tree compatible strings

	  - Support dumping of IMP DEF Qualcomm registers on TLB sync
	    timeout

	  - Fix reference count leak on device tree node in Qualcomm
	    driver

	- Intel VT-d driver updates from Lu Baolu:

	  - Make intel-iommu.h private

	  - Optimize the use of two locks

	  - Extend the driver to support large-scale platforms

	  - Cleanup some dead code

	- MediaTek IOMMU refactoring and support for TTBR up to 35bit

	- Basic support for Exynos SysMMU v7

	- VirtIO IOMMU driver gets a map/unmap_pages() implementation

	- Other smaller cleanups and fixes

----------------------------------------------------------------
AngeloGioacchino Del Regno (3):
      dt-bindings: iommu: mediatek: Add mediatek,infracfg phandle
      iommu/mediatek: Lookup phandle to retrieve syscon to infracfg
      iommu/mediatek: Cleanup pericfg lookup flow

Bo Liu (1):
      iommu/amd: Handle return of iommu_device_sysfs_add

Brijesh Singh (1):
      iommu/amd: Introduce function to check and enable SNP

Christoph Hellwig (4):
      iommu: remove the unused dev_has_feat method
      iommu: remove iommu_dev_feature_enabled
      iommu: remove the put_resv_regions method
      iommu/arm-smmu-v3: cleanup arm_smmu_dev_{enable,disable}_feature

Emma Anholt (1):
      iommu: arm-smmu-impl: Add 8250 display compatible to the client list.

Feng Tang (1):
      iommu/iova: change IOVA_MAG_SIZE to 127 to save memory

Joerg Roedel (4):
      MAINTAINERS: Add Robin Murphy as IOMMU SUBSYTEM reviewer
      Merge tag 'arm-smmu-updates' of git://git.kernel.org/pub/scm/linux/ke=
rnel/git/will/linux into arm/smmu
      iommu/amd: Fix compile warning in init code
      Merge branches 'arm/exynos', 'arm/mediatek', 'arm/msm', 'arm/smmu', '=
virtio', 'x86/vt-d', 'x86/amd' and 'core' into next

Jon Nettleton (1):
      iommu/arm-smmu: Get associated RMR info and install bypass SMR

Justin Stitt (1):
      drivers: iommu: fix clang -wformat warning

Ke Liu (1):
      iommu: Directly use ida_alloc()/free()

Konrad Dybcio (2):
      dt-bindings: arm-smmu: Add compatible for Qualcomm SM6375
      iommu/arm-smmu-qcom: Add SM6375 SMMU compatible

Liang He (1):
      iommu/arm-smmu: qcom_iommu: Add of_node_put() when breaking out of lo=
op

Lu Baolu (25):
      iommu/vt-d: Move trace/events/intel_iommu.h under iommu
      agp/intel: Use per device iommu check
      iommu/vt-d: Remove unnecessary exported symbol
      drm/i915: Remove unnecessary include
      KVM: x86: Remove unnecessary include
      x86/boot/tboot: Move tboot_force_iommu() to Intel IOMMU
      iommu/vt-d: Move include/linux/intel-iommu.h under iommu
      iommu/vt-d: Remove unused iovad from dmar_domain
      iommu/vt-d: debugfs: Remove device_domain_lock usage
      iommu/vt-d: Remove clearing translation data in disable_dmar_iommu()
      iommu/vt-d: Use pci_get_domain_bus_and_slot() in pgtable_walk()
      iommu/vt-d: Unnecessary spinlock for root table alloc and free
      iommu/vt-d: Replace spin_lock_irqsave() with spin_lock()
      iommu/vt-d: Acquiring lock in domain ID allocation helpers
      iommu/vt-d: Acquiring lock in pasid manipulation helpers
      iommu/vt-d: Check device list of domain in domain free path
      iommu/vt-d: Fold __dmar_remove_one_dev_info() into its caller
      iommu/vt-d: Use device_domain_lock accurately
      iommu/vt-d: Convert global spinlock into per domain lock
      iommu/vt-d: Remove unused domain_get_iommu()
      iommu/vt-d: Use IDA interface to manage iommu sequence id
      iommu/vt-d: Refactor iommu information of each domain
      iommu/vt-d: Remove unnecessary check in intel_iommu_add()
      iommu/vt-d: Remove global g_iommus array
      iommu/vt-d: Make DMAR_UNITS_SUPPORTED default 1024

Marek Szyprowski (1):
      iommu/exynos: Make driver independent of the system page size

N=EDcolas F. R. A. Prado (1):
      iommu/mediatek: Log with dev_err_probe when failing to parse dts

Ren Zhijie (1):
      ACPI/IORT: Fix build error implicit-function-declaration

Robin Murphy (4):
      iommu/dma: Add config for PCI SAC address trick
      iommu: Use dev_iommu_ops() for probe_finalize
      iommu: Make .release_device optional
      iommu: Clean up release_device checks

Sai Prakash Ranjan (1):
      iommu/arm-smmu-qcom: Add debug support for TLB sync timeouts

Sam Protsenko (6):
      iommu/exynos: Reuse SysMMU constants for page size and order
      iommu/exynos: Handle failed IOMMU device registration properly
      iommu/exynos: Set correct dma mask for SysMMU v5+
      iommu/exynos: Abstract non-common registers on different variants
      iommu/exynos: Add SysMMU v7 register set
      iommu/exynos: Enable default VM instance on SysMMU v7

Shameer Kolothum (8):
      iommu: Introduce a callback to struct iommu_resv_region
      ACPI/IORT: Make iort_iommu_msi_get_resv_regions() return void
      ACPI/IORT: Provide a generic helper to retrieve reserve regions
      ACPI/IORT: Add support to retrieve IORT RMR reserved regions
      ACPI/IORT: Add a helper to retrieve RMR info directly
      iommu/arm-smmu-v3: Introduce strtab init helper
      iommu/arm-smmu-v3: Refactor arm_smmu_init_bypass_stes() to force bypa=
ss
      iommu/arm-smmu-v3: Get associated RMR info and install bypass STE

Suravee Suthikulpanit (30):
      iommu/amd: Introduce per PCI segment device table
      iommu/amd: Introduce per PCI segment rlookup table
      iommu/amd: Introduce per PCI segment old_dev_tbl_cpy
      iommu/amd: Introduce per PCI segment alias_table
      iommu/amd: Convert to use rlookup_amd_iommu helper function
      iommu/amd: Update irq_remapping_alloc to use IOMMU lookup helper func=
tion
      iommu/amd: Introduce struct amd_ir_data.iommu
      iommu/amd: Update amd_irte_ops functions
      iommu/amd: Update alloc_irq_table and alloc_irq_index
      iommu/amd: Update set_dte_entry and clear_dte_entry
      iommu/amd: Update iommu_ignore_device
      iommu/amd: Update dump_dte_entry
      iommu/amd: Update set_dte_irq_entry
      iommu/amd: Update (un)init_device_table_dma()
      iommu/amd: Update set_dev_entry_bit() and get_dev_entry_bit()
      iommu/amd: Remove global amd_iommu_[dev_table/alias_table/last_bdf]
      iommu/amd: Introduce get_device_sbdf_id() helper function
      iommu/amd: Include PCI segment ID when initialize IOMMU
      iommu/amd: Specify PCI segment ID when getting pci device
      iommu/amd: Add PCI segment support for ivrs_[ioapic/hpet/acpihid] com=
mands
      iommu/amd: Change macro for IOMMU control register bit shift to decim=
al value
      iommu/amd: Introduce Support for Extended Feature 2 Register
      iommu/amd: Introduce global variable for storing common EFR and EFR2
      iommu/amd: Process all IVHDs before enabling IOMMU features
      iommu/amd: Globally detect SNP support
      iommu/amd: Set translation valid bit only when IO page tables are in =
use
      iommu/amd: Do not support IOMMU_DOMAIN_IDENTITY after SNP is enabled
      iommu/amd: Do not support IOMMUv2 APIs when SNP is enabled
      iommu/amd: Simplify and Consolidate Virtual APIC (AVIC) Enablement
      iommu/amd: Add support for AVIC when SNP is enabled

Tina Zhang (1):
      iommu/virtio: Add map/unmap_pages() callbacks implementation

Uros Bizjak (1):
      iommu/amd: Use try_cmpxchg64 in alloc_pte and free_clear_pte

Vasant Hegde (15):
      iommu/amd: Update struct iommu_dev_data definition
      iommu/amd: Introduce pci segment structure
      iommu/amd: Introduce per PCI segment irq_lookup_table
      iommu/amd: Introduce per PCI segment dev_data_list
      iommu/amd: Introduce per PCI segment unity map list
      iommu/amd: Introduce per PCI segment last_bdf
      iommu/amd: Introduce per PCI segment device table size
      iommu/amd: Introduce per PCI segment alias table size
      iommu/amd: Introduce per PCI segment rlookup table size
      iommu/amd: Convert to use per PCI segment irq_lookup_table
      iommu/amd: Convert to use per PCI segment rlookup_table
      iommu/amd: Flush upto last_bdf only
      iommu/amd: Print PCI segment ID in error log messages
      iommu/amd: Update device_state structure to include PCI seg ID
      iommu/amd: Update amd_iommu_fault structure to include PCI seg ID

Yunfei Wang (3):
      iommu/dma: Fix race condition during iova_domain initialization
      iommu/io-pgtable-arm-v7s: Add a quirk to allow pgtable PA up to 35bit
      iommu/mediatek: Allow page table PA up to 35bit

 Documentation/admin-guide/kernel-parameters.txt    |  34 +-
 .../devicetree/bindings/iommu/arm,smmu.yaml        |   1 +
 .../devicetree/bindings/iommu/mediatek,iommu.yaml  |  17 +
 MAINTAINERS                                        |  14 +-
 arch/x86/kernel/tboot.c                            |  15 -
 arch/x86/kvm/x86.c                                 |   1 -
 drivers/acpi/arm64/iort.c                          | 360 +++++++-
 drivers/char/agp/intel-gtt.c                       |  17 +-
 drivers/gpu/drm/i915/display/intel_display.c       |   1 -
 drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c     |   1 -
 drivers/iommu/Kconfig                              |  36 +
 drivers/iommu/amd/amd_iommu.h                      |  18 +-
 drivers/iommu/amd/amd_iommu_types.h                | 186 ++--
 drivers/iommu/amd/init.c                           | 942 +++++++++++++----=
----
 drivers/iommu/amd/io_pgtable.c                     |   6 +-
 drivers/iommu/amd/iommu.c                          | 585 +++++++------
 drivers/iommu/amd/iommu_v2.c                       |  67 +-
 drivers/iommu/amd/quirks.c                         |   4 +-
 drivers/iommu/apple-dart.c                         |   4 -
 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c        | 144 ++--
 drivers/iommu/arm/arm-smmu/Makefile                |   1 +
 drivers/iommu/arm/arm-smmu/arm-smmu-qcom-debug.c   | 142 ++++
 drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c         |  34 +-
 drivers/iommu/arm/arm-smmu/arm-smmu-qcom.h         |  28 +
 drivers/iommu/arm/arm-smmu/arm-smmu.c              |  73 +-
 drivers/iommu/arm/arm-smmu/arm-smmu.h              |   1 +
 drivers/iommu/arm/arm-smmu/qcom_iommu.c            |  18 +-
 drivers/iommu/dma-iommu.c                          |  21 +-
 drivers/iommu/exynos-iommu.c                       | 182 +++-
 drivers/iommu/fsl_pamu_domain.c                    |   5 -
 drivers/iommu/intel/cap_audit.c                    |   2 +-
 drivers/iommu/intel/debugfs.c                      |  51 +-
 drivers/iommu/intel/dmar.c                         |  39 +-
 drivers/iommu/intel/iommu.c                        | 447 ++++------
 .../intel-iommu.h =3D> drivers/iommu/intel/iommu.h   |  35 +-
 drivers/iommu/intel/irq_remapping.c                |   2 +-
 drivers/iommu/intel/pasid.c                        | 107 +--
 drivers/iommu/intel/pasid.h                        |   1 +
 drivers/iommu/intel/perf.c                         |   2 +-
 drivers/iommu/intel/svm.c                          |  11 +-
 drivers/iommu/intel/trace.c                        |   2 +-
 .../intel_iommu.h =3D> drivers/iommu/intel/trace.h   |   7 +-
 drivers/iommu/io-pgtable-arm-v7s.c                 |  75 +-
 drivers/iommu/iommu.c                              |  55 +-
 drivers/iommu/iova.c                               |   7 +-
 drivers/iommu/msm_iommu.c                          |   7 +-
 drivers/iommu/mtk_iommu.c                          |  71 +-
 drivers/iommu/mtk_iommu_v1.c                       |   5 -
 drivers/iommu/sprd-iommu.c                         |  11 -
 drivers/iommu/sun50i-iommu.c                       |   3 -
 drivers/iommu/tegra-gart.c                         |   5 -
 drivers/iommu/tegra-smmu.c                         |   3 -
 drivers/iommu/virtio-iommu.c                       |  31 +-
 include/linux/acpi_iort.h                          |  14 +-
 include/linux/amd-iommu.h                          |   4 +
 include/linux/dmar.h                               |   6 +-
 include/linux/io-pgtable.h                         |  15 +-
 include/linux/iommu.h                              |  27 +-
 include/linux/tboot.h                              |   2 -
 59 files changed, 2521 insertions(+), 1484 deletions(-)
 create mode 100644 drivers/iommu/arm/arm-smmu/arm-smmu-qcom-debug.c
 create mode 100644 drivers/iommu/arm/arm-smmu/arm-smmu-qcom.h
 rename include/linux/intel-iommu.h =3D> drivers/iommu/intel/iommu.h (97%)
 rename include/trace/events/intel_iommu.h =3D> drivers/iommu/intel/trace.h=
 (93%)

Please pull.

Thanks,

	Joerg

--kkANkCbkvbfH1mSU
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEr9jSbILcajRFYWYyK/BELZcBGuMFAmLs5PoACgkQK/BELZcB
GuMiwhAAwly8TRjyrsOHZKWhuPNtnTfGUv2CmOEC1zNkJiwGSAO9hYlzM5uiKO2A
61rgUcIUG3AjR+XIb/2YOtvsdOmEMfab6Cx6hlzwSyTpgcIywcp0uTYdooXLUoBc
l3+E104cBbzFOCjaGR8EfT4mWhYvTy3If2FoS/mOcW9WnZq7cXvx87+n7RqkFql6
+x0u88ZN0i/kUeA9aJlvHKdJh5RuTIeDn5tubzkxY+I+QorgWe7PX9GfdiFjftX3
XntqIDT/6iwnS01AkcSR4VVG+qIUTtICYRYId4UOdPh4omBWTawyu5tW3pvROGkb
/ioecLg+mvlIUB0feMscCH8EJuhOgCVebvkIh8YbYlQLrTk8YU1I0euqG0F+UOLW
J+dm2NKNTdY/BlOoIujaL5RzOy+tH+kWqX8a4/TbshxZ91pQk4aJGlUSCgI187AX
/8hCc4DiU90gSzT2zb2Lo4aLT5UFnjaboGErVoDN3VipemNLp8TToWWiU+mVVLpg
gGljlj2LO9WElBqqb5RMvd9r1WEk9XXVXBzaExMUYjzT2gZB+sCUEP5yPwf8Yvw0
hwr/IHYELVErC0YHNj60htQYM9u6IkXSMeCj/AsSiHoS3AyR4z2/eT4j2h1dsKbf
7Tcqiy0VHWfdemRaNMzvfs18begh4Uc0rM389umJLeuMQL4sk8o=
=FYNv
-----END PGP SIGNATURE-----

--kkANkCbkvbfH1mSU--

.
Date: Sat, 6 Aug 2022 10:12:23 +0200
From: Christoph Hellwig <hch@infradead.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org, iommu@lists.linux.dev
Subject: [GIT PULL] dma-mapping updates for the kernel formetly known as 5.20

The following changes since commit a111daf0c53ae91e71fd2bfe7497862d14132e3e:

  Linux 5.19-rc3 (2022-06-19 15:06:47 -0500)

are available in the Git repository at:

  git://git.infradead.org/users/hch/dma-mapping.git tags/dma-mapping-5.20-2022-08-06

for you to fetch changes up to 5c850d31880e00f063fa2a3746ba212c4bcc510f:

  swiotlb: fix passing local variable to debugfs_create_ulong() (2022-07-28 07:23:30 -0700)

----------------------------------------------------------------
dma-mapping updates

 - convert arm32 to the common dma-direct code (Arnd Bergmann, Robin Murphy,
   Christoph Hellwig)
 - restructure the PCIe peer to peer mapping support (Logan Gunthorpe)
 - allow the IOMMU code to communicate an optional DMA mapping length
   and use that in scsi and libata (John Garry)
 - split the global swiotlb lock (Tianyu Lan)
 - various fixes and cleanup (Chao Gao, Dan Carpenter, Dongli Zhang,
   Lukas Bulwahn, Robin Murphy)

----------------------------------------------------------------
Arnd Bergmann (1):
      ARM: sa1100/assabet: move dmabounce hack to ohci driver

Chao Gao (3):
      swiotlb: remove unused fields in io_tlb_mem
      swiotlb: consolidate rounding up default_nslabs
      swiotlb: ensure a segment doesn't cross the area boundary

Christoph Hellwig (7):
      ARM/dma-mapping: remove dmabounce
      ARM/dma-mapping: mark various dma-mapping routines static in dma-mapping.c
      ARM/dma-mapping: remove the unused virt_to_dma helper
      ARM/dma-mapping: use dma_to_phys/phys_to_dma in the dma-mapping code
      ARM/dma-mapping: use the generic versions of dma_to_phys/phys_to_dma by default
      ARM/dma-mapping: use dma-direct unconditionally
      swiotlb: move struct io_tlb_slot to swiotlb.c

Dan Carpenter (1):
      swiotlb: fix use after free on error handling path

Dongli Zhang (4):
      swiotlb: remove the unused swiotlb_force declaration
      swiotlb: remove a useless return in swiotlb_init
      x86/swiotlb: fix param usage in boot-options.rst
      swiotlb: panic if nslabs is too small

John Garry (7):
      dma-mapping: add dma_opt_mapping_size()
      dma-iommu: add iommu_dma_opt_mapping_size()
      scsi: core: cap shost max_sectors according to DMA limits only once
      scsi: sd: allow max_sectors be capped at DMA optimal size limit
      scsi: scsi_transport_sas: cap shost opt_sectors according to DMA optimal limit
      ata: libata-scsi: cap ata_device->max_sectors according to shost->max_sectors
      scsi: sd: Add a comment about limiting max_sectors to shost optimal limit

Logan Gunthorpe (14):
      lib/scatterlist: add flag for indicating P2PDMA segments in an SGL
      PCI/P2PDMA: Attempt to set map_type if it has not been set
      PCI/P2PDMA: Introduce helpers for dma_map_sg implementations
      dma-mapping: allow EREMOTEIO return code for P2PDMA transfers
      dma-direct: support PCI P2PDMA pages in dma-direct map_sg
      dma-mapping: add flags to dma_map_ops to indicate PCI P2PDMA support
      iommu: Explicitly skip bus address marked segments in __iommu_map_sg()
      iommu/dma: support PCI P2PDMA pages in dma-iommu map_sg
      nvme-pci: check DMA ops when indicating support for PCI P2PDMA
      nvme-pci: convert to using dma_map_sgtable()
      RDMA/core: introduce ib_dma_pci_p2p_dma_supported()
      RDMA/rw: drop pci_p2pdma_[un]map_sg()
      PCI/P2PDMA: Remove pci_p2pdma_[un]map_sg()
      dma-mapping: reformat comment to suppress htmldoc warning

Lukas Bulwahn (1):
      dma-mapping: update comment after dmabounce removal

Robin Murphy (4):
      ARM/dma-mapping: drop .dma_supported for IOMMU ops
      ARM/dma-mapping: consolidate IOMMU ops callbacks
      ARM/dma-mapping: merge IOMMU ops
      swiotlb: fail map correctly with failed io_tlb_default_mem

Tianyu Lan (3):
      swiotlb: split up the global swiotlb lock
      swiotlb: clean up some coding style and minor issues
      swiotlb: fix passing local variable to debugfs_create_ulong()

 Documentation/admin-guide/kernel-parameters.txt    |   5 +-
 Documentation/core-api/dma-api.rst                 |  14 +
 Documentation/x86/x86_64/boot-options.rst          |   8 +-
 arch/arm/Kconfig                                   |   5 +-
 arch/arm/common/Kconfig                            |   6 +-
 arch/arm/common/Makefile                           |   1 -
 arch/arm/common/dmabounce.c                        | 582 ------------------
 arch/arm/common/sa1111.c                           |  64 --
 arch/arm/include/asm/device.h                      |   3 -
 arch/arm/include/asm/dma-direct.h                  |  49 +-
 arch/arm/include/asm/dma-mapping.h                 | 128 ----
 arch/arm/include/asm/memory.h                      |   2 -
 arch/arm/mach-footbridge/Kconfig                   |   1 +
 arch/arm/mach-footbridge/common.c                  |  19 +-
 arch/arm/mach-footbridge/include/mach/dma-direct.h |   8 +
 arch/arm/mach-footbridge/include/mach/memory.h     |   4 -
 arch/arm/mach-highbank/highbank.c                  |   2 +-
 arch/arm/mach-mvebu/coherency.c                    |   2 +-
 arch/arm/mm/dma-mapping.c                          | 652 +++------------------
 drivers/ata/libata-scsi.c                          |   1 +
 drivers/infiniband/core/rw.c                       |  45 +-
 drivers/iommu/dma-iommu.c                          | 105 +++-
 drivers/iommu/iommu.c                              |   4 +
 drivers/iommu/iova.c                               |   5 +
 drivers/nvme/host/core.c                           |   3 +-
 drivers/nvme/host/nvme.h                           |   2 +-
 drivers/nvme/host/pci.c                            |  81 ++-
 drivers/nvme/target/rdma.c                         |   2 +-
 drivers/pci/Kconfig                                |   5 +
 drivers/pci/p2pdma.c                               |  93 +--
 drivers/scsi/hosts.c                               |   5 +
 drivers/scsi/scsi_lib.c                            |   4 -
 drivers/scsi/scsi_transport_sas.c                  |   6 +
 drivers/scsi/sd.c                                  |   7 +
 drivers/usb/core/hcd.c                             |  17 +-
 drivers/usb/host/ohci-sa1111.c                     |  25 +
 include/linux/dma-map-ops.h                        |  64 ++
 include/linux/dma-mapping.h                        |  10 +
 include/linux/iova.h                               |   2 +
 include/linux/pci-p2pdma.h                         |  27 -
 include/linux/scatterlist.h                        |  69 +++
 include/linux/swiotlb.h                            |  17 +-
 include/rdma/ib_verbs.h                            |  11 +
 include/scsi/scsi_host.h                           |   1 +
 kernel/dma/direct.c                                |  43 +-
 kernel/dma/direct.h                                |   8 +-
 kernel/dma/mapping.c                               |  47 +-
 kernel/dma/swiotlb.c                               | 263 +++++++--
 48 files changed, 833 insertions(+), 1694 deletions(-)
 delete mode 100644 arch/arm/common/dmabounce.c
 delete mode 100644 arch/arm/include/asm/dma-mapping.h
 create mode 100644 arch/arm/mach-footbridge/include/mach/dma-direct.h

.
Date: Sat, 10 Sep 2022 08:56:10 +0200
From: Christoph Hellwig <hch@infradead.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org, iommu@lists.linux.dev
Subject: [GIT PULL] dma-mapping fixes for Linux 6.0

The following changes since commit 0066f1b0e27556381402db3ff31f85d2a2265858:

  afs: Return -EAGAIN, not -EREMOTEIO, when a file already locked (2022-09-06 21:33:01 -0400)

are available in the Git repository at:

  git://git.infradead.org/users/hch/dma-mapping.git tags/dma-mapping-6.0-2022-09-10

for you to fetch changes up to 9fc18f6d56d5b79d527c17a8100a0965d18345cf:

  dma-mapping: mark dma_supported static (2022-09-07 10:38:28 +0200)

----------------------------------------------------------------
dma-mapping fixes for Linux 6.0

 - revert a panic on swiotlb initialization failure (Yu Zhao)
 - fix the lookup for partial syncs in dma-debug (Robin Murphy)
 - fix a shift overflow in swiotlb (Chao Gao)
 - fix a comment typo in swiotlb (Chao Gao)
 - mark a function static now that all abusers are gone
   (Christoph Hellwig)

----------------------------------------------------------------
Chao Gao (2):
      swiotlb: avoid potential left shift overflow
      swiotlb: fix a typo

Christoph Hellwig (1):
      dma-mapping: mark dma_supported static

Robin Murphy (1):
      dma-debug: improve search for partial syncs

Yu Zhao (1):
      Revert "swiotlb: panic if nslabs is too small"

 include/linux/dma-mapping.h |  5 -----
 kernel/dma/debug.c          |  6 ++----
 kernel/dma/mapping.c        |  3 +--
 kernel/dma/swiotlb.c        | 13 ++++++-------
 4 files changed, 9 insertions(+), 18 deletions(-)

.
Date: Sun, 11 Sep 2022 09:31:01 +0200
From: Joerg Roedel <joro@8bytes.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Will Deacon <will@kernel.org>, linux-kernel@vger.kernel.org,
	iommu@lists.linux.dev
Subject: [git pull] IOMMU Fixes for Linux v6.0-rc4

Hi Linus,

The following changes since commit 7e18e42e4b280c85b76967a9106a13ca61c16179:

  Linux 6.0-rc4 (2022-09-04 13:10:01 -0700)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git tags/iommu-fixes-v6.0-rc4

for you to fetch changes up to 2380f1e8195ef612deea1dc7a3d611c5d2b9b56a:

  iommu: Fix false ownership failure on AMD systems with PASID activated (2022-09-11 08:30:41 +0200)

----------------------------------------------------------------
IOMMU Fixes for Linux v6.0-rc4

Including:

	- Intel VT-d fixes from Lu Baolu

	  - Boot kdump kernels with VT-d scalable mode on

	  - Calculate the right page table levels

	  - Fix two recursive locking issues

	  - Fix a lockdep splat issue

	- AMD IOMMU fixes:

	  - Fix for completion-wait command to use full 64 bits of data

	  - Fix PASID related issue where GPU sound devices failed to
	    initialize

	- Fix for Virtio-IOMMU to report correct caching behavior, needed for
	  use with VFIO

----------------------------------------------------------------
Jason Gunthorpe (1):
      iommu: Fix false ownership failure on AMD systems with PASID activated

Jean-Philippe Brucker (1):
      iommu/virtio: Fix interaction with VFIO

John Sperbeck (1):
      iommu/amd: use full 64-bit value in build_completion_wait()

Lu Baolu (5):
      iommu/vt-d: Fix kdump kernels boot failure with scalable mode
      iommu/vt-d: Correctly calculate sagaw value of IOMMU
      iommu/vt-d: Fix recursive lock issue in iommu_flush_dev_iotlb()
      iommu/vt-d: Fix lockdep splat due to klist iteration in atomic context
      iommu/vt-d: Fix possible recursive locking in intel_iommu_init()

 drivers/iommu/amd/iommu.c    |   3 +-
 drivers/iommu/amd/iommu_v2.c |   2 +
 drivers/iommu/intel/dmar.c   |   7 ++
 drivers/iommu/intel/iommu.c  | 241 ++++++++++++++++++++-----------------------
 drivers/iommu/intel/iommu.h  |   9 +-
 drivers/iommu/iommu.c        |  21 +++-
 drivers/iommu/virtio-iommu.c |  11 ++
 include/linux/dmar.h         |   4 +-
 8 files changed, 163 insertions(+), 135 deletions(-)

Please pull.

Thanks,

	Joerg

.
Date: Wed, 21 Sep 2022 14:19:05 +0200
From: Joerg Roedel <joro@8bytes.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Will Deacon <will@kernel.org>, linux-kernel@vger.kernel.org,
	iommu@lists.linux.dev
Subject: [git pull] IOMMU Fixes for Linux v6.0-rc6


--l/vVzbqds+DTlzV7
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi Linus,

The following changes since commit 521a547ced6477c54b4b0cc206000406c221b4d6:

  Linux 6.0-rc6 (2022-09-18 13:44:14 -0700)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git tags/iommu-fixes-v6.0-rc6

for you to fetch changes up to 154897807050c1161cb2660e502fc0470d46b986:

  iommu/vt-d: Check correct capability for sagaw determination (2022-09-21 10:22:54 +0200)

----------------------------------------------------------------
IOMMU Fixes for Linux v6.0-rc6

Including:

	- Two fixes for Intel VT-d:

	  - Check the right capability bit for 5-level page table support.

	  - Revert a previous fix which caused a regression with Thunderbolt
	    devices.

----------------------------------------------------------------
Lu Baolu (1):
      Revert "iommu/vt-d: Fix possible recursive locking in intel_iommu_init()"

Yi Liu (1):
      iommu/vt-d: Check correct capability for sagaw determination

 drivers/iommu/intel/dmar.c  |  7 -------
 drivers/iommu/intel/iommu.c | 29 ++++++++++++++++++++++++++---
 include/linux/dmar.h        |  4 +---
 3 files changed, 27 insertions(+), 13 deletions(-)

Please pull.

Thanks,

	Joerg

--l/vVzbqds+DTlzV7
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEr9jSbILcajRFYWYyK/BELZcBGuMFAmMrATkACgkQK/BELZcB
GuOE0Q/9Gc1bFSEAY+dTpLKR3xX8cxepYcCjhssMGbQ/YXniVmVZOIR+eu6EUAHV
Am0FQ5wSsbpvXlLu0bFjnbzNTuRW8dFBTgI+NJTWikh2KoDscF15K9YZ8JQYx6Ut
bxI9ksqSVlfXmcOGzhJ+Ugj0nEgIPo1Ja1oTpQmMFLClxdx9aAyp60/KdpMPB7BP
Duw/pJxu/Ofj6fVI18JSek0g1SmtbnklRWeHzLAVsoDrCd93Q7kuSfbdMharqXdF
xfRWj+GYtZWUzQdBmQiJh7NOo5h7TJbdUJFFYo3+NXHax2IMR513/TDcxHcJeXrf
+YSjFayeKhftwbdAN2Gc5q0tqhc1rxkkBXzFB/RjyBIk3BVgVFxTMux9OME4lhPX
kjUuuqLPDyb5HEODejr7oOS/1kXFYqRQyoiFs0X2va3BDpumVU8kO8Fu5KvvtaXp
+mJwriF8eWAxrjPUXiEviC92mY+jJNBoPL9ig3+OsUBzueFbBjgrsraLQk7fSjpD
MmDTMLVV9SKTQAVWh0Zcuj/LsSVBDmEsqawUqvhc0GJgDqwq2QXMoZSVz1OSgTa0
JHyF3NyCXjj85X/cbR6EScHUI9yfRKjd2d1fpKjm5AaEPIQV899p1GmeoIs+a55g
tWpbXFNQz7kVaJLKJyIn/pr+bnstWAhlpOViI8RZeh88g8j0sv8=
=VN65
-----END PGP SIGNATURE-----

--l/vVzbqds+DTlzV7--

.
Date: Fri, 23 Sep 2022 08:42:00 +0800
From: Lu Baolu <baolu.lu@linux.intel.com>
To: Joerg Roedel <joro@8bytes.org>
Cc: iommu@lists.linux.dev,
	linux-kernel@vger.kernel.org
Subject: [PATCH 0/6] [PULL REQUEST] Intel IOMMU updates for Linux v6.1

Hi Joerg,

This includes patches queued for v6.1. It includes:

 - Decouple PASID and PRI from SVA
 - Add ESRTPS & ESIRTPS capability check
 - Cleanups

The whole series is also available at:
https://github.com/LuBaolu/intel-iommu/commits/vtd-update-for-v6.1

Please consider them for next.

Best regards,
Baolu

Lu Baolu (5):
  iommu/vt-d: Remove unnecessary SVA data accesses in page fault path
  iommu/vt-d: Decouple PASID & PRI enabling from SVA
  iommu/vt-d: Remove pasid_set_eafe()
  iommu/vt-d: Avoid unnecessary global IRTE cache invalidation
  iommu/vt-d: Avoid unnecessary global DMA cache invalidation

Yi Liu (1):
  iommu/vt-d: Rename cap_5lp_support to cap_fl5lp_support

 drivers/iommu/intel/iommu.h         |  7 ++-
 drivers/iommu/intel/cap_audit.c     |  4 +-
 drivers/iommu/intel/iommu.c         | 87 ++++++++---------------------
 drivers/iommu/intel/irq_remapping.c |  6 +-
 drivers/iommu/intel/pasid.c         | 12 +---
 drivers/iommu/intel/svm.c           | 62 +++-----------------
 drivers/iommu/intel/Kconfig         |  5 +-
 7 files changed, 45 insertions(+), 138 deletions(-)

-- 
2.34.1


.
Date: Mon, 26 Sep 2022 21:15:23 +0800
From: Lu Baolu <baolu.lu@linux.intel.com>
To: Joerg Roedel <joro@8bytes.org>
Cc: iommu@lists.linux.dev,
	linux-kernel@vger.kernel.org
Subject: [RESEND PATCH 0/6] [PULL REQUEST] Intel IOMMU updates for Linux v6.1

Hi Joerg,

This is a resent pull request. It's based on v6.0-rc7. The original pull
request was posted here:

https://lore.kernel.org/linux-iommu/20220923004206.3630441-1-baolu.lu@linux.intel.com/

Please pull.

Best regards,
Baolu


Lu Baolu (5):
  iommu/vt-d: Remove unnecessary SVA data accesses in page fault path
  iommu/vt-d: Decouple PASID & PRI enabling from SVA
  iommu/vt-d: Remove pasid_set_eafe()
  iommu/vt-d: Avoid unnecessary global IRTE cache invalidation
  iommu/vt-d: Avoid unnecessary global DMA cache invalidation

Yi Liu (1):
  iommu/vt-d: Rename cap_5lp_support to cap_fl5lp_support

 drivers/iommu/intel/iommu.h         |  7 ++-
 drivers/iommu/intel/cap_audit.c     |  4 +-
 drivers/iommu/intel/iommu.c         | 87 ++++++++---------------------
 drivers/iommu/intel/irq_remapping.c |  6 +-
 drivers/iommu/intel/pasid.c         | 12 +---
 drivers/iommu/intel/svm.c           | 62 +++-----------------
 drivers/iommu/intel/Kconfig         |  5 +-
 7 files changed, 45 insertions(+), 138 deletions(-)

-- 
2.34.1


.
Date: Mon, 10 Oct 2022 14:12:43 +0200
From: Joerg Roedel <joro@8bytes.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Will Deacon <will@kernel.org>, linux-kernel@vger.kernel.org,
	iommu@lists.linux.dev
Subject: [git pull] IOMMU Updates for Linux v6.1


--Xq+2gmiaDifvryq8
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi Linus,

The following changes since commit f76349cf41451c5c42a99f18a9163377e4b364ff:

  Linux 6.0-rc7 (2022-09-25 14:01:02 -0700)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git tags/iommu-updates-v6.1

for you to fetch changes up to 38713c6028a3172c4c256512c3fbcfc799fe2d43:

  Merge branches 'apple/dart', 'arm/mediatek', 'arm/omap', 'arm/smmu', 'virtio', 'x86/vt-d', 'x86/amd' and 'core' into next (2022-09-26 15:52:31 +0200)

----------------------------------------------------------------
IOMMU Updates for Linux v6.1:

Including:

	- Removal of the bus_set_iommu() interface which became
	  unnecesary because of IOMMU per-device probing

	- Make the dma-iommu.h header private

	- Intel VT-d changes from Lu Baolu:
	  - Decouple PASID and PRI from SVA
	  - Add ESRTPS & ESIRTPS capability check
	  - Cleanups

	- Apple DART support for the M1 Pro/MAX SOCs

	- Support for AMD IOMMUv2 page-tables for the DMA-API layer. The
	  v2 page-tables are compatible with the x86 CPU page-tables.
	  Using them for DMA-API prepares support for hardware-assisted
	  IOMMU virtualization

	- Support for MT6795 Helio X10 M4Us in the Mediatek IOMMU driver

	- Some smaller fixes and cleanups

----------------------------------------------------------------
Andy Shevchenko (2):
      iommu: Do not dereference fwnode in struct device
      iommu/virtio: Do not dereference fwnode in struct device

AngeloGioacchino Del Regno (3):
      dt-bindings: mediatek: Add bindings for MT6795 M4U
      iommu/mediatek: Introduce new flag TF_PORT_TO_ADDR_MT8173
      iommu/mediatek: Add support for MT6795 Helio X10 M4Us

Dan Carpenter (1):
      iommu/omap: Fix buffer overflow in debugfs

Janne Grunau (1):
      iommu/io-pgtable: Move Apple DART support to its own file

Jean-Philippe Brucker (1):
      dt-bindings: iommu: arm,smmu-v3: Relax order of interrupt names

Joerg Roedel (3):
      Merge branch 'iommu/fixes' into core
      iommu/virtio: Fix compile error with viommu_capable()
      Merge branches 'apple/dart', 'arm/mediatek', 'arm/omap', 'arm/smmu', 'virtio', 'x86/vt-d', 'x86/amd' and 'core' into next

John Garry (3):
      iova: Remove some magazine pointer NULL checks
      iova: Remove magazine BUG_ON() checks
      iova: Remove iovad->rcaches check in iova_rcache_get()

Lu Baolu (5):
      iommu/vt-d: Remove unnecessary SVA data accesses in page fault path
      iommu/vt-d: Decouple PASID & PRI enabling from SVA
      iommu/vt-d: Remove pasid_set_eafe()
      iommu/vt-d: Avoid unnecessary global IRTE cache invalidation
      iommu/vt-d: Avoid unnecessary global DMA cache invalidation

Matthew Rosato (1):
      iommu/s390: Fail probe for non-PCI devices

Robin Murphy (22):
      iommu: Retire iommu_capable()
      iommu/arm-smmu: Report IOMMU_CAP_CACHE_COHERENCY better
      iommu/io-pgtable-arm: Remove iommu_dev==NULL special case
      iommu/vt-d: Handle race between registration and device probe
      iommu/amd: Handle race between registration and device probe
      iommu: Always register bus notifiers
      iommu: Move bus setup to IOMMU device registration
      iommu/amd: Clean up bus_set_iommu()
      iommu/arm-smmu: Clean up bus_set_iommu()
      iommu/arm-smmu-v3: Clean up bus_set_iommu()
      iommu/dart: Clean up bus_set_iommu()
      iommu/exynos: Clean up bus_set_iommu()
      iommu/ipmmu-vmsa: Clean up bus_set_iommu()
      iommu/mtk: Clean up bus_set_iommu()
      iommu/omap: Clean up bus_set_iommu()
      iommu/tegra-smmu: Clean up bus_set_iommu()
      iommu/virtio: Clean up bus_set_iommu()
      iommu: Clean up bus_set_iommu()
      iommu/dma: Clean up Kconfig
      iommu/dma: Move public interfaces to linux/iommu.h
      iommu/dma: Make header private
      iommu/iova: Fix module config properly

Suravee Suthikulpanit (4):
      iommu/amd: Refactor amd_iommu_domain_enable_v2 to remove locking
      iommu/amd: Update sanity check when enable PRI/ATS for IOMMU v1 table
      iommu/amd: Add support for Guest IO protection
      iommu/amd: Add support for using AMD IOMMU v2 page table for DMA-API

Sven Peter (3):
      iommu/io-pgtable: Add DART subpage protection support
      iommu/io-pgtable-dart: Add DART PTE support for t6000
      iommu: dart: Support t6000 variant

Vasant Hegde (9):
      iommu/amd/io-pgtable: Implement map_pages io_pgtable_ops callback
      iommu/amd/io-pgtable: Implement unmap_pages io_pgtable_ops callback
      iommu/amd: Add map/unmap_pages() iommu_domain_ops callback support
      iommu/amd: Initial support for AMD IOMMU v2 page table
      iommu/amd: Add command-line option to enable different page table
      iommu/amd: Free domain id in error path
      iommu/amd: Free domain ID after domain_flush_pages
      iommu/amd: Remove outdated comment
      iommu/amd: Fix sparse warning

Yi Liu (1):
      iommu/vt-d: Rename cap_5lp_support to cap_fl5lp_support

Yuan Can (2):
      iommu: Remove comment of dev_has_feat in struct doc
      iommu: Remove duplicate ida_free in iommu_group_alloc

 Documentation/admin-guide/kernel-parameters.txt    |   2 +
 .../devicetree/bindings/iommu/arm,smmu-v3.yaml     |  15 +-
 .../devicetree/bindings/iommu/mediatek,iommu.yaml  |   4 +
 MAINTAINERS                                        |   3 +-
 arch/arm64/Kconfig                                 |   1 -
 arch/arm64/mm/dma-mapping.c                        |   2 +-
 drivers/acpi/viot.c                                |   1 -
 drivers/gpu/drm/exynos/exynos_drm_dma.c            |   1 -
 drivers/iommu/Kconfig                              |  16 +-
 drivers/iommu/Makefile                             |   1 +
 drivers/iommu/amd/Kconfig                          |   1 -
 drivers/iommu/amd/Makefile                         |   2 +-
 drivers/iommu/amd/amd_iommu.h                      |   1 -
 drivers/iommu/amd/amd_iommu_types.h                |  10 +-
 drivers/iommu/amd/init.c                           |  47 ++-
 drivers/iommu/amd/io_pgtable.c                     |  76 ++--
 drivers/iommu/amd/io_pgtable_v2.c                  | 415 ++++++++++++++++++
 drivers/iommu/amd/iommu.c                          | 164 ++++---
 drivers/iommu/apple-dart.c                         |  57 ++-
 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c        |  62 +--
 drivers/iommu/arm/arm-smmu/arm-smmu.c              |  97 +----
 drivers/iommu/arm/arm-smmu/qcom_iommu.c            |   6 +-
 drivers/iommu/dma-iommu.c                          |  18 +-
 drivers/iommu/dma-iommu.h                          |  42 ++
 drivers/iommu/exynos-iommu.c                       |   9 -
 drivers/iommu/fsl_pamu_domain.c                    |   6 +-
 drivers/iommu/intel/Kconfig                        |   6 +-
 drivers/iommu/intel/cap_audit.c                    |   4 +-
 drivers/iommu/intel/iommu.c                        |  95 ++---
 drivers/iommu/intel/iommu.h                        |   7 +-
 drivers/iommu/intel/irq_remapping.c                |   6 +-
 drivers/iommu/intel/pasid.c                        |  12 +-
 drivers/iommu/intel/svm.c                          |  62 +--
 drivers/iommu/io-pgtable-arm.c                     |  71 +---
 drivers/iommu/io-pgtable-dart.c                    | 469 +++++++++++++++++++++
 drivers/iommu/io-pgtable.c                         |   4 +
 drivers/iommu/iommu.c                              | 154 +++----
 drivers/iommu/iova.c                               |  13 +-
 drivers/iommu/ipmmu-vmsa.c                         |  35 +-
 drivers/iommu/msm_iommu.c                          |   2 -
 drivers/iommu/mtk_iommu.c                          |  45 +-
 drivers/iommu/mtk_iommu_v1.c                       |  13 +-
 drivers/iommu/omap-iommu-debug.c                   |   6 +-
 drivers/iommu/omap-iommu.c                         |   6 -
 drivers/iommu/rockchip-iommu.c                     |   2 -
 drivers/iommu/s390-iommu.c                         |  15 +-
 drivers/iommu/sprd-iommu.c                         |   5 -
 drivers/iommu/sun50i-iommu.c                       |   2 -
 drivers/iommu/tegra-smmu.c                         |  29 +-
 drivers/iommu/virtio-iommu.c                       |  32 +-
 drivers/irqchip/irq-gic-v2m.c                      |   2 +-
 drivers/irqchip/irq-gic-v3-its.c                   |   2 +-
 drivers/irqchip/irq-gic-v3-mbi.c                   |   2 +-
 drivers/irqchip/irq-ls-scfg-msi.c                  |   2 +-
 drivers/vfio/vfio_iommu_type1.c                    |   1 -
 include/dt-bindings/memory/mt6795-larb-port.h      |  95 +++++
 include/linux/dma-iommu.h                          |  93 ----
 include/linux/io-pgtable.h                         |   3 +
 include/linux/iommu.h                              |  47 ++-
 include/linux/iova.h                               |   2 +-
 60 files changed, 1501 insertions(+), 902 deletions(-)
 create mode 100644 drivers/iommu/amd/io_pgtable_v2.c
 create mode 100644 drivers/iommu/dma-iommu.h
 create mode 100644 drivers/iommu/io-pgtable-dart.c
 create mode 100644 include/dt-bindings/memory/mt6795-larb-port.h
 delete mode 100644 include/linux/dma-iommu.h

Please pull.

Thanks,

	Joerg

--Xq+2gmiaDifvryq8
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEr9jSbILcajRFYWYyK/BELZcBGuMFAmNEDDsACgkQK/BELZcB
GuMiAg/+LAsK9z9382/5CXy3gEcTqNs/OV6Rq0XGNVj7VBdFX1BzIajGwgeExMCt
lDBUEC3aNQ5sJG/n1ZF5i+7B2GedxUAkD4tsQG+7gF9rv00msoSuhM9UQH20MyGo
XWjOSRW6hF0tNeJGUjZ9X6/llbYGcEG7+EUAOrNWRP+a29K9C1WEFaEAEj3uP5W2
OT3W4bvNkYBDwtgMkfIRV3sHC70dsMgzhOVzP4HvGRW/EMTtF/uoBwjI7buFMh0S
gQsAJxeP5Mb3j3e0D7JJoKPACMOb0J30XCxp/i3SM2sn9WHM4pjAcxugCTBKWf+w
LqXlwmJ0h/JirVanLJLoBUUOa+KcZjR7CoitWl2gdPpf4Ffpi3pPASgU/wVKWTeI
b1Jv5/PKimQbQ0ulK/AjUnDn1SJY9NOYPfH6tLL6pBGuPYQlNj/oB7X0/9opqKw0
8HQ2m3HPQm1W5mRciowSGxIOsOndUUyjaaoY7UbRpciJluwMr5KpKsv9+B2Y51L0
QQY0HuZB5gmizHmSBNll9UySkN/X8XEWqpy2lqjxNBGj0p6uUdxfL1nP5wut512e
dl4uLjW0l7tC9mSjX2SFAnXNMtjBjySGxNf/W3K7vOxd5lp1Zi1iYTwzFZOb23ft
Gn9z0w1y9IUjoi9EB1Rlhx/vvipTMaSiI0SXgLkZsk4jjxsN2VE=
=2zZl
-----END PGP SIGNATURE-----

--Xq+2gmiaDifvryq8--

.
Date: Mon, 10 Oct 2022 16:53:38 +0200
From: Christoph Hellwig <hch@infradead.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org, iommu@lists.linux.dev
Subject: [GIT PULL] dma-mapping updates for Linux 6.1

The following changes since commit 521a547ced6477c54b4b0cc206000406c221b4d6:

  Linux 6.0-rc6 (2022-09-18 13:44:14 -0700)

are available in the Git repository at:

  git://git.infradead.org/users/hch/dma-mapping.git tags/dma-mapping-6.1-2022-10-10

for you to fetch changes up to c9cb01369b926a074004714ab9f9b65f75bf3c60:

  ARM/dma-mapping: remove the dma_coherent member of struct dev_archdata (2022-10-06 14:31:08 +0200)

----------------------------------------------------------------
dma-mapping updates for Linux 6.1

 - fix a regression in the ARM dma-direct conversion (Christoph Hellwig)
 - use memcpy_{from,to}_page (Fabio M. De Francesco)
 - cleanup the swiotlb MAINTAINERS entry (Lukas Bulwahn)
 - make SG table pool allocation less fragile (Masahiro Yamada)
 - don't panic on swiotlb initialization failure (Robin Murphy)

----------------------------------------------------------------
Christoph Hellwig (2):
      ARM/dma-mappіng: don't override ->dma_coherent when set from a bus notifier
      ARM/dma-mapping: remove the dma_coherent member of struct dev_archdata

Fabio M. De Francesco (1):
      swiotlb: replace kmap_atomic() with memcpy_{from,to}_page()

Lukas Bulwahn (1):
      MAINTAINERS: merge SWIOTLB SUBSYSTEM into DMA MAPPING HELPERS

Masahiro Yamada (1):
      lib/sg_pool: change module_init(sg_pool_init) to subsys_initcall

Robin Murphy (1):
      swiotlb: don't panic!

 MAINTAINERS                   | 17 +++++------------
 arch/arm/include/asm/device.h |  1 -
 arch/arm/mm/dma-mapping.c     | 10 ++++++++--
 kernel/dma/swiotlb.c          | 40 +++++++++++++++++++++++-----------------
 lib/sg_pool.c                 | 16 ++--------------
 5 files changed, 38 insertions(+), 46 deletions(-)

.
Date: Wed, 19 Oct 2022 08:44:43 +0800
From: Lu Baolu <baolu.lu@linux.intel.com>
To: Joerg Roedel <joro@8bytes.org>
Cc: Jerry Snitselaar <jsnitsel@redhat.com>,
	Charlotte Tan <charlotte@extrahop.com>,
	Alex Williamson <alex.williamson@redhat.com>,
	iommu@lists.linux.dev,
	linux-kernel@vger.kernel.org
Subject: [PATCH 0/4] [PULL REQUEST] iommu/vt-d: Fixes for v6.1-rc2

Hi Joerg,

Below fixes are queued for v6.1. They aim to fix:

- A lockdep splat issue in intel_iommu_init().
- Allow NVS regions to pass RMRR check.
- Domain cleanup in error path.

This series is also available at github.
https://github.com/LuBaolu/intel-iommu/commits/vtd-fix-for-v6.1-rc2

Please consider it for the iommu/fix branch.

Best regards,
Lu Baolu

Charlotte Tan (1):
  iommu/vt-d: Allow NVS regions in arch_rmrr_sanity_check()

Jerry Snitselaar (1):
  iommu/vt-d: Clean up si_domain in the init_dmars() error path

Lu Baolu (2):
  iommu: Add gfp parameter to iommu_alloc_resv_region
  iommu/vt-d: Use rcu_lock in get_resv_regions

 include/linux/iommu.h                       |  2 +-
 arch/x86/include/asm/iommu.h                |  4 +++-
 drivers/acpi/arm64/iort.c                   |  3 ++-
 drivers/iommu/amd/iommu.c                   |  7 ++++---
 drivers/iommu/apple-dart.c                  |  2 +-
 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c |  2 +-
 drivers/iommu/arm/arm-smmu/arm-smmu.c       |  2 +-
 drivers/iommu/intel/iommu.c                 | 17 ++++++++++++-----
 drivers/iommu/iommu.c                       |  7 ++++---
 drivers/iommu/mtk_iommu.c                   |  3 ++-
 drivers/iommu/virtio-iommu.c                |  9 ++++++---
 11 files changed, 37 insertions(+), 21 deletions(-)

-- 
2.34.1

.
Date: Fri, 21 Oct 2022 17:25:29 +0200
From: Joerg Roedel <joro@8bytes.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Will Deacon <will@kernel.org>, linux-kernel@vger.kernel.org,
	iommu@lists.linux.dev
Subject: [git pull] IOMMU Fixes for Linux v6.1-rc1


--oKHxqs63Pe8+DD1/
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi Linus,

The following changes since commit 9abf2313adc1ca1b6180c508c25f22f9395cc780:

  Linux 6.1-rc1 (2022-10-16 15:36:24 -0700)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git tags/iommu-fixes-v6.1-rc1

for you to fetch changes up to 620bf9f981365c18cc2766c53d92bf8131c63f32:

  iommu/vt-d: Clean up si_domain in the init_dmars() error path (2022-10-21 10:49:35 +0200)

----------------------------------------------------------------
IOMMU Fixes for Linux v6.1-rc1:

Including:

	- Intel VT-d fixes from Lu Baolu:
	  - Fix a lockdep splat issue in intel_iommu_init().
	  - Allow NVS regions to pass RMRR check.
	  - Domain cleanup in error path.

----------------------------------------------------------------
Charlotte Tan (1):
      iommu/vt-d: Allow NVS regions in arch_rmrr_sanity_check()

Jerry Snitselaar (1):
      iommu/vt-d: Clean up si_domain in the init_dmars() error path

Lu Baolu (2):
      iommu: Add gfp parameter to iommu_alloc_resv_region
      iommu/vt-d: Use rcu_lock in get_resv_regions

 arch/x86/include/asm/iommu.h                |  4 +++-
 drivers/acpi/arm64/iort.c                   |  3 ++-
 drivers/iommu/amd/iommu.c                   |  7 ++++---
 drivers/iommu/apple-dart.c                  |  2 +-
 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c |  2 +-
 drivers/iommu/arm/arm-smmu/arm-smmu.c       |  2 +-
 drivers/iommu/intel/iommu.c                 | 17 ++++++++++++-----
 drivers/iommu/iommu.c                       |  7 ++++---
 drivers/iommu/mtk_iommu.c                   |  3 ++-
 drivers/iommu/virtio-iommu.c                |  9 ++++++---
 include/linux/iommu.h                       |  2 +-
 11 files changed, 37 insertions(+), 21 deletions(-)

Please pull.

Thanks,

	Joerg

--oKHxqs63Pe8+DD1/
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEr9jSbILcajRFYWYyK/BELZcBGuMFAmNSuekACgkQK/BELZcB
GuNtQA/8CgW461/OeYTerU80IZVLVJPUHVcUTCCzQ5QVY8AH2rvAn0CJyTrc4MI2
golyz3hv4WWRmjW8djSiS+OKC+ffgDPhugIQXiVQTKTAVK7BakhysGEMFwOSY/y9
7+JZt+CDSA1DyOnL09f6g85E4b41+FIsCj6DkP5iYjHr7eX0qz2HXYL4Swpej7Pr
sNsMR/jfLJEXTqDWywkbguHyRJa5R7gd40FtzEyxWxRT+gs988lpMtvzigyWz8hq
FrpO27T0qkkuKL1vUZqCTV6Xilxc+uOQOJdEZCMZsMMXAXTxKFiZfAKfX6yPtZD4
NWRqpG64joeBYj2ALY4XYlE8fEBreR/rJrgH0rpGIykiTo2edMbhN5ZVUygqhNiy
PBnUxcWxhYxiJgrlCDshHzlZrPXryyD4NsIYteg0P6gUddtyC/cNrHZ4GkpwmPaj
+roYzUFUNHTXjDdF/r201iE19rjEe4BhfKe/6dMNvQ8wUCzEDLyMPFn4NqleyAPS
jilw+oIL57KkiWaYOlCdAdXnM4iTspCcWcTUr8D5tWuJibWuptp2c0cl6n1+oixo
5yBg+pMw68Y48vQObpLG6frOIuasm3nl0hvr611vVrWPjIYu77vJ2zdesYNBzmCC
JWGcoPUKuoGcTZ0z7Thfi8Ey94OjyDEKMDtHvo1EOYAY78RHt3E=
=5DZQ
-----END PGP SIGNATURE-----

--oKHxqs63Pe8+DD1/--

.
