[PATCH net-next 2/4] net: stmmac: socfpga: Enable TBS support for Agilex5
Rohan G Thomas via B4 Relay
devnull+rohan.g.thomas.altera.com at kernel.org
Wed Oct 29 01:06:14 PDT 2025
From: Rohan G Thomas <rohan.g.thomas at altera.com>
Agilex5 supports Time-Based Scheduling(TBS) for Tx queue 6 and Tx
queue 7. This commit enables TBS support for these queues.
Signed-off-by: Rohan G Thomas <rohan.g.thomas at altera.com>
---
drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c
index 3dae4f3c103802ed1c2cd390634bd5473192d4ee..c02e6fa715bbea2f703bcdeee9d7a41be51ce91c 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c
@@ -473,6 +473,19 @@ static void socfpga_agilex5_setup_plat_dat(struct socfpga_dwmac *dwmac)
socfpga_common_plat_dat(dwmac);
plat_dat->core_type = DWMAC_CORE_XGMAC;
+
+ /* Enable TBS */
+ switch (plat_dat->tx_queues_to_use) {
+ case 8:
+ plat_dat->tx_queues_cfg[7].tbs_en = true;
+ fallthrough;
+ case 7:
+ plat_dat->tx_queues_cfg[6].tbs_en = true;
+ break;
+ default:
+ /* Tx Queues 0 - 5 doesn't support TBS on Agilex5 */
+ break;
+ }
}
static int socfpga_dwmac_probe(struct platform_device *pdev)
--
2.43.7
More information about the linux-arm-kernel
mailing list