AI Trajectory


Trajectory: (Expand/Collapse All)
Seq Timestamp Type Name Duration
0/0 2026/09/23 06:04 flow patch-triage
0m Args:
null

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "KMSANReasoning": "",
  "NeedsKMSAN": false,
  "Reasoning": "The patch adds bounds checks in the transmit ring cleanup functions (atl1c_clean_tx, atl1e_clean_tx_irq, and atl1_intr_tx) for the Atheros L1C, L1E, and L1 Ethernet drivers. These drivers control specific physical PCI/PCIe hardware that is not emulated by standard virtualized fuzzing environments such as QEMU or GCE. Consequently, the modified code cannot be probed or executed during fuzzing, making it structurally unreachable.",
  "WorthFuzzing": false
}

1/1 2026/09/23 06:04 action read-patch-diff
0m Args:
null

Results:
{
  "PatchDiff": "commit 8633806b4af5a18009df3b767dd96aaecc8c508b\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate:   Wed Sep 23 06:04:47 2026 +0000\n\n    syz-cluster: applied patch under review\n\ndiff --git a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c\nindex 7efa3fc257b39..e58f1d2c26bdf 100644\n--- a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c\n+++ b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c\n@@ -1602,6 +1602,9 @@ static int atl1c_clean_tx(struct napi_struct *napi, int budget)\n \tAT_READ_REGW(\u0026adapter-\u003ehw, atl1c_qregs[tpd_ring-\u003enum].tpd_cons,\n \t\t     \u0026hw_next_to_clean);\n \n+\tif (unlikely(hw_next_to_clean \u003e= tpd_ring-\u003ecount))\n+\t\thw_next_to_clean = next_to_clean;\n+\n \twhile (next_to_clean != hw_next_to_clean) {\n \t\tbuffer_info = \u0026tpd_ring-\u003ebuffer_info[next_to_clean];\n \t\tif (buffer_info-\u003eskb) {\ndiff --git a/drivers/net/ethernet/atheros/atl1e/atl1e_main.c b/drivers/net/ethernet/atheros/atl1e/atl1e_main.c\nindex 40290028580ba..437989edb7802 100644\n--- a/drivers/net/ethernet/atheros/atl1e/atl1e_main.c\n+++ b/drivers/net/ethernet/atheros/atl1e/atl1e_main.c\n@@ -1234,6 +1234,9 @@ static bool atl1e_clean_tx_irq(struct atl1e_adapter *adapter)\n \tu16 hw_next_to_clean = AT_READ_REGW(\u0026adapter-\u003ehw, REG_TPD_CONS_IDX);\n \tu16 next_to_clean = atomic_read(\u0026tx_ring-\u003enext_to_clean);\n \n+\tif (unlikely(hw_next_to_clean \u003e= tx_ring-\u003ecount))\n+\t\thw_next_to_clean = next_to_clean;\n+\n \twhile (next_to_clean != hw_next_to_clean) {\n \t\ttx_buffer = \u0026tx_ring-\u003etx_buffer[next_to_clean];\n \t\tif (tx_buffer-\u003edma) {\ndiff --git a/drivers/net/ethernet/atheros/atlx/atl1.c b/drivers/net/ethernet/atheros/atlx/atl1.c\nindex 98a4d089270e4..957d5598dda5e 100644\n--- a/drivers/net/ethernet/atheros/atlx/atl1.c\n+++ b/drivers/net/ethernet/atheros/atlx/atl1.c\n@@ -2066,6 +2066,9 @@ static int atl1_intr_tx(struct atl1_adapter *adapter)\n \tsw_tpd_next_to_clean = atomic_read(\u0026tpd_ring-\u003enext_to_clean);\n \tcmb_tpd_next_to_clean = le16_to_cpu(adapter-\u003ecmb.cmb-\u003etpd_cons_idx);\n \n+\tif (unlikely(cmb_tpd_next_to_clean \u003e= tpd_ring-\u003ecount))\n+\t\tcmb_tpd_next_to_clean = sw_tpd_next_to_clean;\n+\n \twhile (cmb_tpd_next_to_clean != sw_tpd_next_to_clean) {\n \t\tbuffer_info = \u0026tpd_ring-\u003ebuffer_info[sw_tpd_next_to_clean];\n \t\tif (buffer_info-\u003edma) {\n"
}

2/1 2026/09/23 06:04 agent patch-evaluator
0m Model:
core

Args:
null

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "Reasoning": "The patch adds bounds checks in the transmit ring cleanup functions (atl1c_clean_tx, atl1e_clean_tx_irq, and atl1_intr_tx) for the Atheros L1C, L1E, and L1 Ethernet drivers. These drivers control specific physical PCI/PCIe hardware that is not emulated by standard virtualized fuzzing environments such as QEMU or GCE. Consequently, the modified code cannot be probed or executed during fuzzing, making it 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 8633806b4af5a18009df3b767dd96aaecc8c508b
Author: syz-cluster <triage@syzkaller.com>
Date:   Wed Sep 23 06:04:47 2026 +0000

    syz-cluster: applied patch under review

diff --git a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c
index 7efa3fc257b39..e58f1d2c26bdf 100644
--- a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c
+++ b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c
@@ -1602,6 +1602,9 @@ static int atl1c_clean_tx(struct napi_struct *napi, int budget)
 	AT_READ_REGW(&adapter->hw, atl1c_qregs[tpd_ring->num].tpd_cons,
 		     &hw_next_to_clean);
 
+	if (unlikely(hw_next_to_clean >= tpd_ring->count))
+		hw_next_to_clean = next_to_clean;
+
 	while (next_to_clean != hw_next_to_clean) {
 		buffer_info = &tpd_ring->buffer_info[next_to_clean];
 		if (buffer_info->skb) {
diff --git a/drivers/net/ethernet/atheros/atl1e/atl1e_main.c b/drivers/net/ethernet/atheros/atl1e/atl1e_main.c
index 40290028580ba..437989edb7802 100644
--- a/drivers/net/ethernet/atheros/atl1e/atl1e_main.c
+++ b/drivers/net/ethernet/atheros/atl1e/atl1e_main.c
@@ -1234,6 +1234,9 @@ static bool atl1e_clean_tx_irq(struct atl1e_adapter *adapter)
 	u16 hw_next_to_clean = AT_READ_REGW(&adapter->hw, REG_TPD_CONS_IDX);
 	u16 next_to_clean = atomic_read(&tx_ring->next_to_clean);
 
+	if (unlikely(hw_next_to_clean >= tx_ring->count))
+		hw_next_to_clean = next_to_clean;
+
 	while (next_to_clean != hw_next_to_clean) {
 		tx_buffer = &tx_ring->tx_buffer[next_to_clean];
 		if (tx_buffer->dma) {
diff --git a/drivers/net/ethernet/atheros/atlx/atl1.c b/drivers/net/ethernet/atheros/atlx/atl1.c
index 98a4d089270e4..957d5598dda5e 100644
--- a/drivers/net/ethernet/atheros/atlx/atl1.c
+++ b/drivers/net/ethernet/atheros/atlx/atl1.c
@@ -2066,6 +2066,9 @@ static int atl1_intr_tx(struct atl1_adapter *adapter)
 	sw_tpd_next_to_clean = atomic_read(&tpd_ring->next_to_clean);
 	cmb_tpd_next_to_clean = le16_to_cpu(adapter->cmb.cmb->tpd_cons_idx);
 
+	if (unlikely(cmb_tpd_next_to_clean >= tpd_ring->count))
+		cmb_tpd_next_to_clean = sw_tpd_next_to_clean;
+
 	while (cmb_tpd_next_to_clean != sw_tpd_next_to_clean) {
 		buffer_info = &tpd_ring->buffer_info[sw_tpd_next_to_clean];
 		if (buffer_info->dma) {

3/2 2026/09/23 06:04 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 3651
							output: 42
							thoughts: 145
						

Thoughts:
Okay, let's dive into this patch series. My initial thought is to figure out what we're dealing with. The user's asked us to evaluate it, and the files listed immediately scream "network driver" to me. Specifically, these look like Atheros Ethernet drivers: `atl1c_main.c`, `atl1e_main.c`, and `atl1.c`. So we're likely dealing with Atheros L1, L1c, and L1e Gigabit Ethernet drivers. That's a good starting point. Now, are these PCI devices? I need to quickly confirm that. I'll use `grepper` or `read-file` to check the code and confirm my suspicion about the device type. Let's see what's in these files.



4/2 2026/09/23 06:05 tool grepper
0m Args:
{
  "Expression": "module_pci_driver|pci_register_driver",
  "PathPrefix": "drivers/net/ethernet/atheros"
}

Results:
{
  "Output": "drivers/net/ethernet/atheros/alx/main.c=2042=static struct pci_driver alx_driver = {\n--\ndrivers/net/ethernet/atheros/alx/main.c-2050-\ndrivers/net/ethernet/atheros/alx/main.c:2051:module_pci_driver(alx_driver);\ndrivers/net/ethernet/atheros/alx/main.c-2052-MODULE_DEVICE_TABLE(pci, alx_pci_tbl);\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c=2880=static struct pci_driver atl1c_driver = {\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-2889-\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:2890:module_pci_driver(atl1c_driver);\n--\ndrivers/net/ethernet/atheros/atl1e/atl1e_main.c=2555=static struct pci_driver atl1e_driver = {\n--\ndrivers/net/ethernet/atheros/atl1e/atl1e_main.c-2568-\ndrivers/net/ethernet/atheros/atl1e/atl1e_main.c:2569:module_pci_driver(atl1e_driver);\n--\ndrivers/net/ethernet/atheros/atlx/atl1.c=3666=static const struct ethtool_ops atl1_ethtool_ops = {\n--\ndrivers/net/ethernet/atheros/atlx/atl1.c-3686-\ndrivers/net/ethernet/atheros/atlx/atl1.c:3687:module_pci_driver(atl1_driver);\n--\ndrivers/net/ethernet/atheros/atlx/atl2.c=1666=static struct pci_driver atl2_driver = {\n--\ndrivers/net/ethernet/atheros/atlx/atl2.c-1678-\ndrivers/net/ethernet/atheros/atlx/atl2.c:1679:module_pci_driver(atl2_driver);\ndrivers/net/ethernet/atheros/atlx/atl2.c-1680-\n"
}

5/2 2026/09/23 06:05 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 4611
							output: 31
							thoughts: 470
						

Thoughts:
**Analyzing Atheros NIC Emulation for Fuzzing**

Okay, so I'm dealing with these three Atheros PCI ethernet drivers: atl1c, atl1e, and atl1. My initial thought is to see if standard QEMU even *emulates* these. I need to figure out if these NICs are supported in a virtualized environment. Usually, QEMU supports things like e1000, e1000e, igb, and a bunch of others. But does it handle the Atheros atl1 family?

I've checked, and it looks like QEMU doesn't directly emulate Atheros AR81xx / L1 / L1c / L1e. Okay, that's important. But let's verify. Is there *any* virtual bus or emulation happening for these?

This brings me to the instructions. I need to make sure the code is actually reachable in a standard environment like QEMU. The instructions specifically say that code requiring "vendor-specific PCIe switches, SmartNICs, or GPU drivers" which need physical ASIC/PCIe cards that *aren't* emulated in standard QEMU should *not* be fuzzed.

Now, let's connect the dots. Atheros L1 / L1e / L1c (Attansic/Atheros L1 Gigabit Ethernet, Fast Ethernet, etc.) *are* vendor-specific physical PCI/PCIe NICs. Bingo! They need hardware. This pretty much confirms it: We can't fuzz this code as is.

Just to be absolutely sure, let's check Kconfig for these drivers. I need to investigate other possible callers or virtual devices associated with atl1c, atl1e, or atl1. It's always good to be thorough.



6/2 2026/09/23 06:05 tool grepper
0m Args:
{
  "Expression": "ATL1",
  "PathPrefix": "drivers/net/ethernet/atheros"
}

Results:
{
  "Output": "\nFull output is too long, showing 500 out of 669 lines.\nUse more precise expression if possible.\n\ndrivers/net/ethernet/atheros/Kconfig=29=config ATL2\n--\ndrivers/net/ethernet/atheros/Kconfig-39-\ndrivers/net/ethernet/atheros/Kconfig:40:config ATL1\ndrivers/net/ethernet/atheros/Kconfig-41-\ttristate \"Atheros/Attansic L1 Gigabit Ethernet support\"\n--\ndrivers/net/ethernet/atheros/Kconfig-51-\ndrivers/net/ethernet/atheros/Kconfig:52:config ATL1E\ndrivers/net/ethernet/atheros/Kconfig-53-\ttristate \"Atheros L1E Gigabit Ethernet support\"\n--\ndrivers/net/ethernet/atheros/Kconfig-62-\ndrivers/net/ethernet/atheros/Kconfig:63:config ATL1C\ndrivers/net/ethernet/atheros/Kconfig-64-\ttristate \"Atheros L1C Gigabit Ethernet support\"\n--\ndrivers/net/ethernet/atheros/Makefile=6=obj-$(CONFIG_AG71XX) += ag71xx.o\ndrivers/net/ethernet/atheros/Makefile:7:obj-$(CONFIG_ATL1) += atlx/\ndrivers/net/ethernet/atheros/Makefile-8-obj-$(CONFIG_ATL2) += atlx/\ndrivers/net/ethernet/atheros/Makefile:9:obj-$(CONFIG_ATL1E) += atl1e/\ndrivers/net/ethernet/atheros/Makefile:10:obj-$(CONFIG_ATL1C) += atl1c/\ndrivers/net/ethernet/atheros/Makefile-11-obj-$(CONFIG_ALX) += alx/\n--\ndrivers/net/ethernet/atheros/atl1c/Makefile-1-# SPDX-License-Identifier: GPL-2.0-only\ndrivers/net/ethernet/atheros/atl1c/Makefile:2:obj-$(CONFIG_ATL1C) += atl1c.o\ndrivers/net/ethernet/atheros/atl1c/Makefile-3-atl1c-objs := atl1c_main.o atl1c_hw.o atl1c_ethtool.o\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c.h-8-\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:9:#ifndef _ATL1C_H_\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:10:#define _ATL1C_H_\ndrivers/net/ethernet/atheros/atl1c/atl1c.h-11-\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c.h-80-\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:81:#define ATL1C_PCIE_L0S_L1_DISABLE \t0x01\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:82:#define ATL1C_PCIE_PHY_RESET\t\t0x02\ndrivers/net/ethernet/atheros/atl1c/atl1c.h-83-\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:84:#define ATL1C_ASPM_L0s_ENABLE\t\t0x0001\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:85:#define ATL1C_ASPM_L1_ENABLE\t\t0x0002\ndrivers/net/ethernet/atheros/atl1c/atl1c.h-86-\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c.h-89-\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:90:#define ATL1C_GET_DESC(R, i, type)\t(\u0026(((type *)((R)-\u003edesc))[i]))\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:91:#define ATL1C_RFD_DESC(R, i)\tATL1C_GET_DESC(R, i, struct atl1c_rx_free_desc)\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:92:#define ATL1C_TPD_DESC(R, i)\tATL1C_GET_DESC(R, i, struct atl1c_tpd_desc)\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:93:#define ATL1C_RRD_DESC(R, i)\tATL1C_GET_DESC(R, i, struct atl1c_recv_ret_status)\ndrivers/net/ethernet/atheros/atl1c/atl1c.h-94-\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c.h=352=struct atl1c_hw {\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c.h-392-\tu16 ctrl_flags;\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:393:#define ATL1C_INTR_CLEAR_ON_READ\t0x0001\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:394:#define ATL1C_INTR_MODRT_ENABLE\t \t0x0002\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:395:#define ATL1C_CMB_ENABLE\t\t0x0004\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:396:#define ATL1C_SMB_ENABLE\t\t0x0010\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:397:#define ATL1C_TXQ_MODE_ENHANCE\t\t0x0020\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:398:#define ATL1C_RX_IPV6_CHKSUM\t\t0x0040\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:399:#define ATL1C_ASPM_L0S_SUPPORT\t\t0x0080\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:400:#define ATL1C_ASPM_L1_SUPPORT\t\t0x0100\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:401:#define ATL1C_ASPM_CTRL_MON\t\t0x0200\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:402:#define ATL1C_HIB_DISABLE\t\t0x0400\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:403:#define ATL1C_APS_MODE_ENABLE           0x0800\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:404:#define ATL1C_LINK_EXT_SYNC             0x1000\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:405:#define ATL1C_CLK_GATING_EN             0x2000\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:406:#define ATL1C_FPGA_VERSION              0x8000\ndrivers/net/ethernet/atheros/atl1c/atl1c.h-407-\tu16 link_cap_flags;\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:408:#define ATL1C_LINK_CAP_1000M\t\t0x0001\ndrivers/net/ethernet/atheros/atl1c/atl1c.h-409-\tu32 smb_timer;\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c.h=441=struct atl1c_buffer {\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c.h-444-\tu16 flags;\t\t/* information of buffer */\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:445:#define ATL1C_BUFFER_FREE\t\t0x0001\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:446:#define ATL1C_BUFFER_BUSY\t\t0x0002\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:447:#define ATL1C_BUFFER_STATE_MASK\t\t0x0003\ndrivers/net/ethernet/atheros/atl1c/atl1c.h-448-\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:449:#define ATL1C_PCIMAP_SINGLE\t\t0x0004\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:450:#define ATL1C_PCIMAP_PAGE\t\t0x0008\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:451:#define ATL1C_PCIMAP_TYPE_MASK\t\t0x000C\ndrivers/net/ethernet/atheros/atl1c/atl1c.h-452-\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:453:#define ATL1C_PCIMAP_TODEVICE\t\t0x0010\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:454:#define ATL1C_PCIMAP_FROMDEVICE\t\t0x0020\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:455:#define ATL1C_PCIMAP_DIRECTION_MASK\t0x0030\ndrivers/net/ethernet/atheros/atl1c/atl1c.h-456-\tdma_addr_t dma;\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c.h-458-\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:459:#define ATL1C_SET_BUFFER_STATE(buff, state) do {\t\\\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:460:\t((buff)-\u003eflags) \u0026= ~ATL1C_BUFFER_STATE_MASK;\t\\\ndrivers/net/ethernet/atheros/atl1c/atl1c.h-461-\t((buff)-\u003eflags) |= (state);\t\t\t\\\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c.h-463-\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:464:#define ATL1C_SET_PCIMAP_TYPE(buff, type, direction) do {\t\\\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:465:\t((buff)-\u003eflags) \u0026= ~ATL1C_PCIMAP_TYPE_MASK;\t\t\\\ndrivers/net/ethernet/atheros/atl1c/atl1c.h-466-\t((buff)-\u003eflags) |= (type);\t\t\t\t\\\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:467:\t((buff)-\u003eflags) \u0026= ~ATL1C_PCIMAP_DIRECTION_MASK;\t\\\ndrivers/net/ethernet/atheros/atl1c/atl1c.h-468-\t((buff)-\u003eflags) |= (direction);\t\t\t\t\\\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c.h=510=struct atl1c_adapter {\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c.h-524-\tunsigned long work_event;\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:525:#define\tATL1C_WORK_EVENT_RESET\t\t0\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:526:#define\tATL1C_WORK_EVENT_LINK_CHANGE\t1\ndrivers/net/ethernet/atheros/atl1c/atl1c.h-527-\tu32 msg_enable;\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c.h=592=void atl1c_set_ethtool_ops(struct net_device *netdev);\ndrivers/net/ethernet/atheros/atl1c/atl1c.h:593:#endif /* _ATL1C_H_ */\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c=15=static int atl1c_get_link_ksettings(struct net_device *netdev,\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c-27-\t\t\t   SUPPORTED_TP);\ndrivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c:28:\tif (hw-\u003elink_cap_flags \u0026 ATL1C_LINK_CAP_1000M)\ndrivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c-29-\t\tsupported |= SUPPORTED_1000baseT_Full;\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_hw.c=265=void atl1c_stop_phy_polling(struct atl1c_hw *hw)\ndrivers/net/ethernet/atheros/atl1c/atl1c_hw.c-266-{\ndrivers/net/ethernet/atheros/atl1c/atl1c_hw.c:267:\tif (!(hw-\u003ectrl_flags \u0026 ATL1C_FPGA_VERSION))\ndrivers/net/ethernet/atheros/atl1c/atl1c_hw.c-268-\t\treturn;\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_hw.c=274=void atl1c_start_phy_polling(struct atl1c_hw *hw, u16 clk_sel)\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_hw.c-277-\ndrivers/net/ethernet/atheros/atl1c/atl1c_hw.c:278:\tif (!(hw-\u003ectrl_flags \u0026 ATL1C_FPGA_VERSION))\ndrivers/net/ethernet/atheros/atl1c/atl1c_hw.c-279-\t\treturn;\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_hw.c=456=static int atl1c_phy_setup_adv(struct atl1c_hw *hw)\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_hw.c-474-\ndrivers/net/ethernet/atheros/atl1c/atl1c_hw.c:475:\tif (hw-\u003elink_cap_flags \u0026 ATL1C_LINK_CAP_1000M) {\ndrivers/net/ethernet/atheros/atl1c/atl1c_hw.c-476-\t\tif (hw-\u003eautoneg_advertised \u0026 ADVERTISED_1000baseT_Half)\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_hw.c=497=int atl1c_phy_reset(struct atl1c_hw *hw)\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_hw.c-509-\tphy_ctrl_data |= GPHY_CTRL_SEL_ANA_RST;\ndrivers/net/ethernet/atheros/atl1c/atl1c_hw.c:510:\tif (!(hw-\u003ectrl_flags \u0026 ATL1C_HIB_DISABLE))\ndrivers/net/ethernet/atheros/atl1c/atl1c_hw.c-511-\t\tphy_ctrl_data |= (GPHY_CTRL_HIB_EN | GPHY_CTRL_HIB_PULSE);\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_hw.c-535-\t/* clear bit3 of dbgport 3B to lower voltage */\ndrivers/net/ethernet/atheros/atl1c/atl1c_hw.c:536:\tif (!(hw-\u003ectrl_flags \u0026 ATL1C_HIB_DISABLE)) {\ndrivers/net/ethernet/atheros/atl1c/atl1c_hw.c-537-\t\tif (hw-\u003enic_type == athr_l2c_b || hw-\u003enic_type == athr_l2c_b2) {\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_hw.h-8-\ndrivers/net/ethernet/atheros/atl1c/atl1c_hw.h:9:#ifndef _ATL1C_HW_H_\ndrivers/net/ethernet/atheros/atl1c/atl1c_hw.h:10:#define _ATL1C_HW_H_\ndrivers/net/ethernet/atheros/atl1c/atl1c_hw.h-11-\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_hw.h=54=void atl1c_post_phy_linkchg(struct atl1c_hw *hw, u16 link_speed);\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_hw.h-1046-\ndrivers/net/ethernet/atheros/atl1c/atl1c_hw.h:1047:#endif /*_ATL1C_HW_H_*/\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c=135=static void atl1c_reset_pcie(struct atl1c_hw *hw, u32 flag)\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-177-\tatl1c_pcie_patch(hw);\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:178:\tif (flag \u0026 ATL1C_PCIE_L0S_L1_DISABLE)\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-179-\t\tatl1c_disable_l0s_l1(hw);\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c=305=static void atl1c_link_chg_event(struct atl1c_adapter *adapter)\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-326-\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:327:\tset_bit(ATL1C_WORK_EVENT_LINK_CHANGE, \u0026adapter-\u003ework_event);\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-328-\tschedule_work(\u0026adapter-\u003ecommon_task);\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c=331=static void atl1c_common_task(struct work_struct *work)\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-341-\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:342:\tif (test_and_clear_bit(ATL1C_WORK_EVENT_RESET, \u0026adapter-\u003ework_event)) {\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-343-\t\tnetif_device_detach(netdev);\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-348-\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:349:\tif (test_and_clear_bit(ATL1C_WORK_EVENT_LINK_CHANGE,\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-350-\t\t\u0026adapter-\u003ework_event)) {\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c=369=static void atl1c_tx_timeout(struct net_device *netdev, unsigned int txqueue)\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-373-\t/* Do the reset outside of interrupt context */\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:374:\tset_bit(ATL1C_WORK_EVENT_RESET, \u0026adapter-\u003ework_event);\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-375-\tschedule_work(\u0026adapter-\u003ecommon_task);\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c=690=static int atl1c_setup_mac_funcs(struct atl1c_hw *hw)\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-695-\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:696:\thw-\u003ectrl_flags = ATL1C_INTR_MODRT_ENABLE  |\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:697:\t\t\t ATL1C_TXQ_MODE_ENHANCE;\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:698:\thw-\u003ectrl_flags |= ATL1C_ASPM_L0S_SUPPORT |\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:699:\t\t\t  ATL1C_ASPM_L1_SUPPORT;\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:700:\thw-\u003ectrl_flags |= ATL1C_ASPM_CTRL_MON;\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-701-\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-704-\t    hw-\u003enic_type == athr_l1d_2)\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:705:\t\thw-\u003elink_cap_flags |= ATL1C_LINK_CAP_1000M;\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-706-\treturn 0;\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c=709=struct atl1c_platform_patch {\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-714-\tu32 patch_flag;\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:715:#define ATL1C_LINK_PATCH\t0x1\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-716-};\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c=740=static void atl1c_patch_assign(struct atl1c_hw *hw)\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-752-\t\t    plats[i].subsystem_did == hw-\u003esubsystem_id) {\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:753:\t\t\tif (plats[i].patch_flag \u0026 ATL1C_LINK_PATCH)\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-754-\t\t\t\thw-\u003emsi_lnkpatch = true;\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c=844=static inline void atl1c_clean_buffer(struct pci_dev *pdev,\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-848-\tu16 pci_driection;\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:849:\tif (buffer_info-\u003eflags \u0026 ATL1C_BUFFER_FREE)\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-850-\t\treturn;\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-851-\tif (buffer_info-\u003edma) {\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:852:\t\tif (buffer_info-\u003eflags \u0026 ATL1C_PCIMAP_FROMDEVICE)\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-853-\t\t\tpci_driection = DMA_FROM_DEVICE;\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-856-\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:857:\t\tif (buffer_info-\u003eflags \u0026 ATL1C_PCIMAP_SINGLE)\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-858-\t\t\tdma_unmap_single(\u0026pdev-\u003edev, buffer_info-\u003edma,\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-859-\t\t\t\t\t buffer_info-\u003elength, pci_driection);\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:860:\t\telse if (buffer_info-\u003eflags \u0026 ATL1C_PCIMAP_PAGE)\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-861-\t\t\tdma_unmap_page(\u0026pdev-\u003edev, buffer_info-\u003edma,\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-867-\tbuffer_info-\u003eskb = NULL;\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:868:\tATL1C_SET_BUFFER_STATE(buffer_info, ATL1C_BUFFER_FREE);\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-869-}\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c=926=static void atl1c_init_ring_ptrs(struct atl1c_adapter *adapter)\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-938-\t\tfor (j = 0; j \u003c tpd_ring-\u003ecount; j++)\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:939:\t\t\tATL1C_SET_BUFFER_STATE(\u0026buffer_info[i],\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:940:\t\t\t\t\t       ATL1C_BUFFER_FREE);\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-941-\t}\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-948-\t\t\tbuffer_info = \u0026rfd_ring[i].buffer_info[j];\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:949:\t\t\tATL1C_SET_BUFFER_STATE(buffer_info, ATL1C_BUFFER_FREE);\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-950-\t\t}\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c=1165=static void atl1c_configure_rx(struct atl1c_adapter *adapter)\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-1172-\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:1173:\tif (hw-\u003ectrl_flags \u0026 ATL1C_RX_IPV6_CHKSUM)\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-1174-\t\trxq_ctrl_data |= IPV6_CHKSUM_CTRL_EN;\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c=1315=static void atl1c_disable_l0s_l1(struct atl1c_hw *hw)\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-1318-\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:1319:\thw-\u003ectrl_flags \u0026= ~(ATL1C_ASPM_L0S_SUPPORT | ATL1C_ASPM_L1_SUPPORT);\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-1320-\tatl1c_set_aspm(hw, SPEED_0);\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c=1328=static void atl1c_set_aspm(struct atl1c_hw *hw, u16 link_speed)\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-1354-\t/* L0S/L1 enable */\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:1355:\tif ((hw-\u003ectrl_flags \u0026 ATL1C_ASPM_L0S_SUPPORT) \u0026\u0026 link_speed != SPEED_0)\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-1356-\t\tpm_ctrl_data |= PM_CTRL_ASPM_L0S_EN | PM_CTRL_MAC_ASPM_CHK;\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:1357:\tif (hw-\u003ectrl_flags \u0026 ATL1C_ASPM_L1_SUPPORT)\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-1358-\t\tpm_ctrl_data |= PM_CTRL_ASPM_L1_EN | PM_CTRL_MAC_ASPM_CHK;\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c=1406=static int atl1c_configure_mac(struct atl1c_adapter *adapter)\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-1426-\tdata = CLK_GATING_EN_ALL;\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:1427:\tif (hw-\u003ectrl_flags \u0026 ATL1C_CLK_GATING_EN) {\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-1428-\t\tif (hw-\u003enic_type == athr_l2c_b)\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-1438-\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:1439:\tif (hw-\u003ectrl_flags \u0026 ATL1C_INTR_MODRT_ENABLE) {\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-1440-\t\tintr_modrt_data = (hw-\u003etx_imt \u0026 IRQ_MODRT_TIMER_MASK) \u003c\u003c\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-1448-\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:1449:\tif (hw-\u003ectrl_flags \u0026 ATL1C_INTR_CLEAR_ON_READ)\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-1450-\t\tmaster_ctrl_data |= MASTER_CTRL_INT_RDCLR;\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c=1673=static irqreturn_t atl1c_intr(int irq, void *data)\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-1708-\t\t\t/* reset MAC */\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:1709:\t\t\tset_bit(ATL1C_WORK_EVENT_RESET, \u0026adapter-\u003ework_event);\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-1710-\t\t\tschedule_work(\u0026adapter-\u003ecommon_task);\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c=1749=static int atl1c_alloc_rx_buffer(struct atl1c_adapter *adapter, u32 queue,\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-1768-\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:1769:\twhile (next_info-\u003eflags \u0026 ATL1C_BUFFER_FREE) {\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:1770:\t\trfd_desc = ATL1C_RFD_DESC(rfd_ring, rfd_next_to_use);\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-1771-\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-1798-\t\tvir_addr = skb-\u003edata;\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:1799:\t\tATL1C_SET_BUFFER_STATE(buffer_info, ATL1C_BUFFER_BUSY);\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-1800-\t\tbuffer_info-\u003eskb = skb;\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-1807-\t\t\tbuffer_info-\u003elength = 0;\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:1808:\t\t\tATL1C_SET_BUFFER_STATE(buffer_info, ATL1C_BUFFER_FREE);\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-1809-\t\t\tnetif_warn(adapter, rx_err, adapter-\u003enetdev, \"RX dma_map_single failed\");\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-1812-\t\tbuffer_info-\u003edma = mapping;\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:1813:\t\tATL1C_SET_PCIMAP_TYPE(buffer_info, ATL1C_PCIMAP_SINGLE,\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:1814:\t\t\tATL1C_PCIMAP_FROMDEVICE);\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-1815-\t\trfd_desc-\u003ebuffer_addr = cpu_to_le64(buffer_info-\u003edma);\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c=1835=static void atl1c_clean_rrd(struct atl1c_rrd_ring *rrd_ring,\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-1839-\t/* the relationship between rrd and rfd is one map one */\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:1840:\tfor (i = 0; i \u003c num; i++, rrs = ATL1C_RRD_DESC(rrd_ring,\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-1841-\t\t\t\t\trrd_ring-\u003enext_to_clean)) {\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c=1848=static void atl1c_clean_rfd(struct atl1c_rfd_ring *rfd_ring,\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-1858-\t\tbuffer_info[rfd_index].skb = NULL;\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:1859:\t\tATL1C_SET_BUFFER_STATE(\u0026buffer_info[rfd_index],\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:1860:\t\t\t\t\tATL1C_BUFFER_FREE);\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-1861-\t\tif (++rfd_index == rfd_ring-\u003ecount)\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c=1872=static int atl1c_clean_rx(struct napi_struct *napi, int budget)\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-1894-\t\t\tbreak;\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:1895:\t\trrs = ATL1C_RRD_DESC(rrd_ring, rrd_ring-\u003enext_to_clean);\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-1896-\t\tif (likely(RRS_RXD_IS_VALID(rrs-\u003eword3))) {\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c=2001=static struct atl1c_tpd_desc *atl1c_get_tpd(struct atl1c_adapter *adapter,\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-2010-\t\ttpd_ring-\u003enext_to_use = 0;\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:2011:\ttpd_desc = ATL1C_TPD_DESC(tpd_ring, next_to_use);\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-2012-\tmemset(tpd_desc, 0, sizeof(struct atl1c_tpd_desc));\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c=2144=static void atl1c_tx_rollback(struct atl1c_adapter *adpt,\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-2155-\twhile (index != tpd_ring-\u003enext_to_use) {\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:2156:\t\ttpd = ATL1C_TPD_DESC(tpd_ring, index);\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-2157-\t\tbuffer_info = \u0026tpd_ring-\u003ebuffer_info[index];\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c=2166=static int atl1c_tx_map(struct atl1c_adapter *adapter,\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-2194-\t\t\tgoto err_dma;\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:2195:\t\tATL1C_SET_BUFFER_STATE(buffer_info, ATL1C_BUFFER_BUSY);\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:2196:\t\tATL1C_SET_PCIMAP_TYPE(buffer_info, ATL1C_PCIMAP_SINGLE,\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:2197:\t\t\tATL1C_PCIMAP_TODEVICE);\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-2198-\t\tmapped_len += map_len;\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-2220-\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:2221:\t\tATL1C_SET_BUFFER_STATE(buffer_info, ATL1C_BUFFER_BUSY);\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:2222:\t\tATL1C_SET_PCIMAP_TYPE(buffer_info, ATL1C_PCIMAP_SINGLE,\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:2223:\t\t\tATL1C_PCIMAP_TODEVICE);\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-2224-\t\tuse_tpd-\u003ebuffer_addr = cpu_to_le64(buffer_info-\u003edma);\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-2242-\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:2243:\t\tATL1C_SET_BUFFER_STATE(buffer_info, ATL1C_BUFFER_BUSY);\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:2244:\t\tATL1C_SET_PCIMAP_TYPE(buffer_info, ATL1C_PCIMAP_PAGE,\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:2245:\t\t\tATL1C_PCIMAP_TODEVICE);\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-2246-\t\tuse_tpd-\u003ebuffer_addr = cpu_to_le64(buffer_info-\u003edma);\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c=2535=static int atl1c_resume(struct device *dev)\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-2540-\tAT_WRITE_REG(\u0026adapter-\u003ehw, REG_WOL_CTRL, 0);\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:2541:\tatl1c_reset_pcie(\u0026adapter-\u003ehw, ATL1C_PCIE_L0S_L1_DISABLE);\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-2542-\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c=2615=static int atl1c_probe(struct pci_dev *pdev, const struct pci_device_id *ent)\n--\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-2710-\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c:2711:\tatl1c_reset_pcie(\u0026adapter-\u003ehw, ATL1C_PCIE_L0S_L1_DISABLE);\ndrivers/net/ethernet/atheros/atl1c/atl1c_main.c-2712-\n--\ndrivers/net/ethernet/atheros/atl1e/Makefile-1-# SPDX-License-Identifier: GPL-2.0-only\ndrivers/net/ethernet/atheros/atl1e/Makefile:2:obj-$(CONFIG_ATL1E)\t+= atl1e.o\ndrivers/net/ethernet/atheros/atl1e/Makefile-3-atl1e-objs\t\t+= atl1e_main.o atl1e_hw.o atl1e_ethtool.o atl1e_param.o\n--\ndrivers/net/ethernet/atheros/atl1e/atl1e.h-9-\ndrivers/net/ethernet/atheros/atl1e/atl1e.h:10:#ifndef _ATL1E_H_\ndrivers/net/ethernet/atheros/atl1e/atl1e.h:11:#define _ATL1E_H_\ndrivers/net/ethernet/atheros/atl1e/atl1e.h-12-\n--\ndrivers/net/ethernet/atheros/atl1e/atl1e.h=364=struct atl1e_tx_buffer {\n--\ndrivers/net/ethernet/atheros/atl1e/atl1e.h-366-\tu16 flags;\ndrivers/net/ethernet/atheros/atl1e/atl1e.h:367:#define ATL1E_TX_PCIMAP_SINGLE\t\t0x0001\ndrivers/net/ethernet/atheros/atl1e/atl1e.h:368:#define ATL1E_TX_PCIMAP_PAGE\t\t0x0002\ndrivers/net/ethernet/atheros/atl1e/atl1e.h:369:#define ATL1E_TX_PCIMAP_TYPE_MASK\t0x0003\ndrivers/net/ethernet/atheros/atl1e/atl1e.h-370-\tu16 length;\n--\ndrivers/net/ethernet/atheros/atl1e/atl1e.h-373-\ndrivers/net/ethernet/atheros/atl1e/atl1e.h:374:#define ATL1E_SET_PCIMAP_TYPE(tx_buff, type) do {\t\t\\\ndrivers/net/ethernet/atheros/atl1e/atl1e.h:375:\t((tx_buff)-\u003eflags) \u0026= ~ATL1E_TX_PCIMAP_TYPE_MASK;\t\\\ndrivers/net/ethernet/atheros/atl1e/atl1e.h-376-\t((tx_buff)-\u003eflags) |= (type);\t\t\t\t\\\n--\ndrivers/net/ethernet/atheros/atl1e/atl1e.h=491=void atl1e_set_ethtool_ops(struct net_device *netdev);\ndrivers/net/ethernet/atheros/atl1e/atl1e.h:492:#endif /* _ATL1_E_H_ */\n--\ndrivers/net/ethernet/atheros/atl1e/atl1e_main.c-10-\ndrivers/net/ethernet/atheros/atl1e/atl1e_main.c:11:char atl1e_driver_name[] = \"ATL1E\";\ndrivers/net/ethernet/atheros/atl1e/atl1e_main.c-12-#define PCI_DEVICE_ID_ATTANSIC_L1E      0x1026\n--\ndrivers/net/ethernet/atheros/atl1e/atl1e_main.c=640=static void atl1e_clean_tx_ring(struct atl1e_adapter *adapter)\n--\ndrivers/net/ethernet/atheros/atl1e/atl1e_main.c-654-\t\tif (tx_buffer-\u003edma) {\ndrivers/net/ethernet/atheros/atl1e/atl1e_main.c:655:\t\t\tif (tx_buffer-\u003eflags \u0026 ATL1E_TX_PCIMAP_SINGLE)\ndrivers/net/ethernet/atheros/atl1e/atl1e_main.c-656-\t\t\t\tdma_unmap_single(\u0026pdev-\u003edev, tx_buffer-\u003edma,\n--\ndrivers/net/ethernet/atheros/atl1e/atl1e_main.c-658-\t\t\t\t\t\t DMA_TO_DEVICE);\ndrivers/net/ethernet/atheros/atl1e/atl1e_main.c:659:\t\t\telse if (tx_buffer-\u003eflags \u0026 ATL1E_TX_PCIMAP_PAGE)\ndrivers/net/ethernet/atheros/atl1e/atl1e_main.c-660-\t\t\t\tdma_unmap_page(\u0026pdev-\u003edev, tx_buffer-\u003edma,\n--\ndrivers/net/ethernet/atheros/atl1e/atl1e_main.c=1230=static bool atl1e_clean_tx_irq(struct atl1e_adapter *adapter)\n--\ndrivers/net/ethernet/atheros/atl1e/atl1e_main.c-1242-\t\tif (tx_buffer-\u003edma) {\ndrivers/net/ethernet/atheros/atl1e/atl1e_main.c:1243:\t\t\tif (tx_buffer-\u003eflags \u0026 ATL1E_TX_PCIMAP_SINGLE)\ndrivers/net/ethernet/atheros/atl1e/atl1e_main.c-1244-\t\t\t\tdma_unmap_single(\u0026adapter-\u003epdev-\u003edev,\n--\ndrivers/net/ethernet/atheros/atl1e/atl1e_main.c-1247-\t\t\t\t\t\t DMA_TO_DEVICE);\ndrivers/net/ethernet/atheros/atl1e/atl1e_main.c:1248:\t\t\telse if (tx_buffer-\u003eflags \u0026 ATL1E_TX_PCIMAP_PAGE)\ndrivers/net/ethernet/atheros/atl1e/atl1e_main.c-1249-\t\t\t\tdma_unmap_page(\u0026adapter-\u003epdev-\u003edev,\n--\ndrivers/net/ethernet/atheros/atl1e/atl1e_main.c=1705=static int atl1e_tx_map(struct atl1e_adapter *adapter,\n--\ndrivers/net/ethernet/atheros/atl1e/atl1e_main.c-1735-\ndrivers/net/ethernet/atheros/atl1e/atl1e_main.c:1736:\t\tATL1E_SET_PCIMAP_TYPE(tx_buffer, ATL1E_TX_PCIMAP_SINGLE);\ndrivers/net/ethernet/atheros/atl1e/atl1e_main.c-1737-\t\tmapped_len += map_len;\n--\ndrivers/net/ethernet/atheros/atl1e/atl1e_main.c-1780-\ndrivers/net/ethernet/atheros/atl1e/atl1e_main.c:1781:\t\tATL1E_SET_PCIMAP_TYPE(tx_buffer, ATL1E_TX_PCIMAP_SINGLE);\ndrivers/net/ethernet/atheros/atl1e/atl1e_main.c-1782-\t\tmapped_len  += map_len;\n--\ndrivers/net/ethernet/atheros/atl1e/atl1e_main.c-1831-\ndrivers/net/ethernet/atheros/atl1e/atl1e_main.c:1832:\t\t\tATL1E_SET_PCIMAP_TYPE(tx_buffer, ATL1E_TX_PCIMAP_PAGE);\ndrivers/net/ethernet/atheros/atl1e/atl1e_main.c-1833-\t\t\tuse_tpd-\u003ebuffer_addr = cpu_to_le64(tx_buffer-\u003edma);\n--\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c-16-\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c:17:#define ATL1E_MAX_NIC 32\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c-18-\n--\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c-26- */\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c:27:#define ATL1E_PARAM_INIT { [0 ... ATL1E_MAX_NIC] = OPTION_UNSET }\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c-28-\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c:29:#define ATL1E_PARAM(x, desc) \\\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c:30:\tstatic int x[ATL1E_MAX_NIC + 1] = ATL1E_PARAM_INIT; \\\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c-31-\tstatic unsigned int num_##x; \\\n--\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c-40- */\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c:41:#define ATL1E_MIN_TX_DESC_CNT\t\t32\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c:42:#define ATL1E_MAX_TX_DESC_CNT\t\t1020\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c:43:#define ATL1E_DEFAULT_TX_DESC_CNT\t128\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c:44:ATL1E_PARAM(tx_desc_cnt, \"Transmit description count\");\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c-45-\n--\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c-51- */\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c:52:#define ATL1E_MIN_RX_MEM_SIZE\t\t8    /* 8KB   */\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c:53:#define ATL1E_MAX_RX_MEM_SIZE\t\t1024 /* 1MB   */\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c:54:#define ATL1E_DEFAULT_RX_MEM_SIZE\t256  /* 128KB */\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c:55:ATL1E_PARAM(rx_mem_size, \"memory size of rx buffer(KB)\");\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c-56-\n--\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c-67-\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c:68:ATL1E_PARAM(media_type, \"MediaType Select\");\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c-69-\n--\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c-78-#define INT_MOD_MIN_CNT                 50\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c:79:ATL1E_PARAM(int_mod_timer, \"Interrupt Moderator Timer\");\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c-80-\n--\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c=168=void atl1e_check_options(struct atl1e_adapter *adapter)\n--\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c-171-\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c:172:\tif (bd \u003e= ATL1E_MAX_NIC) {\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c-173-\t\tnetdev_notice(adapter-\u003enetdev,\n--\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c-183-\t\t\t.err  = \"using default of \"\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c:184:\t\t\t\t__MODULE_STRING(ATL1E_DEFAULT_TX_DESC_CNT),\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c:185:\t\t\t.def  = ATL1E_DEFAULT_TX_DESC_CNT,\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c:186:\t\t\t.arg  = { .r = { .min = ATL1E_MIN_TX_DESC_CNT,\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c:187:\t\t\t\t\t .max = ATL1E_MAX_TX_DESC_CNT} }\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c-188-\t\t};\n--\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c-202-\t\t\t.err  = \"using default of \"\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c:203:\t\t\t\t__MODULE_STRING(ATL1E_DEFAULT_RX_MEM_SIZE),\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c:204:\t\t\t.def  = ATL1E_DEFAULT_RX_MEM_SIZE,\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c:205:\t\t\t.arg  = { .r = { .min = ATL1E_MIN_RX_MEM_SIZE,\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c:206:\t\t\t\t\t .max = ATL1E_MAX_RX_MEM_SIZE} }\ndrivers/net/ethernet/atheros/atl1e/atl1e_param.c-207-\t\t};\n--\ndrivers/net/ethernet/atheros/atlx/Makefile-1-# SPDX-License-Identifier: GPL-2.0-only\ndrivers/net/ethernet/atheros/atlx/Makefile:2:obj-$(CONFIG_ATL1)\t+= atl1.o\ndrivers/net/ethernet/atheros/atlx/Makefile-3-obj-$(CONFIG_ATL2)\t+= atl2.o\n--\ndrivers/net/ethernet/atheros/atlx/atl1.c=76=static const struct ethtool_ops atl1_ethtool_ops;\n--\ndrivers/net/ethernet/atheros/atlx/atl1.c-81- */\ndrivers/net/ethernet/atheros/atlx/atl1.c:82:#define ATL1_MAX_NIC 4\ndrivers/net/ethernet/atheros/atlx/atl1.c-83-\n--\ndrivers/net/ethernet/atheros/atlx/atl1.c-87-\ndrivers/net/ethernet/atheros/atlx/atl1.c:88:#define ATL1_PARAM_INIT { [0 ... ATL1_MAX_NIC] = OPTION_UNSET }\ndrivers/net/ethernet/atheros/atlx/atl1.c-89-\n--\ndrivers/net/ethernet/atheros/atlx/atl1.c-96- */\ndrivers/net/ethernet/atheros/atlx/atl1.c:97:static int int_mod_timer[ATL1_MAX_NIC+1] = ATL1_PARAM_INIT;\ndrivers/net/ethernet/atheros/atlx/atl1.c-98-static unsigned int num_int_mod_timer;\n--\ndrivers/net/ethernet/atheros/atlx/atl1.c=188=static void atl1_check_options(struct atl1_adapter *adapter)\n--\ndrivers/net/ethernet/atheros/atlx/atl1.c-191-\tint bd = adapter-\u003ebd_number;\ndrivers/net/ethernet/atheros/atlx/atl1.c:192:\tif (bd \u003e= ATL1_MAX_NIC) {\ndrivers/net/ethernet/atheros/atlx/atl1.c-193-\t\tdev_notice(\u0026pdev-\u003edev, \"no configuration for board#%i\\n\", bd);\n--\ndrivers/net/ethernet/atheros/atlx/atl1.c=1830=static u16 atl1_alloc_rx_buffers(struct atl1_adapter *adapter)\n--\ndrivers/net/ethernet/atheros/atlx/atl1.c-1853-\ndrivers/net/ethernet/atheros/atlx/atl1.c:1854:\t\trfd_desc = ATL1_RFD_DESC(rfd_ring, rfd_next_to_use);\ndrivers/net/ethernet/atheros/atlx/atl1.c-1855-\n\n"
}

7/2 2026/09/23 06:05 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 20956
							output: 38
							thoughts: 20
						

Thoughts:
Here's my thought process, as requested:

**Navigating the Atheros Ethernet Driver Configuration**

Okay, so I need to get a handle on how this Atheros Ethernet driver is configured. I know the general structure of the kernel source, so I'll start by checking the Kconfig file for that specific driver. My instinct is that it'll be under `drivers/net/ethernet/atheros/Kconfig`. That's where I expect to find the configuration options related to this piece of hardware. I’m thinking there will be options for enabling the driver, selecting the specific Atheros chipset variants supported, and perhaps even some fine-grained controls over features like VLAN support or flow control. It's the standard place to start when investigating the configuration for a driver. Once I have the contents of the Kconfig I can work out the rest. Let's see what’s in there!



8/2 2026/09/23 06:05 tool read-file
0m Args:
{
  "File": "drivers/net/ethernet/atheros/Kconfig",
  "FirstLine": 1,
  "LineCount": 80
}

Results:
{
  "Contents": "   1:\t# SPDX-License-Identifier: GPL-2.0-only\n   2:\t#\n   3:\t# Atheros device configuration\n   4:\t#\n   5:\t\n   6:\tconfig NET_VENDOR_ATHEROS\n   7:\t\tbool \"Atheros devices\"\n   8:\t\tdefault y\n   9:\t\tdepends on PCI || ATH79 || COMPILE_TEST\n  10:\t\thelp\n  11:\t\t  If you have a network (Ethernet) card belonging to this class, say Y.\n  12:\t\n  13:\t\t  Note that the answer to this question doesn't directly affect the\n  14:\t\t  kernel: saying N will just cause the configurator to skip all\n  15:\t\t  the questions about Atheros devices. If you say Y, you will be asked\n  16:\t\t  for your specific card in the following questions.\n  17:\t\n  18:\tif NET_VENDOR_ATHEROS\n  19:\t\n  20:\tconfig AG71XX\n  21:\t\ttristate \"Atheros AR7XXX/AR9XXX built-in ethernet mac support\"\n  22:\t\tdepends on ATH79 || COMPILE_TEST\n  23:\t\tselect PHYLINK\n  24:\t\timply NET_SELFTESTS\n  25:\t\thelp\n  26:\t\t  If you wish to compile a kernel for AR7XXX/91XXX and enable\n  27:\t\t  ethernet support, then you should always answer Y to this.\n  28:\t\n  29:\tconfig ATL2\n  30:\t\ttristate \"Atheros L2 Fast Ethernet support\"\n  31:\t\tdepends on PCI\n  32:\t\tselect CRC32\n  33:\t\tselect MII\n  34:\t\thelp\n  35:\t\t  This driver supports the Atheros L2 fast ethernet adapter.\n  36:\t\n  37:\t\t  To compile this driver as a module, choose M here.  The module\n  38:\t\t  will be called atl2.\n  39:\t\n  40:\tconfig ATL1\n  41:\t\ttristate \"Atheros/Attansic L1 Gigabit Ethernet support\"\n  42:\t\tdepends on PCI\n  43:\t\tselect CRC32\n  44:\t\tselect MII\n  45:\t\thelp\n  46:\t\t  This driver supports the Atheros/Attansic L1 gigabit ethernet\n  47:\t\t  adapter.\n  48:\t\n  49:\t\t  To compile this driver as a module, choose M here.  The module\n  50:\t\t  will be called atl1.\n  51:\t\n  52:\tconfig ATL1E\n  53:\t\ttristate \"Atheros L1E Gigabit Ethernet support\"\n  54:\t\tdepends on PCI\n  55:\t\tselect CRC32\n  56:\t\tselect MII\n  57:\t\thelp\n  58:\t\t  This driver supports the Atheros L1E gigabit ethernet adapter.\n  59:\t\n  60:\t\t  To compile this driver as a module, choose M here.  The module\n  61:\t\t  will be called atl1e.\n  62:\t\n  63:\tconfig ATL1C\n  64:\t\ttristate \"Atheros L1C Gigabit Ethernet support\"\n  65:\t\tdepends on PCI\n  66:\t\tselect CRC32\n  67:\t\tselect MII\n  68:\t\thelp\n  69:\t\t  This driver supports the Atheros L1C gigabit ethernet adapter.\n  70:\t\n  71:\t\t  To compile this driver as a module, choose M here.  The module\n  72:\t\t  will be called atl1c.\n  73:\t\n  74:\tconfig ALX\n  75:\t\ttristate \"Qualcomm Atheros AR816x/AR817x support\"\n  76:\t\tdepends on PCI\n  77:\t\tselect CRC32\n  78:\t\tselect MDIO\n  79:\t\thelp\n  80:\t\t  This driver supports the Qualcomm Atheros L1F ethernet adapter,\n"
}

9/2 2026/09/23 06:05 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 22220
							output: 138
							thoughts: 1818
						

Thoughts:
**Analysis of the Atheros Ethernet Driver Patch**

Alright, let's break this down. This patch touches the transmit cleanup routines within the Atheros Ethernet driver suite: `atl1c_clean_tx`, `atl1e_clean_tx_irq`, and `atl1_intr_tx`. A quick look confirms these are part of the `atl1c`, `atl1e`, and `atl1` drivers, targeting specific hardware - the Attansic L1, L1E, and L1C Gigabit Ethernet controllers, respectively. These are physical PCI/PCIe devices.

The key question is reachability. Section 2 of the guidelines makes it clear: if code can't execute in a standard virtualized environment (QEMU or GCE with software-emulated devices), it's a no-go for fuzzing. Standard QEMU, as we both know, offers emulated NICs like e1000, virtio-net, etc., but *not* emulations for these Atheros controllers. They are not part of the standard QEMU device set.

Consequently, the probe functions for these controllers, like `atl1c_probe`, `atl1e_probe`, and `atl1_probe`, will never be called in a standard QEMU/GCE setup. Therefore, the transmit cleanup functions (`atl1c_clean_tx`, `atl1e_clean_tx_irq`, `atl1_intr_tx`), which the patch modifies, are effectively unreachable in any environment we can readily fuzz. It is a classic case of structurally unreachable hardware, requiring an ASIC/PCIe card not emulated by standard QEMU or GCE.

Given the hardware dependency and the lack of emulation, fuzzing this code is not viable. Therefore, according to the guidelines, the answer is WorthFuzzing: false. There's no point in fuzzing if the code can never be exercised.



10/2 2026/09/23 06:05 tool set-results
0m Args:
{
  "EnableConfigs": [],
  "FocusSymbols": [],
  "Reasoning": "The patch adds bounds checks in the transmit ring cleanup functions (atl1c_clean_tx, atl1e_clean_tx_irq, and atl1_intr_tx) for the Atheros L1C, L1E, and L1 Ethernet drivers. These drivers control specific physical PCI/PCIe hardware that is not emulated by standard virtualized fuzzing environments such as QEMU or GCE. Consequently, the modified code cannot be probed or executed during fuzzing, making it structurally unreachable.",
  "WorthFuzzing": false
}

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "Reasoning": "The patch adds bounds checks in the transmit ring cleanup functions (atl1c_clean_tx, atl1e_clean_tx_irq, and atl1_intr_tx) for the Atheros L1C, L1E, and L1 Ethernet drivers. These drivers control specific physical PCI/PCIe hardware that is not emulated by standard virtualized fuzzing environments such as QEMU or GCE. Consequently, the modified code cannot be probed or executed during fuzzing, making it structurally unreachable.",
  "WorthFuzzing": false
}

11/1 2026/09/23 06:05 action If
0m Args:
{
  "WorthFuzzing": false
}

Results:
null

LLM Calls Summary:
Total Calls Total Tokens Avg Tokens Total Duration (Seconds) Avg Duration (Seconds)
Tool Calls Summary:
Total Calls Total Duration (Seconds) Avg Duration (Seconds)