diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-12 12:16:56 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-12 12:16:56 -0500 |
commit | a26be149facb22d30cd92cadb26f651d6fe802c9 (patch) | |
tree | c467bd0cae818ef793e9a694b4cd2bdc88d9ff6b /drivers/iommu/amd_iommu.c | |
parent | cdd305454ebd181fa35b648c0921fe7df27d6f3b (diff) | |
parent | a20cc76b9efae10c20123049df361adcd7f0e0b3 (diff) |
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
...
Diffstat (limited to 'drivers/iommu/amd_iommu.c')
-rw-r--r-- | drivers/iommu/amd_iommu.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c index 59de6364a910..48882c126245 100644 --- a/drivers/iommu/amd_iommu.c +++ b/drivers/iommu/amd_iommu.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2007-2010 Advanced Micro Devices, Inc. | 2 | * Copyright (C) 2007-2010 Advanced Micro Devices, Inc. |
3 | * Author: Joerg Roedel <joerg.roedel@amd.com> | 3 | * Author: Joerg Roedel <jroedel@suse.de> |
4 | * Leo Duran <leo.duran@amd.com> | 4 | * Leo Duran <leo.duran@amd.com> |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it | 6 | * This program is free software; you can redistribute it and/or modify it |
@@ -843,10 +843,10 @@ static void build_inv_iommu_pages(struct iommu_cmd *cmd, u64 address, | |||
843 | size_t size, u16 domid, int pde) | 843 | size_t size, u16 domid, int pde) |
844 | { | 844 | { |
845 | u64 pages; | 845 | u64 pages; |
846 | int s; | 846 | bool s; |
847 | 847 | ||
848 | pages = iommu_num_pages(address, size, PAGE_SIZE); | 848 | pages = iommu_num_pages(address, size, PAGE_SIZE); |
849 | s = 0; | 849 | s = false; |
850 | 850 | ||
851 | if (pages > 1) { | 851 | if (pages > 1) { |
852 | /* | 852 | /* |
@@ -854,7 +854,7 @@ static void build_inv_iommu_pages(struct iommu_cmd *cmd, u64 address, | |||
854 | * TLB entries for this domain | 854 | * TLB entries for this domain |
855 | */ | 855 | */ |
856 | address = CMD_INV_IOMMU_ALL_PAGES_ADDRESS; | 856 | address = CMD_INV_IOMMU_ALL_PAGES_ADDRESS; |
857 | s = 1; | 857 | s = true; |
858 | } | 858 | } |
859 | 859 | ||
860 | address &= PAGE_MASK; | 860 | address &= PAGE_MASK; |
@@ -874,10 +874,10 @@ static void build_inv_iotlb_pages(struct iommu_cmd *cmd, u16 devid, int qdep, | |||
874 | u64 address, size_t size) | 874 | u64 address, size_t size) |
875 | { | 875 | { |
876 | u64 pages; | 876 | u64 pages; |
877 | int s; | 877 | bool s; |
878 | 878 | ||
879 | pages = iommu_num_pages(address, size, PAGE_SIZE); | 879 | pages = iommu_num_pages(address, size, PAGE_SIZE); |
880 | s = 0; | 880 | s = false; |
881 | 881 | ||
882 | if (pages > 1) { | 882 | if (pages > 1) { |
883 | /* | 883 | /* |
@@ -885,7 +885,7 @@ static void build_inv_iotlb_pages(struct iommu_cmd *cmd, u16 devid, int qdep, | |||
885 | * TLB entries for this domain | 885 | * TLB entries for this domain |
886 | */ | 886 | */ |
887 | address = CMD_INV_IOMMU_ALL_PAGES_ADDRESS; | 887 | address = CMD_INV_IOMMU_ALL_PAGES_ADDRESS; |
888 | s = 1; | 888 | s = true; |
889 | } | 889 | } |
890 | 890 | ||
891 | address &= PAGE_MASK; | 891 | address &= PAGE_MASK; |