Netdev List
 help / color / mirror / Atom feed
From: Janne Grunau <j@jannau.net>
To: Sukhdeep Singh <sukhdeeps@marvell.com>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	stable@vger.kernel.org
Subject: Re: [PATCH] net: atlantic: AQC113: Initialize struct hw_atl2_priv fully
Date: Mon, 26 Oct 2026 15:54:34 +0100	[thread overview]
Message-ID: <20261026145434.GA707866@robin.jannau.net> (raw)
In-Reply-To: <20261024-net-atlantic-aq113-apple-regression-v1-1-b8305415a8b1@jannau.net>

On Sat, Oct 24, 2026 at 07:19:59PM +0200, Janne Grunau wrote:
> Leaving parts of struct hw_atl2_priv uninitialized breaks data
> transmission on AQC113 NICs integrated in Apple silicon desktop Macs.
> Commit 6c1ca112a6e4 ("net: atlantic: fix AQC113 HW init: ART, L2 filter
> slot, MAC address") replaced a memset of the whole struct with memsets
> of a few fields and initialisation of l3l4_filters[].l[34]_index to -1.
> This leaves other fields uninitialized.

As sashiko pointed out this is false. The intention of the change was to
use fields previously initialized in hw_atl2_utils_get_filter_caps().
This wasn't obvious to from the commit message.

The issue I'm seeing is that hw_atl2_priv::l2_filters_base_index is 9 on
the affected system. This is mostly handled correctly in hw_atl2.c
itself but w_atl2_hw_packet_filter_set() wraps
hw_atl_b0_hw_packet_filter_set(). The latter doesn't know
l2_filters_base_index and enables/disables all filters from
HW_ATL_B0_MAC_MIN to HW_ATL_B0_MAC_MAX.
If l2_filters_base_index is larger than aq_nic_cfg_s.mc_list_count it
will disable the filters set in hw_atl2.c including the one for the MAC
address which breaks data transmission.

Disregard this patch I'll send a new series fixing the root cause.

Janne

      parent reply	other threads:[~2026-10-26 14:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-24 17:19 [PATCH] net: atlantic: AQC113: Initialize struct hw_atl2_priv fully Janne Grunau
2026-10-25 18:02 ` netdev-bot+sashiko
2026-10-26 14:54 ` Janne Grunau [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261026145434.GA707866@robin.jannau.net \
    --to=j@jannau.net \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=stable@vger.kernel.org \
    --cc=sukhdeeps@marvell.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox