summaryrefslogtreecommitdiff
path: root/drivers/pci/access.c
diff options
context:
space:
mode:
authorZhao, Yu <yu.zhao@intel.com>2009-02-13 12:55:49 +0300
committerDavid Woodhouse <David.Woodhouse@intel.com>2009-03-25 19:03:49 +0300
commitafeeb7cebbd223ffee303fd8de4ba97458b13581 (patch)
tree834419e2fffecbba9f1d5cf6acb3a8765206e438 /drivers/pci/access.c
parent4cf2e75d0bec15d945972b005056c4a8731b82cf (diff)
downloadlinux-afeeb7cebbd223ffee303fd8de4ba97458b13581.tar.xz
intel-iommu: Fix address wrap on 32-bit kernel.
The problem is in dma_pte_clear_range and dma_pte_free_pagetable. When intel_unmap_single and intel_unmap_sg call them, the end address may be zero if the 'start_addr + size' rounds up. So no PTE gets cleared. The uncleared PTE fires the BUG_ON when it's used again to create new mappings. After I modified dma_pte_clear_range a bit, the BUG_ON is gone. Tested both 32 and 32 PAE modes on Intel X58 and Q35 platforms. Signed-off-by: Yu Zhao <yu.zhao@intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/pci/access.c')
0 files changed, 0 insertions, 0 deletions