Skip to contentSkip to conversation

net: thunderx: Fix OOPs with ethtool --register-dump

PATCH David Miller 1 participant 1 message Aug 19, 2016 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

David Miller

author maintainer Applied
#1 lore raw
In reply to a message not in the archive

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 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.

Applied.