From: Simon Horman <horms@kernel.org>
To: Anil Samal <anil.samal@intel.com>
Cc: intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org,
leszek.pepiak@intel.com, przemyslaw.kitszel@intel.com,
lukasz.czapnik@intel.com,
Anthony L Nguyen <anthony.l.nguyen@intel.com>,
Jesse Brandeburg <jesse.brandeburg@intel.com>
Subject: Re: [PATCH iwl-next v2 3/3] ice: Implement driver functionality to dump serdes equalizer values
Date: Sat, 11 May 2024 17:56:16 +0100 [thread overview]
Message-ID: <20240511165616.GO2347895@kernel.org> (raw)
In-Reply-To: <20240510065243.906877-4-anil.samal@intel.com>
[ Fixed CC list by dropping '--cc=' from start of addresses. ]
On Thu, May 09, 2024 at 11:50:42PM -0700, Anil Samal wrote:
> To debug link issues in the field, serdes Tx/Rx equalizer values
> help to determine the health of serdes lane.
>
> Extend 'ethtool -d' option to dump serdes Tx/Rx equalizer.
> The following list of equalizer param is supported
> a. rx_equalization_pre2
> b. rx_equalization_pre1
> c. rx_equalization_post1
> d. rx_equalization_bflf
> e. rx_equalization_bfhf
> f. rx_equalization_drate
> g. tx_equalization_pre1
> h. tx_equalization_pre3
> i. tx_equalization_atten
> j. tx_equalization_post1
> k. tx_equalization_pre2
>
> Reviewed-by: Anthony L Nguyen <anthony.l.nguyen@intel.com>
> Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
> Signed-off-by: Anil Samal <anil.samal@intel.com>
The nit below notwithstanding, this looks good to me.
Reviewed-by: Simon Horman <horms@kernel.org>
> diff --git a/drivers/net/ethernet/intel/ice/ice_ethtool.c b/drivers/net/ethernet/intel/ice/ice_ethtool.c
...
> +/**
> + * ice_get_extended_regs - returns FEC correctable, uncorrectable stats per
> + * pcsquad, pcsport
> + * @netdev: pointer to net device structure
> + * @p: output buffer to fill requested register dump
> + *
> + * Return: 0 on success, negative on failure.
> + */
> +static int ice_get_extended_regs(struct net_device *netdev, void *p)
> +{
> + struct ice_regdump_to_ethtool *ice_prv_regs_buf;
> + struct ice_netdev_priv *np = netdev_priv(netdev);
nit: Please arrange local variables in reverse xmas tree order -
longest line to shortest.
It's probably not necessary to repost just because of this.
This tool can be of use here: https://github.com/ecree-solarflare/xmastree
> + struct ice_port_topology port_topology = {};
> + struct ice_port_info *pi;
> + struct ice_pf *pf;
> + struct ice_hw *hw;
> + unsigned int i;
> + int err;
...
prev parent reply other threads:[~2024-05-11 16:56 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-10 6:50 [PATCH iwl-next v2 0/3] ice:Support to dump PHY config, FEC Anil Samal
2024-05-10 6:50 ` [PATCH iwl-next v2 1/3] ice: Extend Sideband Queue command to support dynamic flag Anil Samal
2024-05-11 16:57 ` Simon Horman
2024-05-24 0:43 ` Jacob Keller
2024-05-10 6:50 ` [PATCH iwl-next v2 2/3] ice: Implement driver functionality to dump fec statistics Anil Samal
2024-05-11 16:57 ` Simon Horman
2024-05-10 6:50 ` [PATCH iwl-next v2 3/3] ice: Implement driver functionality to dump serdes equalizer values Anil Samal
2024-05-11 16:56 ` Simon Horman [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=20240511165616.GO2347895@kernel.org \
--to=horms@kernel.org \
--cc=anil.samal@intel.com \
--cc=anthony.l.nguyen@intel.com \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=jesse.brandeburg@intel.com \
--cc=leszek.pepiak@intel.com \
--cc=lukasz.czapnik@intel.com \
--cc=netdev@vger.kernel.org \
--cc=przemyslaw.kitszel@intel.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;
as well as URLs for NNTP newsgroup(s).