diff options
author | Juergen Gross <jgross@suse.com> | 2025-02-10 10:43:39 +0300 |
---|---|---|
committer | Juergen Gross <jgross@suse.com> | 2025-02-13 14:48:50 +0300 |
commit | 85fcb57c983f423180ba6ec5d0034242da05cc54 (patch) | |
tree | 3ce2818d8842a2ee70619a67d36c88e76b61bef2 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | aaf5eefd374b6e006e1c224a2b37bac9d3737aa2 (diff) | |
download | linux-85fcb57c983f423180ba6ec5d0034242da05cc54.tar.xz |
xen/swiotlb: relax alignment requirements
When mapping a buffer for DMA via .map_page or .map_sg DMA operations,
there is no need to check the machine frames to be aligned according
to the mapped areas size. All what is needed in these cases is that the
buffer is contiguous at machine level.
So carve out the alignment check from range_straddles_page_boundary()
and move it to a helper called by xen_swiotlb_alloc_coherent() and
xen_swiotlb_free_coherent() directly.
Fixes: 9f40ec84a797 ("xen/swiotlb: add alignment check for dma buffers")
Reported-by: Jan Vejvalka <jan.vejvalka@lfmotol.cuni.cz>
Tested-by: Jan Vejvalka <jan.vejvalka@lfmotol.cuni.cz>
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Juergen Gross <jgross@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions