diff options
| author | Nicolin Chen <nicolinc@nvidia.com> | 2026-07-26 08:19:01 +0000 |
|---|---|---|
| committer | Will Deacon <will@kernel.org> | 2026-07-28 09:49:46 +0000 |
| commit | 097bf4a02f2df3e4ea8729664df436d0fe914ea5 (patch) | |
| tree | 6d38eb1feb0ebaf08d5e9755ee1030196cd60fea /tools/perf/scripts | |
| parent | 9ff145a25c5c8a26b06ef7cf558fb536b18bba6d (diff) | |
iommu/arm-smmu-v3: Factor out CMDQ batch force-sync conditions
arm_smmu_cmdq_batch_add_cmd_p() carries two distinct reasons for
flushing the current batch with a CMD_SYNC before appending the
new command:
- The batch's pre-assigned cmdq does not support the new command.
- The Arm erratum 2812531 workaround (ARM_SMMU_OPT_CMDQ_FORCE_SYNC)
forces a SYNC at one entry before the batch is full.
Lift those checks into a new arm_smmu_cmdq_batch_force_sync() helper
so that adding another force-sync condition becomes a one-line
addition. No functional change.
Signed-off-by: Nicolin Chen <nicolinc@nvidia.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Ashish Mhetre <amhetre@nvidia.com>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions
