Commit 05f92db9 authored by Joerg Roedel's avatar Joerg Roedel

amd_iommu: un __init functions required for suspend/resume

This patch makes sure that no function required for suspend/resume of
AMD IOMMU driver is thrown away after boot.
Signed-off-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
parent 7d7a110c
...@@ -193,7 +193,7 @@ static inline unsigned long tbl_size(int entry_size) ...@@ -193,7 +193,7 @@ static inline unsigned long tbl_size(int entry_size)
* This function set the exclusion range in the IOMMU. DMA accesses to the * This function set the exclusion range in the IOMMU. DMA accesses to the
* exclusion range are passed through untranslated * exclusion range are passed through untranslated
*/ */
static void __init iommu_set_exclusion_range(struct amd_iommu *iommu) static void iommu_set_exclusion_range(struct amd_iommu *iommu)
{ {
u64 start = iommu->exclusion_start & PAGE_MASK; u64 start = iommu->exclusion_start & PAGE_MASK;
u64 limit = (start + iommu->exclusion_length) & PAGE_MASK; u64 limit = (start + iommu->exclusion_length) & PAGE_MASK;
...@@ -225,7 +225,7 @@ static void __init iommu_set_device_table(struct amd_iommu *iommu) ...@@ -225,7 +225,7 @@ static void __init iommu_set_device_table(struct amd_iommu *iommu)
} }
/* Generic functions to enable/disable certain features of the IOMMU. */ /* Generic functions to enable/disable certain features of the IOMMU. */
static void __init iommu_feature_enable(struct amd_iommu *iommu, u8 bit) static void iommu_feature_enable(struct amd_iommu *iommu, u8 bit)
{ {
u32 ctrl; u32 ctrl;
...@@ -244,7 +244,7 @@ static void __init iommu_feature_disable(struct amd_iommu *iommu, u8 bit) ...@@ -244,7 +244,7 @@ static void __init iommu_feature_disable(struct amd_iommu *iommu, u8 bit)
} }
/* Function to enable the hardware */ /* Function to enable the hardware */
static void __init iommu_enable(struct amd_iommu *iommu) static void iommu_enable(struct amd_iommu *iommu)
{ {
printk(KERN_INFO "AMD IOMMU: Enabling IOMMU at %s cap 0x%hx\n", printk(KERN_INFO "AMD IOMMU: Enabling IOMMU at %s cap 0x%hx\n",
dev_name(&iommu->dev->dev), iommu->cap_ptr); dev_name(&iommu->dev->dev), iommu->cap_ptr);
...@@ -811,7 +811,7 @@ static int __init iommu_setup_msi(struct amd_iommu *iommu) ...@@ -811,7 +811,7 @@ static int __init iommu_setup_msi(struct amd_iommu *iommu)
return 0; return 0;
} }
static int __init iommu_init_msi(struct amd_iommu *iommu) static int iommu_init_msi(struct amd_iommu *iommu)
{ {
if (iommu->int_enabled) if (iommu->int_enabled)
return 0; return 0;
...@@ -936,7 +936,7 @@ static void init_device_table(void) ...@@ -936,7 +936,7 @@ static void init_device_table(void)
* This function finally enables all IOMMUs found in the system after * This function finally enables all IOMMUs found in the system after
* they have been initialized * they have been initialized
*/ */
static void __init enable_iommus(void) static void enable_iommus(void)
{ {
struct amd_iommu *iommu; struct amd_iommu *iommu;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment