Re: [PATCH net] niu: write back TXC_INT_MASK in niu_txc_set_imask()
From: Ian Rogers
Date: Tue Nov 24 2026 - 19:40:34 EST
On Mon, Nov 23, 2026 at 10:37 AM <netdev-bot+sashiko@xxxxxxxxxx> 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