Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp128637imu; Thu, 3 Jan 2019 15:39:35 -0800 (PST) X-Google-Smtp-Source: ALg8bN6mClWgdR819ZV4/6ER8L5h0RzOABV3G2CJBpU67FTyy5iulZP1RYg9Nd1TycIlJ+VJrBBJ X-Received: by 2002:a65:50c1:: with SMTP id s1mr18327352pgp.350.1546558775124; Thu, 03 Jan 2019 15:39:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546558775; cv=none; d=google.com; s=arc-20160816; b=QJM8x1H1GtdorvObQC0wjzvbq7h0UMmGXXkkNlfafm74F3UtrFU25a/MMs3eJrD1ak B3/kTJrL8ll6XfOcjLg5vF3G3SzXoCrtf0ywoHLHsTrpO4fn+Ad0lSJhghnS26Caml1u k/xlGsDp24eMtpCeGjciItTke4+m9r/tZsfaqkFr6uUThZtoPGCyZ8PEa9tzPd+P2rFX u5EZ8hegx2IdOn4F0TgGTr38AbdBg3+upCM6rLCytASMU75xnvFXV2bsNS8X9wypokvN Pl2OLPxNz9fVWQhHcskZHk0ABvlQ+vH4pxsTXYy47bnajuqR4pBbMbsIIba4XVbU/Akb nxzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=sGb4XEzPZIAF9ImqYSs/+Ejn6NkMQw4KrWZyezAgmes=; b=Ycze7fBzj1lc5uPn0rgwodLR6x65NORhuwYX5NjOem10s9cgkdaazBhUiAvuBDFbXZ irAeezG4Bf4vX5ZB7KfUiglq1m1UYQJkTPqGWzrLWDxb4pqm+geB3B9SnSd8g3WxkSdB j6w9RYicLKWlf+ogzCqopBjVCnvpWBh0WgCKBOAb81u7/oMuMpuYfIaG2+Z2dECidyxG KvxJa72Al8HbZQKb9YAFwxq94A3apjxq9Ao5uY/+lETbDDyWXt6L+EBje7dvkOoDQ6Gu dEqX7rbHyub5nhodK7Itdp5nbCtagpsiAUXvQw3wxj63w4k+tFBGvjEXx0s9wQe8QIJn rdsQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w5si53606614pfl.279.2019.01.03.15.39.20; Thu, 03 Jan 2019 15:39:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732624AbfACRlk (ORCPT + 99 others); Thu, 3 Jan 2019 12:41:40 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:59225 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731873AbfACRli (ORCPT ); Thu, 3 Jan 2019 12:41:38 -0500 Received: from mail-oi1-f198.google.com ([209.85.167.198]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1gf6zv-0006Kw-Mv for linux-kernel@vger.kernel.org; Thu, 03 Jan 2019 17:41:35 +0000 Received: by mail-oi1-f198.google.com with SMTP id b18so24340106oii.1 for ; Thu, 03 Jan 2019 09:41:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=sGb4XEzPZIAF9ImqYSs/+Ejn6NkMQw4KrWZyezAgmes=; b=fbCOiC1mFpG33Rt4reUB3nCyfZ7KEiJ0LX4V7I5v63DZPFmvRr9dQsezM24WgvoSwd CeN4EIwDlithL6zM6g0vnGUENt5hRT0iAdi7LQnETpKqeLCRjTkRNriL3wtPqW39YsNp kLtPEfpA7tJKdaQvQNlHsXpoVtZnlPGMzrSsLA0rtzW/cUOL7FRxWq7EfKq7O2XRj5KY oh7LwY46Xf6uxqFCoQ7TIRNFzOxpejZGlKHtHMPrykmVAuuIhT3k3FQNzIVWKk9MOFUc IKPrl9yo4phV3YpKTOABjtljQ3e/nmUDBiQwfxizcHv0HbEs4q30x9D1YkNogkWRMOgF WpzQ== X-Gm-Message-State: AJcUukcwEeWXJhseoxx2Ft6/10IGhugw0bvpr/Kh/WCaOx+TgxK8lVbn mQvksF6L9Ypsl8F5Uh91DxxH+m66gwcZC77cRTBhpudG1eruRxfTc4rVr3rAhsIfVfzjkLZzwbQ fbZsLprAN4/iUgWO9gJKySpDIBsqdwwsoHTl25HMbNQ== X-Received: by 2002:a05:6830:114a:: with SMTP id x10mr10337843otq.89.1546537294466; Thu, 03 Jan 2019 09:41:34 -0800 (PST) X-Received: by 2002:a05:6830:114a:: with SMTP id x10mr10337823otq.89.1546537294131; Thu, 03 Jan 2019 09:41:34 -0800 (PST) Received: from xps13.canonical.com (c-107-2-141-103.hsd1.co.comcast.net. [107.2.141.103]) by smtp.gmail.com with ESMTPSA id d66sm27518730oia.29.2019.01.03.09.41.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 03 Jan 2019 09:41:33 -0800 (PST) Date: Thu, 3 Jan 2019 10:41:32 -0700 From: dann frazier To: "lipeng (Y)" 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 Subject: Re: [PATCH net-next] net: hns3: Config NIC port speed same as that of optical module 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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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