linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [GIT PULL iommu] Please pull iommu errno changes
@ 2022-11-02 12:51 Jason Gunthorpe
  2022-11-03 14:53 ` Joerg Roedel
  0 siblings, 1 reply; 2+ messages in thread
From: Jason Gunthorpe @ 2022-11-02 12:51 UTC (permalink / raw)
  To: Nicolin Chen, joro
  Cc: quic_saipraka, yangyicong, linux-tegra, thierry.reding, will,
	jean-philippe, zhang.lyra, jon, jonathanh, iommu,
	linux-arm-kernel, yangyingliang, orsonzhai, dwmw2, kevin.tian,
	linux-arm-msm, christophe.jaillet, baolin.wang, matthias.bgg,
	tglx, virtualization, yong.wu, robin.murphy, linux-kernel,
	shameerali.kolothum.thodi, robdclark, suravee.suthikulpanit,
	linux-mediatek, quic_jjohnson, baolu.lu


[-- Attachment #1.1: Type: text/plain, Size: 2804 bytes --]

Hi Joerg,

Here is a PR for a shared branch with Nicolin's series. I will be
putting this in the iommufd tree right away and Alex will need it for
vfio as well to progress this cycle. Please grab it to the iommu tree,
thanks

Jason

The following changes since commit 30a0b95b1335e12efef89dd78518ed3e4a71a763:

  Linux 6.1-rc3 (2022-10-30 15:19:28 -0700)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/jgg/iommufd.git tags/for-joerg

for you to fetch changes up to 04cee82e04d2aff3d177ef0021ecdff228daf7b8:

  iommu: Propagate return value in ->attach_dev callback functions (2022-11-01 14:39:59 -0300)

----------------------------------------------------------------
iommu: Define EINVAL as device/domain incompatibility

This series is to replace the previous EMEDIUMTYPE patch in a VFIO series:
https://lore.kernel.org/kvm/Yxnt9uQTmbqul5lf@8bytes.org/

The purpose is to regulate all existing ->attach_dev callback functions to
use EINVAL exclusively for an incompatibility error between a device and a
domain. This allows VFIO and IOMMUFD to detect such a soft error, and then
try a different domain with the same device.

Among all the patches, the first two are preparatory changes. And then one
patch to update kdocs and another three patches for the enforcement
effort.

Link: https://lore.kernel.org/r/cover.1666042872.git.nicolinc@nvidia.com

----------------------------------------------------------------
Nicolin Chen (5):
      iommu/amd: Drop unnecessary checks in amd_iommu_attach_device()
      iommu: Add return value rules to attach_dev op and APIs
      iommu: Regulate EINVAL in ->attach_dev callback functions
      iommu: Use EINVAL for incompatible device/domain in ->attach_dev
      iommu: Propagate return value in ->attach_dev callback functions

 drivers/iommu/amd/iommu.c                   | 12 ++----------
 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 11 +----------
 drivers/iommu/arm/arm-smmu/arm-smmu.c       |  3 ---
 drivers/iommu/arm/arm-smmu/qcom_iommu.c     |  7 +------
 drivers/iommu/fsl_pamu.c                    |  2 +-
 drivers/iommu/fsl_pamu_domain.c             |  4 ++--
 drivers/iommu/intel/iommu.c                 | 10 +++-------
 drivers/iommu/intel/pasid.c                 |  6 ++++--
 drivers/iommu/iommu.c                       | 24 ++++++++++++++++++++++++
 drivers/iommu/ipmmu-vmsa.c                  |  2 --
 drivers/iommu/mtk_iommu.c                   |  4 ++--
 drivers/iommu/omap-iommu.c                  |  6 +++---
 drivers/iommu/sprd-iommu.c                  |  4 +---
 drivers/iommu/tegra-gart.c                  |  2 +-
 drivers/iommu/virtio-iommu.c                |  7 +++----
 include/linux/iommu.h                       | 12 ++++++++++++
 16 files changed, 60 insertions(+), 56 deletions(-)

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [GIT PULL iommu] Please pull iommu errno changes
  2022-11-02 12:51 [GIT PULL iommu] Please pull iommu errno changes Jason Gunthorpe
@ 2022-11-03 14:53 ` Joerg Roedel
  0 siblings, 0 replies; 2+ messages in thread
From: Joerg Roedel @ 2022-11-03 14:53 UTC (permalink / raw)
  To: Jason Gunthorpe
  Cc: quic_saipraka, yangyicong, linux-tegra, thierry.reding, will,
	jean-philippe, zhang.lyra, jon, jonathanh, iommu, Nicolin Chen,
	linux-arm-kernel, yangyingliang, orsonzhai, dwmw2, kevin.tian,
	linux-arm-msm, christophe.jaillet, baolin.wang, matthias.bgg,
	tglx, virtualization, yong.wu, quic_jjohnson, linux-kernel,
	shameerali.kolothum.thodi, robdclark, suravee.suthikulpanit,
	linux-mediatek, robin.murphy, baolu.lu

On Wed, Nov 02, 2022 at 09:51:56AM -0300, Jason Gunthorpe wrote:
>   git://git.kernel.org/pub/scm/linux/kernel/git/jgg/iommufd.git tags/for-joerg

Pulled, thanks Jason and Nicolin.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-11-03 14:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-02 12:51 [GIT PULL iommu] Please pull iommu errno changes Jason Gunthorpe
2022-11-03 14:53 ` Joerg Roedel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).