diff options
author | Joao Martins <[email protected]> | 2024-06-27 12:00:56 +0100 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2024-06-28 13:12:22 -0300 |
commit | 9560393b830b415b2151b3dd8e065257cccbffa7 (patch) | |
tree | 875e1ec707b0f2f0d649d8823276d395f77a80dd /tools/perf/scripts/python/export-to-sqlite.py | |
parent | ec61f820a2ff07d1717583bd57d6ee45d2763a6e (diff) |
iommufd/selftest: Fix iommufd_test_dirty() to handle <u8 bitmaps
The calculation returns 0 if it sets less than the number of bits per
byte. For calculating memory allocation from bits, lets round it up to
one byte.
Link: https://lore.kernel.org/r/[email protected]
Reported-by: Matt Ochs <[email protected]>
Fixes: a9af47e382a4 ("iommufd/selftest: Test IOMMU_HWPT_GET_DIRTY_BITMAP")
Signed-off-by: Joao Martins <[email protected]>
Reviewed-by: Kevin Tian <[email protected]>
Tested-by: Matt Ochs <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions