diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2008-10-30 17:43:57 +0100 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2008-10-30 17:50:14 +0100 |
commit | ae9b9403644f3ecc76867af042e7e1cfd5c099d0 (patch) | |
tree | f4c48930ef4da0cfa6e7fd4f83f2499b820b8511 /arch/x86/kernel/amd_iommu.c | |
parent | 1e19b16a30c34c042f1eaa23db4c99bfad1dac0e (diff) | |
download | blackbird-op-linux-ae9b9403644f3ecc76867af042e7e1cfd5c099d0.tar.gz blackbird-op-linux-ae9b9403644f3ecc76867af042e7e1cfd5c099d0.zip |
AMD IOMMU: fix detection of NP capable IOMMUs
This patch changes the code to use IOMMU_CAP_NPCACHE as a shift and not
as a mask.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'arch/x86/kernel/amd_iommu.c')
-rw-r--r-- | arch/x86/kernel/amd_iommu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c index 3b346c6f5514..38e88d40ab10 100644 --- a/arch/x86/kernel/amd_iommu.c +++ b/arch/x86/kernel/amd_iommu.c @@ -50,7 +50,7 @@ static int dma_ops_unity_map(struct dma_ops_domain *dma_dom, /* returns !0 if the IOMMU is caching non-present entries in its TLB */ static int iommu_has_npcache(struct amd_iommu *iommu) { - return iommu->cap & IOMMU_CAP_NPCACHE; + return iommu->cap & (1UL << IOMMU_CAP_NPCACHE); } /**************************************************************************** |