Skip to content

arm-smmu: Misc changes/Calxeda ECX-2000 support

Andreas Herrmann linux-arm-kernel linux-iommu 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9iommu/arm-smmu: Switch to arch_initcall for driver registrationdrivers/iommu/arm-smmu.c+1 -71 reply
1/9iommu/arm-smmu: Switch to arch_initcall for driver registration+0 -01 reply
2/9iommu/arm-smmu: Calculate SMMU_CB_BASE from smmu register valuesdrivers/iommu/arm-smmu.c+15 -21 reply
2/9iommu/arm-smmu: Calculate SMMU_CB_BASE from smmu register values+0 -01 reply
2/9iommu/arm-smmu: Calculate SMMU_CB_BASE from smmu register values+0 -02 replies
3/9ARM: dma-mapping: Always pass proper prot flags to iommu_map()arch/arm/mm/dma-mapping.c+28 -152 replies
4/9iommu/arm-smmu: Check for num_context_irqs > 0 to avoid divide by zero exceptiondrivers/iommu/arm-smmu.c+5 -11 reply
4/9iommu/arm-smmu: Check for num_context_irqs > 0 to avoid divide by zero exception+0 -01 reply
4/9iommu/arm-smmu: Check for num_context_irqs > 0 to avoid divide by zero exception+0 -01 reply
4/9iommu/arm-smmu: Check for num_context_irqs > 0 to avoid divide by zero exception+0 -01 reply
5/9iommu/arm-smmu: Clear global and context bank fault status registersdrivers/iommu/arm-smmu.c+6 -01 reply
5/9iommu/arm-smmu: Clear global and context bank fault status registers+0 -05 replies
6/9iommu/arm-smmu: Support buggy implemenations where all config accesses are securedrivers/iommu/arm-smmu.c+49 -151 reply
6/9iommu/arm-smmu: Support buggy implemenations where all config accesses are secure+0 -00 replies
7/9iommu/arm-smmu: Add function that conditionally isolates all masters of all SMMUsdrivers/iommu/arm-smmu.c+101 -01 reply
7/9iommu/arm-smmu: Add function that conditionally isolates all masters of all SMMUs+0 -01 reply
8/9iommu/arm-smmu: Introduce a default fault handlerdrivers/iommu/arm-smmu.c+10 -01 reply
8/9iommu/arm-smmu: Introduce a default fault handler+0 -01 reply
9/9ARM: dts: Add nodes for SMMUs on Calxeda ECX-2000arch/arm/boot/dts/ecx-2000.dts arch/arm/boot/dts/ecx-common.dtsi+48 -50 replies

Reviews trailers per patch

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

PatchWill Deacon
1/9
1/9
2/9
2/9
2/9
3/9A-b
4/9
4/9
4/9
4/9
5/9
5/9
6/9
6/9
7/9
7/9
8/9
8/9
9/9

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

Read the v1 thread

Cover letter [PATCH 0/9] arm-smmu: Misc changes/Calxeda ECX-2000 support

Hi,

Following a new patch set to fix some issues, that I've seen when using arm-smmu driver with MMU-400 and to enable support for SMMUs on Calxeda ECX-2000.

Patches are rebased on Joerg's latest joro/next branch (as of today). I hope that I have addressed all (most) comments from the last submission for following patches:

[PATCH 1/9] iommu/arm-smmu: Switch to arch_initcall for driver ... [PATCH 2/9] iommu/arm-smmu: Calculate SMMU_CB_BASE from smmu ... [PATCH 3/9] ARM: dma-mapping: Always pass proper prot flags to ... [PATCH 4/9] iommu/arm-smmu: Check for num_context_irqs > 0 to avoid ... [PATCH 5/9] iommu/arm-smmu: Clear global and context bank fault ...

This time I've added patches for SMMU support on Calxeda ECX-2000. Unfortunately this requires a quirk in the arm-smmu driver (and that is the ugly part):

[PATCH 6/9] iommu/arm-smmu: Support buggy implemenations where all
config accesses are secure

I still kept the patch (slightly modified) to introduce a function to isolate devices. I also merged the command line stuff into that patch because it mainly belongs to it:

[PATCH 7/9] iommu/arm-smmu: Add function that conditionally isolates
all masters of all SMMUs

(Maybe it's better to use a bus notifier to attach/detach devices instead. But I just started to look into this and code is not yet ready+tested.)

Also I think we need a default handler for context faults Otherwise we won't notice when something goes wrong:

[PATCH 8/9] iommu/arm-smmu: Introduce a default fault handler

And finally here's the dts-adaption to enable SMMUs

[PATCH 9/9] ARM: dts: Add nodes for SMMUs on Calxeda ECX-2000

Would be nice if the noncontroversial patches (1-5?) could be applied. (Esp. in case there are longer discussions about the rest.)

Comments welcome.

Thanks,

Andreas