lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Fri, 11 Jun 2021 20:20:38 +0800
From:   John Garry <>
To:     <>, <>, <>,
        <>, <>
CC:     <>, <>,
        <>, <>,
        <>, John Garry <>
Subject: [PATCH v12 0/5] Enhance IOMMU default DMA mode build options

This is a reboot of Zhen Lei's series from a couple of years ago, which
never made it across the line.

I still think that it has some value, so taking up the mantle.

Allow lazy mode be default mode for DMA domains for all ARCHs, and not
only those who hardcode it (to be lazy). For ARM64, currently we must use
a kernel command line parameter to use lazy mode, which is less than

I have now included the print for strict/lazy mode, which I originally
sent in:

There was some concern there about drivers and their custom prints
conflicting with the print in that patch, but I think that it
should be ok.

Difference to v11:
- Rebase to next-20210610
- Drop strict mode globals in Intel and AMD drivers
- Include patch to print strict vs lazy mode
- Include patch to remove argument from iommu_set_dma_strict()

Differences to v10:
- Rebase to v5.13-rc4
- Correct comment and typo in Kconfig (Randy)
- Make Kconfig choice depend on relevant architectures

Differences to v9:
- Rebase to v5.13-rc2
  Since we can dynamically change default domain of group, lazy or strict and
  passthrough are not mutually exclusive
- Drop ia64 patch, which I don't think was ever required
- Drop "x86/dma: use IS_ENABLED() to simplify the code", which is no
  longer required
- Drop s390/pci patch, as this arch does not use CONFIG_IOMMU_API or even
- Drop powernv/iommu patch, as I no longer think that it is relevant
- Some tidying

John Garry (2):
  iommu: Print strict or lazy mode at init time
  iommu: Remove mode argument from iommu_set_dma_strict()

Zhen Lei (3):
  iommu: Enhance IOMMU default DMA mode build options
  iommu/vt-d: Add support for IOMMU default DMA mode build options
  iommu/amd: Add support for IOMMU default DMA mode build options

 drivers/iommu/Kconfig               | 39 +++++++++++++++++++++++++++++
 drivers/iommu/amd/amd_iommu_types.h |  6 -----
 drivers/iommu/amd/init.c            |  3 +--
 drivers/iommu/amd/iommu.c           |  6 -----
 drivers/iommu/intel/iommu.c         | 15 +++++------
 drivers/iommu/iommu.c               | 13 +++++++---
 include/linux/iommu.h               |  2 +-
 7 files changed, 56 insertions(+), 28 deletions(-)


Powered by blists - more mailing lists