Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: mana: Record doorbell physical address in PF mode

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>

authored by

Long Li and committed by
Jakub Kicinski
e0fca6f2 5c8013ae

+3
+3
drivers/net/ethernet/microsoft/mana/gdma_main.c
··· 31 31 gc->db_page_base = gc->bar0_va + 32 32 mana_gd_r64(gc, GDMA_PF_REG_DB_PAGE_OFF); 33 33 34 + gc->phys_db_page_base = gc->bar0_pa + 35 + mana_gd_r64(gc, GDMA_PF_REG_DB_PAGE_OFF); 36 + 34 37 sriov_base_off = mana_gd_r64(gc, GDMA_SRIOV_REG_CFG_BASE_OFF); 35 38 36 39 sriov_base_va = gc->bar0_va + sriov_base_off;