| Seq | Timestamp | Type | Name | Duration |
|---|---|---|---|---|
| 0/0 | 2026/09/27 13:15 | flow | patch-triage |
0mArgs:null Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"KMSANReasoning": "",
"NeedsKMSAN": false,
"Reasoning": "The patch modifies the STMicroelectronics / Synopsys DesignWare Ethernet MAC driver (stmmac) to support multi-buffer XDP frame transmission. This driver targets physical SoC and PCI Ethernet controllers that are not emulated in standard virtualized fuzzing environments (QEMU/GCE) on amd64. Because the corresponding hardware devices are absent, the driver cannot be probed and the modified code is structurally unreachable.",
"WorthFuzzing": false
} |
| 1/1 | 2026/09/27 13:15 | action | read-patch-diff |
0mArgs:null Results: {
"PatchDiff": "commit 12ab0f059f26cf23ba2806a07a77692b69ea63f4\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate: Sun Sep 27 13:15:58 2026 +0000\n\n syz-cluster: applied patch under review\n\ndiff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c\nindex 3ad9252bf6aea..f1e9ac2f98598 100644\n--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c\n+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c\n@@ -5241,77 +5241,118 @@ static unsigned int stmmac_rx_buf2_len(struct stmmac_priv *priv,\n static int stmmac_xdp_xmit_xdpf(struct stmmac_priv *priv, int queue,\n \t\t\t\tstruct xdp_frame *xdpf, bool dma_map)\n {\n-\tstruct stmmac_txq_stats *txq_stats = \u0026priv-\u003exstats.txq_stats[queue];\n+\tstruct skb_shared_info *sinfo = xdp_get_shared_info_from_frame(xdpf);\n \tstruct stmmac_tx_queue *tx_q = \u0026priv-\u003edma_conf.tx_queue[queue];\n \tbool csum = !priv-\u003eplat-\u003etx_queues_cfg[queue].coe_unsupported;\n+\tunsigned int txq_thr = STMMAC_TX_THRESH(priv);\n+\tunsigned int first_entry = tx_q-\u003ecur_tx;\n \tunsigned int entry = tx_q-\u003ecur_tx;\n-\tenum stmmac_txbuf_type buf_type;\n-\tstruct dma_desc *tx_desc;\n-\tdma_addr_t dma_addr;\n-\tbool set_ic;\n+\tunsigned int num_frames = 1;\n+\tstruct dma_desc *desc;\n+\tint i = 0;\n \n-\tif (stmmac_tx_avail(priv, queue) \u003c STMMAC_TX_THRESH(priv))\n+\tif (unlikely(xdp_frame_has_frags(xdpf)))\n+\t\tnum_frames += sinfo-\u003enr_frags;\n+\n+\tif (stmmac_tx_avail(priv, queue) \u003c max(num_frames, txq_thr))\n \t\treturn STMMAC_XDP_CONSUMED;\n \n \tif (priv-\u003eest \u0026\u0026 priv-\u003eest-\u003eenable \u0026\u0026\n \t priv-\u003eest-\u003emax_sdu[queue] \u0026\u0026\n-\t xdpf-\u003elen \u003e priv-\u003eest-\u003emax_sdu[queue]) {\n+\t xdp_get_frame_len(xdpf) \u003e priv-\u003eest-\u003emax_sdu[queue]) {\n \t\tpriv-\u003exstats.max_sdu_txq_drop[queue]++;\n \t\treturn STMMAC_XDP_CONSUMED;\n \t}\n \n-\ttx_desc = stmmac_get_tx_desc(priv, tx_q, entry);\n-\tif (dma_map) {\n-\t\tdma_addr = dma_map_single(priv-\u003edevice, xdpf-\u003edata,\n-\t\t\t\t\t xdpf-\u003elen, DMA_TO_DEVICE);\n-\t\tif (dma_mapping_error(priv-\u003edevice, dma_addr))\n-\t\t\treturn STMMAC_XDP_CONSUMED;\n-\n-\t\tbuf_type = STMMAC_TXBUF_T_XDP_NDO;\n-\t} else {\n-\t\tstruct page *page = virt_to_page(xdpf-\u003edata);\n-\n-\t\tdma_addr = page_pool_get_dma_addr(page) + sizeof(*xdpf) +\n-\t\t\t xdpf-\u003eheadroom;\n-\t\tdma_sync_single_for_device(priv-\u003edevice, dma_addr,\n-\t\t\t\t\t xdpf-\u003elen, DMA_BIDIRECTIONAL);\n-\n-\t\tbuf_type = STMMAC_TXBUF_T_XDP_TX;\n-\t}\n+\twhile (true) {\n+\t\tskb_frag_t *frag = i ? \u0026sinfo-\u003efrags[i - 1] : NULL;\n+\t\tint len = frag ? skb_frag_size(frag) : xdpf-\u003elen;\n+\t\tbool last_frame = i == num_frames - 1;\n+\t\tenum stmmac_txbuf_type buf_type;\n+\t\tdma_addr_t dma_addr;\n \n-\tstmmac_set_tx_dma_entry(tx_q, entry, buf_type, dma_addr, xdpf-\u003elen,\n-\t\t\t\tfalse);\n-\tstmmac_set_tx_dma_last_segment(tx_q, entry);\n+\t\tdesc = stmmac_get_tx_desc(priv, tx_q, entry);\n+\t\tif (dma_map) {\n+\t\t\tif (frag)\n+\t\t\t\tdma_addr = skb_frag_dma_map(priv-\u003edevice,\n+\t\t\t\t\t\t\t frag, 0, len,\n+\t\t\t\t\t\t\t DMA_TO_DEVICE);\n+\t\t\telse\n+\t\t\t\tdma_addr = dma_map_single(priv-\u003edevice,\n+\t\t\t\t\t\t\t xdpf-\u003edata, len,\n+\t\t\t\t\t\t\t DMA_TO_DEVICE);\n+\t\t\tif (dma_mapping_error(priv-\u003edevice, dma_addr))\n+\t\t\t\tgoto error_dma_unmap;\n \n-\ttx_q-\u003exdpf[entry] = xdpf;\n+\t\t\tbuf_type = STMMAC_TXBUF_T_XDP_NDO;\n+\t\t} else {\n+\t\t\tstruct page *page;\n \n-\tstmmac_set_desc_addr(priv, tx_desc, dma_addr);\n+\t\t\tpage = frag ? skb_frag_page(frag)\n+\t\t\t\t : virt_to_page(xdpf-\u003edata);\n+\t\t\tdma_addr = page_pool_get_dma_addr(page);\n+\t\t\tif (frag)\n+\t\t\t\tdma_addr += skb_frag_off(frag);\n+\t\t\telse\n+\t\t\t\tdma_addr += sizeof(*xdpf) + xdpf-\u003eheadroom;\n+\t\t\tdma_sync_single_for_device(priv-\u003edevice, dma_addr,\n+\t\t\t\t\t\t len, DMA_BIDIRECTIONAL);\n+\t\t\tbuf_type = STMMAC_TXBUF_T_XDP_TX;\n+\t\t}\n \n-\tstmmac_prepare_tx_desc(priv, tx_desc, 1, xdpf-\u003elen,\n-\t\t\t csum, priv-\u003edescriptor_mode, true, true,\n-\t\t\t xdpf-\u003elen);\n+\t\tstmmac_set_tx_dma_entry(tx_q, entry, buf_type, dma_addr, len,\n+\t\t\t\t\tdma_map \u0026\u0026 frag);\n+\t\tstmmac_set_desc_addr(priv, desc, dma_addr);\n+\t\tstmmac_prepare_tx_desc(priv, desc, !i, len, csum,\n+\t\t\t\t priv-\u003edescriptor_mode, !!i, last_frame,\n+\t\t\t\t xdp_get_frame_len(xdpf));\n+\t\ttx_q-\u003exdpf[entry] = last_frame ? xdpf : NULL;\n+\t\tif (last_frame) {\n+\t\t\tstmmac_set_tx_dma_last_segment(tx_q, entry);\n+\t\t\tbreak;\n+\t\t}\n \n-\ttx_q-\u003etx_count_frames++;\n+\t\tentry = STMMAC_NEXT_ENTRY(entry, priv-\u003edma_conf.dma_tx_size);\n+\t\ti++;\n+\t}\n+\ttx_q-\u003etx_count_frames += num_frames;\n \n-\tif (tx_q-\u003etx_count_frames % priv-\u003etx_coal_frames[queue] == 0)\n-\t\tset_ic = true;\n-\telse\n-\t\tset_ic = false;\n+\tif (priv-\u003etx_coal_frames[queue] \u0026\u0026\n+\t (tx_q-\u003etx_count_frames % priv-\u003etx_coal_frames[queue]) \u003c num_frames) {\n+\t\tstruct stmmac_txq_stats *txq_stats;\n \n-\tif (set_ic) {\n+\t\tdesc = stmmac_get_tx_desc(priv, tx_q, entry);\n+\t\tstmmac_set_tx_ic(priv, desc);\n \t\ttx_q-\u003etx_count_frames = 0;\n-\t\tstmmac_set_tx_ic(priv, tx_desc);\n+\n+\t\ttxq_stats = \u0026priv-\u003exstats.txq_stats[queue];\n \t\tu64_stats_update_begin(\u0026txq_stats-\u003eq_syncp);\n \t\tu64_stats_inc(\u0026txq_stats-\u003eq.tx_set_ic_bit);\n \t\tu64_stats_update_end(\u0026txq_stats-\u003eq_syncp);\n \t}\n \n+\t/* Set the OWN bit on the first descriptor now that all descriptors\n+\t * for this xdp_frame are populated.\n+\t */\n+\tdesc = stmmac_get_tx_desc(priv, tx_q, first_entry);\n+\tdma_wmb();\n+\tstmmac_set_tx_owner(priv, desc);\n+\ttx_q-\u003ecur_tx = STMMAC_NEXT_ENTRY(entry, priv-\u003edma_conf.dma_tx_size);\n \tstmmac_enable_dma_transmission(priv, priv-\u003eioaddr, queue);\n \n-\tentry = STMMAC_NEXT_ENTRY(entry, priv-\u003edma_conf.dma_tx_size);\n-\ttx_q-\u003ecur_tx = entry;\n-\n \treturn STMMAC_XDP_TX;\n+\n+error_dma_unmap:\n+\twhile (first_entry != entry) {\n+\t\tdesc = stmmac_get_tx_desc(priv, tx_q, first_entry);\n+\t\tstmmac_release_tx_desc(priv, desc, priv-\u003edescriptor_mode);\n+\t\tstmmac_free_tx_buffer(priv, \u0026priv-\u003edma_conf, queue,\n+\t\t\t\t first_entry);\n+\t\tfirst_entry = STMMAC_NEXT_ENTRY(first_entry,\n+\t\t\t\t\t\tpriv-\u003edma_conf.dma_tx_size);\n+\t}\n+\n+\treturn STMMAC_XDP_CONSUMED;\n }\n \n static int stmmac_xdp_get_tx_queue(struct stmmac_priv *priv,\ndiff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_xdp.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_xdp.c\nindex d7e4db7224b0c..9af9e0cb366c3 100644\n--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_xdp.c\n+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_xdp.c\n@@ -135,7 +135,7 @@ int stmmac_xdp_set_prog(struct stmmac_priv *priv, struct bpf_prog *prog,\n \t\tstmmac_xdp_open(dev);\n \n \tif (prog)\n-\t\txdp_features_set_redirect_target(dev, false);\n+\t\txdp_features_set_redirect_target(dev, true);\n \n \treturn 0;\n }\n"
} |
| 2/1 | 2026/09/27 13:16 | agent | patch-evaluator |
0mModel:core Args: null Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The patch modifies the STMicroelectronics / Synopsys DesignWare Ethernet MAC driver (stmmac) to support multi-buffer XDP frame transmission. This driver targets physical SoC and PCI Ethernet controllers that are not emulated in standard virtualized fuzzing environments (QEMU/GCE) on amd64. Because the corresponding hardware devices are absent, the driver cannot be probed and the modified code is structurally unreachable.",
"WorthFuzzing": false
}Instruction: You are an expert Linux kernel maintainer and security engineer.
Your job is to review a provided patch series and evaluate whether it warrants fuzzing with syzkaller.
IMPORTANT: The changes have ALREADY been applied and committed as the HEAD commit in
your workspace. Do NOT rely on internal assumptions. You must actively use your code access
tools to inspect the actual source code, callers, and surrounding context.
================================================================================
1. CORE TRIAGE PHILOSOPHY
================================================================================
The goal of patch fuzzing is to discover crashes, regressions, exposed latent bugs,
and newly triggered assertions introduced by the patch series.
- REACHABILITY IS THE PRIMARY GATE:
Fuzzing can only discover bugs in code that can actually execute in standard virtualized
environments (GCE or QEMU, utilizing software-emulated devices like USB gadgets, netdev, tun/tap).
If the modified code is structurally unreachable (see Section 2), it MUST NOT be fuzzed,
regardless of whether it adds assertions or complex logic.
- DO NOT BLINDLY TRUST "NO FUNCTIONAL CHANGE" (NFCI) OR "REFACTORING" CLAIMS:
Patch authors routinely label changes as "cleanups", "refactorings", or state
"No functional change intended". Do NOT take these claims at face value.
Code refactorings that rearrange logic, introduce helper functions, or alter state management
in core subsystems frequently introduce subtle semantic shifts or uncover latent kernel bugs.
If reachable executable code is modified or refactored, it MUST be fuzzed.
- NEW OR MODIFIED ASSERTIONS IN REACHABLE CODE MUST BE FUZZED:
When a patch introduces or modifies runtime checks or assertions (e.g., WARN_ON*, VM_WARN_ON*,
BUG_ON*, lockdep_assert*) in reachable code paths, it enforces new or stricter invariants.
Even if the author believes the invariant always holds, fuzzing is essential to verify whether
an unusual sequence of operations can violate it.
================================================================================
2. WHEN TO RETURN WorthFuzzing=false (NEGATIVE CRITERIA)
================================================================================
Return WorthFuzzing=false ONLY IF all modified code falls strictly into one or more of these categories:
- Non-kernel and non-executable changes:
* Modifications to Documentation/, comments, or spelling fixes.
* User-space directories, self-tests, samples, or scripts (e.g., tools/, samples/, scripts/, usr/)
that do not affect the compiled kernel image (vmlinux) or kernel modules.
* Purely decorative logging (e.g., message strings in pr_err, printk, dev_info) or tracepoints
that do not alter control flow or data structures.
* Build system or Kconfig changes that do not alter compiled C logic.
- Structurally unreachable hardware:
* Vendor-specific PCIe switches, SmartNICs, or GPU drivers (e.g., mlxsw, pds_core, qed,
ionic, amdgpu) requiring physical ASIC/PCIe cards not emulated in standard QEMU.
- Unreachable execution paths:
* Driver teardown callbacks (.remove, .shutdown, pci_unregister_driver) executed only during
physical PCI hot-unplug or manual sysfs driver unbinding.
* Code paths exclusive to architectures other than the target architecture.
================================================================================
3. WHEN TO RETURN WorthFuzzing=true (POSITIVE CRITERIA)
================================================================================
Return WorthFuzzing=true whenever the patch touches reachable executable code, including:
- Core Subsystems:
* Any logic modifications in memory management (mm/), synchronization/locking (kernel/locking/),
BPF, scheduler, core networking, VFS, or syscall handling.
- Refactorings and Code Cleanups:
* Any restructuring of reachable data structures, helper abstractions, or algorithm flows.
- Runtime Assertions and Defensive Checks:
* Any introduction or alteration of assertions (WARN_ON*, VM_WARN_ON*, BUG_ON*, etc.) in reachable paths.
- Reachable Drivers and Protocols:
* Drivers accessible via virtual buses (virtio, USB gadget, loopback, netlink, binder, sockets, etc.).
================================================================================
4. EXTRACTING FocusSymbols (PREVENTING DILUTION)
================================================================================
When WorthFuzzing=true, you must extract specific kernel functions into FocusSymbols to guide the fuzzer:
- AVOID UBIQUITOUS LIFECYCLE HOT-PATHS:
Do NOT list generic, ubiquitous functions called by almost every program in the corpus
(including, but not limited to: general memory allocators and deallocators, page fault
and trap handlers, or core synchronization primitives; this is not an exhaustive list).
Listing ubiquitous functions causes the fuzzer to classify thousands of unrelated tests as "focused",
which severely dilutes fuzzing effort away from the actual changes.
- TARGET SPECIFIC FEATURE LOGIC AND ENTRYPOINTS:
List functions that specifically implement the logic being added or altered, or direct API entrypoints
for the subsystem feature under review.
- HANDLING STATIC INLINE FUNCTIONS IN HEADERS (.h):
Compiler-inlined static functions (such as static inlines in mm/*.h or include/linux/*.h) lack
distinct symbol addresses in vmlinux and cannot be targeted directly by symbol coverage filters.
If the changes are primarily in static inline helpers, identify non-static, feature-specific caller
functions in .c files that exercise them (avoiding ubiquitous lifecycle wrappers).
================================================================================
5. IDENTIFYING EnableConfigs
================================================================================
Identify any specific CONFIG_ options required to properly compile and reach the modified code:
- Inspect Kconfig files and #ifdef guards; do not make assumptions.
- Check "depends on" lines in Kconfig to include any non-standard parent subsystem configs needed.
- Strip any '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: Target architecture: amd64
For your convenience, here is the diff of the changes:
commit 12ab0f059f26cf23ba2806a07a77692b69ea63f4
Author: syz-cluster <triage@syzkaller.com>
Date: Sun Sep 27 13:15:58 2026 +0000
syz-cluster: applied patch under review
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
index 3ad9252bf6aea..f1e9ac2f98598 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
@@ -5241,77 +5241,118 @@ static unsigned int stmmac_rx_buf2_len(struct stmmac_priv *priv,
static int stmmac_xdp_xmit_xdpf(struct stmmac_priv *priv, int queue,
struct xdp_frame *xdpf, bool dma_map)
{
- struct stmmac_txq_stats *txq_stats = &priv->xstats.txq_stats[queue];
+ struct skb_shared_info *sinfo = xdp_get_shared_info_from_frame(xdpf);
struct stmmac_tx_queue *tx_q = &priv->dma_conf.tx_queue[queue];
bool csum = !priv->plat->tx_queues_cfg[queue].coe_unsupported;
+ unsigned int txq_thr = STMMAC_TX_THRESH(priv);
+ unsigned int first_entry = tx_q->cur_tx;
unsigned int entry = tx_q->cur_tx;
- enum stmmac_txbuf_type buf_type;
- struct dma_desc *tx_desc;
- dma_addr_t dma_addr;
- bool set_ic;
+ unsigned int num_frames = 1;
+ struct dma_desc *desc;
+ int i = 0;
- if (stmmac_tx_avail(priv, queue) < STMMAC_TX_THRESH(priv))
+ if (unlikely(xdp_frame_has_frags(xdpf)))
+ num_frames += sinfo->nr_frags;
+
+ if (stmmac_tx_avail(priv, queue) < max(num_frames, txq_thr))
return STMMAC_XDP_CONSUMED;
if (priv->est && priv->est->enable &&
priv->est->max_sdu[queue] &&
- xdpf->len > priv->est->max_sdu[queue]) {
+ xdp_get_frame_len(xdpf) > priv->est->max_sdu[queue]) {
priv->xstats.max_sdu_txq_drop[queue]++;
return STMMAC_XDP_CONSUMED;
}
- tx_desc = stmmac_get_tx_desc(priv, tx_q, entry);
- if (dma_map) {
- dma_addr = dma_map_single(priv->device, xdpf->data,
- xdpf->len, DMA_TO_DEVICE);
- if (dma_mapping_error(priv->device, dma_addr))
- return STMMAC_XDP_CONSUMED;
-
- buf_type = STMMAC_TXBUF_T_XDP_NDO;
- } else {
- struct page *page = virt_to_page(xdpf->data);
-
- dma_addr = page_pool_get_dma_addr(page) + sizeof(*xdpf) +
- xdpf->headroom;
- dma_sync_single_for_device(priv->device, dma_addr,
- xdpf->len, DMA_BIDIRECTIONAL);
-
- buf_type = STMMAC_TXBUF_T_XDP_TX;
- }
+ while (true) {
+ skb_frag_t *frag = i ? &sinfo->frags[i - 1] : NULL;
+ int len = frag ? skb_frag_size(frag) : xdpf->len;
+ bool last_frame = i == num_frames - 1;
+ enum stmmac_txbuf_type buf_type;
+ dma_addr_t dma_addr;
- stmmac_set_tx_dma_entry(tx_q, entry, buf_type, dma_addr, xdpf->len,
- false);
- stmmac_set_tx_dma_last_segment(tx_q, entry);
+ desc = stmmac_get_tx_desc(priv, tx_q, entry);
+ if (dma_map) {
+ if (frag)
+ dma_addr = skb_frag_dma_map(priv->device,
+ frag, 0, len,
+ DMA_TO_DEVICE);
+ else
+ dma_addr = dma_map_single(priv->device,
+ xdpf->data, len,
+ DMA_TO_DEVICE);
+ if (dma_mapping_error(priv->device, dma_addr))
+ goto error_dma_unmap;
- tx_q->xdpf[entry] = xdpf;
+ buf_type = STMMAC_TXBUF_T_XDP_NDO;
+ } else {
+ struct page *page;
- stmmac_set_desc_addr(priv, tx_desc, dma_addr);
+ page = frag ? skb_frag_page(frag)
+ : virt_to_page(xdpf->data);
+ dma_addr = page_pool_get_dma_addr(page);
+ if (frag)
+ dma_addr += skb_frag_off(frag);
+ else
+ dma_addr += sizeof(*xdpf) + xdpf->headroom;
+ dma_sync_single_for_device(priv->device, dma_addr,
+ len, DMA_BIDIRECTIONAL);
+ buf_type = STMMAC_TXBUF_T_XDP_TX;
+ }
- stmmac_prepare_tx_desc(priv, tx_desc, 1, xdpf->len,
- csum, priv->descriptor_mode, true, true,
- xdpf->len);
+ stmmac_set_tx_dma_entry(tx_q, entry, buf_type, dma_addr, len,
+ dma_map && frag);
+ stmmac_set_desc_addr(priv, desc, dma_addr);
+ stmmac_prepare_tx_desc(priv, desc, !i, len, csum,
+ priv->descriptor_mode, !!i, last_frame,
+ xdp_get_frame_len(xdpf));
+ tx_q->xdpf[entry] = last_frame ? xdpf : NULL;
+ if (last_frame) {
+ stmmac_set_tx_dma_last_segment(tx_q, entry);
+ break;
+ }
- tx_q->tx_count_frames++;
+ entry = STMMAC_NEXT_ENTRY(entry, priv->dma_conf.dma_tx_size);
+ i++;
+ }
+ tx_q->tx_count_frames += num_frames;
- if (tx_q->tx_count_frames % priv->tx_coal_frames[queue] == 0)
- set_ic = true;
- else
- set_ic = false;
+ if (priv->tx_coal_frames[queue] &&
+ (tx_q->tx_count_frames % priv->tx_coal_frames[queue]) < num_frames) {
+ struct stmmac_txq_stats *txq_stats;
- if (set_ic) {
+ desc = stmmac_get_tx_desc(priv, tx_q, entry);
+ stmmac_set_tx_ic(priv, desc);
tx_q->tx_count_frames = 0;
- stmmac_set_tx_ic(priv, tx_desc);
+
+ txq_stats = &priv->xstats.txq_stats[queue];
u64_stats_update_begin(&txq_stats->q_syncp);
u64_stats_inc(&txq_stats->q.tx_set_ic_bit);
u64_stats_update_end(&txq_stats->q_syncp);
}
+ /* Set the OWN bit on the first descriptor now that all descriptors
+ * for this xdp_frame are populated.
+ */
+ desc = stmmac_get_tx_desc(priv, tx_q, first_entry);
+ dma_wmb();
+ stmmac_set_tx_owner(priv, desc);
+ tx_q->cur_tx = STMMAC_NEXT_ENTRY(entry, priv->dma_conf.dma_tx_size);
stmmac_enable_dma_transmission(priv, priv->ioaddr, queue);
- entry = STMMAC_NEXT_ENTRY(entry, priv->dma_conf.dma_tx_size);
- tx_q->cur_tx = entry;
-
return STMMAC_XDP_TX;
+
+error_dma_unmap:
+ while (first_entry != entry) {
+ desc = stmmac_get_tx_desc(priv, tx_q, first_entry);
+ stmmac_release_tx_desc(priv, desc, priv->descriptor_mode);
+ stmmac_free_tx_buffer(priv, &priv->dma_conf, queue,
+ first_entry);
+ first_entry = STMMAC_NEXT_ENTRY(first_entry,
+ priv->dma_conf.dma_tx_size);
+ }
+
+ return STMMAC_XDP_CONSUMED;
}
static int stmmac_xdp_get_tx_queue(struct stmmac_priv *priv,
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_xdp.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_xdp.c
index d7e4db7224b0c..9af9e0cb366c3 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_xdp.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_xdp.c
@@ -135,7 +135,7 @@ int stmmac_xdp_set_prog(struct stmmac_priv *priv, struct bpf_prog *prog,
stmmac_xdp_open(dev);
if (prog)
- xdp_features_set_redirect_target(dev, false);
+ xdp_features_set_redirect_target(dev, true);
return 0;
}
|
| 3/2 | 2026/09/27 13:16 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 5481 output: 34 thoughts: 254 Thoughts: **Analyzing the XDP Patch for STMMAC** Okay, so this patch is digging into the `stmmac` driver, specifically touching both `stmmac_main.c` and `stmmac_xdp.c`. The core of the changes seem to be in `stmmac_xdp_xmit_xdpf`, where they're handling multi-buffer or fragment support for XDP transmissions. They're also flipping a boolean in `stmmac_xdp_set_prog`, changing `xdp_features_set_redirect_target(dev, false)` to `true`, essentially enabling multi-buffer XDP redirect target support. Now, my immediate concern is reachability and compatibility. *Can* this be realistically tested in common virtualized environments? We need to verify that `stmmac` is even reachable in standard setups. Are we talking about something that's usable in GCE or QEMU, and specifically on amd64 architectures? That's the priority. I'm going to start by getting a better understanding of the hardware. I need to figure out how `stmmac` is typically utilized. Where does it bind? Does QEMU even have emulation for it? Is it a PCI device, a platform device, or something else entirely? I'll probably need to dive into the kernel sources a bit and `grep` around. I'll search for `stmmac` generally, then drill down into the Kconfig files under the driver directory to get a better overview of dependencies and build configurations. Let's see what that uncovers. |
| 4/2 | 2026/09/27 13:16 | tool | grepper |
0mArgs:{
"Expression": "config STMMAC",
"PathPrefix": "drivers/net/ethernet/stmicro/"
}Results: {
"Output": "drivers/net/ethernet/stmicro/stmmac/Kconfig-1-# SPDX-License-Identifier: GPL-2.0-only\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:2:config STMMAC_ETH\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-3-\ttristate \"STMicroelectronics Multi-Gigabit Ethernet driver\"\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=18=if STMMAC_ETH\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-19-\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:20:config STMMAC_SELFTESTS\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-21-\tbool \"Support for STMMAC Selftests\"\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-28-\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:29:config STMMAC_PLATFORM\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-30-\ttristate \"STMMAC Platform bus support\"\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=382=endif # STMMAC_PLATFORM\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-383-\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:384:config STMMAC_LIBPCI\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-385-\ttristate\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=409=config DWMAC_MOTORCOMM\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-417-\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:418:config STMMAC_PCI\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-419-\ttristate \"STMMAC PCI bus support\"\n"
} |
| 5/2 | 2026/09/27 13:16 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 6636 output: 39 thoughts: 161 Thoughts: **Investigating STMMAC Support and QEMU Emulation** Okay, let's dive into this. My initial thought is to zero in on `STMMAC_PCI`. I need to figure out which specific PCI IDs or hardware configurations are supported by this thing. I also want to determine if QEMU offers any emulation capabilities related to `stmmac`, `dwmac`, or other related Ethernet controllers. Hang on, is QEMU even emulating `stmmac` directly? Or perhaps `dwmac`? Or even just "designware ethernet"? A quick check... Ah, QEMU has `allwinner-sun8i-emac`, but does QEMU x86_64, specifically, offer any support for `stmmac`? It looks like the x86_64 configuration isn't emulating `dwmac/stmmac`. However, I need to broaden the scope. What about QEMU in general, across different architectures and configurations? Could PCI emulation somehow come into play here? Right. Time to pull up `stmmac_pci.c`. The most direct approach is to examine the source code and find out which PCI devices are explicitly supported and recognized. |
| 6/2 | 2026/09/27 13:16 | 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=341=static const struct of_device_id eic7700_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c-350-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c:351:MODULE_DEVICE_TABLE(of, eic7700_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c-352-\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=1619=static const struct of_device_id rk_gmac_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rk.c-1637-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rk.c:1638:MODULE_DEVICE_TABLE(of, rk_gmac_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rk.c-1639-\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=68=static const struct of_device_id sophgo_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c-72-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c:73:MODULE_DEVICE_TABLE(of, sophgo_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c-74-\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=1272=static const struct of_device_id sun8i_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c-1286-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c:1287:MODULE_DEVICE_TABLE(of, sun8i_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c-1288-\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-ultrarisc.c=35=static const struct of_device_id ultrarisc_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ultrarisc.c-38-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ultrarisc.c:39:MODULE_DEVICE_TABLE(of, ultrarisc_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ultrarisc.c-40-\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/09/27 13:16 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 12609 output: 50 thoughts: 56 Thoughts: Here's my take on those files, thinking through the process: **Diving into STMMAC and Intel DWMAC Driver Support** Alright, let's get down to it. I'm curious to see what these two files, specifically `drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c` and `drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c`, are bringing to the table. I'm immediately interested in the supported hardware and how they're handling things at the PCI level. The `stmmac_pci.c` file is clearly dealing with the STMicroelectronics' STMMAC Ethernet controller, but specifically the PCI variant, so I'll be looking for how it handles resource allocation, initialization, and how it interacts with the PCI bus directly. I'll be curious to see the interrupt handling scheme too. Then there's the `dwmac-intel.c` file, which is interesting because it's incorporating the DesignWare MAC (DWMAC) IP core from Synopsys, but specifically for Intel's hardware. So, here I'll be looking at how they've integrated this core with Intel's specific PCI devices. This could provide some insight into the variations they've implemented compared to a "vanilla" DWMAC implementation, particularly around power management, clocking, and potentially any Intel-specific hardware features or optimizations. I'll want to see how these two different files handle their respective hardware and where the overlaps or divergences lie in the driver architecture. |
| 8/2 | 2026/09/27 13:16 | tool | read-file |
0mArgs:{
"File": "drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c",
"FirstLine": 195,
"LineCount": 40
}Results: {
"Contents": " 195:\t}\n 196:\t\n 197:\t/* synthetic ID, no official vendor */\n 198:\t#define PCI_VENDOR_ID_STMMAC\t\t0x0700\n 199:\t\n 200:\t#define PCI_DEVICE_ID_STMMAC_STMMAC\t\t0x1108\n 201:\t#define PCI_DEVICE_ID_SYNOPSYS_GMAC5_ID\t\t0x7102\n 202:\t\n 203:\tstatic const struct pci_device_id stmmac_id_table[] = {\n 204:\t\t{ PCI_DEVICE_DATA(STMMAC, STMMAC, \u0026stmmac_pci_info) },\n 205:\t\t{ PCI_DEVICE_DATA(STMICRO, MAC, \u0026stmmac_pci_info) },\n 206:\t\t{ PCI_DEVICE_DATA(SYNOPSYS, GMAC5_ID, \u0026snps_gmac5_pci_info) },\n 207:\t\t{}\n 208:\t};\n 209:\t\n 210:\tMODULE_DEVICE_TABLE(pci, stmmac_id_table);\n 211:\t\n 212:\tstatic struct pci_driver stmmac_pci_driver = {\n 213:\t\t.name = STMMAC_RESOURCE_NAME,\n 214:\t\t.id_table = stmmac_id_table,\n 215:\t\t.probe = stmmac_pci_probe,\n 216:\t\t.remove = stmmac_pci_remove,\n 217:\t\t.driver = {\n 218:\t\t\t.pm = \u0026stmmac_simple_pm_ops,\n 219:\t\t},\n 220:\t};\n 221:\t\n 222:\tmodule_pci_driver(stmmac_pci_driver);\n 223:\t\n 224:\tMODULE_DESCRIPTION(\"STMMAC 10/100/1000 Ethernet PCI driver\");\n 225:\tMODULE_AUTHOR(\"Rayagond Kokatanur \u003crayagond.kokatanur@vayavyalabs.com\u003e\");\n 226:\tMODULE_AUTHOR(\"Giuseppe Cavallaro \u003cpeppe.cavallaro@st.com\u003e\");\n 227:\tMODULE_LICENSE(\"GPL\");\n"
} |
| 9/2 | 2026/09/27 13:16 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 13673 output: 49 thoughts: 20 Thoughts: Here's my attempt at summarizing the thought process, tailored for an expert audience: **Investigating `dwmac-intel.c`** Okay, hold on a second. We've got a new piece to look at here. The focus has been on X, Y, and Z, but the mention of `dwmac-intel.c` just now is making me pause. I need to take a quick detour and understand the role that this particular file plays in the system. Given what we've been working on, it's likely a driver – almost certainly for a specific piece of hardware. I need to quickly identify if it's relevant to the current issues. Is it related to the same silicon or a similar peripheral device? Does it share any code base? This quick investigation could point to shared bugs or help me rule out other avenues. Let's see what that file is all about! |
| 10/2 | 2026/09/27 13:16 | tool | read-file |
0mArgs:{
"File": "drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c",
"FirstLine": 1395,
"LineCount": 40
}Results: {
"Contents": "1395:\tstatic const struct pci_device_id intel_eth_pci_id_table[] = {\n1396:\t\t{ PCI_DEVICE_DATA(INTEL, QUARK, \u0026quark_info) },\n1397:\t\t{ PCI_DEVICE_DATA(INTEL, EHL_RGMII1G, \u0026ehl_rgmii1g_info) },\n1398:\t\t{ PCI_DEVICE_DATA(INTEL, EHL_SGMII1G, \u0026ehl_sgmii1g_info) },\n1399:\t\t{ PCI_DEVICE_DATA(INTEL, EHL_SGMII2G5, \u0026ehl_sgmii1g_info) },\n1400:\t\t{ PCI_DEVICE_DATA(INTEL, EHL_PSE0_RGMII1G, \u0026ehl_pse0_rgmii1g_info) },\n1401:\t\t{ PCI_DEVICE_DATA(INTEL, EHL_PSE0_SGMII1G, \u0026ehl_pse0_sgmii1g_info) },\n1402:\t\t{ PCI_DEVICE_DATA(INTEL, EHL_PSE0_SGMII2G5, \u0026ehl_pse0_sgmii1g_info) },\n1403:\t\t{ PCI_DEVICE_DATA(INTEL, EHL_PSE1_RGMII1G, \u0026ehl_pse1_rgmii1g_info) },\n1404:\t\t{ PCI_DEVICE_DATA(INTEL, EHL_PSE1_SGMII1G, \u0026ehl_pse1_sgmii1g_info) },\n1405:\t\t{ PCI_DEVICE_DATA(INTEL, EHL_PSE1_SGMII2G5, \u0026ehl_pse1_sgmii1g_info) },\n1406:\t\t{ PCI_DEVICE_DATA(INTEL, TGL_SGMII1G, \u0026tgl_sgmii1g_phy0_info) },\n1407:\t\t{ PCI_DEVICE_DATA(INTEL, TGLH_SGMII1G_0, \u0026tgl_sgmii1g_phy0_info) },\n1408:\t\t{ PCI_DEVICE_DATA(INTEL, TGLH_SGMII1G_1, \u0026tgl_sgmii1g_phy1_info) },\n1409:\t\t{ PCI_DEVICE_DATA(INTEL, ADLS_SGMII1G_0, \u0026adls_sgmii1g_phy0_info) },\n1410:\t\t{ PCI_DEVICE_DATA(INTEL, ADLS_SGMII1G_1, \u0026adls_sgmii1g_phy1_info) },\n1411:\t\t{ PCI_DEVICE_DATA(INTEL, ADLN_SGMII1G, \u0026adln_sgmii1g_phy0_info) },\n1412:\t\t{ PCI_DEVICE_DATA(INTEL, RPLP_SGMII1G, \u0026adln_sgmii1g_phy0_info) },\n1413:\t\t{}\n1414:\t};\n1415:\tMODULE_DEVICE_TABLE(pci, intel_eth_pci_id_table);\n1416:\t\n1417:\tstatic struct pci_driver intel_eth_pci_driver = {\n1418:\t\t.name = \"intel-eth-pci\",\n1419:\t\t.id_table = intel_eth_pci_id_table,\n1420:\t\t.probe = intel_eth_pci_probe,\n1421:\t\t.remove = intel_eth_pci_remove,\n1422:\t\t.driver = {\n1423:\t\t\t.pm = \u0026stmmac_simple_pm_ops,\n1424:\t\t},\n1425:\t};\n1426:\t\n1427:\tmodule_pci_driver(intel_eth_pci_driver);\n1428:\t\n1429:\tMODULE_DESCRIPTION(\"INTEL 10/100/1000 Ethernet PCI driver\");\n1430:\tMODULE_AUTHOR(\"Voon Weifeng \u003cweifeng.voon@intel.com\u003e\");\n1431:\tMODULE_LICENSE(\"GPL v2\");\n"
} |
| 11/2 | 2026/09/27 13:16 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 14978 output: 27 thoughts: 821 Thoughts: **My Current Line of Reasoning** Okay, hold on a second. Before I dive into this further, I need to take a step back and think about the fundamental constraints. Can any of these devices be *actually* tested in a standard virtualized environment like Google Compute Engine or QEMU, targeting the amd64 architecture? The core principle here is *reachability*. If I can't get the code to *execute* in a standard virtualized environment, it's a dead end, regardless of its complexity or whether it has assertions. That's the primary gate. The document emphasizes this, specifically citing hardware like vendor-specific PCIe switches, SmartNICs, or GPU drivers (like mlxsw, pds_core, qed, ionic, amdgpu) as examples of things that are *structurally unreachable* because they need physical ASICs or PCIe cards not emulated in standard QEMU. Now, the question is, what about `stmmac`? Is that emulated in QEMU? And if not, what *does* QEMU emulate in terms of network devices? Let's see... the list includes e1000, e1000e, igb, rtl8139, pcnet, ne2k_pci, vmxnet3, virtio-net-pci, rocker, sungem... Wait, *sungem*? That's a Sun MAC, not what I'm looking for. Then there's tulipa/dec21140, smc91c111 (ARM), lan9118 (ARM), cadence_gem (ARM/Zynq), imx_fec (ARM), allwinner_emac, sun8i_emac. Aha! *sun8i_emac*! Is that a `stmmac` or `dwmac` variant? I need to check! Hang on, what is this `sun8i_emac` in QEMU? I need to clarify what the QEMU implementation of this is. And does this `sun8i_dwmac` in Linux kernel relate to allwinner? And, since my target architecture is amd64, can the `sun8i_emac` within QEMU even *run* on amd64? No, it looks like the sun8i board emulation in QEMU is for `orangepi-pc`, which is ARM 32-bit. Not what I need. What network devices are emulated on x86_64 / amd64? Okay, let's go back and check the QEMU's hw/net list: e1000, e1000e, igb, rtl8139, pcnet, ne2k_pci, vmxnet3, and tulip (dec21140). Not what I am looking for. Is Intel Quark or Elkhart Lake or Tiger Lake or Synopsys GMAC emulated? Nope. QEMU doesn't emulate dwmac-intel or Synopsys GMAC5 PCI. What about GCE? What's the networking situation there? The virtual NIC in GCE is `gve` (Google Virtual NIC) or virtio-net. So, let's recap. `stmmac`/`dwmac` are typically found on embedded SoCs from STMicroelectronics STM32 / SPEAr, Allwinner, Amlogic, Rockchip, Intel Quark/Elkhart Lake PSE, Loongson, MediaTek, NXP i.MX / S32, Renesas, Qualcomm IPQ806x, etc. These are all *physical* devices. Could I get `stmmac` instantiated some other way - maybe via a platform device or a *mock* device? That's the angle I need to investigate. Are there any mock drivers, test drivers, or virtual drivers for stmmac floating around? Time to search the tree and see if anything shows up in syzkaller. |
| 12/2 | 2026/09/27 13:16 | tool | grepper |
0mArgs:{
"Expression": "stmmac",
"PathPrefix": "drivers/net/"
}Results: {
"Output": "\nFull output is too long, showing 500 out of 11727 lines.\nUse more precise expression if possible.\n\ndrivers/net/ethernet/stmicro/Kconfig=19=if NET_VENDOR_STMICRO\ndrivers/net/ethernet/stmicro/Kconfig-20-\ndrivers/net/ethernet/stmicro/Kconfig:21:source \"drivers/net/ethernet/stmicro/stmmac/Kconfig\"\ndrivers/net/ethernet/stmicro/Kconfig-22-\n--\ndrivers/net/ethernet/stmicro/Makefile-5-\ndrivers/net/ethernet/stmicro/Makefile:6:obj-$(CONFIG_STMMAC_ETH) += stmmac/\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_ULTRARISC\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-329-\t This selects the UltraRISC platform specific glue layer support\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:330:\t for the stmmac device driver. This driver is used for the DP1000\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-331-\t GMAC Ethernet controller.\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=333=config DWMAC_IMX8\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-340-\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:341:\t This selects NXP SoC glue layer support for the stmmac\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-342-\t device driver. This driver is used for i.MX8 series like\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=345=config DWMAC_INTEL_PLAT\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-351-\t This selects the Intel platform specific glue layer support for\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:352:\t the stmmac device driver. This driver is used for the Intel Keem Bay\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-353-\t SoC.\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=355=config DWMAC_LOONGSON1\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-361-\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:362:\t This selects Loongson1 SoC glue layer support for the stmmac\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-363-\t device driver. This driver is used for Loongson1-based boards\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=366=config DWMAC_TEGRA\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-371-\t found on the NVIDIA Tegra SoC devices. This driver provides the glue\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:372:\t layer on top of the stmmac driver required for these NVIDIA Tegra SoC\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-373-\t devices.\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=384=config STMMAC_LIBPCI\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-386-\thelp\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:387:\t This option enables the PCI bus helpers for the stmmac driver.\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-388-\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=389=config DWMAC_INTEL\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-396-\t This selects the Intel platform specific bus support for the\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:397:\t stmmac driver. This driver is used for Intel Quark/EHL/TGL.\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-398-\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=399=config DWMAC_LOONGSON\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-405-\thelp\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:406:\t This selects the LOONGSON PCI bus support for the stmmac driver,\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-407-\t Support for ethernet controller on Loongson-2K1000 SoC and LS7A1000 bridge.\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=418=config STMMAC_PCI\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-423-\thelp\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:424:\t This selects the platform specific bus support for the stmmac driver.\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-425-\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=46=obj-$(CONFIG_DWMAC_VISCONTI)\t+= dwmac-visconti.o\ndrivers/net/ethernet/stmicro/stmmac/Makefile:47:stmmac-platform-objs:= stmmac_platform.o\ndrivers/net/ethernet/stmicro/stmmac/Makefile-48-dwmac-altr-socfpga-objs := dwmac-socfpga.o\ndrivers/net/ethernet/stmicro/stmmac/Makefile-49-\ndrivers/net/ethernet/stmicro/stmmac/Makefile:50:obj-$(CONFIG_STMMAC_LIBPCI)\t+= stmmac_libpci.o\ndrivers/net/ethernet/stmicro/stmmac/Makefile:51:obj-$(CONFIG_STMMAC_PCI)\t+= stmmac-pci.o\ndrivers/net/ethernet/stmicro/stmmac/Makefile-52-obj-$(CONFIG_DWMAC_INTEL)\t+= dwmac-intel.o\n--\ndrivers/net/ethernet/stmicro/stmmac/Makefile=54=obj-$(CONFIG_DWMAC_MOTORCOMM)\t+= dwmac-motorcomm.o\ndrivers/net/ethernet/stmicro/stmmac/Makefile:55: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--\n\n"
} |
| 13/2 | 2026/09/27 13:16 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 30958 output: 27 thoughts: 889 Thoughts: **Analyzing the Reachability of STMMAC for Fuzzing** Okay, let's break this down. I'm looking at `stmmac`, the Synopsys DesignWare Ethernet MAC driver, which, as I recall, started with STMicroelectronics SoCs but is now used more broadly across different architectures like Intel Quark and even some newer ones. The question is: can I fuzz it effectively? First, the key question: is `stmmac` even *reachable* in a standard virtualized environment like QEMU on x86_64 or amd64? I need to figure out if QEMU can emulate this specific MAC. Digging into QEMU's source, I know the PCI network devices it supports are a very specific set, and sadly `stmmac_pci` or `dwmac-intel` isn't among them. Checking further, I see QEMU *does* emulate other GMAC/EMAC implementations, but they're all platform-specific and primarily ARM-based, nothing for x86_64. So that's a dead end. Then I recalled some key fuzzing principle: if the code is unreachable in standard virtualized environments, it shouldn't be fuzzed at all. And the text notes specifically: vendor-specific PCIe switches, SmartNICs, or GPU drivers are unreachable due to not being emulated in standard QEMU. That's a huge hint. Is `stmmac` in that category? So, how *else* could `stmmac` be instantiated on amd64 without physical hardware? I considered virtual buses, USB, software devices, but it's an Ethernet MAC, so USB is out. Platform devices are a possibility, but can they be created from userspace? Nope, unless there's a driver explicitly providing an interface, which doesn't seem to apply here. What about PCI? Again, it's a no-go, unless VFIO or something which syzkaller doesn't support. Finally, the critical check: does syzkaller even *know* about `stmmac`? Has it been fuzzed? Has it reported any bugs? I'll need to search the syzkaller documentation and also the kernel tree for tests or mock devices. That's the next step. If syzkaller isn't targeting it, that's a strong indication that it's currently unreachable from the fuzzing perspective. |
| 14/2 | 2026/09/27 13:16 | tool | grepper |
0mError:no matches Args: {
"Expression": "stmmac",
"PathPrefix": "tools/testing/"
}Results: {
"error": "no matches"
} |
| 15/2 | 2026/09/27 13:16 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 32410 output: 31 thoughts: 25 Thoughts: Okay, here's my summary, tailored for an expert audience, in the first person, reflecting the given thought process: **Investigating Potential Stmmac Interactions Within Network Device Simulation Frameworks** Alright, my immediate thought is to delve into the drivers directory, specifically targeting `drivers/net/netdevsim/`, or anything similarly structured, to see if there are any mentions or interactions with `stmmac`. I need to assess whether the network device simulation frameworks are explicitly or implicitly handling, mocking, or potentially providing stmmac-related functionality. This is the first step in understanding the broader picture and potential integration points. It is probable that the inclusion of the drivers will allow for a more streamlined integration of network device simulation functionality. |
| 16/2 | 2026/09/27 13:16 | tool | grepper |
0mError:no matches Args: {
"Expression": "stmmac",
"PathPrefix": "drivers/net/netdevsim/"
}Results: {
"error": "no matches"
} |
| 17/2 | 2026/09/27 13:16 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 32633 output: 41 thoughts: 25 Thoughts: Okay, let's dive into this. I need to understand how these self-tests are implemented, so the logical starting point is the source code itself. Let me check `stmmac_selftests.c`. It's the most obvious place to find the nitty-gritty details of the self-test procedures. This file should reveal the methodology, the test cases, and the expected outcomes. Understanding how *those* tests function will likely give me a solid foundation for evaluating and expanding the testing regime. I'm looking for the core logic, error handling, and any clever techniques they're using. I anticipate there will be a section that initializes the hardware into a known state, runs some kind of diagnostic, and then verifies that the results match expectations. This file will hopefully shed light on how the self-tests interact with the rest of the driver and the hardware. |
| 18/2 | 2026/09/27 13:16 | tool | grepper |
0mArgs:{
"Expression": "stmmac_selftests",
"PathPrefix": "drivers/net/ethernet/stmicro/stmmac/"
}Results: {
"Output": "drivers/net/ethernet/stmicro/stmmac/Makefile=3=stmmac-objs:= stmmac_main.o stmmac_ethtool.o stmmac_mdio.o ring_mode.o\t\\\n--\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-\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c=1815=static const struct stmmac_test {\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c-1818-\tint (*fn)(struct stmmac_priv *priv);\ndrivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:1819:} stmmac_selftests[] = {\ndrivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c-1820-\t{\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c=1913=void stmmac_selftest_run(struct net_device *dev,\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c-1943-\tfor (i = 0; i \u003c count; i++) {\ndrivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:1944:\t\tret = stmmac_selftests[i].fn(priv);\ndrivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c-1945-\t\tif (ret \u0026\u0026 (ret != -EOPNOTSUPP))\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c=1953=void stmmac_selftest_get_strings(struct stmmac_priv *priv, u8 *data)\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c-1959-\t\tsnprintf(p, ETH_GSTRING_LEN, \"%2d. %s\", i + 1,\ndrivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:1960:\t\t\t stmmac_selftests[i].name);\ndrivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c-1961-\t\tp += ETH_GSTRING_LEN;\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c=1965=int stmmac_selftest_get_count(struct stmmac_priv *priv)\ndrivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c-1966-{\ndrivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:1967:\treturn ARRAY_SIZE(stmmac_selftests);\ndrivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c-1968-}\n"
} |
| 19/2 | 2026/09/27 13:16 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 33739 output: 46 thoughts: 1529 Thoughts: **Analyzing the Reachability of `stmmac_selftests`** Okay, so I need to figure out if these `stmmac_selftests` are even relevant in the context of standard QEMU or GCE VMs on amd64. First, let's establish a baseline: these are ethtool self-tests, which means they operate on a `stmmac` net device. But to *have* a `stmmac` net device, the driver has to probe successfully. That's the key. And for the driver to probe, there needs to be a matching platform or PCI device. Alright, let's dig into the PCI devices. I'll check what `stmmac_pci` and `dwmac-intel` are looking for, specifically. I see several vendor and device ID combinations: Synopsys, STMicro, and Intel. The `dwmac-loongson` driver adds Loongson devices and `dwmac-motorcomm` Motorcomm devices. None of these devices are emulated by standard QEMU or GCE. On amd64, platform devices are mostly defined via ACPI or Device Tree, and these are typically found on embedded Intel boards, which are not present on standard QEMU or GCE on amd64. So no dice there. No `stmmac` or `dwmac` devices on my target environment. Now, let's re-examine the criteria for filtering patches. I see that I should return `WorthFuzzing=false` if the code touches "Structurally unreachable hardware." That's exactly what this looks like: vendor-specific PCIe hardware that *requires* physical cards not emulated by standard QEMU. Then, "Unreachable execution paths" is also a factor. But wait, I need to be *sure*. Is there a possibility that `stmmac` could be accessed via virtual buses or software devices? It *is* an Ethernet MAC driver for Synopsys DesignWare IP blocks (DWMAC/STMMAC), which is found in hardware SoCs and *some* Intel/Loongson PCIe chips. It is *not* a virtio device, not a virtual network driver, not a USB gadget. It requires physical hardware or emulation – and again, QEMU doesn't do that on amd64. Okay, last check: let's verify if `stmmac` or `dwmac` has any code in `drivers/net/` outside `drivers/net/ethernet/stmicro/stmmac/`. Let's see if anything in core net or anywhere calls `stmmac_xdp_xmit_xdpf` or `stmmac_xdp_set_prog`. `stmmac_xdp_xmit_xdpf` is static in `drivers/net/ethernet/stmicro/stmmac/stmmac_main.c`. Now, let's see *where* it's called. This will give the exact answer. Okay, after this final verification, if the `stmmac` device cannot be instantiated in standard QEMU or GCE, then there is no code that has any chance to execute. |
| 20/2 | 2026/09/27 13:16 | tool | grepper |
0mArgs:{
"Expression": "stmmac_xdp_xmit_xdpf",
"PathPrefix": "drivers/net/ethernet/stmicro/stmmac/"
}Results: {
"Output": "drivers/net/ethernet/stmicro/stmmac/stmmac_main.c=5206=static unsigned int stmmac_rx_buf2_len(struct stmmac_priv *priv,\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-5240-\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c:5241:static int stmmac_xdp_xmit_xdpf(struct stmmac_priv *priv, int queue,\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-5242-\t\t\t\tstruct xdp_frame *xdpf, bool dma_map)\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c=5372=static int stmmac_xdp_xmit_back(struct stmmac_priv *priv,\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-5392-\t/* For zero copy XDP_TX action, dma_map is true */\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c:5393:\tres = stmmac_xdp_xmit_xdpf(priv, queue, xdpf, zc);\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-5394-\tif (res == STMMAC_XDP_TX) {\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c=7049=static int stmmac_xdp_xmit(struct net_device *dev, int num_frames,\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-7073-\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c:7074:\t\tres = stmmac_xdp_xmit_xdpf(priv, queue, frames[i], true);\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-7075-\t\tif (res == STMMAC_XDP_CONSUMED)\n"
} |
| 21/2 | 2026/09/27 13:16 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 36586 output: 116 thoughts: 428 Thoughts: **My Assessment: Code Unreachable for Fuzzing** Okay, here's what I've got. The `stmmac_xdp_set_prog` function, which is called by `stmmac_xdp_setup` within the `ndo_bpf` callback in `stmmac_netdev_ops`, is the core of this. This is *firmly* within the `stmmac` Ethernet driver, designed for interacting with physical MAC hardware. And that's the rub. The entire flow, from `stmmac_probe` onward, is contingent on the presence of real hardware. No physical hardware, or a properly emulated setup, means `stmmac_probe` isn't called, no network device is registered, and *none* of those functions – not even the crucial modified ones – ever get executed. The guidelines are pretty clear on this: code must be *reachable* within standard virtualized environments like QEMU or GCE. This modified code, in this driver, simply isn't. It's hardware-dependent, which means it doesn't meet the "REACHABILITY IS THE PRIMARY GATE" requirement. Furthermore, it's explicitly stated that hardware like this which requires physical ASIC or PCIe cards not emulated in standard QEMU should not be fuzzed. Therefore, `WorthFuzzing = false`. There's no point in enabling any configs or specifying focus symbols because the code will never be hit. This patch, related to multi-buffer XDP transmit for the `stmmac` driver, is targeting hardware not emulated in these virtualized environments. It's cut and dried. Let's call `set-results`. |
| 22/2 | 2026/09/27 13:16 | tool | set-results |
0mArgs:{
"EnableConfigs": [],
"FocusSymbols": [],
"Reasoning": "The patch modifies the STMicroelectronics / Synopsys DesignWare Ethernet MAC driver (stmmac) to support multi-buffer XDP frame transmission. This driver targets physical SoC and PCI Ethernet controllers that are not emulated in standard virtualized fuzzing environments (QEMU/GCE) on amd64. Because the corresponding hardware devices are absent, the driver cannot be probed and the modified code is structurally unreachable.",
"WorthFuzzing": false
}Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The patch modifies the STMicroelectronics / Synopsys DesignWare Ethernet MAC driver (stmmac) to support multi-buffer XDP frame transmission. This driver targets physical SoC and PCI Ethernet controllers that are not emulated in standard virtualized fuzzing environments (QEMU/GCE) on amd64. Because the corresponding hardware devices are absent, the driver cannot be probed and the modified code is structurally unreachable.",
"WorthFuzzing": false
} |
| 23/1 | 2026/09/27 13:16 | 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) |
|---|