| Seq | Timestamp | Type | Name | Duration |
|---|---|---|---|---|
| 0/0 | 2026/08/31 07:30 | flow | patch-triage |
1mArgs:null Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"KMSANReasoning": "",
"NeedsKMSAN": false,
"Reasoning": "The patch modifies the Synopsys DesignWare MAC 4 (DWMAC4) unicast filter configuration and hardware feature detection in the STMMAC ethernet driver. DWMAC4 controllers are embedded in physical SoCs (e.g., Intel Elkhart Lake, Qualcomm ETHQOS, NXP S32) and PCI devices that are not emulated in standard QEMU or virtualized cloud environments (GCE). Consequently, these code paths are unreachable in virtualized fuzzing environments.",
"WorthFuzzing": false
} |
| 1/1 | 2026/08/31 07:30 | action | read-patch-diff |
0mArgs:null Results: {
"PatchDiff": "commit bf46fff565e07af451a893938a8b6258504606ec\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate: Mon Aug 31 07:30:29 2026 +0000\n\n syz-cluster: applied patch under review\n\ndiff --git a/drivers/net/ethernet/stmicro/stmmac/common.h b/drivers/net/ethernet/stmicro/stmmac/common.h\nindex 927ea6230073f..1729fb29ece38 100644\n--- a/drivers/net/ethernet/stmicro/stmmac/common.h\n+++ b/drivers/net/ethernet/stmicro/stmmac/common.h\n@@ -419,6 +419,8 @@ struct dma_features {\n \tunsigned int half_duplex;\n \tunsigned int hash_filter;\n \tunsigned int multi_addr;\n+\tunsigned int additional_32_addr;\n+\tunsigned int additional_64_addr;\n \tunsigned int pcs;\n \tunsigned int sma_mdio;\n \tunsigned int pmt_remote_wake_up;\n@@ -627,6 +629,7 @@ struct mac_device_info {\n \tvoid __iomem *pcsr; /* vpointer to device CSRs */\n \tunsigned int multicast_filter_bins;\n \tunsigned int unicast_filter_entries;\n+\tunsigned int multi_addr;\n \tunsigned int mcast_bits_log2;\n \tunsigned int rx_csum;\n \tunsigned int num_vlan;\n@@ -635,6 +638,8 @@ struct mac_device_info {\n \tu8 vlan_fail_q;\n \tbool hw_vlan_en;\n \tbool reverse_sgmii_enable;\n+\tbool additional_32_addr;\n+\tbool additional_64_addr;\n \n \t/* This spinlock protects read-modify-write of the interrupt\n \t * mask/enable registers.\ndiff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac4.h b/drivers/net/ethernet/stmicro/stmmac/dwmac4.h\nindex 6382836828bac..6968465312295 100644\n--- a/drivers/net/ethernet/stmicro/stmmac/dwmac4.h\n+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac4.h\n@@ -75,8 +75,6 @@\n #define GMAC_PACKET_FILTER_IPFE\t\tBIT(20)\n #define GMAC_PACKET_FILTER_RA\t\tBIT(31)\n \n-#define GMAC_MAX_PERFECT_ADDRESSES\t128\n-\n /* MAC RX Queue Enable */\n #define GMAC_RX_QUEUE_CLEAR(queue)\t~(GENMASK(1, 0) \u003c\u003c ((queue) * 2))\n #define GMAC_RX_AV_QUEUE_ENABLE(queue)\tBIT((queue) * 2)\n@@ -176,7 +174,9 @@ enum power_event {\n \n /* MAC HW features0 bitmap */\n #define GMAC_HW_FEAT_SAVLANINS\t\tBIT(27)\n-#define GMAC_HW_FEAT_ADDMAC\t\tBIT(18)\n+#define GMAC_HW_FEAT_MACADR64SEL\tBIT(24)\n+#define GMAC_HW_FEAT_MACADR32SEL\tBIT(23)\n+#define GMAC_HW_FEAT_ADDMAC\t\tGENMASK(22, 18)\n #define GMAC_HW_FEAT_RXCOESEL\t\tBIT(16)\n #define GMAC_HW_FEAT_TXCOSEL\t\tBIT(14)\n #define GMAC_HW_FEAT_EEESEL\t\tBIT(13)\ndiff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c b/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c\nindex 18b357b257cc0..fb5b96a435054 100644\n--- a/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c\n+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c\n@@ -365,22 +365,63 @@ static void dwmac4_pmt(struct mac_device_info *hw, unsigned long mode)\n \twritel(pmt, ioaddr + GMAC_PMT);\n }\n \n+/**\n+ * dwmac4_umac_addr_slot - Get the UC filter slot for the Nth MAC address\n+ * @hw: The MAC device info\n+ * @reg_n: The MAC address's index in the UC list\n+ *\n+ * On dwmac4 the slots available for Unicast MAC filtering are configured when\n+ * integrating the IP.\n+ *\n+ * - Slot 0 is always available, used to store the primary MAC address\n+ * - From 1 to 31, the number of implemented slots is set in hw-\u003emulti_addr\n+ * - From 32 to 63, the range is available if hw-\u003eadditional_32_addr\n+ * is set\n+ * - From 64 to 127, the range is available if hw-\u003eadditional_64_addr is set\n+ *\n+ * All the ranges can be configured independently (e.g. 64 -\u003e 127 can be\n+ * available, but not 32 -\u003e 63)\n+ *\n+ * Returns: The physical slot index in the UC filter\n+ */\n+static unsigned int dwmac4_umac_addr_slot(struct mac_device_info *hw,\n+\t\t\t\t\t unsigned int reg_n)\n+{\n+\tunsigned int empty_slots = 0;\n+\n+\t/* reg_n is in the 1-31 bank : 1 to 1 mapping */\n+\tif (reg_n \u003c (hw-\u003emulti_addr + 1))\n+\t\treturn reg_n;\n+\n+\t/* Gap between the last address in the 1-\u003e31 range and the next slot */\n+\tif (hw-\u003eadditional_32_addr)\n+\t\tempty_slots = 32 - (hw-\u003emulti_addr + 1);\n+\telse if (hw-\u003eadditional_64_addr)\n+\t\tempty_slots = 64 - (hw-\u003emulti_addr + 1);\n+\n+\treturn reg_n + empty_slots;\n+}\n+\n static void dwmac4_set_umac_addr(struct mac_device_info *hw,\n \t\t\t\t const unsigned char *addr, unsigned int reg_n)\n {\n \tvoid __iomem *ioaddr = hw-\u003epcsr;\n+\tunsigned int slot;\n \n-\tstmmac_dwmac4_set_mac_addr(ioaddr, addr, GMAC_ADDR_HIGH(reg_n),\n-\t\t\t\t GMAC_ADDR_LOW(reg_n));\n+\tslot = dwmac4_umac_addr_slot(hw, reg_n);\n+\tstmmac_dwmac4_set_mac_addr(ioaddr, addr, GMAC_ADDR_HIGH(slot),\n+\t\t\t\t GMAC_ADDR_LOW(slot));\n }\n \n static void dwmac4_get_umac_addr(struct mac_device_info *hw,\n \t\t\t\t unsigned char *addr, unsigned int reg_n)\n {\n \tvoid __iomem *ioaddr = hw-\u003epcsr;\n+\tunsigned int slot;\n \n-\tstmmac_get_mac_addr(ioaddr, addr, GMAC_ADDR_HIGH(reg_n),\n-\t\t\t GMAC_ADDR_LOW(reg_n));\n+\tslot = dwmac4_umac_addr_slot(hw, reg_n);\n+\tstmmac_get_mac_addr(ioaddr, addr, GMAC_ADDR_HIGH(slot),\n+\t\t\t GMAC_ADDR_LOW(slot));\n }\n \n static int dwmac4_set_lpi_mode(struct mac_device_info *hw,\n@@ -522,9 +563,6 @@ static void dwmac4_set_filter(struct mac_device_info *hw,\n \n \t/* Handle multiple unicast addresses */\n \tif (netdev_uc_count(dev) + 1 \u003e hw-\u003eunicast_filter_entries) {\n-\t\t/* Switch to promiscuous mode if more than 128 addrs\n-\t\t * are required\n-\t\t */\n \t\tvalue |= GMAC_PACKET_FILTER_PR;\n \t} else {\n \t\tstruct netdev_hw_addr *ha;\n@@ -535,9 +573,11 @@ static void dwmac4_set_filter(struct mac_device_info *hw,\n \t\t\treg++;\n \t\t}\n \n-\t\twhile (reg \u003c GMAC_MAX_PERFECT_ADDRESSES) {\n-\t\t\twritel(0, ioaddr + GMAC_ADDR_HIGH(reg));\n-\t\t\twritel(0, ioaddr + GMAC_ADDR_LOW(reg));\n+\t\twhile (reg \u003c hw-\u003eunicast_filter_entries) {\n+\t\t\tunsigned int slot = dwmac4_umac_addr_slot(hw, reg);\n+\n+\t\t\twritel(0, ioaddr + GMAC_ADDR_HIGH(slot));\n+\t\t\twritel(0, ioaddr + GMAC_ADDR_LOW(slot));\n \t\t\treg++;\n \t\t}\n \t}\ndiff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c b/drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c\nindex 23ffe1adcd0d3..14ac3f0e51f77 100644\n--- a/drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c\n+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c\n@@ -388,6 +388,8 @@ static int dwmac4_get_hw_feature(void __iomem *ioaddr,\n \tdma_cap-\u003ehalf_duplex = (hw_cap \u0026 GMAC_HW_FEAT_HDSEL) \u003e\u003e 2;\n \tdma_cap-\u003evlhash = (hw_cap \u0026 GMAC_HW_FEAT_VLHASH) \u003e\u003e 4;\n \tdma_cap-\u003emulti_addr = (hw_cap \u0026 GMAC_HW_FEAT_ADDMAC) \u003e\u003e 18;\n+\tdma_cap-\u003eadditional_32_addr = (hw_cap \u0026 GMAC_HW_FEAT_MACADR32SEL) \u003e\u003e 23;\n+\tdma_cap-\u003eadditional_64_addr = (hw_cap \u0026 GMAC_HW_FEAT_MACADR64SEL) \u003e\u003e 24;\n \tdma_cap-\u003epcs = (hw_cap \u0026 GMAC_HW_FEAT_PCSSEL) \u003e\u003e 3;\n \tdma_cap-\u003esma_mdio = (hw_cap \u0026 GMAC_HW_FEAT_SMASEL) \u003e\u003e 5;\n \tdma_cap-\u003epmt_remote_wake_up = (hw_cap \u0026 GMAC_HW_FEAT_RWKSEL) \u003e\u003e 6;\ndiff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c\nindex f2fc89176654e..80413ba8df55e 100644\n--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c\n+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c\n@@ -6580,6 +6580,18 @@ static int stmmac_dma_cap_show(struct seq_file *seq, void *v)\n \t\tseq_printf(seq,\n \t\t\t \"\\tNumber of Additional MAC address registers: %d\\n\",\n \t\t\t priv-\u003edma_cap.multi_addr);\n+\t} else if (priv-\u003eplat-\u003ecore_type == DWMAC_CORE_GMAC4) {\n+\t\tseq_printf(seq,\n+\t\t\t \"\\tNumber of MAC address registers (1-31): %d\\n\",\n+\t\t\t priv-\u003edma_cap.multi_addr);\n+\t\tseq_printf(seq,\n+\t\t\t \"\\tAdditional 32 MAC address registers (32-63): %s\\n\",\n+\t\t\t priv-\u003edma_cap.additional_32_addr ? \"Y\" : \"N\");\n+\t\tseq_printf(seq,\n+\t\t\t \"\\tAdditional 64 MAC address registers (64-127): %s\\n\",\n+\t\t\t priv-\u003edma_cap.additional_64_addr ? \"Y\" : \"N\");\n+\t\tseq_printf(seq, \"\\tHash Filter: %s\\n\",\n+\t\t\t (priv-\u003edma_cap.hash_filter) ? \"Y\" : \"N\");\n \t} else {\n \t\tseq_printf(seq, \"\\tHash Filter: %s\\n\",\n \t\t\t (priv-\u003edma_cap.hash_filter) ? \"Y\" : \"N\");\n@@ -7480,6 +7492,33 @@ static int stmmac_hw_init(struct stmmac_priv *priv)\n \t\tpriv-\u003eplat-\u003etx_fifo_size = priv-\u003edma_cap.tx_fifo_size;\n \t}\n \n+\t/* On DWMAC4 we can get the exact number of perfect filter entries from\n+\t * the HW_Features.\n+\t */\n+\tif (priv-\u003eplat-\u003ecore_type == DWMAC_CORE_GMAC4) {\n+\t\tpriv-\u003ehw-\u003emulti_addr = priv-\u003edma_cap.multi_addr;\n+\t\tpriv-\u003ehw-\u003eadditional_32_addr =\n+\t\t\t!!priv-\u003edma_cap.additional_32_addr;\n+\t\tpriv-\u003ehw-\u003eadditional_64_addr =\n+\t\t\t!!priv-\u003edma_cap.additional_64_addr;\n+\n+\t\t/* We always have one slot for the primary MAC */\n+\t\tpriv-\u003ehw-\u003eunicast_filter_entries = 1;\n+\n+\t\t/* How many slots in the 1 -\u003e 31 range */\n+\t\tpriv-\u003ehw-\u003eunicast_filter_entries += priv-\u003ehw-\u003emulti_addr;\n+\n+\t\t/* Additional 32 entries in the 32 -\u003e 63 range */\n+\t\tif (priv-\u003ehw-\u003eadditional_32_addr)\n+\t\t\tpriv-\u003ehw-\u003eunicast_filter_entries += 32;\n+\n+\t\t/* Additional 64 entries in the 64 -\u003e 127 range, can be enabled\n+\t\t * independently of the 32 -\u003e 63 range\n+\t\t */\n+\t\tif (priv-\u003ehw-\u003eadditional_64_addr)\n+\t\t\tpriv-\u003ehw-\u003eunicast_filter_entries += 64;\n+\t}\n+\n \tpriv-\u003ehw-\u003evlan_fail_q_en =\n \t\t(priv-\u003eplat-\u003eflags \u0026 STMMAC_FLAG_VLAN_FAIL_Q_EN);\n \tpriv-\u003ehw-\u003evlan_fail_q = priv-\u003eplat-\u003evlan_fail_q;\n"
} |
| 2/1 | 2026/08/31 07:30 | agent | patch-evaluator |
0mModel:core Args: null Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The patch modifies the Synopsys DesignWare MAC 4 (DWMAC4) unicast filter configuration and hardware feature detection in the STMMAC ethernet driver. DWMAC4 controllers are embedded in physical SoCs (e.g., Intel Elkhart Lake, Qualcomm ETHQOS, NXP S32) and PCI devices that are not emulated in standard QEMU or virtualized cloud environments (GCE). Consequently, these code paths are unreachable in virtualized fuzzing environments.",
"WorthFuzzing": false
}Instruction: You are an expert Linux kernel maintainer. Your job is to review a provided patch series and determine if it makes functional changes to the kernel that should be fuzzed. IMPORTANT: The changes have ALREADY been applied and committed as the HEAD commit in your workspace. Do NOT rely on your internal knowledge of the kernel. You must actively use your code access tools to examine the actual source code and confirm any assumptions. Return WorthFuzzing=false if the patch only contains: - Modifications to Documentation/, Kconfig files, or code comments. - Purely decorative changes, such as logging (e.g., pr_err, printk) or tracepoints. - Changes to numeric constants or macros that do not functionally alter execution flow. - Code paths that are impossible to reach in virtualized environments like GCE or QEMU, even when utilizing software-emulated hardware (e.g., usb gadget, mac80211_hwsim). - Code in vendor-specific PCIe switch, SmartNIC, or GPU drivers (e.g., mlxsw, pds_core, qed, ionic, amdgpu) that require physical PCIe hardware cards not emulated in standard QEMU. - Driver .remove, .shutdown, or pci_unregister_driver teardown callbacks (e.g., igb_remove) that are executed only during PCI hot-unplug or sysfs driver unbind operations. If it modifies reachable core kernel logic, drivers, or architectures, use your code search tools to verify the code can be executed, then return WorthFuzzing=true. When returning WorthFuzzing=true, you MUST ALSO: 1. Extract any specific kernel functions that should be heavily fuzzed into FocusSymbols. Avoid listing generic hot-path functions to prevent skewed test distributions. Prefer non-static, non-inlined API entrypoint functions over internal static helper functions (which are inlined by the compiler and do not have distinct symbol addresses). 2. Identify any specific CONFIG_ options required to properly test this new/modified feature. Go and look into the Kconfig files and check for ifdefs around the code, do not make assumptions. Also check "depends on" lines in Kconfig to include any non-standard parent subsystem configs needed for Kbuild to compile the code statically into vmlinux. List them in the EnableConfigs output array, and DO NOT add a 'CONFIG_' prefix (e.g., return "NET_IPV4" instead of "CONFIG_NET_IPV4"). Prefer calling several tools at the same time to save round-trips. Use set-results tool to provide results of the analysis. It must be called exactly once before the final reply. Ignore results of this tool. Prompt: For your convenience, here is the diff of the changes:
commit bf46fff565e07af451a893938a8b6258504606ec
Author: syz-cluster <triage@syzkaller.com>
Date: Mon Aug 31 07:30:29 2026 +0000
syz-cluster: applied patch under review
diff --git a/drivers/net/ethernet/stmicro/stmmac/common.h b/drivers/net/ethernet/stmicro/stmmac/common.h
index 927ea6230073f..1729fb29ece38 100644
--- a/drivers/net/ethernet/stmicro/stmmac/common.h
+++ b/drivers/net/ethernet/stmicro/stmmac/common.h
@@ -419,6 +419,8 @@ struct dma_features {
unsigned int half_duplex;
unsigned int hash_filter;
unsigned int multi_addr;
+ unsigned int additional_32_addr;
+ unsigned int additional_64_addr;
unsigned int pcs;
unsigned int sma_mdio;
unsigned int pmt_remote_wake_up;
@@ -627,6 +629,7 @@ struct mac_device_info {
void __iomem *pcsr; /* vpointer to device CSRs */
unsigned int multicast_filter_bins;
unsigned int unicast_filter_entries;
+ unsigned int multi_addr;
unsigned int mcast_bits_log2;
unsigned int rx_csum;
unsigned int num_vlan;
@@ -635,6 +638,8 @@ struct mac_device_info {
u8 vlan_fail_q;
bool hw_vlan_en;
bool reverse_sgmii_enable;
+ bool additional_32_addr;
+ bool additional_64_addr;
/* This spinlock protects read-modify-write of the interrupt
* mask/enable registers.
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac4.h b/drivers/net/ethernet/stmicro/stmmac/dwmac4.h
index 6382836828bac..6968465312295 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac4.h
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac4.h
@@ -75,8 +75,6 @@
#define GMAC_PACKET_FILTER_IPFE BIT(20)
#define GMAC_PACKET_FILTER_RA BIT(31)
-#define GMAC_MAX_PERFECT_ADDRESSES 128
-
/* MAC RX Queue Enable */
#define GMAC_RX_QUEUE_CLEAR(queue) ~(GENMASK(1, 0) << ((queue) * 2))
#define GMAC_RX_AV_QUEUE_ENABLE(queue) BIT((queue) * 2)
@@ -176,7 +174,9 @@ enum power_event {
/* MAC HW features0 bitmap */
#define GMAC_HW_FEAT_SAVLANINS BIT(27)
-#define GMAC_HW_FEAT_ADDMAC BIT(18)
+#define GMAC_HW_FEAT_MACADR64SEL BIT(24)
+#define GMAC_HW_FEAT_MACADR32SEL BIT(23)
+#define GMAC_HW_FEAT_ADDMAC GENMASK(22, 18)
#define GMAC_HW_FEAT_RXCOESEL BIT(16)
#define GMAC_HW_FEAT_TXCOSEL BIT(14)
#define GMAC_HW_FEAT_EEESEL BIT(13)
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c b/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c
index 18b357b257cc0..fb5b96a435054 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c
@@ -365,22 +365,63 @@ static void dwmac4_pmt(struct mac_device_info *hw, unsigned long mode)
writel(pmt, ioaddr + GMAC_PMT);
}
+/**
+ * dwmac4_umac_addr_slot - Get the UC filter slot for the Nth MAC address
+ * @hw: The MAC device info
+ * @reg_n: The MAC address's index in the UC list
+ *
+ * On dwmac4 the slots available for Unicast MAC filtering are configured when
+ * integrating the IP.
+ *
+ * - Slot 0 is always available, used to store the primary MAC address
+ * - From 1 to 31, the number of implemented slots is set in hw->multi_addr
+ * - From 32 to 63, the range is available if hw->additional_32_addr
+ * is set
+ * - From 64 to 127, the range is available if hw->additional_64_addr is set
+ *
+ * All the ranges can be configured independently (e.g. 64 -> 127 can be
+ * available, but not 32 -> 63)
+ *
+ * Returns: The physical slot index in the UC filter
+ */
+static unsigned int dwmac4_umac_addr_slot(struct mac_device_info *hw,
+ unsigned int reg_n)
+{
+ unsigned int empty_slots = 0;
+
+ /* reg_n is in the 1-31 bank : 1 to 1 mapping */
+ if (reg_n < (hw->multi_addr + 1))
+ return reg_n;
+
+ /* Gap between the last address in the 1->31 range and the next slot */
+ if (hw->additional_32_addr)
+ empty_slots = 32 - (hw->multi_addr + 1);
+ else if (hw->additional_64_addr)
+ empty_slots = 64 - (hw->multi_addr + 1);
+
+ return reg_n + empty_slots;
+}
+
static void dwmac4_set_umac_addr(struct mac_device_info *hw,
const unsigned char *addr, unsigned int reg_n)
{
void __iomem *ioaddr = hw->pcsr;
+ unsigned int slot;
- stmmac_dwmac4_set_mac_addr(ioaddr, addr, GMAC_ADDR_HIGH(reg_n),
- GMAC_ADDR_LOW(reg_n));
+ slot = dwmac4_umac_addr_slot(hw, reg_n);
+ stmmac_dwmac4_set_mac_addr(ioaddr, addr, GMAC_ADDR_HIGH(slot),
+ GMAC_ADDR_LOW(slot));
}
static void dwmac4_get_umac_addr(struct mac_device_info *hw,
unsigned char *addr, unsigned int reg_n)
{
void __iomem *ioaddr = hw->pcsr;
+ unsigned int slot;
- stmmac_get_mac_addr(ioaddr, addr, GMAC_ADDR_HIGH(reg_n),
- GMAC_ADDR_LOW(reg_n));
+ slot = dwmac4_umac_addr_slot(hw, reg_n);
+ stmmac_get_mac_addr(ioaddr, addr, GMAC_ADDR_HIGH(slot),
+ GMAC_ADDR_LOW(slot));
}
static int dwmac4_set_lpi_mode(struct mac_device_info *hw,
@@ -522,9 +563,6 @@ static void dwmac4_set_filter(struct mac_device_info *hw,
/* Handle multiple unicast addresses */
if (netdev_uc_count(dev) + 1 > hw->unicast_filter_entries) {
- /* Switch to promiscuous mode if more than 128 addrs
- * are required
- */
value |= GMAC_PACKET_FILTER_PR;
} else {
struct netdev_hw_addr *ha;
@@ -535,9 +573,11 @@ static void dwmac4_set_filter(struct mac_device_info *hw,
reg++;
}
- while (reg < GMAC_MAX_PERFECT_ADDRESSES) {
- writel(0, ioaddr + GMAC_ADDR_HIGH(reg));
- writel(0, ioaddr + GMAC_ADDR_LOW(reg));
+ while (reg < hw->unicast_filter_entries) {
+ unsigned int slot = dwmac4_umac_addr_slot(hw, reg);
+
+ writel(0, ioaddr + GMAC_ADDR_HIGH(slot));
+ writel(0, ioaddr + GMAC_ADDR_LOW(slot));
reg++;
}
}
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c b/drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c
index 23ffe1adcd0d3..14ac3f0e51f77 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c
@@ -388,6 +388,8 @@ static int dwmac4_get_hw_feature(void __iomem *ioaddr,
dma_cap->half_duplex = (hw_cap & GMAC_HW_FEAT_HDSEL) >> 2;
dma_cap->vlhash = (hw_cap & GMAC_HW_FEAT_VLHASH) >> 4;
dma_cap->multi_addr = (hw_cap & GMAC_HW_FEAT_ADDMAC) >> 18;
+ dma_cap->additional_32_addr = (hw_cap & GMAC_HW_FEAT_MACADR32SEL) >> 23;
+ dma_cap->additional_64_addr = (hw_cap & GMAC_HW_FEAT_MACADR64SEL) >> 24;
dma_cap->pcs = (hw_cap & GMAC_HW_FEAT_PCSSEL) >> 3;
dma_cap->sma_mdio = (hw_cap & GMAC_HW_FEAT_SMASEL) >> 5;
dma_cap->pmt_remote_wake_up = (hw_cap & GMAC_HW_FEAT_RWKSEL) >> 6;
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
index f2fc89176654e..80413ba8df55e 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
@@ -6580,6 +6580,18 @@ static int stmmac_dma_cap_show(struct seq_file *seq, void *v)
seq_printf(seq,
"\tNumber of Additional MAC address registers: %d\n",
priv->dma_cap.multi_addr);
+ } else if (priv->plat->core_type == DWMAC_CORE_GMAC4) {
+ seq_printf(seq,
+ "\tNumber of MAC address registers (1-31): %d\n",
+ priv->dma_cap.multi_addr);
+ seq_printf(seq,
+ "\tAdditional 32 MAC address registers (32-63): %s\n",
+ priv->dma_cap.additional_32_addr ? "Y" : "N");
+ seq_printf(seq,
+ "\tAdditional 64 MAC address registers (64-127): %s\n",
+ priv->dma_cap.additional_64_addr ? "Y" : "N");
+ seq_printf(seq, "\tHash Filter: %s\n",
+ (priv->dma_cap.hash_filter) ? "Y" : "N");
} else {
seq_printf(seq, "\tHash Filter: %s\n",
(priv->dma_cap.hash_filter) ? "Y" : "N");
@@ -7480,6 +7492,33 @@ static int stmmac_hw_init(struct stmmac_priv *priv)
priv->plat->tx_fifo_size = priv->dma_cap.tx_fifo_size;
}
+ /* On DWMAC4 we can get the exact number of perfect filter entries from
+ * the HW_Features.
+ */
+ if (priv->plat->core_type == DWMAC_CORE_GMAC4) {
+ priv->hw->multi_addr = priv->dma_cap.multi_addr;
+ priv->hw->additional_32_addr =
+ !!priv->dma_cap.additional_32_addr;
+ priv->hw->additional_64_addr =
+ !!priv->dma_cap.additional_64_addr;
+
+ /* We always have one slot for the primary MAC */
+ priv->hw->unicast_filter_entries = 1;
+
+ /* How many slots in the 1 -> 31 range */
+ priv->hw->unicast_filter_entries += priv->hw->multi_addr;
+
+ /* Additional 32 entries in the 32 -> 63 range */
+ if (priv->hw->additional_32_addr)
+ priv->hw->unicast_filter_entries += 32;
+
+ /* Additional 64 entries in the 64 -> 127 range, can be enabled
+ * independently of the 32 -> 63 range
+ */
+ if (priv->hw->additional_64_addr)
+ priv->hw->unicast_filter_entries += 64;
+ }
+
priv->hw->vlan_fail_q_en =
(priv->plat->flags & STMMAC_FLAG_VLAN_FAIL_Q_EN);
priv->hw->vlan_fail_q = priv->plat->vlan_fail_q;
|
| 3/2 | 2026/08/31 07:30 | llm | patch-evaluator |
0mModel:gemini-3.7-flash Args: null Results: null Tokens: input: 5585 output: 37 thoughts: 215 Thoughts: **Analyzing the stmmac Patch** Okay, so this patch is clearly digging into the `stmmac` driver – that's the STMicroelectronics Multi-Channel Ethernet MAC driver. It's touching some key files: `common.h`, `dwmac4.h`, and the core implementation files like `dwmac4_core.c`, `dwmac4_dma.c`, and the main driver file `stmmac_main.c`. My initial thought is to figure out the context of this. Is this something I can easily test? I need to quickly assess the emulation situation. Is `stmmac` emulated in standard QEMU? Or does this require specific hardware, or at least a specific platform configuration in QEMU or GCE? Hang on… before I go down that rabbit hole, I should just confirm how it's *actually* used in the kernel. Let's start with a quick search to pinpoint its usage throughout the kernel source. Knowing that will give me context before digging into emulation details. |
| 4/2 | 2026/08/31 07:30 | tool | grepper |
0mArgs:{
"Expression": "stmmac",
"PathPrefix": "drivers/net/ethernet/stmicro/stmmac/"
}Results: {
"Output": "\nFull output is too long, showing 500 out of 11569 lines.\nUse more precise expression if possible.\n\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=29=config STMMAC_PLATFORM\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-33-\thelp\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:34:\t This selects the platform specific bus support for the stmmac driver.\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-35-\t This is the driver used on several SoCs:\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=60=config DWMAC_ANARION\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-66-\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:67:\t This selects the Anarion SoC glue layer support for the stmmac driver.\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-68-\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=78=config DWMAC_INGENIC\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-85-\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:86:\t This selects Ingenic SoCs glue layer support for the stmmac\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-87-\t device driver. This driver is used on for the Ingenic SoCs\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=90=config DWMAC_IPQ806X\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-97-\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:98:\t This selects the IPQ806x SoC glue layer support for the stmmac\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-99-\t device driver. This driver does not use any of the hardware\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=114=config DWMAC_MEDIATEK\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-119-\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:120:\t This selects the MT2712 SoC support for the stmmac driver.\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-121-\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=122=config DWMAC_MESON\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-129-\t This selects the Amlogic Meson SoC glue layer support for\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:130:\t the stmmac device driver. This driver is used for Meson6,\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-131-\t Meson8, Meson8b and GXBB SoCs.\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=133=config DWMAC_NUVOTON\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-141-\t This selects the Nuvoton MA35 series SoC glue layer support\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:142:\t for the stmmac device driver. The nuvoton-dwmac driver is\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-143-\t used for MA35 series SoCs.\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=145=config DWMAC_QCOM_ETHQOS\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-152-\t This selects the Qualcomm ETHQOS glue layer support for the\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:153:\t stmmac device driver.\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-154-\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=155=config DWMAC_RENESAS_GBETH\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-163-\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:164:\t This selects Renesas SoC glue layer support for the stmmac device\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-165-\t driver. This driver is used for the RZ/V2H(P) family, RZ/T2H and\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=168=config DWMAC_ROCKCHIP\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-176-\t This selects the Rockchip RK3288 SoC glue layer support for\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:177:\t the stmmac device driver.\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-178-\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=179=config DWMAC_RZN1\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-187-\t This selects the Renesas RZ/N1 SoC glue layer support for\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:188:\t the stmmac device driver. This support can make use of a custom MII\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-189-\t converter PCS device.\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=191=config DWMAC_S32\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-197-\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:198:\t This selects NXP SoC glue layer support for the stmmac\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-199-\t device driver. This driver is used for the S32CC series\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=203=config DWMAC_SOCFPGA\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-214-\t This selects the Altera SOCFPGA SoC glue layer support\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:215:\t for the stmmac device driver. This driver is used for\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-216-\t arria5 and cyclone5 FPGA SoCs.\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=218=config DWMAC_SOPHGO\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-225-\t This selects the Sophgo SoC specific glue layer support\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:226:\t for the stmmac device driver. This driver is used for the\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-227-\t ethernet controllers on various Sophgo SoCs.\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=229=config DWMAC_SPACEMIT\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-237-\t This selects the Spacemit platform specific glue layer support\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:238:\t for the stmmac device driver. This driver is used for the\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-239-\t Spacemit K3 ethernet controllers.\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=241=config DWMAC_STARFIVE\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-249-\t This selects the StarFive platform specific glue layer support\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:250:\t for the stmmac device driver. This driver is used for the\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-251-\t StarFive JH7100 and JH7110 ethernet controllers.\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=253=config DWMAC_STI\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-260-\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:261:\t This selects STi SoC glue layer support for the stmmac\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-262-\t device driver. This driver is used on for the STi series\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=265=config DWMAC_STM32\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-272-\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:273:\t This selects STM32 SoC glue layer support for the stmmac\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-274-\t device driver. This driver is used on for the STM32 series\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=277=config DWMAC_SUNXI\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-284-\t This selects Allwinner SoC glue layer support for the\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:285:\t stmmac device driver. This driver is used for A20/A31\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-286-\t GMAC ethernet controller.\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=288=config DWMAC_SUN8I\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-296-\t This selects Allwinner SoC glue layer support for the\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:297:\t stmmac device driver. This driver is used for H3/A83T/A64\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-298-\t EMAC ethernet controller.\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=300=config DWMAC_SUN55I\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-308-\t This selects Allwinner SoC glue layer support for the\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:309:\t stmmac device driver. This driver is used for A523/T527\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-310-\t GMAC200 ethernet controller.\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=312=config DWMAC_THEAD\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-318-\t This selects the T-HEAD platform specific glue layer support for\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:319:\t the stmmac device driver. This driver is used for T-HEAD TH1520\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-320-\t ethernet controller.\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=322=config DWMAC_IMX8\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-329-\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:330:\t This selects NXP SoC glue layer support for the stmmac\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-331-\t device driver. This driver is used for i.MX8 series like\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=334=config DWMAC_INTEL_PLAT\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-340-\t This selects the Intel platform specific glue layer support for\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:341:\t the stmmac device driver. This driver is used for the Intel Keem Bay\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-342-\t SoC.\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=344=config DWMAC_LOONGSON1\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-350-\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:351:\t This selects Loongson1 SoC glue layer support for the stmmac\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-352-\t device driver. This driver is used for Loongson1-based boards\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=355=config DWMAC_TEGRA\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-360-\t found on the NVIDIA Tegra SoC devices. This driver provides the glue\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:361:\t layer on top of the stmmac driver required for these NVIDIA Tegra SoC\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-362-\t devices.\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=373=config STMMAC_LIBPCI\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-375-\thelp\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:376:\t This option enables the PCI bus helpers for the stmmac driver.\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-377-\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=378=config DWMAC_INTEL\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-385-\t This selects the Intel platform specific bus support for the\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:386:\t stmmac driver. This driver is used for Intel Quark/EHL/TGL.\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-387-\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=388=config DWMAC_LOONGSON\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-394-\thelp\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:395:\t This selects the LOONGSON PCI bus support for the stmmac driver,\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-396-\t Support for ethernet controller on Loongson-2K1000 SoC and LS7A1000 bridge.\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=407=config STMMAC_PCI\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-412-\thelp\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:413:\t This selects the platform specific bus support for the stmmac driver.\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-414-\t This driver was tested on XLINX XC2V3000 FF1152AMT0221\n--\ndrivers/net/ethernet/stmicro/stmmac/Makefile-1-# SPDX-License-Identifier: GPL-2.0\ndrivers/net/ethernet/stmicro/stmmac/Makefile:2:obj-$(CONFIG_STMMAC_ETH) += stmmac.o\ndrivers/net/ethernet/stmicro/stmmac/Makefile:3:stmmac-objs:= stmmac_main.o stmmac_ethtool.o stmmac_mdio.o ring_mode.o\t\\\ndrivers/net/ethernet/stmicro/stmmac/Makefile-4-\t chain_mode.o dwmac_lib.o dwmac1000_core.o dwmac1000_dma.o\t\\\ndrivers/net/ethernet/stmicro/stmmac/Makefile-5-\t dwmac100_core.o dwmac100_dma.o enh_desc.o norm_desc.o\t\\\ndrivers/net/ethernet/stmicro/stmmac/Makefile:6:\t mmc_core.o stmmac_hwtstamp.o stmmac_ptp.o dwmac4_descs.o\t\\\ndrivers/net/ethernet/stmicro/stmmac/Makefile-7-\t dwmac4_dma.o dwmac4_lib.o dwmac4_core.o dwmac5.o hwif.o \\\ndrivers/net/ethernet/stmicro/stmmac/Makefile:8:\t stmmac_tc.o dwxgmac2_core.o dwxgmac2_dma.o dwxgmac2_descs.o \\\ndrivers/net/ethernet/stmicro/stmmac/Makefile:9:\t stmmac_xdp.o stmmac_est.o stmmac_fpe.o stmmac_vlan.o \\\ndrivers/net/ethernet/stmicro/stmmac/Makefile:10:\t stmmac_pcs.o $(stmmac-y)\ndrivers/net/ethernet/stmicro/stmmac/Makefile-11-\ndrivers/net/ethernet/stmicro/stmmac/Makefile:12:stmmac-$(CONFIG_STMMAC_SELFTESTS) += stmmac_selftests.o\ndrivers/net/ethernet/stmicro/stmmac/Makefile-13-\ndrivers/net/ethernet/stmicro/stmmac/Makefile-14-# Ordering matters. Generic driver must be last.\ndrivers/net/ethernet/stmicro/stmmac/Makefile:15:obj-$(CONFIG_STMMAC_PLATFORM)\t+= stmmac-platform.o\ndrivers/net/ethernet/stmicro/stmmac/Makefile-16-obj-$(CONFIG_DWMAC_ANARION)\t+= dwmac-anarion.o\n--\ndrivers/net/ethernet/stmicro/stmmac/Makefile=45=obj-$(CONFIG_DWMAC_VISCONTI)\t+= dwmac-visconti.o\ndrivers/net/ethernet/stmicro/stmmac/Makefile:46:stmmac-platform-objs:= stmmac_platform.o\ndrivers/net/ethernet/stmicro/stmmac/Makefile-47-dwmac-altr-socfpga-objs := dwmac-socfpga.o\ndrivers/net/ethernet/stmicro/stmmac/Makefile-48-\ndrivers/net/ethernet/stmicro/stmmac/Makefile:49:obj-$(CONFIG_STMMAC_LIBPCI)\t+= stmmac_libpci.o\ndrivers/net/ethernet/stmicro/stmmac/Makefile:50:obj-$(CONFIG_STMMAC_PCI)\t+= stmmac-pci.o\ndrivers/net/ethernet/stmicro/stmmac/Makefile-51-obj-$(CONFIG_DWMAC_INTEL)\t+= dwmac-intel.o\n--\ndrivers/net/ethernet/stmicro/stmmac/Makefile=53=obj-$(CONFIG_DWMAC_MOTORCOMM)\t+= dwmac-motorcomm.o\ndrivers/net/ethernet/stmicro/stmmac/Makefile:54:stmmac-pci-objs:= stmmac_pci.o\n--\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c-14-\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c:15:#include \"stmmac.h\"\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c-16-\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c:17:static int jumbo_frm(struct stmmac_tx_queue *tx_q, struct sk_buff *skb,\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c-18-\t\t int csum)\n--\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c-20-\tunsigned int nopaged_len = skb_headlen(skb);\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c:21:\tstruct stmmac_priv *priv = tx_q-\u003epriv_data;\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c-22-\tunsigned int entry = tx_q-\u003ecur_tx;\n--\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c-45-\t/* do not close the descriptor and do not set own bit */\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c:46:\tstmmac_prepare_tx_desc(priv, desc, 1, buf_len, csum, STMMAC_CHAIN_MODE,\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c-47-\t\t\t0, false, skb-\u003elen);\n--\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c-62-\t\t\ttx_q-\u003etx_skbuff_dma[entry].len = bmax;\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c:63:\t\t\tstmmac_prepare_tx_desc(priv, desc, 0, bmax, csum,\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c-64-\t\t\t\t\tSTMMAC_CHAIN_MODE, 1, false, skb-\u003elen);\n--\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c-76-\t\t\t/* last descriptor can be set now */\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c:77:\t\t\tstmmac_prepare_tx_desc(priv, desc, 0, len, csum,\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c-78-\t\t\t\t\tSTMMAC_CHAIN_MODE, 1, true, skb-\u003elen);\n--\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c=99=static void init_dma_chain(void *des, dma_addr_t phy_addr,\n--\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c-128-\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c:129:static void refill_desc3(struct stmmac_rx_queue *rx_q, struct dma_desc *p)\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c-130-{\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c:131:\tstruct stmmac_priv *priv = rx_q-\u003epriv_data;\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c-132-\n--\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c-143-\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c:144:static void clean_desc3(struct stmmac_tx_queue *tx_q, struct dma_desc *p)\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c-145-{\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c:146:\tstruct stmmac_priv *priv = tx_q-\u003epriv_data;\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c-147-\tunsigned int entry = tx_q-\u003edirty_tx;\n--\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c-160-\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c:161:const struct stmmac_mode_ops chain_mode_ops = {\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c-162-\t.init = init_dma_chain,\n--\ndrivers/net/ethernet/stmicro/stmmac/common.h-15-#include \u003clinux/netdevice.h\u003e\ndrivers/net/ethernet/stmicro/stmmac/common.h:16:#include \u003clinux/stmmac.h\u003e\ndrivers/net/ethernet/stmicro/stmmac/common.h-17-#include \u003clinux/phy.h\u003e\n--\ndrivers/net/ethernet/stmicro/stmmac/common.h=49=static inline bool dwmac_is_xmac(enum dwmac_core_type core_type)\n--\ndrivers/net/ethernet/stmicro/stmmac/common.h-70-\ndrivers/net/ethernet/stmicro/stmmac/common.h:71:struct stmmac_q_tx_stats {\ndrivers/net/ethernet/stmicro/stmmac/common.h-72-\tu64_stats_t tx_bytes;\n--\ndrivers/net/ethernet/stmicro/stmmac/common.h-77-\ndrivers/net/ethernet/stmicro/stmmac/common.h:78:struct stmmac_napi_tx_stats {\ndrivers/net/ethernet/stmicro/stmmac/common.h-79-\tu64_stats_t tx_packets;\n--\ndrivers/net/ethernet/stmicro/stmmac/common.h-85-\ndrivers/net/ethernet/stmicro/stmmac/common.h:86:struct stmmac_txq_stats {\ndrivers/net/ethernet/stmicro/stmmac/common.h-87-\t/* Updates protected by tx queue lock. */\ndrivers/net/ethernet/stmicro/stmmac/common.h-88-\tstruct u64_stats_sync q_syncp;\ndrivers/net/ethernet/stmicro/stmmac/common.h:89:\tstruct stmmac_q_tx_stats q;\ndrivers/net/ethernet/stmicro/stmmac/common.h-90-\n--\ndrivers/net/ethernet/stmicro/stmmac/common.h-92-\tstruct u64_stats_sync napi_syncp;\ndrivers/net/ethernet/stmicro/stmmac/common.h:93:\tstruct stmmac_napi_tx_stats napi;\ndrivers/net/ethernet/stmicro/stmmac/common.h-94-} ____cacheline_aligned_in_smp;\ndrivers/net/ethernet/stmicro/stmmac/common.h-95-\ndrivers/net/ethernet/stmicro/stmmac/common.h:96:struct stmmac_napi_rx_stats {\ndrivers/net/ethernet/stmicro/stmmac/common.h-97-\tu64_stats_t rx_bytes;\n--\ndrivers/net/ethernet/stmicro/stmmac/common.h-102-\ndrivers/net/ethernet/stmicro/stmmac/common.h:103:struct stmmac_rxq_stats {\ndrivers/net/ethernet/stmicro/stmmac/common.h-104-\t/* Updates protected by NAPI poll logic. */\ndrivers/net/ethernet/stmicro/stmmac/common.h-105-\tstruct u64_stats_sync napi_syncp;\ndrivers/net/ethernet/stmicro/stmmac/common.h:106:\tstruct stmmac_napi_rx_stats napi;\ndrivers/net/ethernet/stmicro/stmmac/common.h-107-} ____cacheline_aligned_in_smp;\n--\ndrivers/net/ethernet/stmicro/stmmac/common.h-109-/* Updates on each CPU protected by not allowing nested irqs. */\ndrivers/net/ethernet/stmicro/stmmac/common.h:110:struct stmmac_pcpu_stats {\ndrivers/net/ethernet/stmicro/stmmac/common.h-111-\tstruct u64_stats_sync syncp;\n--\ndrivers/net/ethernet/stmicro/stmmac/common.h-116-/* Extra statistic and debug information exposed by ethtool */\ndrivers/net/ethernet/stmicro/stmmac/common.h:117:struct stmmac_extra_stats {\ndrivers/net/ethernet/stmicro/stmmac/common.h-118-\t/* Transmit errors */\n--\ndrivers/net/ethernet/stmicro/stmmac/common.h-237-\t/* per queue statistics */\ndrivers/net/ethernet/stmicro/stmmac/common.h:238:\tstruct stmmac_txq_stats txq_stats[MTL_MAX_TX_QUEUES];\ndrivers/net/ethernet/stmicro/stmmac/common.h:239:\tstruct stmmac_rxq_stats rxq_stats[MTL_MAX_RX_QUEUES];\ndrivers/net/ethernet/stmicro/stmmac/common.h:240:\tstruct stmmac_pcpu_stats __percpu *pcpu_stats;\ndrivers/net/ethernet/stmicro/stmmac/common.h-241-\tunsigned long rx_dropped;\n--\ndrivers/net/ethernet/stmicro/stmmac/common.h-247-/* Safety Feature statistics exposed by ethtool */\ndrivers/net/ethernet/stmicro/stmmac/common.h:248:struct stmmac_safety_stats {\ndrivers/net/ethernet/stmicro/stmmac/common.h-249-\tunsigned long mac_errors[32];\n--\ndrivers/net/ethernet/stmicro/stmmac/common.h-256-#define STMMAC_SAFETY_FEAT_SIZE\t\\\ndrivers/net/ethernet/stmicro/stmmac/common.h:257:\t(sizeof(struct stmmac_safety_stats) / sizeof(unsigned long))\ndrivers/net/ethernet/stmicro/stmmac/common.h-258-\n--\ndrivers/net/ethernet/stmicro/stmmac/common.h=416=struct dma_features {\n--\ndrivers/net/ethernet/stmicro/stmmac/common.h-566-\ndrivers/net/ethernet/stmicro/stmmac/common.h:567:void stmmac_axi_blen_to_mask(u32 *regval, const u32 *blen, size_t len);\ndrivers/net/ethernet/stmicro/stmmac/common.h-568-\n--\ndrivers/net/ethernet/stmicro/stmmac/common.h=615=struct mac_device_info {\ndrivers/net/ethernet/stmicro/stmmac/common.h:616:\tconst struct stmmac_ops *mac;\ndrivers/net/ethernet/stmicro/stmmac/common.h:617:\tconst struct stmmac_desc_ops *desc;\ndrivers/net/ethernet/stmicro/stmmac/common.h:618:\tconst struct stmmac_dma_ops *dma;\ndrivers/net/ethernet/stmicro/stmmac/common.h:619:\tconst struct stmmac_mode_ops *mode;\ndrivers/net/ethernet/stmicro/stmmac/common.h:620:\tconst struct stmmac_hwtimestamp *ptp;\ndrivers/net/ethernet/stmicro/stmmac/common.h:621:\tconst struct stmmac_tc_ops *tc;\ndrivers/net/ethernet/stmicro/stmmac/common.h:622:\tconst struct stmmac_mmc_ops *mmc;\ndrivers/net/ethernet/stmicro/stmmac/common.h:623:\tconst struct stmmac_est_ops *est;\ndrivers/net/ethernet/stmicro/stmmac/common.h:624:\tconst struct stmmac_vlan_ops *vlan;\ndrivers/net/ethernet/stmicro/stmmac/common.h-625-\tstruct dw_xpcs *xpcs;\n--\ndrivers/net/ethernet/stmicro/stmmac/common.h-649-\ndrivers/net/ethernet/stmicro/stmmac/common.h:650:struct stmmac_rx_routing {\ndrivers/net/ethernet/stmicro/stmmac/common.h-651-\tu32 reg_mask;\n--\ndrivers/net/ethernet/stmicro/stmmac/common.h-654-\ndrivers/net/ethernet/stmicro/stmmac/common.h:655:int dwmac100_setup(struct stmmac_priv *priv);\ndrivers/net/ethernet/stmicro/stmmac/common.h:656:int dwmac1000_setup(struct stmmac_priv *priv);\ndrivers/net/ethernet/stmicro/stmmac/common.h:657:int dwmac4_setup(struct stmmac_priv *priv);\ndrivers/net/ethernet/stmicro/stmmac/common.h:658:int dwxgmac2_setup(struct stmmac_priv *priv);\ndrivers/net/ethernet/stmicro/stmmac/common.h:659:int dwxlgmac2_setup(struct stmmac_priv *priv);\ndrivers/net/ethernet/stmicro/stmmac/common.h-660-\ndrivers/net/ethernet/stmicro/stmmac/common.h:661:void stmmac_set_mac_addr(void __iomem *ioaddr, const u8 addr[6],\ndrivers/net/ethernet/stmicro/stmmac/common.h-662-\t\t\t unsigned int high, unsigned int low);\ndrivers/net/ethernet/stmicro/stmmac/common.h:663:void stmmac_get_mac_addr(void __iomem *ioaddr, unsigned char *addr,\ndrivers/net/ethernet/stmicro/stmmac/common.h-664-\t\t\t unsigned int high, unsigned int low);\ndrivers/net/ethernet/stmicro/stmmac/common.h:665:void stmmac_set_mac(void __iomem *ioaddr, bool enable);\ndrivers/net/ethernet/stmicro/stmmac/common.h-666-\ndrivers/net/ethernet/stmicro/stmmac/common.h:667:void stmmac_dwmac4_set_mac_addr(void __iomem *ioaddr, const u8 addr[6],\ndrivers/net/ethernet/stmicro/stmmac/common.h-668-\t\t\t\tunsigned int high, unsigned int low);\ndrivers/net/ethernet/stmicro/stmmac/common.h:669:void stmmac_dwmac4_get_mac_addr(void __iomem *ioaddr, unsigned char *addr,\ndrivers/net/ethernet/stmicro/stmmac/common.h-670-\t\t\t\tunsigned int high, unsigned int low);\ndrivers/net/ethernet/stmicro/stmmac/common.h:671:void stmmac_dwmac4_set_mac(void __iomem *ioaddr, bool enable);\ndrivers/net/ethernet/stmicro/stmmac/common.h-672-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c-11-#include \u003clinux/of_net.h\u003e\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c:12:#include \u003clinux/stmmac.h\u003e\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c-13-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c:14:#include \"stmmac.h\"\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c:15:#include \"stmmac_platform.h\"\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c-16-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c=63=anarion_config_dt(struct platform_device *pdev,\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c:64:\t\t struct plat_stmmacenet_data *plat_dat)\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c-65-{\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c=93=static int anarion_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c-96-\tstruct anarion_gmac *gmac;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c:97:\tstruct plat_stmmacenet_data *plat_dat;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c:98:\tstruct stmmac_resources stmmac_res;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c-99-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c:100:\tret = stmmac_get_platform_resources(pdev, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c-101-\tif (ret)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c-103-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c:104:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c-105-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c-115-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c:116:\treturn devm_stmmac_pltfr_probe(pdev, plat_dat, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c-117-}\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c=125=static struct platform_driver anarion_dwmac_driver = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c-128-\t\t.name = \"anarion-dwmac\",\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c:129:\t\t.pm\t\t= \u0026stmmac_pltfr_pm_ops,\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c-130-\t\t.of_match_table = anarion_dwmac_match,\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-21-#include \u003clinux/reset.h\u003e\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:22:#include \u003clinux/stmmac.h\u003e\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-23-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:24:#include \"stmmac_platform.h\"\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-25-#include \"dwmac4.h\"\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c=36=static int dwc_eth_dwmac_config_dt(struct platform_device *pdev,\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:37:\t\t\t\t struct plat_stmmacenet_data *plat_dat)\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-38-{\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-43-\t\tplat_dat-\u003eaxi = devm_kzalloc(\u0026pdev-\u003edev,\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:44:\t\t\t\t\t sizeof(struct stmmac_axi),\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-45-\t\t\t\t\t GFP_KERNEL);\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c=96=static int dwc_qos_probe(struct platform_device *pdev,\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:97:\t\t\t struct plat_stmmacenet_data *plat_dat,\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:98:\t\t\t struct stmmac_resources *stmmac_res)\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-99-{\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:100:\tplat_dat-\u003epclk = stmmac_pltfr_find_clk(plat_dat, \"phy_ref_clk\");\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-101-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c=115=static void tegra_eqos_fix_speed(void *bsp_priv, phy_interface_t interface,\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-119-\tbool needs_calibration = false;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:120:\tstruct stmmac_priv *priv;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-121-\tu32 value;\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-141-\t\t/* Calibration should be done with the MDIO bus idle */\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:142:\t\tstmmac_mdio_lock(priv);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-143-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-177-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:178:\t\tstmmac_mdio_unlock(priv);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-179-\t} else {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c=186=static int tegra_eqos_probe(struct platform_device *pdev,\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:187:\t\t\t struct plat_stmmacenet_data *plat_dat,\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:188:\t\t\t struct stmmac_resources *res)\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-189-{\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-203-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:204:\tplat_dat-\u003eclk_tx_i = stmmac_pltfr_find_clk(plat_dat, \"tx\");\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-205-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-237-\tplat_dat-\u003efix_mac_speed = tegra_eqos_fix_speed;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:238:\tplat_dat-\u003eset_clk_tx_rate = stmmac_set_clk_tx_rate;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-239-\tplat_dat-\u003ebsp_priv = eqos;\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c=252=static void tegra_eqos_remove(struct platform_device *pdev)\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-253-{\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:254:\tstruct tegra_eqos *eqos = get_stmmac_bsp_priv(\u0026pdev-\u003edev);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-255-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c=260=struct dwc_eth_dwmac_data {\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-261-\tint (*probe)(struct platform_device *pdev,\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:262:\t\t struct plat_stmmacenet_data *plat_dat,\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:263:\t\t struct stmmac_resources *res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-264-\tvoid (*remove)(struct platform_device *pdev);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:265:\tconst char *stmmac_clk_name;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-266-};\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c=268=static const struct dwc_eth_dwmac_data dwc_qos_data = {\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-269-\t.probe = dwc_qos_probe,\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:270:\t.stmmac_clk_name = \"apb_pclk\",\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-271-};\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c=273=static const struct dwc_eth_dwmac_data tegra_eqos_data = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-275-\t.remove = tegra_eqos_remove,\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:276:\t.stmmac_clk_name = \"slave_bus\",\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-277-};\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c=279=static const struct dwc_eth_dwmac_data fsd_eqos_data = {\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:280:\t.stmmac_clk_name = \"slave_bus\",\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-281-};\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c=283=static int dwc_eth_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-285-\tconst struct dwc_eth_dwmac_data *data;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:286:\tstruct plat_stmmacenet_data *plat_dat;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:287:\tstruct stmmac_resources stmmac_res;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-288-\tint ret;\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-291-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:292:\tmemset(\u0026stmmac_res, 0, sizeof(struct stmmac_resources));\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-293-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-294-\t/**\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:295:\t * Since stmmac_platform supports name IRQ only, basic platform\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-296-\t * resource initialization is done in the glue logic.\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-297-\t */\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:298:\tstmmac_res.irq = platform_get_irq(pdev, 0);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:299:\tif (stmmac_res.irq \u003c 0)\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:300:\t\treturn stmmac_res.irq;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:301:\tstmmac_res.wol_irq = stmmac_res.irq;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-302-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:303:\tstmmac_res.addr = devm_platform_ioremap_resource(pdev, 0);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:304:\tif (IS_ERR(stmmac_res.addr))\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:305:\t\treturn PTR_ERR(stmmac_res.addr);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-306-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:307:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-308-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-315-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:316:\tplat_dat-\u003estmmac_clk = stmmac_pltfr_find_clk(plat_dat,\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:317:\t\t\t\t\t\t data-\u003estmmac_clk_name);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-318-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-319-\tif (data-\u003eprobe)\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:320:\t\tret = data-\u003eprobe(pdev, plat_dat, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-321-\tif (ret \u003c 0) {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-329-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:330:\tret = stmmac_dvr_probe(\u0026pdev-\u003edev, plat_dat, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-331-\tif (ret)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c=343=static void dwc_eth_dwmac_remove(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-346-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:347:\tstmmac_dvr_remove(\u0026pdev-\u003edev);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-348-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c=361=static struct platform_driver dwc_eth_dwmac_driver = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-365-\t\t.name = \"dwc-eth-dwmac\",\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:366:\t\t.pm = \u0026stmmac_pltfr_pm_ops,\n\n"
} |
| 5/2 | 2026/08/31 07:30 | llm | patch-evaluator |
0mModel:gemini-3.7-flash Args: null Results: null Tokens: input: 20470 output: 39 thoughts: 507 Thoughts: **Analyzing the Fuzzing Potential of an `stmmac` Patch** Okay, let's break this down. First, `stmmac`... right, that's the Synopsys DesignWare Ethernet MAC driver, used across a ton of embedded SoCs and PCI boards. Allwinner, Intel, Renesas, the usual suspects. I need to make sure I know how it's used so I can assess whether it's worth fuzzing. My immediate questions are: Does QEMU even *emulate* `stmmac` hardware? Does it emulate the hardware that the patch is meant to fix? I need to figure out if any of the hardware it supports (STM32, Allwinner A10/H3, etc.) are emulated or reachable through the emulated setup. And what about Syzkaller? Is `stmmac` fuzzed in the standard setups? X86_64, arm64... does Syzkaller even target it? Wait, I need to go back and re-read the guidelines carefully. I have to make sure this patch isn't just documentation, logging, decorative changes, or something unreachable in QEMU. That's a waste of time. I have to consider whether it modifies reachable kernel logic, drivers, or architectures. That's the key. Okay, back to `stmmac`. I need to figure out *exactly* which hardware IDs or PCI devices `stmmac` supports, and then determine if QEMU can handle them, if they're reachable. I need to get into the code and start looking at files like `stmmac_pci.c`, `dwmac-intel.c`, `dwmac-loongson.c`, and so on. That's the next step. |
| 6/2 | 2026/08/31 07:30 | tool | grepper |
0mArgs:{
"Expression": "MODULE_DEVICE_TABLE",
"PathPrefix": "drivers/net/ethernet/stmicro/stmmac/"
}Results: {
"Output": "drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c=119=static const struct of_device_id anarion_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c-122-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c:123:MODULE_DEVICE_TABLE(of, anarion_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c-124-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c=353=static const struct of_device_id dwc_eth_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-358-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:359:MODULE_DEVICE_TABLE(of, dwc_eth_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-360-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c=350=static const struct of_device_id eic7700_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c-359-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c:360:MODULE_DEVICE_TABLE(of, eic7700_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c-361-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c=52=static const struct of_device_id dwmac_generic_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c-66-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c:67:MODULE_DEVICE_TABLE(of, dwmac_generic_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c-68-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c=384=static const struct of_device_id imx_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c-389-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c:390:MODULE_DEVICE_TABLE(of, imx_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c-391-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c=262=static const struct of_device_id ingenic_mac_of_matches[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c-269-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c:270:MODULE_DEVICE_TABLE(of, ingenic_mac_of_matches);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c-271-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c=36=static const struct of_device_id intel_eth_plat_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c-39-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c:40:MODULE_DEVICE_TABLE(of, intel_eth_plat_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c-41-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c=1395=static const struct pci_device_id intel_eth_pci_id_table[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c-1414-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c:1415:MODULE_DEVICE_TABLE(pci, intel_eth_pci_id_table);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c-1416-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c=491=static const struct of_device_id ipq806x_gmac_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c-494-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c:495:MODULE_DEVICE_TABLE(of, ipq806x_gmac_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c-496-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c=596=static const struct pci_device_id loongson_dwmac_id_table[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c-601-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c:602:MODULE_DEVICE_TABLE(pci, loongson_dwmac_id_table);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c-603-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson1.c=216=static const struct of_device_id ls1x_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson1.c-226-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson1.c:227:MODULE_DEVICE_TABLE(of, ls1x_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson1.c-228-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c=71=static const struct of_device_id lpc18xx_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c-74-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c:75:MODULE_DEVICE_TABLE(of, lpc18xx_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c-76-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c=662=static const struct of_device_id mediatek_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c-669-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c:670:MODULE_DEVICE_TABLE(of, mediatek_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c-671-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson.c=76=static const struct of_device_id meson6_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson.c-79-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson.c:80:MODULE_DEVICE_TABLE(of, meson6_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson.c-81-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c=482=static const struct of_device_id meson8b_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c-504-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c:505:MODULE_DEVICE_TABLE(of, meson8b_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c-506-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c=367=static const struct pci_device_id dwmac_motorcomm_pci_id_table[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c-370-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c:371:MODULE_DEVICE_TABLE(pci, dwmac_motorcomm_pci_id_table);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c-372-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-nuvoton.c=118=static const struct of_device_id nvt_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-nuvoton.c-121-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-nuvoton.c:122:MODULE_DEVICE_TABLE(of, nvt_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-nuvoton.c-123-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c=800=static const struct of_device_id qcom_ethqos_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c-806-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c:807:MODULE_DEVICE_TABLE(of, qcom_ethqos_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c-808-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-renesas-gbeth.c=216=static const struct of_device_id renesas_gbeth_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-renesas-gbeth.c-221-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-renesas-gbeth.c:222:MODULE_DEVICE_TABLE(of, renesas_gbeth_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-renesas-gbeth.c-223-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rk.c=1616=static const struct of_device_id rk_gmac_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rk.c-1634-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rk.c:1635:MODULE_DEVICE_TABLE(of, rk_gmac_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rk.c-1636-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rzn1.c=75=static const struct of_device_id rzn1_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rzn1.c-78-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rzn1.c:79:MODULE_DEVICE_TABLE(of, rzn1_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rzn1.c-80-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-s32.c=216=static const struct of_device_id s32_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-s32.c-219-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-s32.c:220:MODULE_DEVICE_TABLE(of, s32_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-s32.c-221-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c=673=static const struct of_device_id socfpga_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c-678-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c:679:MODULE_DEVICE_TABLE(of, socfpga_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c-680-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c=72=static const struct of_device_id sophgo_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c-76-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c:77:MODULE_DEVICE_TABLE(of, sophgo_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c-78-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-spacemit.c=210=static const struct of_device_id spacemit_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-spacemit.c-213-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-spacemit.c:214:MODULE_DEVICE_TABLE(of, spacemit_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-spacemit.c-215-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-starfive.c=160=static const struct of_device_id starfive_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-starfive.c-164-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-starfive.c:165:MODULE_DEVICE_TABLE(of, starfive_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-starfive.c-166-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sti.c=296=static const struct of_device_id sti_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sti.c-299-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sti.c:300:MODULE_DEVICE_TABLE(of, sti_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sti.c-301-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c=662=static const struct of_device_id stm32_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c-668-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c:669:MODULE_DEVICE_TABLE(of, stm32_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c-670-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun55i.c=141=static const struct of_device_id sun55i_gmac200_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun55i.c-144-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun55i.c:145:MODULE_DEVICE_TABLE(of, sun55i_gmac200_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun55i.c-146-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c=1268=static const struct of_device_id sun8i_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c-1282-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c:1283:MODULE_DEVICE_TABLE(of, sun8i_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c-1284-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c=150=static const struct of_device_id sun7i_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c-153-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c:154:MODULE_DEVICE_TABLE(of, sun7i_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c-155-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-tegra.c=397=static const struct of_device_id tegra_mgbe_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-tegra.c-400-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-tegra.c:401:MODULE_DEVICE_TABLE(of, tegra_mgbe_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-tegra.c-402-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-thead.c=267=static const struct of_device_id thead_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-thead.c-270-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-thead.c:271:MODULE_DEVICE_TABLE(of, thead_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-thead.c-272-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-visconti.c=255=static const struct of_device_id visconti_eth_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-visconti.c-258-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-visconti.c:259:MODULE_DEVICE_TABLE(of, visconti_eth_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-visconti.c-260-\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_pci.c=203=static const struct pci_device_id stmmac_id_table[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_pci.c-209-\ndrivers/net/ethernet/stmicro/stmmac/stmmac_pci.c:210:MODULE_DEVICE_TABLE(pci, stmmac_id_table);\ndrivers/net/ethernet/stmicro/stmmac/stmmac_pci.c-211-\n"
} |
| 7/2 | 2026/08/31 07:30 | llm | patch-evaluator |
0mModel:gemini-3.7-flash Args: null Results: null Tokens: input: 26764 output: 40 thoughts: 1105 Thoughts: **Analyzing QEMU Emulation Capabilities for Ethernet Drivers** Okay, here's what I'm thinking... first, I need to figure out if QEMU *actually* emulates the stmmac driver at all. Is it a standard emulation or is it something that requires a specific QEMU configuration or even a custom setup? My initial thought is to check if it's emulated in any common ARM platforms. Let's see. Does QEMU have support for `allwinner-emac`, or specifically `allwinner-sun8i-emac`, or even the generic `designware` ethernet controller? I recall seeing something... Ah, yes, QEMU does have `allwinner-sun8i-emac`, along with other options like `cadence_gem`, `imx_fec`, and `lan9118`. But, does it have the specific `dwc_eth_qos` or simply `dwmac` that's relevant to this potential investigation? Okay, it seems QEMU has `allwinner-sun8i-emac`, and I see the path `hw/net/allwinner-sun8i-emac.c`. Does that `allwinner-sun8i-emac` correspond to the `sun8i_dwmac` or the more general `sun8i-emac`? Wait, before getting too deep, let's refresh our memory of the rules: the code is only considered "worth fuzzing" if the changes impact reachable kernel logic, drivers, or architectures. Things like documentation, Kconfig, or comments are out. Also, we're not interested in parts that are impossible to reach in virtualized environments like QEMU. That includes things like vendor-specific PCIe cards, teardown code, and drivers requiring physical hardware. So, I need to check if `stmmac/dwmac4` is reachable in QEMU or GCE. Let's enumerate the ethernet drivers that are emulated in a standard QEMU environment (x86 or arm64). I know there are drivers like `e1000`, `e1000e`, `igb`, `vmxnet3`, `rtl8139`, `pcnet`, `ne2k_pci`, `virtio-net`, `sungem`, and `rocker`. USB ethernet, like `usb-net` and `cdc-ether`, is another area. But, where does `stmmac` fit in? Let's check the source, specifically `stmmac_pci.c` and `dwmac-intel.c`. In `stmmac_pci.c`, I see PCI devices from ST Microelectronics/Synopsys (0x104A) and also from Intel. In `dwmac-intel.c`, there's an Intel Quark device (0x0937) and newer Intel families (EHL, TGL, etc). There's also `dwmac-loongson.c`, for the LS7A1000. Now, the critical question: are any of these emulated by standard QEMU or in GCE? Nope, it doesn't look like QEMU emulates Intel Quark/EHL GbE (dwmac), Loongson stmmac, or STM/Synopsys PCI MAC. Okay, let's try a different tack. What about ARM, RISC-V, or MIPS QEMU machines? Let's check... with QEMU: * `arm` has versatilepb (smc91c111), realview (smc91c111 / lan9118), virt (virtio-net), raspi (bcm2835 / smsc9512), and orangepi-pc (allwinner-h3). Bingo! The `orangepi-pc` has `allwinner-sun8i-emac`! And, `sun8i_dwmac.c` in Linux is `drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c`. Aha! Now we're getting somewhere. Does `dwmac-sun8i.c` *use* `dwmac4`? The answer to that question is key! Time to dig into `dwmac-sun8i.c`! |
| 8/2 | 2026/08/31 07:31 | tool | grepper |
0mArgs:{
"Expression": "DWMAC_CORE_",
"PathPrefix": "drivers/net/ethernet/stmicro/stmmac/"
}Results: {
"Output": "drivers/net/ethernet/stmicro/stmmac/common.h-32-/* Synopsys Core versions */\ndrivers/net/ethernet/stmicro/stmmac/common.h:33:#define\tDWMAC_CORE_3_40\t\t0x34\ndrivers/net/ethernet/stmicro/stmmac/common.h:34:#define\tDWMAC_CORE_3_50\t\t0x35\ndrivers/net/ethernet/stmicro/stmmac/common.h:35:#define\tDWMAC_CORE_3_70\t\t0x37\ndrivers/net/ethernet/stmicro/stmmac/common.h:36:#define\tDWMAC_CORE_4_00\t\t0x40\ndrivers/net/ethernet/stmicro/stmmac/common.h:37:#define DWMAC_CORE_4_10\t\t0x41\ndrivers/net/ethernet/stmicro/stmmac/common.h:38:#define DWMAC_CORE_5_00\t\t0x50\ndrivers/net/ethernet/stmicro/stmmac/common.h:39:#define DWMAC_CORE_5_10\t\t0x51\ndrivers/net/ethernet/stmicro/stmmac/common.h:40:#define DWMAC_CORE_5_20\t\t0x52\ndrivers/net/ethernet/stmicro/stmmac/common.h-41-#define DWXGMAC_CORE_2_10\t0x21\n--\ndrivers/net/ethernet/stmicro/stmmac/common.h=49=static inline bool dwmac_is_xmac(enum dwmac_core_type core_type)\ndrivers/net/ethernet/stmicro/stmmac/common.h-50-{\ndrivers/net/ethernet/stmicro/stmmac/common.h:51:\treturn core_type == DWMAC_CORE_GMAC4 || core_type == DWMAC_CORE_XGMAC;\ndrivers/net/ethernet/stmicro/stmmac/common.h-52-}\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c=36=static int dwc_eth_dwmac_config_dt(struct platform_device *pdev,\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-87-\t/* dwc-qos needs GMAC4, AAL, TSO and PMT */\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:88:\tplat_dat-\u003ecore_type = DWMAC_CORE_GMAC4;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-89-\tplat_dat-\u003edma_cfg-\u003eaal = 1;\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c=596=static void common_default_data(struct plat_stmmacenet_data *plat)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c-599-\tplat-\u003eclk_csr = STMMAC_CSR_20_35M;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c:600:\tplat-\u003ecore_type = DWMAC_CORE_GMAC;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c-601-\tplat-\u003eforce_sf_dma_mode = true;\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c=616=static int intel_mgbe_common_data(struct pci_dev *pdev,\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c-626-\tplat-\u003eclk_csr = STMMAC_CSR_250_300M;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c:627:\tplat-\u003ecore_type = DWMAC_CORE_GMAC4;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c-628-\tplat-\u003eforce_sf_dma_mode = 0;\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c=374=static int ipq806x_gmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c-475-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c:476:\tplat_dat-\u003ecore_type = DWMAC_CORE_GMAC;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c-477-\tplat_dat-\u003ebsp_priv = gmac;\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c-72-#define PCI_DEVICE_ID_LOONGSON_GNET\t0x7a13\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c:73:#define DWMAC_CORE_MULTICHAN_V1\t0x10\t/* Loongson custom ID 0x10 */\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c:74:#define DWMAC_CORE_MULTICHAN_V2\t0x12\t/* Loongson custom ID 0x12 */\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c-75-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c=86=static void loongson_default_data(struct pci_dev *pdev,\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c-95-\tplat-\u003eclk_csr = STMMAC_CSR_100_150M;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c:96:\tplat-\u003ecore_type = DWMAC_CORE_GMAC;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c-97-\tplat-\u003eforce_sf_dma_mode = true;\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c-108-\tswitch (ld-\u003eloongson_id) {\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c:109:\tcase DWMAC_CORE_MULTICHAN_V1:\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c-110-\t\tld-\u003emultichan = 1;\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c-120-\t\tbreak;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c:121:\tcase DWMAC_CORE_MULTICHAN_V2:\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c-122-\t\tld-\u003emultichan = 1;\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c=306=static int loongson_dwmac_setup(void *apriv, struct mac_device_info *mac)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c-328-\tif (ld-\u003emultichan) {\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c:329:\t\tpriv-\u003esynopsys_id = DWMAC_CORE_3_70;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c-330-\t\t*dma = dwmac1000_dma_ops;\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c=42=static int lpc18xx_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c-56-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c:57:\tplat_dat-\u003ecore_type = DWMAC_CORE_GMAC;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c-58-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c=208=motorcomm_default_plat_data(struct pci_dev *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c-247-\tplat-\u003eclk_ref_rate\t= 125000000;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c:248:\tplat-\u003ecore_type\t\t= DWMAC_CORE_GMAC4;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c-249-\tplat-\u003esuspend\t\t= stmmac_pci_plat_suspend;\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c=684=static int qcom_ethqos_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c-776-\tplat_dat-\u003eptp_clk_freq_config = ethqos_ptp_clk_freq_config;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c:777:\tplat_dat-\u003ecore_type = DWMAC_CORE_GMAC4;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c-778-\tif (ethqos-\u003ehas_emac_ge_3)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rk.c=1568=static int rk_gmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rk.c-1591-\t */\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rk.c:1592:\tif (plat_dat-\u003ecore_type != DWMAC_CORE_GMAC4) {\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rk.c:1593:\t\tplat_dat-\u003ecore_type = DWMAC_CORE_GMAC;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rk.c-1594-\t\tplat_dat-\u003erx_fifo_size = 4096;\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-s32.c=144=static int s32_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-s32.c-195-\t/* S32CC core feature set */\ndrivers/net/ethernet/stmicro/stmmac/dwmac-s32.c:196:\tplat-\u003ecore_type = DWMAC_CORE_GMAC4;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-s32.c-197-\tplat-\u003epmt = true;\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c=559=static void socfpga_gen5_setup_plat_dat(struct socfpga_dwmac *dwmac)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c-562-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c:563:\tplat_dat-\u003ecore_type = DWMAC_CORE_GMAC;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c-564-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c=569=static void socfpga_agilex5_setup_plat_dat(struct socfpga_dwmac *dwmac)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c-572-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c:573:\tplat_dat-\u003ecore_type = DWMAC_CORE_XGMAC;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c-574-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c=99=static int sun7i_gmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c-138-\tplat_dat-\u003etx_coe = true;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c:139:\tplat_dat-\u003ecore_type = DWMAC_CORE_GMAC;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c-140-\tplat_dat-\u003ebsp_priv = gmac;\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-tegra.c=214=static int tegra_mgbe_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-tegra.c-325-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-tegra.c:326:\tplat-\u003ecore_type = DWMAC_CORE_XGMAC;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-tegra.c-327-\tplat-\u003eflags |= STMMAC_FLAG_TSO_EN;\n--\ndrivers/net/ethernet/stmicro/stmmac/hwif.c=21=static void stmmac_get_version(struct stmmac_priv *priv,\n--\ndrivers/net/ethernet/stmicro/stmmac/hwif.c-30-\ndrivers/net/ethernet/stmicro/stmmac/hwif.c:31:\tif (core_type == DWMAC_CORE_MAC100)\ndrivers/net/ethernet/stmicro/stmmac/hwif.c-32-\t\treturn;\ndrivers/net/ethernet/stmicro/stmmac/hwif.c-33-\ndrivers/net/ethernet/stmicro/stmmac/hwif.c:34:\tif (core_type == DWMAC_CORE_GMAC)\ndrivers/net/ethernet/stmicro/stmmac/hwif.c-35-\t\tversion_offset = GMAC_VERSION;\n--\ndrivers/net/ethernet/stmicro/stmmac/hwif.c-49-\tver-\u003esnpsver = FIELD_GET(DWMAC_SNPSVER, version);\ndrivers/net/ethernet/stmicro/stmmac/hwif.c:50:\tif (core_type == DWMAC_CORE_XGMAC)\ndrivers/net/ethernet/stmicro/stmmac/hwif.c-51-\t\tver-\u003edev_id = FIELD_GET(DWMAC_USERVER, version);\n--\ndrivers/net/ethernet/stmicro/stmmac/hwif.c=69=static int stmmac_dwmac1_quirks(struct stmmac_priv *priv)\n--\ndrivers/net/ethernet/stmicro/stmmac/hwif.c-76-\t\t/* GMAC older than 3.50 has no extended descriptors */\ndrivers/net/ethernet/stmicro/stmmac/hwif.c:77:\t\tif (priv-\u003esynopsys_id \u003e= DWMAC_CORE_3_50) {\ndrivers/net/ethernet/stmicro/stmmac/hwif.c-78-\t\t\tdev_info(priv-\u003edevice, \"Enabled extended descriptors\\n\");\n--\ndrivers/net/ethernet/stmicro/stmmac/hwif.c=111=static const struct stmmac_hwif_entry {\n--\ndrivers/net/ethernet/stmicro/stmmac/hwif.c-130-\t{\ndrivers/net/ethernet/stmicro/stmmac/hwif.c:131:\t\t.core_type = DWMAC_CORE_MAC100,\ndrivers/net/ethernet/stmicro/stmmac/hwif.c-132-\t\t.min_id = 0,\n--\ndrivers/net/ethernet/stmicro/stmmac/hwif.c-147-\t}, {\ndrivers/net/ethernet/stmicro/stmmac/hwif.c:148:\t\t.core_type = DWMAC_CORE_GMAC,\ndrivers/net/ethernet/stmicro/stmmac/hwif.c-149-\t\t.min_id = 0,\n--\ndrivers/net/ethernet/stmicro/stmmac/hwif.c-164-\t}, {\ndrivers/net/ethernet/stmicro/stmmac/hwif.c:165:\t\t.core_type = DWMAC_CORE_GMAC4,\ndrivers/net/ethernet/stmicro/stmmac/hwif.c-166-\t\t.min_id = 0,\n--\ndrivers/net/ethernet/stmicro/stmmac/hwif.c-184-\t}, {\ndrivers/net/ethernet/stmicro/stmmac/hwif.c:185:\t\t.core_type = DWMAC_CORE_GMAC4,\ndrivers/net/ethernet/stmicro/stmmac/hwif.c:186:\t\t.min_id = DWMAC_CORE_4_00,\ndrivers/net/ethernet/stmicro/stmmac/hwif.c-187-\t\t.regs = {\n--\ndrivers/net/ethernet/stmicro/stmmac/hwif.c-205-\t}, {\ndrivers/net/ethernet/stmicro/stmmac/hwif.c:206:\t\t.core_type = DWMAC_CORE_GMAC4,\ndrivers/net/ethernet/stmicro/stmmac/hwif.c:207:\t\t.min_id = DWMAC_CORE_4_10,\ndrivers/net/ethernet/stmicro/stmmac/hwif.c-208-\t\t.regs = {\n--\ndrivers/net/ethernet/stmicro/stmmac/hwif.c-226-\t}, {\ndrivers/net/ethernet/stmicro/stmmac/hwif.c:227:\t\t.core_type = DWMAC_CORE_GMAC4,\ndrivers/net/ethernet/stmicro/stmmac/hwif.c:228:\t\t.min_id = DWMAC_CORE_5_10,\ndrivers/net/ethernet/stmicro/stmmac/hwif.c-229-\t\t.regs = {\n--\ndrivers/net/ethernet/stmicro/stmmac/hwif.c-247-\t}, {\ndrivers/net/ethernet/stmicro/stmmac/hwif.c:248:\t\t.core_type = DWMAC_CORE_XGMAC,\ndrivers/net/ethernet/stmicro/stmmac/hwif.c-249-\t\t.min_id = DWXGMAC_CORE_2_10,\n--\ndrivers/net/ethernet/stmicro/stmmac/hwif.c-269-\t}, {\ndrivers/net/ethernet/stmicro/stmmac/hwif.c:270:\t\t.core_type = DWMAC_CORE_XGMAC,\ndrivers/net/ethernet/stmicro/stmmac/hwif.c-271-\t\t.min_id = DWXLGMAC_CORE_2_00,\n--\ndrivers/net/ethernet/stmicro/stmmac/hwif.c=294=stmmac_hwif_find(enum dwmac_core_type core_type, u8 snpsver, u8 dev_id)\n--\ndrivers/net/ethernet/stmicro/stmmac/hwif.c-306-\t\t\tcontinue;\ndrivers/net/ethernet/stmicro/stmmac/hwif.c:307:\t\tif (core_type == DWMAC_CORE_XGMAC \u0026\u0026\ndrivers/net/ethernet/stmicro/stmmac/hwif.c-308-\t\t dev_id != entry-\u003edev_id)\n--\ndrivers/net/ethernet/stmicro/stmmac/hwif.c=317=int stmmac_hwif_init(struct stmmac_priv *priv)\n--\ndrivers/net/ethernet/stmicro/stmmac/hwif.c-352-\t\t\t\"Failed to find HW IF (id=0x%x, gmac=%d/%d)\\n\",\ndrivers/net/ethernet/stmicro/stmmac/hwif.c:353:\t\t\tversion.snpsver, core_type == DWMAC_CORE_GMAC,\ndrivers/net/ethernet/stmicro/stmmac/hwif.c:354:\t\t\tcore_type == DWMAC_CORE_GMAC4);\ndrivers/net/ethernet/stmicro/stmmac/hwif.c-355-\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_est.c=28=static int est_configure(struct stmmac_priv *priv, struct stmmac_est *cfg,\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_est.c-55-\tctrl = readl(est_addr + EST_CONTROL);\ndrivers/net/ethernet/stmicro/stmmac/stmmac_est.c:56:\tif (priv-\u003eplat-\u003ecore_type == DWMAC_CORE_XGMAC) {\ndrivers/net/ethernet/stmicro/stmmac/stmmac_est.c-57-\t\tctrl \u0026= ~EST_XGMAC_PTOV;\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_est.c=83=static void est_irq_status(struct stmmac_priv *priv, struct net_device *dev,\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_est.c-150-\tif (status \u0026 EST_BTRE) {\ndrivers/net/ethernet/stmicro/stmmac/stmmac_est.c:151:\t\tif (priv-\u003eplat-\u003ecore_type == DWMAC_CORE_XGMAC) {\ndrivers/net/ethernet/stmicro/stmmac/stmmac_est.c-152-\t\t\tbtrl = FIELD_GET(EST_XGMAC_BTRL, status);\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c=301=static void stmmac_ethtool_getdrvinfo(struct net_device *dev,\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c-305-\ndrivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c:306:\tif (priv-\u003eplat-\u003ecore_type == DWMAC_CORE_GMAC ||\ndrivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c:307:\t priv-\u003eplat-\u003ecore_type == DWMAC_CORE_GMAC4)\ndrivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c-308-\t\tstrscpy(info-\u003edriver, GMAC_ETHTOOL_NAME, sizeof(info-\u003edriver));\ndrivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c:309:\telse if (priv-\u003eplat-\u003ecore_type == DWMAC_CORE_XGMAC)\ndrivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c-310-\t\tstrscpy(info-\u003edriver, XGMAC_ETHTOOL_NAME, sizeof(info-\u003edriver));\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c=350=static int stmmac_ethtool_get_regs_len(struct net_device *dev)\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c-353-\ndrivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c:354:\tif (priv-\u003eplat-\u003ecore_type == DWMAC_CORE_XGMAC)\ndrivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c-355-\t\treturn XGMAC_REGSIZE * 4;\ndrivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c:356:\telse if (priv-\u003eplat-\u003ecore_type == DWMAC_CORE_GMAC4)\ndrivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c-357-\t\treturn GMAC4_REG_SPACE_SIZE;\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c=361=static void stmmac_ethtool_gregs(struct net_device *dev,\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c-370-\t/* Copy DMA registers to where ethtool expects them */\ndrivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c:371:\tif (priv-\u003eplat-\u003ecore_type == DWMAC_CORE_GMAC4) {\ndrivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c-372-\t\t/* GMAC4 dumps its DMA registers at its DMA_CHAN_BASE_ADDR */\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c-375-\t\t NUM_DWMAC4_DMA_REGS * 4);\ndrivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c:376:\t} else if (priv-\u003eplat-\u003ecore_type != DWMAC_CORE_XGMAC) {\ndrivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c-377-\t\tmemcpy(\u0026reg_space[ETHTOOL_DMA_OFFSET],\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c=515=static void stmmac_get_ethtool_stats(struct net_device *dev,\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c-555-\ndrivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c:556:\t\tif (priv-\u003esynopsys_id \u003e= DWMAC_CORE_3_50)\ndrivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c-557-\t\t\tstmmac_mac_debug(priv, priv-\u003eioaddr,\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c=642=static int stmmac_hwtstamp_set(struct net_device *dev,\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-757-\t\t\tsnap_type_sel = PTP_TCR_SNAPTYPSEL_1;\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c:758:\t\t\tif (priv-\u003esynopsys_id \u003c DWMAC_CORE_3_70 \u0026\u0026\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c:759:\t\t\t priv-\u003eplat-\u003ecore_type != DWMAC_CORE_XGMAC)\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-760-\t\t\t\tts_event_en = PTP_TCR_TSEVNTENA;\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c=4379=static void stmmac_set_gso_features(struct net_device *ndev)\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-4408-\tndev-\u003ehw_features |= NETIF_F_TSO | NETIF_F_TSO6;\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c:4409:\tif (priv-\u003eplat-\u003ecore_type == DWMAC_CORE_GMAC4)\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-4410-\t\tndev-\u003ehw_features |= NETIF_F_GSO_UDP_L4;\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c=5124=static unsigned int stmmac_rx_buf2_len(struct stmmac_priv *priv,\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-5149-\t/* Not GMAC4 and not last descriptor */\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c:5150:\tif (priv-\u003eplat-\u003ecore_type != DWMAC_CORE_GMAC4 \u0026\u0026 (status \u0026 rx_not_ls))\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-5151-\t\treturn priv-\u003edma_conf.dma_buf_sz;\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c=6207=static void stmmac_common_interrupt(struct stmmac_priv *priv)\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-6228-\t/* To handle GMAC own interrupts */\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c:6229:\tif (priv-\u003eplat-\u003ecore_type == DWMAC_CORE_GMAC || xmac) {\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-6230-\t\tint status = stmmac_host_irq_status(priv, \u0026priv-\u003exstats);\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c=6543=static int stmmac_dma_cap_show(struct seq_file *seq, void *v)\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-6578-\t\t (priv-\u003edma_cap.half_duplex) ? \"Y\" : \"N\");\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c:6579:\tif (priv-\u003eplat-\u003ecore_type == DWMAC_CORE_XGMAC) {\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-6580-\t\tseq_printf(seq,\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-6582-\t\t\t priv-\u003edma_cap.multi_addr);\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c:6583:\t} else if (priv-\u003eplat-\u003ecore_type == DWMAC_CORE_GMAC4) {\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-6584-\t\tseq_printf(seq,\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-6614-\t\t (priv-\u003edma_cap.atime_stamp) ? \"Y\" : \"N\");\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c:6615:\tif (priv-\u003eplat-\u003ecore_type == DWMAC_CORE_XGMAC)\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-6616-\t\tseq_printf(seq, \"\\tTimestamp System Time Source: %s\\n\",\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-6622-\t\t (priv-\u003edma_cap.tx_coe) ? \"Y\" : \"N\");\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c:6623:\tif (priv-\u003esynopsys_id \u003e= DWMAC_CORE_4_00 ||\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c:6624:\t priv-\u003eplat-\u003ecore_type == DWMAC_CORE_XGMAC) {\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-6625-\t\tseq_printf(seq, \"\\tIP Checksum Offload in RX: %s\\n\",\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c=7355=static void stmmac_print_actphyif(struct stmmac_priv *priv)\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-7361-\tswitch (priv-\u003eplat-\u003ecore_type) {\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c:7362:\tcase DWMAC_CORE_MAC100:\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-7363-\t\treturn;\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-7364-\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c:7365:\tcase DWMAC_CORE_GMAC:\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c:7366:\tcase DWMAC_CORE_GMAC4:\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-7367-\t\tphyif_table = stmmac_dwmac_actphyif;\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-7370-\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c:7371:\tcase DWMAC_CORE_XGMAC:\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-7372-\t\tphyif_table = stmmac_dwxgmac_phyif;\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c=7397=static int stmmac_hw_init(struct stmmac_priv *priv)\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-7452-\t\tdev_info(priv-\u003edevice, \"RX Checksum Offload Engine supported\\n\");\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c:7453:\t\tif (priv-\u003esynopsys_id \u003c DWMAC_CORE_4_00)\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-7454-\t\t\tdev_info(priv-\u003edevice, \"COE Type %d\\n\", priv-\u003ehw-\u003erx_csum);\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-7497-\t */\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c:7498:\tif (priv-\u003eplat-\u003ecore_type == DWMAC_CORE_GMAC4) {\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-7499-\t\tpriv-\u003ehw-\u003emulti_addr = priv-\u003edma_cap.multi_addr;\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-7545-\t */\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c:7546:\tif ((priv-\u003esynopsys_id \u003e= DWMAC_CORE_3_50 ||\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c:7547:\t priv-\u003eplat-\u003ecore_type == DWMAC_CORE_XGMAC) \u0026\u0026\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-7548-\t !priv-\u003eplat-\u003eriwt_off) {\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c=7813=static int __stmmac_dvr_probe(struct device *device,\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-7922-\t */\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c:7923:\tif (priv-\u003esynopsys_id \u003c DWMAC_CORE_5_20)\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-7924-\t\tpriv-\u003eplat-\u003edma_cfg-\u003edche = false;\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-8020-\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c:8021:\tif (priv-\u003eplat-\u003ecore_type == DWMAC_CORE_XGMAC)\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-8022-\t\tndev-\u003emax_mtu = XGMAC_JUMBO_LEN;\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c:8023:\telse if (priv-\u003eplat-\u003eenh_desc || priv-\u003esynopsys_id \u003e= DWMAC_CORE_4_00)\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-8024-\t\tndev-\u003emax_mtu = JUMBO_LEN;\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c=299=static int stmmac_mdio_read_c22(struct mii_bus *bus, int phyaddr, int phyreg)\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c-303-\ndrivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c:304:\tif (priv-\u003eplat-\u003ecore_type == DWMAC_CORE_GMAC4)\ndrivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c-305-\t\tcmd = MII_GMAC4_READ;\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c=341=static int stmmac_mdio_write_c22(struct mii_bus *bus, int phyaddr, int phyreg,\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c-346-\ndrivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c:347:\tif (priv-\u003eplat-\u003ecore_type == DWMAC_CORE_GMAC4)\ndrivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c-348-\t\tcmd = MII_GMAC4_WRITE;\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c=381=int stmmac_mdio_reset(struct mii_bus *bus)\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c-419-\t */\ndrivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c:420:\tif (priv-\u003eplat-\u003ecore_type != DWMAC_CORE_GMAC4)\ndrivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c-421-\t\twritel(0, priv-\u003eioaddr + mii_address);\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c=536=static u32 stmmac_clk_csr_set(struct stmmac_priv *priv)\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c-554-\t\trates = stmmac_sun8i_csr_to_mdc;\ndrivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c:555:\tif (priv-\u003eplat-\u003ecore_type == DWMAC_CORE_XGMAC)\ndrivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c-556-\t\trates = stmmac_xgmac_csr_to_mdc;\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c=595=int stmmac_mdio_register(struct net_device *ndev)\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c-621-\ndrivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c:622:\tif (priv-\u003eplat-\u003ecore_type == DWMAC_CORE_XGMAC) {\ndrivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c-623-\t\tnew_bus-\u003eread = \u0026stmmac_xgmac2_mdio_read_c22;\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c-639-\t\tnew_bus-\u003ewrite = \u0026stmmac_mdio_write_c22;\ndrivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c:640:\t\tif (priv-\u003eplat-\u003ecore_type == DWMAC_CORE_GMAC4) {\ndrivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c-641-\t\t\tnew_bus-\u003eread_c45 = \u0026stmmac_mdio_read_c45;\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c-665-\t/* Looks like we need a dummy read for XGMAC only and C45 PHYs */\ndrivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c:666:\tif (priv-\u003eplat-\u003ecore_type == DWMAC_CORE_XGMAC)\ndrivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c-667-\t\tstmmac_xgmac2_mdio_read_c45(new_bus, 0, 0, 0);\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_pci.c=23=static void common_default_data(struct plat_stmmacenet_data *plat)\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_pci.c-26-\tplat-\u003eclk_csr = STMMAC_CSR_20_35M;\ndrivers/net/ethernet/stmicro/stmmac/stmmac_pci.c:27:\tplat-\u003ecore_type = DWMAC_CORE_GMAC;\ndrivers/net/ethernet/stmicro/stmmac/stmmac_pci.c-28-\tplat-\u003eforce_sf_dma_mode = true;\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_pci.c=54=static int snps_gmac5_default_data(struct pci_dev *pdev,\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_pci.c-59-\tplat-\u003eclk_csr = STMMAC_CSR_250_300M;\ndrivers/net/ethernet/stmicro/stmmac/stmmac_pci.c:60:\tplat-\u003ecore_type = DWMAC_CORE_GMAC4;\ndrivers/net/ethernet/stmicro/stmmac/stmmac_pci.c-61-\tplat-\u003eforce_sf_dma_mode = true;\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c=414=stmmac_probe_config_dt(struct platform_device *pdev, u8 *mac)\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c-518-\t\t\t\t\u0026pdev-\u003edev, plat-\u003emulticast_filter_bins);\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c:519:\t\tplat-\u003ecore_type = DWMAC_CORE_GMAC;\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c-520-\t\tplat-\u003epmt = true;\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c-523-\tif (of_device_is_compatible(np, \"snps,dwmac-3.40a\")) {\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c:524:\t\tplat-\u003ecore_type = DWMAC_CORE_GMAC;\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c-525-\t\tplat-\u003eenh_desc = true;\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c-531-\tif (of_device_compatible_match(np, stmmac_gmac4_compats)) {\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c:532:\t\tplat-\u003ecore_type = DWMAC_CORE_GMAC4;\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c-533-\t\tplat-\u003epmt = true;\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c-545-\tif (of_device_is_compatible(np, \"snps,dwxgmac\")) {\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c:546:\t\tplat-\u003ecore_type = DWMAC_CORE_XGMAC;\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c-547-\t\tplat-\u003epmt = true;\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c=335=void stmmac_ptp_register(struct stmmac_priv *priv)\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c-348-\tpriv-\u003eplat-\u003ecdc_error_adj = 0;\ndrivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c:349:\tif (priv-\u003eplat-\u003ecore_type == DWMAC_CORE_GMAC4)\ndrivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c-350-\t\tpriv-\u003eplat-\u003ecdc_error_adj = (2 * NSEC_PER_SEC) / priv-\u003eplat-\u003eclk_ptp_rate;\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c=736=static int stmmac_test_flowctrl(struct stmmac_priv *priv)\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c-755-\t */\ndrivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:756:\tif (priv-\u003eplat-\u003ecore_type != DWMAC_CORE_MAC100 \u0026\u0026\ndrivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c-757-\t rx_fifo_size / priv-\u003eplat-\u003erx_queues_to_use \u003c 4096)\n"
} |
| 9/2 | 2026/08/31 07:31 | llm | patch-evaluator |
0mModel:gemini-3.7-flash Args: null Results: null Tokens: input: 41302 output: 133 thoughts: 1064 Thoughts: **Analysis of `stmmac` Driver Fuzzing Feasibility**
Okay, so I'm looking at this `stmmac` ethernet driver. It's for Synopsys DesignWare MAC (DWMAC) and STMicro MACs. My initial question is: can I even reach this thing in a standard virtualized fuzzing environment like QEMU or GCE?
The instructions tell me to avoid code that is unreachable in these environments. That includes drivers for hardware that isn't emulated, like vendor-specific PCIe switch drivers, SmartNICs, GPU drivers requiring physical PCIe cards, and driver cleanup routines only triggered by PCI hot-unplug.
So, is `stmmac` emulated in QEMU or GCE? Let's break it down:
* **QEMU (x86\_64, arm64 `virt` machine):** The standard network interfaces in QEMU are things like `virtio-net-pci`, `e1000`, and so on. None of the listed ones match `stmmac` directly. I also need to consider SoC platform devices. Looking at ARM machines:
* `virt` doesn't have `stmmac`, only virtio/pci
* Allwinner A10 (cubieboard) has `allwinner-emac`, but not `dwmac` or `stmmac`.
* Allwinner H3 (orangepi-pc) has `allwinner-sun8i-emac` which uses `dwmac-sun8i.c`, but it's not the same as the target: the patch is specifically for GMAC4 / dwmac4.
* It seems there's no QEMU machine that emulates DWMAC4 / DWMAC\_CORE\_GMAC4.
* **GCE (Google Compute Engine):** Only `virtio-net` or `gve` are available. No physical DWMAC hardware here either.
So, without any physical hardware, can I reach `stmmac`? All `stmmac` drivers are probed either via `platform_driver` (using an OF / device tree to match a specific SoC like Qualcomm ETHQOS, NXP S32, Rockchip RK3588, etc.) or `pci_driver` (Intel Elkhart Lake / Tiger Lake GbE, Motorcomm, Loongson LS7A1000, STMicro PCI). These are not present or emulated in standard environments.
Therefore, this code path is in vendor-specific SoC/physical ethernet hardware drivers that are not emulated in standard QEMU/GCE, and it's unreachable during fuzzing.
Let's double-check all the details:
1. **WorthFuzzing=false?** Yes, because the code path is impossible to reach in virtualized environments.
2. **Reasoning:** The patch modifies unicast MAC filtering logic and hardware feature parsing in the Synopsys DesignWare MAC (DWMAC4) / STMMAC Ethernet driver, specifically in `dwmac4_core.c`, `dwmac4_dma.c`, and `stmmac_main.c`. DWMAC4 hardware is only present on specific physical SoCs and PCI cards (e.g. Intel Elkhart Lake, NXP S32, Qualcomm ETHQOS) which are not emulated in standard QEMU or available in virtualized fuzzing environments like GCE.
3. **FocusSymbols:** \[].
4. **EnableConfigs:** \[].
Okay, that's conclusive. Let's call `set-results`.
|
| 10/2 | 2026/08/31 07:31 | tool | set-results |
0mArgs:{
"EnableConfigs": [],
"FocusSymbols": [],
"Reasoning": "The patch modifies the Synopsys DesignWare MAC 4 (DWMAC4) unicast filter configuration and hardware feature detection in the STMMAC ethernet driver. DWMAC4 controllers are embedded in physical SoCs (e.g., Intel Elkhart Lake, Qualcomm ETHQOS, NXP S32) and PCI devices that are not emulated in standard QEMU or virtualized cloud environments (GCE). Consequently, these code paths are unreachable in virtualized fuzzing environments.",
"WorthFuzzing": false
}Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The patch modifies the Synopsys DesignWare MAC 4 (DWMAC4) unicast filter configuration and hardware feature detection in the STMMAC ethernet driver. DWMAC4 controllers are embedded in physical SoCs (e.g., Intel Elkhart Lake, Qualcomm ETHQOS, NXP S32) and PCI devices that are not emulated in standard QEMU or virtualized cloud environments (GCE). Consequently, these code paths are unreachable in virtualized fuzzing environments.",
"WorthFuzzing": false
} |
| 11/1 | 2026/08/31 07:31 | action | If |
0mArgs:{
"WorthFuzzing": false
}Results: null |
| Total Calls | Total Tokens | Avg Tokens | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|
| Total Calls | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|