Skip to content

Prepare for ECMDQ support

Zhen Lei linux-arm-kernel linux-iommu lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 0 repliesNew
  2. v14 patches 9 repliesApplied

Changes in v2 from the cover letter

1. Stop pre-zeroing batch commands. Patch 1 is modified. Other patches remain unchanged. Before:
struct arm_smmu_cmdq_batch cmds = {};

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4iommu/arm-smmu-v3: Use command queue batching helpers to improve performancedrivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c+4 -20 replies
2/4iommu/arm-smmu-v3: Add and use static helper function arm_smmu_cmdq_issue_cmd_with_sync()drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c+19 -160 replies
3/4iommu/arm-smmu-v3: Add and use static helper function arm_smmu_get_cmdq()drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c+13 -90 replies
4/4iommu/arm-smmu-v3: Extract reusable function __arm_smmu_cmdq_skip_err()drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c+7 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/4] Prepare for ECMDQ support

v1 --> v2:
1. Stop pre-zeroing batch commands. Patch 1 is modified. Other patches remain unchanged. Before:
struct arm_smmu_cmdq_batch cmds = {};

   After:
   struct arm_smmu_cmdq_batch cmds;
   cmds.num = 0;

RFC --> v1
1. Resend the patches for ECMDQ preparation and remove the patches for ECMDQ implementation.
2. Patch 2 is modified. Other patches remain unchanged.
1) Add static helper __arm_smmu_cmdq_issue_cmd(), and make arm_smmu_cmdq_issue_cmd() and arm_smmu_cmdq_issue_cmd_with_sync() implement based on it.
2) Remove unused arm_smmu_cmdq_issue_sync().

RFC:
https://www.spinics.net/lists/arm-kernel/msg904879.html

Zhen Lei (4):
iommu/arm-smmu-v3: Use command queue batching helpers to improve
performance
iommu/arm-smmu-v3: Add and use static helper function
arm_smmu_cmdq_issue_cmd_with_sync()
iommu/arm-smmu-v3: Add and use static helper function

    arm_smmu_get_cmdq()
  iommu/arm-smmu-v3: Extract reusable function
    __arm_smmu_cmdq_skip_err()
 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 72 ++++++++++++---------
 1 file changed, 43 insertions(+), 29 deletions(-)
Signature · 1 line
2.26.0.106.g9fadedd