]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
RDMA/mana_ib: use the correct page table index based on hardware page size
authorLong Li <longli@microsoft.com>
Fri, 30 Aug 2024 15:16:32 +0000 (08:16 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Oct 2024 10:03:59 +0000 (12:03 +0200)
commitada35b2ad56699d9cc82b321febec681d3ed8366
treefd27bcfa511e41704ee3552dda5e7fb629d37957
parent6ad6e167f7fb0babc6cac6850c13d2edb5b725c2
RDMA/mana_ib: use the correct page table index based on hardware page size

commit 9e517a8e9d9a303bf9bde35e5c5374795544c152 upstream.

MANA hardware uses 4k page size. When calculating the page table index,
it should use the hardware page size, not the system page size.

Cc: stable@vger.kernel.org
Fixes: 0266a177631d ("RDMA/mana_ib: Add a driver for Microsoft Azure Network Adapter")
Signed-off-by: Long Li <longli@microsoft.com>
Link: https://patch.msgid.link/1725030993-16213-1-git-send-email-longli@linuxonhyperv.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/hw/mana/main.c