From: Joerg Roedel Date: Sun, 2 Dec 2012 14:35:37 +0000 (+0100) Subject: iommu/amd: Don't use 512GB pages X-Git-Tag: v3.8-rc1~25^2^3~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=954e3dd8308501bb00cae4ed655968282dc65314;p=platform%2Fupstream%2Fkernel-adaptation-pc.git iommu/amd: Don't use 512GB pages 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 --- diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c index cb63cc5..98d74ab 100644 --- a/drivers/iommu/amd_iommu.c +++ b/drivers/iommu/amd_iommu.c @@ -66,8 +66,10 @@ * * 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);