net: thunderx: Fix OOPs with ethtool --register-dump
Subsystems (3)
A message that is not in the archive (sent off-list or not yet received): [email protected]
From: David Daney <[email protected]>
Date: Tue, 16 Aug 2016 12:28:17 -0700
Quoted 11 lines
From: David Daney <[email protected]>
The
ethtool_ops.get_regs function attempts to read the nonexistent registerNIC_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 <[email protected]>
Applied.