]> www.infradead.org Git - users/dwmw2/linux.git/commit
RDMA/mlx5: Enable ATS when allocating kernel MRs
authorMaher Sanalla <msanalla@nvidia.com>
Mon, 2 Sep 2024 10:37:03 +0000 (13:37 +0300)
committerLeon Romanovsky <leon@kernel.org>
Mon, 9 Sep 2024 18:16:40 +0000 (21:16 +0300)
commit34efda1735a179cd233479a99f09728825748ea1
tree22f9d94f24424b7011f20276469f7e3478bef11e
parent1403c8b14765eab805377dd3b75e96ace8747aed
RDMA/mlx5: Enable ATS when allocating kernel MRs

When creating kernel MRs, it is not definitive whether they will be used
for peer-to-peer transactions or for other usecases, since address
mapping is performed only after the MR is created.

Since peer-to-peer transactions benefit significantly from ATS
performance-wise, enable ATS on newly-allocated kernel MRs when
supported.

Signed-off-by: Maher Sanalla <msanalla@nvidia.com>
Reviewed-by: Gal Shalom <galshalom@nvidia.com>
Link: https://patch.msgid.link/fafd4c9f14cf438d2882d88649c2947e1d05d0b4.1725273403.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/mlx5/mr.c