Skip to contentSkip to conversation

net: mana: Record doorbell physical address in PF mode

PATCH Superseded [email protected] 3 participants 3 messages Jun 9, 2025 – Jun 10, 2025

Subsystems (5)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: mana: Record doorbell physical address in PF mode

From: Long Li <[email protected]>

MANA supports RDMA in PF mode. The driver should record the doorbell physical address when in PF mode.

---
 drivers/net/ethernet/microsoft/mana/gdma_main.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/ethernet/microsoft/mana/gdma_main.c +3 -0
index 3504507477c6..52cf7112762c 100644
@@ -31,6 +31,9 @@ static void mana_gd_init_pf_regs(struct pci_dev *pdev)
 	gc->db_page_base = gc->bar0_va +
 				mana_gd_r64(gc, GDMA_PF_REG_DB_PAGE_OFF);
 
+	gc->phys_db_page_base = gc->bar0_pa +
+				mana_gd_r64(gc, GDMA_PF_REG_DB_PAGE_OFF);
+
 	sriov_base_off = mana_gd_r64(gc, GDMA_SRIOV_REG_CFG_BASE_OFF);
 
 	sriov_base_va = gc->bar0_va + sriov_base_off;
Signature · 1 line
2.25.1
maintainer
#1 lore raw
Quoted 4 lines · On Mon, 9 Jun 2025 16:09:40 -0700 [email protected] wrote:

From: Long Li <[email protected]>

MANA supports RDMA in PF mode. The driver should record the doorbell physical address when in PF mode.

Could you explain in more detail what happens if it doesn't? What user-visible improvement does this patch bring?

Signature · 1 line
pw-bot: cr
#2 lore raw
Quoted 11 lines

Subject: [EXTERNAL] Re: [PATCH net-next] net: mana: Record doorbell physical address in PF mode

Quoted 4 lines · On Mon, 9 Jun 2025 16:09:40 -0700 [email protected] wrote:

From: Long Li <[email protected]>

MANA supports RDMA in PF mode. The driver should record the doorbell physical address when in PF mode.

Could you explain in more detail what happens if it doesn't? What user-visible improvement does this patch bring?

Yes, I'm sending v2 with more details in the commit message.

Quoted 2 lines

--
pw-bot: cr