From: Jason Gunthorpe <jgg@nvidia.com>
To: Nicolin Chen <nicolinc@nvidia.com>, joro@8bytes.org
Cc: will@kernel.org, robin.murphy@arm.com, kevin.tian@intel.com,
quic_jjohnson@quicinc.com, suravee.suthikulpanit@amd.com,
robdclark@gmail.com, dwmw2@infradead.org,
baolu.lu@linux.intel.com, yong.wu@mediatek.com,
matthias.bgg@gmail.com, orsonzhai@gmail.com,
baolin.wang@linux.alibaba.com, zhang.lyra@gmail.com,
thierry.reding@gmail.com, vdumpa@nvidia.com,
jonathanh@nvidia.com, jean-philippe@linaro.org,
tglx@linutronix.de, shameerali.kolothum.thodi@huawei.com,
christophe.jaillet@wanadoo.fr, yangyicong@hisilicon.com,
yangyingliang@huawei.com, quic_saipraka@quicinc.com,
jon@solid-run.com, iommu@lists.linux.dev,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-arm-msm@vger.kernel.org,
linux-mediatek@lists.infradead.org, linux-tegra@vger.kernel.org,
virtualization@lists.linux-foundation.org
Subject: [GIT PULL iommu] Please pull iommu errno changes
Date: Wed, 2 Nov 2022 09:51:56 -0300 [thread overview]
Message-ID: <Y2Jn7Jskqzz95XB4@nvidia.com> (raw)
[-- Attachment #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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: Jason Gunthorpe <jgg@nvidia.com>
To: Nicolin Chen <nicolinc@nvidia.com>, joro@8bytes.org
Cc: quic_saipraka@quicinc.com, yangyicong@hisilicon.com,
linux-tegra@vger.kernel.org, thierry.reding@gmail.com,
will@kernel.org, jean-philippe@linaro.org, zhang.lyra@gmail.com,
jon@solid-run.com, jonathanh@nvidia.com, iommu@lists.linux.dev,
linux-arm-kernel@lists.infradead.org, yangyingliang@huawei.com,
orsonzhai@gmail.com, dwmw2@infradead.org, kevin.tian@intel.com,
linux-arm-msm@vger.kernel.org, christophe.jaillet@wanadoo.fr,
baolin.wang@linux.alibaba.com, matthias.bgg@gmail.com,
tglx@linutronix.de, virtualization@lists.linux-foundation.org,
yong.wu@mediatek.com, robin.murphy@arm.com,
linux-kernel@vger.kernel.org,
shameerali.kolothum.thodi@huawei.com, robdclark@gmail.com,
suravee.suthikulpanit@amd.com,
linux-mediatek@lists.infradead.org, quic_jjohnson@quicinc.com,
baolu.lu@linux.intel.com
Subject: [GIT PULL iommu] Please pull iommu errno changes
Date: Wed, 2 Nov 2022 09:51:56 -0300 [thread overview]
Message-ID: <Y2Jn7Jskqzz95XB4@nvidia.com> (raw)
[-- 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
next reply other threads:[~2022-11-02 12:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-02 12:51 Jason Gunthorpe [this message]
2022-11-02 12:51 ` [GIT PULL iommu] Please pull iommu errno changes Jason Gunthorpe
2022-11-03 14:53 ` Joerg Roedel
2022-11-03 14:53 ` Joerg Roedel
2022-11-03 14:53 ` Joerg Roedel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y2Jn7Jskqzz95XB4@nvidia.com \
--to=jgg@nvidia.com \
--cc=baolin.wang@linux.alibaba.com \
--cc=baolu.lu@linux.intel.com \
--cc=christophe.jaillet@wanadoo.fr \
--cc=dwmw2@infradead.org \
--cc=iommu@lists.linux.dev \
--cc=jean-philippe@linaro.org \
--cc=jon@solid-run.com \
--cc=jonathanh@nvidia.com \
--cc=joro@8bytes.org \
--cc=kevin.tian@intel.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-tegra@vger.kernel.org \
--cc=matthias.bgg@gmail.com \
--cc=nicolinc@nvidia.com \
--cc=orsonzhai@gmail.com \
--cc=quic_jjohnson@quicinc.com \
--cc=quic_saipraka@quicinc.com \
--cc=robdclark@gmail.com \
--cc=robin.murphy@arm.com \
--cc=shameerali.kolothum.thodi@huawei.com \
--cc=suravee.suthikulpanit@amd.com \
--cc=tglx@linutronix.de \
--cc=thierry.reding@gmail.com \
--cc=vdumpa@nvidia.com \
--cc=virtualization@lists.linux-foundation.org \
--cc=will@kernel.org \
--cc=yangyicong@hisilicon.com \
--cc=yangyingliang@huawei.com \
--cc=yong.wu@mediatek.com \
--cc=zhang.lyra@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.