-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'iommu-updates-v3.20' of git://git.kernel.org/pub/scm/linux…
…/kernel/git/joro/iommu Pull IOMMU updates from Joerg Roedel: "This time with: - Generic page-table framework for ARM IOMMUs using the LPAE page-table format, ARM-SMMU and Renesas IPMMU make use of it already. - Break out the IO virtual address allocator from the Intel IOMMU so that it can be used by other DMA-API implementations too. The first user will be the ARM64 common DMA-API implementation for IOMMUs - Device tree support for Renesas IPMMU - Various fixes and cleanups all over the place" * tag 'iommu-updates-v3.20' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu: (36 commits) iommu/amd: Convert non-returned local variable to boolean when relevant iommu: Update my email address iommu/amd: Use wait_event in put_pasid_state_wait iommu/amd: Fix amd_iommu_free_device() iommu/arm-smmu: Avoid build warning iommu/fsl: Various cleanups iommu/fsl: Use %pa to print phys_addr_t iommu/omap: Print phys_addr_t using %pa iommu: Make more drivers depend on COMPILE_TEST iommu/ipmmu-vmsa: Fix IOMMU lookup when multiple IOMMUs are registered iommu: Disable on !MMU builds iommu/fsl: Remove unused fsl_of_pamu_ids[] iommu/fsl: Fix section mismatch iommu/ipmmu-vmsa: Use the ARM LPAE page table allocator iommu: Fix trace_map() to report original iova and original size iommu/arm-smmu: add support for iova_to_phys through ATS1PR iopoll: Introduce memory-mapped IO polling macros iommu/arm-smmu: don't touch the secure STLBIALL register iommu/arm-smmu: make use of generic LPAE allocator iommu: io-pgtable-arm: add non-secure quirk ...
- Loading branch information
Showing
28 changed files
with
2,239 additions
and
1,492 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
* Renesas VMSA-Compatible IOMMU | ||
|
||
The IPMMU is an IOMMU implementation compatible with the ARM VMSA page tables. | ||
It provides address translation for bus masters outside of the CPU, each | ||
connected to the IPMMU through a port called micro-TLB. | ||
|
||
|
||
Required Properties: | ||
|
||
- compatible: Must contain "renesas,ipmmu-vmsa". | ||
- reg: Base address and size of the IPMMU registers. | ||
- interrupts: Specifiers for the MMU fault interrupts. For instances that | ||
support secure mode two interrupts must be specified, for non-secure and | ||
secure mode, in that order. For instances that don't support secure mode a | ||
single interrupt must be specified. | ||
|
||
- #iommu-cells: Must be 1. | ||
|
||
Each bus master connected to an IPMMU must reference the IPMMU in its device | ||
node with the following property: | ||
|
||
- iommus: A reference to the IPMMU in two cells. The first cell is a phandle | ||
to the IPMMU and the second cell the number of the micro-TLB that the | ||
device is connected to. | ||
|
||
|
||
Example: R8A7791 IPMMU-MX and VSP1-D0 bus master | ||
|
||
ipmmu_mx: mmu@fe951000 { | ||
compatible = "renasas,ipmmu-vmsa"; | ||
reg = <0 0xfe951000 0 0x1000>; | ||
interrupts = <0 222 IRQ_TYPE_LEVEL_HIGH>, | ||
<0 221 IRQ_TYPE_LEVEL_HIGH>; | ||
#iommu-cells = <1>; | ||
}; | ||
|
||
vsp1@fe928000 { | ||
... | ||
iommus = <&ipmmu_mx 13>; | ||
... | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -350,7 +350,6 @@ config ARM64_VA_BITS_42 | |
|
||
config ARM64_VA_BITS_48 | ||
bool "48-bit" | ||
depends on !ARM_SMMU | ||
|
||
endchoice | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.