linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Nicolin Chen <nicolinc@nvidia.com>
To: <robin.murphy@arm.com>, <joro@8bytes.org>, <afael@kernel.org>,
	<bhelgaas@google.com>, <alex@shazbot.org>, <jgg@nvidia.com>,
	<kevin.tian@intel.com>
Cc: <will@kernel.org>, <lenb@kernel.org>, <baolu.lu@linux.intel.com>,
	<linux-arm-kernel@lists.infradead.org>, <iommu@lists.linux.dev>,
	<linux-kernel@vger.kernel.org>, <linux-acpi@vger.kernel.org>,
	<linux-pci@vger.kernel.org>, <kvm@vger.kernel.org>,
	<patches@lists.linux.dev>, <pjaroszynski@nvidia.com>,
	<vsethi@nvidia.com>, <helgaas@kernel.org>, <etzhao1900@gmail.com>
Subject: Re: [PATCH v6 4/5] iommu: Introduce pci_dev_reset_iommu_prepare/done()
Date: Tue, 18 Nov 2025 18:56:33 -0800	[thread overview]
Message-ID: <aR0x4b7fN22K36jR@Asurada-Nvidia> (raw)
In-Reply-To: <246a652600f2ba510354a1a670fa1177280528be.1763512374.git.nicolinc@nvidia.com>

On Tue, Nov 18, 2025 at 04:52:10PM -0800, Nicolin Chen wrote:
> +/* PCI device reset functions */
> +int pci_dev_reset_iommu_prepare(struct pci_dev *pdev);
> +void pci_dev_reset_iommu_done(struct pci_dev *pdev);
>  #else /* CONFIG_IOMMU_API */
>  
>  struct iommu_ops {};
> @@ -1509,6 +1513,15 @@ static inline ioasid_t iommu_alloc_global_pasid(struct device *dev)
>  }
>  
>  static inline void iommu_free_global_pasid(ioasid_t pasid) {}
> +
> +static inline int pci_dev_reset_iommu_prepare(struct device *dev)
> +{
> +	return 0;
> +}
> +
> +static inline void pci_dev_reset_iommu_done(struct device *dev)

Ah, I forgot to update these two using struct pci_dev..

Will fix this in v7.

Nicolin


  reply	other threads:[~2025-11-19  2:57 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-19  0:52 [PATCH v6 0/5] Disable ATS via iommu during PCI resets Nicolin Chen
2025-11-19  0:52 ` [PATCH v6 1/5] iommu: Lock group->mutex in iommu_deferred_attach() Nicolin Chen
2025-11-19  0:52 ` [PATCH v6 2/5] iommu: Tidy domain for iommu_setup_dma_ops() Nicolin Chen
2025-11-19  0:52 ` [PATCH v6 3/5] iommu: Add iommu_driver_get_domain_for_dev() helper Nicolin Chen
2025-11-19  0:52 ` [PATCH v6 4/5] iommu: Introduce pci_dev_reset_iommu_prepare/done() Nicolin Chen
2025-11-19  2:56   ` Nicolin Chen [this message]
2025-11-21  7:59   ` Tian, Kevin
2025-11-19  0:52 ` [PATCH v6 5/5] PCI: Suspend iommu function prior to resetting a device Nicolin Chen
2025-11-19  2:29   ` kernel test robot
2025-11-19  3:03   ` kernel test robot
2025-11-21  7:59   ` Tian, Kevin

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=aR0x4b7fN22K36jR@Asurada-Nvidia \
    --to=nicolinc@nvidia.com \
    --cc=afael@kernel.org \
    --cc=alex@shazbot.org \
    --cc=baolu.lu@linux.intel.com \
    --cc=bhelgaas@google.com \
    --cc=etzhao1900@gmail.com \
    --cc=helgaas@kernel.org \
    --cc=iommu@lists.linux.dev \
    --cc=jgg@nvidia.com \
    --cc=joro@8bytes.org \
    --cc=kevin.tian@intel.com \
    --cc=kvm@vger.kernel.org \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=patches@lists.linux.dev \
    --cc=pjaroszynski@nvidia.com \
    --cc=robin.murphy@arm.com \
    --cc=vsethi@nvidia.com \
    --cc=will@kernel.org \
    /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 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).