aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorKeir Fraser <[email protected]>2007-07-21 04:37:24 -0700
committerLinus Torvalds <[email protected]>2007-07-21 17:49:14 -0700
commitdf336d1c7b6fd510fa6d3a028f999e7586c7026e (patch)
treed393ccb7b9051e8e491136f7a4a1786d5bf4f1e8 /tools/perf/scripts/python
parent28de7948a896763bc97ccd416bba5b9422158350 (diff)
Fix swiotlb_sync_single_range()
If the swiotlb maps a multi-slab region, swiotlb_sync_single_range() can be invoked to sync a sub-region which does not include the first slab. Unfortunately io_tlb_orig_addr[] is only initialised for the first slab, and hence the call to sync_single() will read a garbage orig_addr in this case. This patch fixes the issue by initialising all mapped slabs in io_tlb_orig_addr[]. It also correctly adjusts the buffer pointer in sync_single() to handle the case that the given dma_addr is not aligned on a slab boundary. Signed-off-by: Keir Fraser <[email protected]> Cc: "Luck, Tony" <[email protected]> Acked-by: Andi Kleen <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions