summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJacob Moroni <jmoroni@google.com>2026-10-22 21:06:49 +0000
committerLeon Romanovsky <leon@kernel.org>2026-11-03 07:14:46 -0500
commitd706625c62b45135ffd6f40b669081c4896dde6f (patch)
tree52e5645f40c7f46e2410a97eac7448663780534c /tools/perf/scripts/python
parentac39883b95322df170461d980953b0fcbf993332 (diff)
RDMA/irdma: Fix FRWR logic for PAGE_SIZE > 4K
The HW only supports 1G, 2M, and 4K page sizes, but some ULPs pass PAGE_SIZE to ib_map_mr_sg(), and PAGE_SIZE can be some multiple of 4K (64K arm kernels, etc.). The HW can still support these scenarios, but we must force it to use 4K pages. The max_fast_reg_page_list_len and page_cnt during MR allocation must also be scaled to accommodate for the additional PBLEs that will be used when ib_sg_to_pages() ends up producing more pages than what would have otherwise been required with the original page size. It is worth noting that this change avoids this over-allocation/cracking in the off chance that a 1G or 2M PAGE_SIZE is ever used; it's only applicable when PAGE_SIZE is some power of 2 multiple of 4K that is not currently supported by HW. This was discovered by encountering SMMU faults when running kernel NFS/RDMA on a 64K kernel, which was due to the page list holding PAGE_SIZE entries while the WQE was indicating 4K, so HW was translating every access after the first 4K incorrectly. Fixes: b48c24c2d710 ("RDMA/irdma: Implement device supported verb APIs") Tested-by: Leah Li <leahlijuan@google.com> Signed-off-by: Jacob Moroni <jmoroni@google.com> Link: https://patch.msgid.link/20261022210650.1182000-2-jmoroni@google.com Acked-by: Tatyana Nikolova <tatyana.e.nikolova@intel.com> Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions