]> Pileus Git - ~andy/linux/commitdiff
iommu/amd: Don't use 512GB pages
authorJoerg Roedel <joro@8bytes.org>
Sun, 2 Dec 2012 14:35:37 +0000 (15:35 +0100)
committerJoerg Roedel <joro@8bytes.org>
Sun, 2 Dec 2012 15:07:38 +0000 (16:07 +0100)
There is a bug in the hardware that will be triggered when
this page size is used. Make sure this does not happen.

Signed-off-by: Joerg Roedel <joro@8bytes.org>
drivers/iommu/amd_iommu.c

index cb63cc5d94d71d70802a0bbea55575b5b3da5f34..98d74ab564b64114fd63a3f3819d7b957ab4a2da 100644 (file)
  *
  * If at some point we'd like to utilize the IOMMU core's new behavior,
  * we could change this to advertise the real page sizes we support.
+ *
+ * 512GB Pages are not supported due to a hardware bug
  */
-#define AMD_IOMMU_PGSIZES      (~0xFFFUL)
+#define AMD_IOMMU_PGSIZES      ((~0xFFFUL) & ~(2ULL << 38))
 
 static DEFINE_RWLOCK(amd_iommu_devtable_lock);