Re: [PATCH v2 21/22] iommu/tegra241-cmdqv: Add user-space use support

2025-05-01 Thread Pranjal Shrivastava
On Wed, Apr 30, 2025 at 05:54:41PM -0700, Nicolin Chen wrote: > On Wed, Apr 30, 2025 at 03:39:22PM -0700, Nicolin Chen wrote: > > On Wed, Apr 30, 2025 at 09:59:13PM +, Pranjal Shrivastava wrote: > > > > enum iommu_viommu_type { > > > > IOMMU_VIOMMU_TYPE_DEFAULT = 0, > > > > IOM

Re: [PATCH v2 21/22] iommu/tegra241-cmdqv: Add user-space use support

2025-05-01 Thread Pranjal Shrivastava
On Wed, Apr 30, 2025 at 03:39:15PM -0700, Nicolin Chen wrote: > On Wed, Apr 30, 2025 at 09:59:13PM +, Pranjal Shrivastava wrote: > > On Fri, Apr 25, 2025 at 10:58:16PM -0700, Nicolin Chen wrote: > > > The CMDQV HW supports a user-space use for virtualization cases. It allows > > > the VM to iss

Re: [PATCH v2 21/22] iommu/tegra241-cmdqv: Add user-space use support

2025-04-30 Thread Nicolin Chen
On Wed, Apr 30, 2025 at 03:39:22PM -0700, Nicolin Chen wrote: > On Wed, Apr 30, 2025 at 09:59:13PM +, Pranjal Shrivastava wrote: > > > enum iommu_viommu_type { > > > IOMMU_VIOMMU_TYPE_DEFAULT = 0, > > > IOMMU_VIOMMU_TYPE_ARM_SMMUV3 = 1, > > > + IOMMU_VIOMMU_TYPE_TEGRA241_CMDQV = 2, > > > +

Re: [PATCH v2 21/22] iommu/tegra241-cmdqv: Add user-space use support

2025-04-30 Thread Nicolin Chen
On Wed, Apr 30, 2025 at 09:59:13PM +, Pranjal Shrivastava wrote: > On Fri, Apr 25, 2025 at 10:58:16PM -0700, Nicolin Chen wrote: > > The CMDQV HW supports a user-space use for virtualization cases. It allows > > the VM to issue guest-level TLBI or ATC_INV commands directly to the queue > > and

Re: [PATCH v2 21/22] iommu/tegra241-cmdqv: Add user-space use support

2025-04-30 Thread Pranjal Shrivastava
On Fri, Apr 25, 2025 at 10:58:16PM -0700, Nicolin Chen wrote: > The CMDQV HW supports a user-space use for virtualization cases. It allows > the VM to issue guest-level TLBI or ATC_INV commands directly to the queue > and executes them without a VMEXIT, as HW will replace the VMID field in a > TLBI

Re: [PATCH v2 21/22] iommu/tegra241-cmdqv: Add user-space use support

2025-04-29 Thread Nicolin Chen
On Wed, Apr 30, 2025 at 01:17:48AM +0530, ALOK TIWARI wrote: > > + /* > > +* @length must be a power of 2, in range of > > +* [ 32, 1 ^ (idr[1].CMDQS + CMDQ_ENT_SZ_SHIFT) ] > > 2 ^ (idr[1].CMDQS + CMDQ_ENT_SZ_SHIFT) or 1 << idr[1].CMDQS > > > +*/ > > + max_n_shift = FIELD_GET(ID

Re: [PATCH v2 21/22] iommu/tegra241-cmdqv: Add user-space use support

2025-04-29 Thread ALOK TIWARI
Hi Nicolin, On 26-04-2025 11:28, Nicolin Chen wrote: The CMDQV HW supports a user-space use for virtualization cases. It allows the VM to issue guest-level TLBI or ATC_INV commands directly to the queue and executes them without a VMEXIT, as HW will replace the VMID field in a TLBI command and