diff options
| author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2010-08-26 13:58:02 -0400 |
|---|---|---|
| committer | H. Peter Anvin <hpa@linux.intel.com> | 2010-08-26 18:14:15 -0400 |
| commit | d2aa232f3d0b5a3e22f91b736fe68eddcf0d5ea3 (patch) | |
| tree | 56822efda2c01f65add81e30674000fa15314720 | |
| parent | 5cb3a267939a223eb84692d229569d2ef493d7ca (diff) | |
x86, calgary: Make Calgary IOMMU use IOMMU_INIT_* macros.
We utilize the IOMMU_INIT macros to create this dependency:
[pci_xen_swiotlb_detect]
|
[pci_swiotlb_detect_override]
|
[pci_swiotlb_detect_4gb]
|
[detect_calgary]
Meaning that 'detect_calgary' is going to be called after
'pci_swiotlb_detect'.
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
LKML-Reference: <1282845485-8991-8-git-send-email-konrad.wilk@oracle.com>
CC: Muli Ben-Yehuda <muli@il.ibm.com>
CC: "Jon D. Mason" <jdmason@kudzu.us>
CC: "Darrick J. Wong" <djwong@us.ibm.com>
CC: Fujita Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| -rw-r--r-- | arch/x86/kernel/pci-calgary_64.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kernel/pci-calgary_64.c b/arch/x86/kernel/pci-calgary_64.c index 28c6b389fee6..f56a117cef68 100644 --- a/arch/x86/kernel/pci-calgary_64.c +++ b/arch/x86/kernel/pci-calgary_64.c | |||
| @@ -47,6 +47,7 @@ | |||
| 47 | #include <asm/rio.h> | 47 | #include <asm/rio.h> |
| 48 | #include <asm/bios_ebda.h> | 48 | #include <asm/bios_ebda.h> |
| 49 | #include <asm/x86_init.h> | 49 | #include <asm/x86_init.h> |
| 50 | #include <asm/iommu_table.h> | ||
| 50 | 51 | ||
| 51 | #ifdef CONFIG_CALGARY_IOMMU_ENABLED_BY_DEFAULT | 52 | #ifdef CONFIG_CALGARY_IOMMU_ENABLED_BY_DEFAULT |
| 52 | int use_calgary __read_mostly = 1; | 53 | int use_calgary __read_mostly = 1; |
| @@ -1595,3 +1596,5 @@ static int __init calgary_fixup_tce_spaces(void) | |||
| 1595 | * and before device_initcall. | 1596 | * and before device_initcall. |
| 1596 | */ | 1597 | */ |
| 1597 | rootfs_initcall(calgary_fixup_tce_spaces); | 1598 | rootfs_initcall(calgary_fixup_tce_spaces); |
| 1599 | |||
| 1600 | IOMMU_INIT_POST(detect_calgary); | ||
