All of lore.kernel.org
 help / color / mirror / Atom feed
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: Re: [PATCH v7 0/5] Define EINVAL as device/domain incompatibility
Date: Mon, 17 Oct 2022 20:54:53 -0300	[thread overview]
Message-ID: <Y03rTb542P37J+EN@nvidia.com> (raw)
In-Reply-To: <cover.1666042872.git.nicolinc@nvidia.com>

On Mon, Oct 17, 2022 at 04:00:29PM -0700, Nicolin Chen wrote:
> 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.
> 
> Although it might be ideal to merge the previous VFIO series together with
> this series, given the number of new changes, the review in the IOMMU list
> might need a couple of rounds to finalize. Also, considering that v6.0 is
> at rc5 now, perhaps we could merge this IOMMU series and the VFIO one in
> different cycles to avoid merge conflicts. If there's less concern for it,
> I can respin the finalized version of this series with the previous VFIO
> one to merge together into the VFIO tree.
> 
> This series is also available on Github:
> https://github.com/nicolinc/iommufd/commits/iommu_attach_dev-v7

Since it didn't make v6.1-rc1, I'd like this on a PR as we have two
trees that will need it now.

Joerg I can make this into a formal signed PR if that is how you'd
like things?

Thanks,
Jason

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: Re: [PATCH v7 0/5] Define EINVAL as device/domain incompatibility
Date: Mon, 17 Oct 2022 20:54:53 -0300	[thread overview]
Message-ID: <Y03rTb542P37J+EN@nvidia.com> (raw)
In-Reply-To: <cover.1666042872.git.nicolinc@nvidia.com>

On Mon, Oct 17, 2022 at 04:00:29PM -0700, Nicolin Chen wrote:
> 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.
> 
> Although it might be ideal to merge the previous VFIO series together with
> this series, given the number of new changes, the review in the IOMMU list
> might need a couple of rounds to finalize. Also, considering that v6.0 is
> at rc5 now, perhaps we could merge this IOMMU series and the VFIO one in
> different cycles to avoid merge conflicts. If there's less concern for it,
> I can respin the finalized version of this series with the previous VFIO
> one to merge together into the VFIO tree.
> 
> This series is also available on Github:
> https://github.com/nicolinc/iommufd/commits/iommu_attach_dev-v7

Since it didn't make v6.1-rc1, I'd like this on a PR as we have two
trees that will need it now.

Joerg I can make this into a formal signed PR if that is how you'd
like things?

Thanks,
Jason

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

  parent reply	other threads:[~2022-10-17 23:55 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-17 23:00 [PATCH v7 0/5] Define EINVAL as device/domain incompatibility Nicolin Chen
2022-10-17 23:00 ` Nicolin Chen
2022-10-17 23:00 ` [PATCH v7 1/5] iommu/amd: Drop unnecessary checks in amd_iommu_attach_device() Nicolin Chen
2022-10-17 23:01 ` [PATCH v7 2/5] iommu: Add return value rules to attach_dev op and APIs Nicolin Chen
2022-10-17 23:01   ` Nicolin Chen
2022-10-18  1:20   ` Baolu Lu
2022-10-18  1:20     ` Baolu Lu
2022-10-17 23:02 ` [PATCH v7 3/5] iommu: Regulate EINVAL in ->attach_dev callback functions Nicolin Chen
2022-10-17 23:02   ` Nicolin Chen
2022-10-17 23:02 ` [PATCH v7 4/5] iommu: Use EINVAL for incompatible device/domain in ->attach_dev Nicolin Chen
2022-10-17 23:02   ` Nicolin Chen
2022-11-07 15:26   ` Will Deacon
2022-11-07 15:26     ` Will Deacon
2022-11-07 15:26     ` Will Deacon
2022-11-08  0:14     ` Nicolin Chen
2022-11-08  0:14       ` Nicolin Chen
2022-11-08 13:20       ` Will Deacon
2022-11-08 13:20         ` Will Deacon
2022-11-08 13:20         ` Will Deacon
2022-11-08 13:23         ` Jason Gunthorpe
2022-11-08 13:23           ` Jason Gunthorpe
2022-10-17 23:02 ` [PATCH v7 5/5] iommu: Propagate return value in ->attach_dev callback functions Nicolin Chen
2022-10-17 23:02   ` Nicolin Chen
2022-10-17 23:54 ` Jason Gunthorpe [this message]
2022-10-17 23:54   ` [PATCH v7 0/5] Define EINVAL as device/domain incompatibility Jason Gunthorpe

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=Y03rTb542P37J+EN@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.