diff options
author | Ingo Molnar <mingo@elte.hu> | 2010-04-13 13:24:54 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-04-13 13:24:54 +0200 |
commit | 2b2f862ee6ef8ae8f913fee6af2112c5ffeedf94 (patch) | |
tree | 06a89df37436f9902a37800e05541880ba3aa603 /arch/x86/include | |
parent | Linux 2.6.34-rc4 (diff) | |
parent | x86/gart: Disable GART explicitly before initialization (diff) | |
download | linux-2b2f862ee6ef8ae8f913fee6af2112c5ffeedf94.tar.xz linux-2b2f862ee6ef8ae8f913fee6af2112c5ffeedf94.zip |
Merge branch 'iommu/fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/linux-2.6-iommu into x86/urgent
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/amd_iommu_types.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/include/asm/amd_iommu_types.h b/arch/x86/include/asm/amd_iommu_types.h index ba19ad4c47d0..86a0ff0aeac7 100644 --- a/arch/x86/include/asm/amd_iommu_types.h +++ b/arch/x86/include/asm/amd_iommu_types.h @@ -21,6 +21,7 @@ #define _ASM_X86_AMD_IOMMU_TYPES_H #include <linux/types.h> +#include <linux/mutex.h> #include <linux/list.h> #include <linux/spinlock.h> @@ -140,6 +141,7 @@ /* constants to configure the command buffer */ #define CMD_BUFFER_SIZE 8192 +#define CMD_BUFFER_UNINITIALIZED 1 #define CMD_BUFFER_ENTRIES 512 #define MMIO_CMD_SIZE_SHIFT 56 #define MMIO_CMD_SIZE_512 (0x9ULL << MMIO_CMD_SIZE_SHIFT) @@ -237,6 +239,7 @@ struct protection_domain { struct list_head list; /* for list of all protection domains */ struct list_head dev_list; /* List of all devices in this domain */ spinlock_t lock; /* mostly used to lock the page table*/ + struct mutex api_lock; /* protect page tables in the iommu-api path */ u16 id; /* the domain id written to the device table */ int mode; /* paging mode (0-6 levels) */ u64 *pt_root; /* page table root pointer */ |