Skip to content

Commit be4dd81

Browse files
longlimsftNipaLocal
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. Signed-off-by: Long Li <[email protected]> Signed-off-by: NipaLocal <nipa@local>
1 parent e77f2d0 commit be4dd81

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

36+
gc->phys_db_page_base = gc->bar0_pa +
37+
mana_gd_r64(gc, GDMA_PF_REG_DB_PAGE_OFF);
38+
3639
sriov_base_off = mana_gd_r64(gc, GDMA_SRIOV_REG_CFG_BASE_OFF);
3740

3841
sriov_base_va = gc->bar0_va + sriov_base_off;

0 commit comments

Comments
 (0)