summaryrefslogtreecommitdiffstats
path: root/kernel/ksysfs.c
diff options
context:
space:
mode:
authorChris Wright <chrisw@sous-sol.org>2011-05-28 20:15:02 +0200
committerDavid Woodhouse <David.Woodhouse@intel.com>2011-06-01 13:47:34 +0200
commit8fcc5372fbac085199d84a880503ed67aba3fe49 (patch)
treeaab84e5ac18fa8028efa49e2cc47a5b97d873916 /kernel/ksysfs.c
parentintel-iommu: Only unlink device domains from iommu (diff)
downloadlinux-8fcc5372fbac085199d84a880503ed67aba3fe49.tar.xz
linux-8fcc5372fbac085199d84a880503ed67aba3fe49.zip
intel-iommu: Check for identity mapping candidate using system dma mask
The identity mapping code appears to make the assumption that if the devices dma_mask is greater than 32bits the device can use identity mapping. But that is not true: take the case where we have a 40bit device in a 44bit architecture. The device can potentially receive a physical address that it will truncate and cause incorrect addresses to be used. Instead check to see if the device's dma_mask is large enough to address the system's dma_mask. Signed-off-by: Mike Travis <travis@sgi.com> Reviewed-by: Mike Habeck <habeck@sgi.com> Cc: stable@kernel.org Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'kernel/ksysfs.c')
0 files changed, 0 insertions, 0 deletions