Re: [PATCH] net: thunderx: Fix OOPs with ethtool --register-dump

From: David Miller
Date: Fri Aug 19 2016 - 00:17:20 EST


From: David Daney <ddaney.cavm@xxxxxxxxx>
Date: Tue, 16 Aug 2016 12:28:17 -0700

> From: David Daney <david.daney@xxxxxxxxxx>
>
> The ethtool_ops .get_regs function attempts to read the nonexistent
> register NIC_QSET_SQ_0_7_CNM_CHG, which produces a "bus error" type
> OOPs.
>
> Fix by not attempting to read, and removing the definition of,
> NIC_QSET_SQ_0_7_CNM_CHG. A zero is written into the register dump to
> keep the layout unchanged.
>
> Signed-off-by: David Daney <david.daney@xxxxxxxxxx>

Applied.