summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorEran Ben Elisha <eranbe@mellanox.com>2020-05-03 11:01:39 +0300
committerSaeed Mahameed <saeedm@mellanox.com>2020-05-16 01:44:15 +0300
commite7f860e2106a4c288d98308c59545ddd350e4739 (patch)
tree92328d715bf1e678bf498b6a7e69a295acd0a625 /tools/perf/scripts/python/exported-sql-viewer.py
parent2726cd4a29280c20ea983be285a6aefe75b205a4 (diff)
downloadlinux-e7f860e2106a4c288d98308c59545ddd350e4739.tar.xz
net/mlx5: Fix a bug of releasing wrong chunks on > 4K page size systems
On systems with page size larger than 4K, a fwp object has few 4K chunks. Fix a bug in fwp free flow where the chunk address was dropped and fwp->addr was used instead (first chunk address). This caused a wrong update of fwp->bitmask which later can cause errors in re-alloc fwp chunk flow. In order to fix this it, re-factor the release flow: - Free 4k: Releases a specific 4k chunk inside the fwp, defined by starting address. - Free fwp: Unconditionally release the whole fwp and its resources. Free addr will call free fwp if all chunks were released, in order to do code sharing. In addition, fix npages to count for all released chunks correctly. Fixes: c6168161f693 ("net/mlx5: Add support for release all pages event") Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions