[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260126210640.GZ1134360@nvidia.com>
Date: Mon, 26 Jan 2026 17:06:40 -0400
From: Jason Gunthorpe <jgg@...dia.com>
To: Nicolin Chen <nicolinc@...dia.com>
Cc: will@...nel.org, robin.murphy@....com, joro@...tes.org, jpb@...nel.org,
praan@...gle.com, miko.lenczewski@....com,
linux-arm-kernel@...ts.infradead.org, iommu@...ts.linux.dev,
linux-kernel@...r.kernel.org, patches@...ts.linux.dev
Subject: Re: [PATCH v2 04/10] iommu/arm-smmu-v3: Allocate IOTLB cache tag if
no id to reuse
On Wed, Jan 21, 2026 at 05:24:22PM -0800, Nicolin Chen wrote:
> @@ -3220,6 +3241,9 @@ arm_smmu_master_build_inv(struct arm_smmu_master *master,
> break;
> }
>
> + /* Set a default users counter */
> + refcount_set(&cur->users, 1);
I think abusing users here is a little too hard to read..
Can we just keep track in the state somehow with a flag?
Or maybe union in a "bool needs_free" that is for the on-stack version
of this structure?
Jason
Powered by blists - more mailing lists