[PATCH v3 0/3] net: atlantic: AQC113: Fix regression on Apple silicon systems
From: Janne Grunau
Date: Fri Nov 27 2026 - 09:54:50 EST
Hej,
commit 6c1ca112a6e4 ("net: atlantic: fix AQC113 HW init: ART, L2 filter
slot, MAC address") broke data transmission on Apple silicon systems
with integrated AQC113. The commit uses the queried filter caps from the
firmware which may result in using L2 filter slots starting from
`l2_filters_base_index`.
hw_atl_b0_hw_packet_filter_set() is not aware of this change and enables
/disables L2 filter slots starting from index 0. When the firmware
reported `l2_filters_base_index` is high enough (9 on Apple systems) it
will likely disable the L2 filter for the NIC's own MAC address
resulting in a complete loss of data transmission.
Another issue is that the number of available L2 filter slots might
smaller than AQ_HW_MULTICAST_ADDRESS_MAX (32). This is the case on Apple
systems with `l2_filter_count` == 29. To avoid -EBADRQC when L2 filters
run out query the number of filter slots from the hardware.
The fixes in this series restores Ethernet data transmission on an Apple
M1 Max Mac Studio and supersedes my previous "fix" in [1].
Link: https://lore.kernel.org/r/20261024-net-atlantic-aq113-apple-regression-v1-1-b8305415a8b1@xxxxxxxxxx [1]
Signed-off-by: Janne Grunau <j@xxxxxxxxxx>
---
Changes in v3:
- fix off-by-one error in hw_atl2_hw_packet_filter_set()
- ensure hw_atl2_hw_packet_filter_set programs only valid L2 filter slots
- validate firmware provided l2_filter_count
- swap order of changes to avoid introducing temporary issues with the
main fix
- rename added hw ops function and switched return value to unsigned int
- fix typos and rewrite commit messages
- Link to v2: https://lore.kernel.org/r/20261108-net-atlantic-aq113-apple-l2-filter-slots-v2-0-0b988d031c78@xxxxxxxxxx
Changes in v2:
- Leave atl_b0 as is and copy hw_atl_b0_hw_packet_filter_set to hw_atl2
to adapt it
- Enable L2 filters for multicast addresses correctly
- Query the number of available L2 filter slots from HW to avoid
-EBADRQC if it exceeds `l2_filter_count - 1` and use promiscuous mode
instead in aq_nic_set_multicast_list()
- Link to v1: https://lore.kernel.org/r/20261026-net-atlantic-aq113-apple-l2-filter-slots-v1-0-d72e99b69583@xxxxxxxxxx
---
Janne Grunau (3):
net: atlantic: AQC113: Ensure L2 filter count is valid
net: atlantic: AQC113: Limit multicast filters to available slots
net: atlantic: AQC113: Fix hw_atl2_hw_packet_filter_set for L2 filter base index > 0
drivers/net/ethernet/aquantia/atlantic/aq_hw.h | 2 +
drivers/net/ethernet/aquantia/atlantic/aq_nic.c | 9 ++--
.../ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c | 7 ++++
.../ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c | 11 ++++-
.../ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.h | 3 --
.../ethernet/aquantia/atlantic/hw_atl2/hw_atl2.c | 48 +++++++++++++++++++++-
.../aquantia/atlantic/hw_atl2/hw_atl2_utils_fw.c | 2 +
7 files changed, 72 insertions(+), 10 deletions(-)
---
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
change-id: 20261026-net-atlantic-aq113-apple-l2-filter-slots-6342515c5318
Best regards,
--
Janne Grunau <j@xxxxxxxxxx>