summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/amd_iommu_types.h
diff options
context:
space:
mode:
authorChris Wright2010-04-03 03:27:53 +0200
committerJoerg Roedel2010-04-07 11:51:15 +0200
commit549c90dc9a6d659e792b2a42a0930c7da015ea4a (patch)
treee0d0115631aa40eb45b58fb24bdcd399d2e17e47 /arch/x86/include/asm/amd_iommu_types.h
parentx86/amd-iommu: enable iommu before attaching devices (diff)
downloadkernel-qcow2-linux-549c90dc9a6d659e792b2a42a0930c7da015ea4a.tar.gz
kernel-qcow2-linux-549c90dc9a6d659e792b2a42a0930c7da015ea4a.tar.xz
kernel-qcow2-linux-549c90dc9a6d659e792b2a42a0930c7da015ea4a.zip
x86/amd-iommu: warn when issuing command to uninitialized cmd buffer
To catch future potential issues we can add a warning whenever we issue a command before the command buffer is fully initialized. Signed-off-by: Chris Wright <chrisw@sous-sol.org> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'arch/x86/include/asm/amd_iommu_types.h')
-rw-r--r--arch/x86/include/asm/amd_iommu_types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/amd_iommu_types.h b/arch/x86/include/asm/amd_iommu_types.h
index 5e46e78f3b1b..86a0ff0aeac7 100644
--- a/arch/x86/include/asm/amd_iommu_types.h
+++ b/arch/x86/include/asm/amd_iommu_types.h
@@ -141,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)