On Fri, Jun 13, 2025 at 10:46:05AM -0700, lon...@linuxonhyperv.com wrote: > From: Long Li <lon...@microsoft.com> > > 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 <lon...@microsoft.com> > --- > Changes > v2: add more details in commit message on how the doorbell physical address > is used > > drivers/net/ethernet/microsoft/mana/gdma_main.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/net/ethernet/microsoft/mana/gdma_main.c > b/drivers/net/ethernet/microsoft/mana/gdma_main.c > index 3504507477c6..52cf7112762c 100644 > --- a/drivers/net/ethernet/microsoft/mana/gdma_main.c > +++ b/drivers/net/ethernet/microsoft/mana/gdma_main.c > @@ -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; > -- > 2.25.1
Reviewed-by: Shradha Gupta <shradhagu...@linux.microsoft.com>