]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: mana: Record doorbell physical address in PF mode
authorLong Li <longli@microsoft.com>
Wed, 18 Jun 2025 01:36:46 +0000 (18:36 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jul 2025 16:35:21 +0000 (18:35 +0200)
commit2cc5ef01ea039340fb8ea56f159d76a8fd2f1207
tree0c4b32277a7b532d7a628e8c8231531bb288cbc7
parent9f460b235ef3ead332e6af5b374c8042d5de61f0
net: mana: Record doorbell physical address in PF mode

[ Upstream commit e0fca6f2cebff539e9317a15a37dcf432e3b851a ]

MANA supports RDMA in PF mode. The driver should record the doorbell
physical address when in PF mode.

The doorbell physical address is used by the RDMA driver to map
doorbell pages of the device to user-mode applications through RDMA
verbs interface. In the past, they have been mapped to user-mode while
the device is in VF mode. With the support for PF mode implemented,
also expose those pages in PF mode.

Support for PF mode is implemented in
290e5d3c49f6 ("net: mana: Add support for Multi Vports on Bare metal")

Signed-off-by: Long Li <longli@microsoft.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/1750210606-12167-1-git-send-email-longli@linuxonhyperv.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/microsoft/mana/gdma_main.c