Skip to content

Commit b08c46d

Browse files
committed
net: mana: Record doorbell physical address in PF mode
jira LE-4385 Rebuild_History Non-Buildable kernel-5.14.0-570.52.1.el9_6 commit-author Long Li <[email protected]> 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]> (cherry picked from commit e0fca6f) Signed-off-by: Jonathan Maple <[email protected]>
1 parent 3d64314 commit b08c46d

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

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

3740
sriov_base_va = gc->bar0_va + sriov_base_off;

0 commit comments

Comments
 (0)