Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ABEC7C433DB for ; Thu, 25 Mar 2021 23:42:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 680C461A1D for ; Thu, 25 Mar 2021 23:42:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231322AbhCYXlb (ORCPT ); Thu, 25 Mar 2021 19:41:31 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:48078 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231272AbhCYXlZ (ORCPT ); Thu, 25 Mar 2021 19:41:25 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1lPZbH-00D2xe-Ok; Fri, 26 Mar 2021 00:41:15 +0100 Date: Fri, 26 Mar 2021 00:41:15 +0100 From: Andrew Lunn To: Moshe Shemesh Cc: "David S. Miller" , Jakub Kicinski , Adrian Pop , Michal Kubecek , Don Bollinger , netdev@vger.kernel.org, Vladyslav Tarasiuk Subject: Re: [RFC PATCH V5 net-next 0/5] ethtool: Extend module EEPROM dump API Message-ID: References: <1616684215-4701-1-git-send-email-moshe@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1616684215-4701-1-git-send-email-moshe@nvidia.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Thu, Mar 25, 2021 at 04:56:50PM +0200, Moshe Shemesh wrote: > Ethtool supports module EEPROM dumps via the `ethtool -m ` command. > But in current state its functionality is limited - offset and length > parameters, which are used to specify a linear desired region of EEPROM > data to dump, is not enough, considering emergence of complex module > EEPROM layouts such as CMIS 4.0. > Moreover, CMIS 4.0 extends the amount of pages that may be accessible by > introducing another parameter for page addressing - banks. This is looking much better. Do you have a version of ethtool using this new API? WIP code is O.K. I will add basic support to sfp.c and test it out on the devices i have. Andrew