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

From: Nicolin Chen
Date: Thu May 01 2025 - 19:10:00 EST


On Thu, May 01, 2025 at 04:01:28PM -0700, Nicolin Chen wrote:
> +static void tegra241_vcmdq_hw_flush_timeout(struct tegra241_vcmdq *vcmdq)
> +{
> + struct arm_smmu_device *smmu = &vcmdq->cmdqv->smmu;
> + u64 cmd_sync[CMDQ_ENT_DWORDS] = {};
> +
> + cmd_sync[0] = FIELD_PREP(CMDQ_0_OP, CMDQ_OP_CMD_SYNC) |
> + FIELD_PREP(CMDQ_SYNC_0_CS, CMDQ_SYNC_0_CS_NONE);
> +
> + /*
> + * It does not hurt to insert another CMD_SYNC, taking adavantage of the

Oh, ignore the "adavantage". Will fix in the next version.

Nicolin