[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aJ+A6gc7tdS4ETbG@Asurada-Nvidia>
Date: Fri, 15 Aug 2025 11:48:10 -0700
From: Nicolin Chen <nicolinc@...dia.com>
To: Baolu Lu <baolu.lu@...ux.intel.com>
CC: <robin.murphy@....com>, <joro@...tes.org>, <bhelgaas@...gle.com>,
<jgg@...dia.com>, <will@...nel.org>, <robin.clark@....qualcomm.com>,
<yong.wu@...iatek.com>, <matthias.bgg@...il.com>,
<angelogioacchino.delregno@...labora.com>, <thierry.reding@...il.com>,
<vdumpa@...dia.com>, <jonathanh@...dia.com>, <rafael@...nel.org>,
<lenb@...nel.org>, <kevin.tian@...el.com>, <yi.l.liu@...el.com>,
<linux-arm-kernel@...ts.infradead.org>, <iommu@...ts.linux.dev>,
<linux-kernel@...r.kernel.org>, <linux-arm-msm@...r.kernel.org>,
<linux-mediatek@...ts.infradead.org>, <linux-tegra@...r.kernel.org>,
<linux-acpi@...r.kernel.org>, <linux-pci@...r.kernel.org>,
<patches@...ts.linux.dev>, <pjaroszynski@...dia.com>, <vsethi@...dia.com>,
<helgaas@...nel.org>, <etzhao1900@...il.com>
Subject: Re: [PATCH v3 3/5] iommu: Add iommu_get_domain_for_dev_locked()
helper
On Fri, Aug 15, 2025 at 01:28:02PM +0800, Baolu Lu wrote:
> On 8/12/25 06:59, Nicolin Chen wrote:
> Given that iommu_group->mutex is transparent to the iommu driver, how
> about
>
> /*
> * Called only by iommu drivers in the callback context where
> * group->mutex has already been held by the core.
> */
> struct iommu_domain *iommu_get_domain_for_dev_internal(struct device *dev)
> {
> ...
> lockdep_assert_held(&group->mutex);
> ...
> }
I thought about the "_internal" tag, but didn't pick that because
we seem to use that for an internal function inside iommu.c?
I don't have a problem using that though, as it can be noted like
like your writing.
Thanks
Nicolin
Powered by blists - more mailing lists