Skip to content

Fix handling of S2 stalls

Mostafa Saleh linux-arm-kernel linux-iommu lkml 4 versions – Applied

Status from this message: Applied to will (for-joerg/arm-smmu/updates), thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 5 repliesApplied
  2. v31 patch 2 repliesSuperseded
  3. v21 patch 9 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches7 repliesSuperseded

Changes in v4 from the cover letter

- Add S2S bit to get_used for stage-2
- Add unit tests for masters with stall enabled

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/2iommu/arm-smmu-v3: Match Stall behaviour for S2drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h+4 -54 replies
2/2iommu/arm-smmu-v3-test: Test masters with stall enableddrivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c+62 -210 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchJason Gunthorpe
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/2] Fix handling of S2 stalls

While debugging something else, I spent hours looking at hexdumps of STEs, CDs and commands while comparing them against the arch specs, where I noticed a minor violation in the driver regarding handling of S2S bit in the STE.

This has been there for ages, so it’s highly unlikely that any HW (if it exists with such features) running Linux is affected.

I don’t have access to HW with stalls so I just tested normal usage and (terminated) translation fault events.

Also, add some unit tests for stall enabled masters.

Mostafa Saleh (2):
iommu/arm-smmu-v3: Match Stall behaviour for S2 iommu/arm-smmu-v3-test: Test masters with stall enabled

 .../iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c  | 83 ++++++++++++++-----
 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c   |  8 +-
 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h   |  1 +
 3 files changed, 66 insertions(+), 26 deletions(-)

v4:
- Add S2S bit to get_used for stage-2
- Add unit tests for masters with stall enabled

v3:
- Set S2S for s2 and not s1 domain
- Ignore ats check

v2:
- Fix index of the STE
- Fix conflict with ATS
- Squash the 2 patches and drop enable_nesting

Signature · 1 line
2.46.0.469.g59c65b2a67-goog