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/2026…@jannau.net [1] Signed-off-by: Janne Grunau <…@jannau.net> --- Changes in v4: - clamp fw supplied l2_filter_count to 1 - HW_ATL2_MAC_MAX - l2_filters_base_index - simplified min_t to plain min() - fix 0 vs. 1 based indexing error in hw_atl2_hw_packet_filter_set() - rewritten commit messages - Link to v3: https://lore.kernel.org/r/2026112…@jannau.net 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/2026110…@jannau.net 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/2026102…@jannau.net --- Janne Grunau (3): net: atlantic: AQC113: Clamp L2 filter count to [1, 38] 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 | 47 +++++++++++++++++++++- .../aquantia/atlantic/hw_atl2/hw_atl2_utils_fw.c | 4 +- 7 files changed, 72 insertions(+), 11 deletions(-) --- base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4 change-id: 20261026-net-atlantic-aq113-apple-l2-filter-slots-6342515c5318 Best regards,
-- Janne Grunau <…@jannau.net>