From: Fenghua Yu Date: Tue, 4 Aug 2009 22:09:37 +0000 (-0700) Subject: intel-iommu: Correct sglist size calculation. X-Git-Tag: v2.6.31-rc6~43^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f532959b77e5e567c84c914cb7c7b07d2582448b;p=pandora-kernel.git intel-iommu: Correct sglist size calculation. In domain_sg_mapping(), use aligned_nrpages() instead of hand-coded rounding code for calculating the size of each sg elem. This means that on IA64 we correctly round up to the MM page size, not just to the VT-d page size. Also remove the incorrect mm_to_dma_pfn() when intel_map_sg() calls domain_sg_mapping() -- the 'size' variable is in VT-d pages already. Signed-off-by: Fenghua Yu Signed-off-by: David Woodhouse --- Reading git-diff-tree failed