From mboxrd@z Thu Jan 1 00:00:00 1970 From: dann frazier Subject: Re: [PATCH net-next] net: hns3: Config NIC port speed same as that of optical module Date: Thu, 3 Jan 2019 10:41:32 -0700 Message-ID: <20190103174132.GA19859@xps13.dannf> References: <20181126184300.24964-1-salil.mehta@huawei.com> <20190101012205.GA22494@xps13.dannf> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: Salil Mehta , davem@davemloft.net, yisen.zhuang@huawei.com, mehta.salil@opnsrc.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linuxarm@huawei.com To: "lipeng (Y)" Return-path: Received: from youngberry.canonical.com ([91.189.89.112]:59224 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731865AbfACRlh (ORCPT ); Thu, 3 Jan 2019 12:41:37 -0500 Received: from mail-ot1-f71.google.com ([209.85.210.71]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1gf6zv-0006Kt-LB for netdev@vger.kernel.org; Thu, 03 Jan 2019 17:41:35 +0000 Received: by mail-ot1-f71.google.com with SMTP id h4so15770668otg.17 for ; Thu, 03 Jan 2019 09:41:35 -0800 (PST) Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Wed, Jan 02, 2019 at 08:45:36PM +0800, lipeng (Y) wrote: > > > On 2019/1/1 9:22, dann frazier wrote: > > On Mon, Nov 26, 2018 at 06:43:00PM +0000, Salil Mehta wrote: > > > From: Peng Li > > > > > > Port 0/1 of HiP08 supports 10G and 25G. This patch adds a > > > change to configure NIC port speed same as that of optical > > > module(SFP/QFSP). Driver gets the optical module speed and > > > sets NIC port speed accordingly. > > Hi, > > > > I'm getting the following errors in dmesg about every 1s on a D06: > > > > [ 766.761823] hns3 0000:bd:00.0: get sfp speed failed -5 > > [ 767.785823] hns3 0000:bd:00.0: get sfp speed failed -5 > > [ 768.809820] hns3 0000:bd:00.0: get sfp speed failed -5 > > [ 769.833818] hns3 0000:bd:00.0: get sfp speed failed -5 > > > > Reverting this patch fixes the issue. > > > > -dann > Hi,dann, > > Thanks for your test and report. > > This patch needs to match new fireware verison , > And  it  does some work to  be Compatible with older versions. I did upgrade to the latest available firmware (20181213-b20), but the problem persisted. Maybe the necessary firmware is not yet released? > Can you show me more information? > can you  use "ethtool -i ethx" to get the fireware version , > and shows me  some other message about hns3? Sure: $ sudo ethtool -i enp125s0f2 driver: hns3 version: 4.20.0+ SMP mod_unload aarch64 firmware-version: 0xb0311019 expansion-rom-version: bus-info: 0000:7d:00.2 supports-statistics: yes supports-test: yes supports-eeprom-access: no supports-register-dump: yes supports-priv-flags: no -dann