diff options
author | Mario Limonciello <[email protected]> | 2022-04-04 15:47:23 -0500 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2022-04-28 10:26:49 +0200 |
commit | f316ba0a8814f4c91e80a435da3421baf0ddd24c (patch) | |
tree | 96020ff2404bdc73f761c2b3fa52566c8b9d954f /tools/perf/scripts/python/stat-cpi.py | |
parent | 121660bba631104154b7c15e88f208c48c8c3297 (diff) |
dma-iommu: Check that swiotlb is active before trying to use it
If the IOMMU is in use and an untrusted device is connected to an external
facing port but the address requested isn't page aligned will cause the
kernel to attempt to use bounce buffers.
If for some reason the bounce buffers have not been allocated this is a
problem that should be made apparent to the user.
Signed-off-by: Mario Limonciello <[email protected]>
Reviewed-by: Robin Murphy <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions