Skip to content

Commit e0fca6f

Browse files
longlimsftkuba-moo
authored andcommitted
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 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]>
1 parent 5c8013a commit e0fca6f

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
@@ -31,6 +31,9 @@ static void mana_gd_init_pf_regs(struct pci_dev *pdev)
3131
gc->db_page_base = gc->bar0_va +
3232
mana_gd_r64(gc, GDMA_PF_REG_DB_PAGE_OFF);
3333

34+
gc->phys_db_page_base = gc->bar0_pa +
35+
mana_gd_r64(gc, GDMA_PF_REG_DB_PAGE_OFF);
36+
3437
sriov_base_off = mana_gd_r64(gc, GDMA_SRIOV_REG_CFG_BASE_OFF);
3538

3639
sriov_base_va = gc->bar0_va + sriov_base_off;

0 commit comments

Comments
 (0)