Skip to content

Commit 589b290

Browse files
longlimsftgregkh
authored andcommitted
net: mana: Record doorbell physical address in PF mode
[ Upstream commit e0fca6f ] 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 290e5d3 ("net: mana: Add support for Multi Vports on Bare metal") Signed-off-by: Long Li <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 921fffa commit 589b290

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/net/ethernet/microsoft/mana/gdma_main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ static void mana_gd_init_pf_regs(struct pci_dev *pdev)
2828
gc->db_page_base = gc->bar0_va +
2929
mana_gd_r64(gc, GDMA_PF_REG_DB_PAGE_OFF);
3030

31+
gc->phys_db_page_base = gc->bar0_pa +
32+
mana_gd_r64(gc, GDMA_PF_REG_DB_PAGE_OFF);
33+
3134
sriov_base_off = mana_gd_r64(gc, GDMA_SRIOV_REG_CFG_BASE_OFF);
3235

3336
sriov_base_va = gc->bar0_va + sriov_base_off;

0 commit comments

Comments
 (0)