Netdev List
 help / color / mirror / Atom feed
From: Ian Rogers <irogers@google.com>
To: netdev-bot+sashiko@kernel.org
Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org,
	 kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org,
	 linux-kernel@vger.kernel.org, llvm@lists.linux.dev,
	elkin@google.com,  Ian Rogers <irogers@google.com>
Subject: Re: [PATCH net] niu: write back TXC_INT_MASK in niu_txc_set_imask()
Date: Tue, 24 Nov 2026 16:40:27 -0800	[thread overview]
Message-ID: <20261125004027.1004762-1-irogers@google.com> (raw)
In-Reply-To: <179545903032.3135.12672409534586940438@kernel.org>

On Mon, Nov 23, 2026 at 10:37 AM <netdev-bot+sashiko@kernel.org> wrote:
>
> [Severity: Medium]
> With this write in place, niu_init_hw() now unmasks all six TXC sources
> for the port:
>
> niu_init_hw()
>     niu_txc_set_imask(np, 0);
>
> Those sources are SF_CE, SF_UE, RO_CE, RO_UE, REORDER_ERR and PKTASM_DEAD.
> niu.h defines TXC_INT_STAT and its per-port bits, but nothing in niu.c
> reads, decodes or acknowledges that register.

Good catch. Because niu.c has no TXC_INT_STAT handler (unlike ZCP, which
masks all sources via ZCP_INT_MASK_ALL), unmasking TXC_INT_MASK = 0
would route even hardware-corrected ECC events (SF_CE / RO_CE) into
niu_device_error() -> -ENODEV and disable all interrupts on port 0.

Since I don't have Sun Neptune hardware to test TXC interrupt handling,
please drop this patch.

Thanks,
Ian

pw-bot: cr

      reply	other threads:[~2026-11-25  0:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-19 17:06 [PATCH net] niu: write back TXC_INT_MASK in niu_txc_set_imask() Ian Rogers
2026-11-23 18:37 ` netdev-bot+sashiko
2026-11-25  0:40   ` Ian Rogers [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=20261125004027.1004762-1-irogers@google.com \
    --to=irogers@google.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=elkin@google.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=netdev-bot+sashiko@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.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