Commit 011eb465 authored by Isaac J. Manjarres's avatar Isaac J. Manjarres Committed by Treehugger Robot
Browse files

BACKPORT: iommu/dma: Trace bounce buffer usage when mapping buffers



When commit 82612d66 ("iommu: Allow the dma-iommu api to
use bounce buffers") was introduced, it did not add the logic
for tracing the bounce buffer usage from iommu_dma_map_page().

All of the users of swiotlb_tbl_map_single() trace their bounce
buffer usage, except iommu_dma_map_page(). This makes it difficult
to track SWIOTLB usage from that function. Thus, trace bounce buffer
usage from iommu_dma_map_page().

Bug: 321292396
Fixes: 82612d66 ("iommu: Allow the dma-iommu api to use bounce buffers")
Cc: stable@vger.kernel.org # v5.15+
Cc: Tom Murphy <murphyt7@tcd.ie>
Cc: Lu Baolu <baolu.lu@linux.intel.com>
Cc: Saravana Kannan <saravanak@google.com>
Change-Id: I0a6226183134992bf6d49f154e248a792519dc8a
Signed-off-by: default avatarIsaac J. Manjarres <isaacmanjarres@google.com>
Link: https://lore.kernel.org/r/20231208234141.2356157-1-isaacmanjarres@google.com


Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
(cherry picked from commit a63c357b)
[isaacmanjarres: Resolved trivial conflict from vendor hooks
header inclusion]
Signed-off-by: default avatarIsaac J. Manjarres <isaacmanjarres@google.com>
parent 164e937b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment