net: mana: Add support for PF device 0x00C1
Subsystems (5)
PATCH 1/1 net: mana: Add support for PF device 0x00C1
From: Haiyang Zhang <[email protected]>
Update the device id table to include the new device id 0x00C1. This device's BAR layout is similar to VF's, update the function, mana_gd_init_registers(), accordingly.
Signed-off-by Haiyang Zhang <[email protected]>
--- drivers/net/ethernet/microsoft/mana/gdma_main.c | 7 +++++-- include/net/mana/gdma.h | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-)
drivers/net/ethernet/microsoft/mana/gdma_main.c +5 -2
@@ -150,7 +150,7 @@ static int mana_gd_init_registers(struct pci_dev *pdev) {struct gdma_context *gc =pci_get_drvdata (pdev); -if (gc->is_pf) +if (gc->is_pf && !gc->is_pf2)return mana_gd_init_pf_regs (pdev);else return mana_gd_init_vf_regs (pdev);
@@ -2070,7 +2070,7 @@ static void mana_gd_cleanup_device(struct pci_dev *pdev)static bool mana_is_pf (unsigned short dev_id) { -return dev_id ==MANA_PF_DEVICE_ID ; +return dev_id ==MANA_PF_DEVICE_ID || dev_id ==MANA_PF2_DEVICE_ID ; }static int mana_gd_probe (struct pci_dev *pdev,const struct pci_device_id *ent)
@@ -2118,6 +2118,8 @@ static int mana_gd_probe(struct pci_dev *pdev, const struct pci_device_id *ent) gc->numa_node =dev_to_node (&pdev->dev); gc->is_pf =mana_is_pf (pdev->device); + gc->is_pf2 = (pdev->device ==MANA_PF2_DEVICE_ID ); + gc->bar0_va = bar0_va; gc->dev = &pdev->dev;xa_init (&gc->irq_contexts);
@@ -2269,6 +2271,7 @@ static void mana_gd_shutdown(struct pci_dev *pdev)static const struct pci_device_id mana_id_table[] = { {PCI_DEVICE (PCI_VENDOR_ID_MICROSOFT ,MANA_PF_DEVICE_ID ) }, + {PCI_DEVICE (PCI_VENDOR_ID_MICROSOFT ,MANA_PF2_DEVICE_ID ) }, {PCI_DEVICE (PCI_VENDOR_ID_MICROSOFT ,MANA_VF_DEVICE_ID ) }, { } };
include/net/mana/gdma.h +2 -0
@@ -418,6 +418,7 @@ struct gdma_context {u32 test_event_eq_id;bool is_pf; +bool is_pf2;phys_addr_t bar0_pa;void __iomem *bar0_va;
@@ -571,6 +572,7 @@ struct gdma_eqe {#define GDMA_SRIOV_REG_CFG_BASE_OFF 0x108#define MANA_PF_DEVICE_ID 0x00B9 +#define MANA_PF2_DEVICE_ID 0x00C1#define MANA_VF_DEVICE_ID 0x00BAstruct gdma_posted_wqe_info {
Signature · 1 line
2.34.1
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 9 lines · On Fri, 5 Jun 2026 14:22:56 -0700 you wrote:
From: Haiyang Zhang <[email protected]>
Update the device id table to include the new device id
0x00C1. This device's BAR layout is similar to VF's, update the function,mana_gd_init_registers(), accordingly.Signed-off-by Haiyang Zhang <[email protected]>[...]
Here is the summary with links:
- [net-next] net: mana: Add support for PF device 0x00C1
https://git.kernel.org/netdev/net-next/c/53a65db20a4f
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html