Skip to content

iommu/sun50i: Fix various fixes

Jernej Skrabec linux-arm-kernel linux-iommu linux-sunxi lkml 2 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 1 replyApplied
  2. v15 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- rebase on top of v6.1-rc1
- replace last patch with new one - Implement iotlb_sync_map instead of invalidating each page at each allocation

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/5iommu/sun50i: Fix reset releasedrivers/iommu/sun50i-iommu.c+2 -10 replies
2/5iommu/sun50i: Consider all fault sources for resetdrivers/iommu/sun50i-iommu.c+6 -20 replies
3/5iommu/sun50i: Fix R/W permission checkdrivers/iommu/sun50i-iommu.c+1 -10 replies
4/5iommu/sun50i: Fix flush sizedrivers/iommu/sun50i-iommu.c+1 -10 replies
5/5iommu/sun50i: Implement .iotlb_sync_mapdrivers/iommu/sun50i-iommu.c+73 -00 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/5] iommu/sun50i: Fix various fixes

Testing IOMMU together with video decoder (Cedrus) exposed many bugs in sun50i-iommu driver. This series addresses all issues so video decoder works well with IOMMU.

First two patches address recovery issues in interrupt when either page faults or permission errors were reported. Third patch fixes permission domain assignment. Fourth patch fixes dma sync size. Sometimes sync also touched some other buffers and kernel generated warning in dmesg. Fifth patch fixes issue with syncing PDE and PTE tables. Without it, page faults were randomly generated even with valid iova addresses.

Please take a look.

Best regards,
Jernej

Changes from v1:
- rebase on top of v6.1-rc1
- replace last patch with new one - Implement iotlb_sync_map instead of invalidating each page at each allocation

Jernej Skrabec (5):
iommu/sun50i: Fix reset release iommu/sun50i: Consider all fault sources for reset iommu/sun50i: Fix R/W permission check iommu/sun50i: Fix flush size
iommu/sun50i: Implement .iotlb_sync_map

 drivers/iommu/sun50i-iommu.c | 88 ++++++++++++++++++++++++++++++++++--
 1 file changed, 83 insertions(+), 5 deletions(-)

--
2.38.1