aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2008-08-14 13:55:15 -0400
committerIngo Molnar <mingo@elte.hu>2008-08-15 07:56:46 -0400
commit519c31bacf78a969efa8d2e55ed8862848f28590 (patch)
treebbeb4cd9f810536beb3bb1c5e6a827fa35a37633 /include/asm-x86
parentb635acec48bcaa9183fcbf4e3955616b0d4119b5 (diff)
x86, AMD IOMMU: use status bit instead of memory write-back for completion wait
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86')
-rw-r--r--include/asm-x86/amd_iommu_types.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-x86/amd_iommu_types.h b/include/asm-x86/amd_iommu_types.h
index 22aa58ca1991..32543229db76 100644
--- a/include/asm-x86/amd_iommu_types.h
+++ b/include/asm-x86/amd_iommu_types.h
@@ -69,6 +69,9 @@
69#define MMIO_EVT_TAIL_OFFSET 0x2018 69#define MMIO_EVT_TAIL_OFFSET 0x2018
70#define MMIO_STATUS_OFFSET 0x2020 70#define MMIO_STATUS_OFFSET 0x2020
71 71
72/* MMIO status bits */
73#define MMIO_STATUS_COM_WAIT_INT_MASK 0x04
74
72/* feature control bits */ 75/* feature control bits */
73#define CONTROL_IOMMU_EN 0x00ULL 76#define CONTROL_IOMMU_EN 0x00ULL
74#define CONTROL_HT_TUN_EN 0x01ULL 77#define CONTROL_HT_TUN_EN 0x01ULL
@@ -89,6 +92,7 @@
89#define CMD_INV_IOMMU_PAGES 0x03 92#define CMD_INV_IOMMU_PAGES 0x03
90 93
91#define CMD_COMPL_WAIT_STORE_MASK 0x01 94#define CMD_COMPL_WAIT_STORE_MASK 0x01
95#define CMD_COMPL_WAIT_INT_MASK 0x02
92#define CMD_INV_IOMMU_PAGES_SIZE_MASK 0x01 96#define CMD_INV_IOMMU_PAGES_SIZE_MASK 0x01
93#define CMD_INV_IOMMU_PAGES_PDE_MASK 0x02 97#define CMD_INV_IOMMU_PAGES_PDE_MASK 0x02
94 98