Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3268494pxv; Sun, 4 Jul 2021 13:08:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQ3ZYyt/FhTw/rGazBXHhfx/hK5Qhk1ElZ8jNT0faSgORPMS8I3A0MbJh54PhJ4Nj1KUXl X-Received: by 2002:a17:907:3e97:: with SMTP id hs23mr993059ejc.96.1625429306036; Sun, 04 Jul 2021 13:08:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625429306; cv=none; d=google.com; s=arc-20160816; b=c4/xC7B1HcuaejIKRlZR2vfNopj9wFx/+o8xlyU1ymioXEnFqQJNb/Vs52tYh2cQBU LdHcjJ4rELtbZOcsT6GijjBlTsehxOwnsJ4fjcVXMKbYhGydLOLR0pMTOaDtFk7nAaA2 nLWxV0pYqmut1v42++WGWFkT5FWZ6VYXwu5IZx3/dJOPcQgDGpsG+St7IKiLW/OjGWth cK5HNUmOP14qFTrawRyf8dv0xpbq4/RPYYClaU6Xb/vwdG/qiFqUh4RDDV2FlLjPvUmH kmFyE5NQDU7k1GCTB3QmAx0VYSRVQ5kcYYZwj6uNTmfN6/JvHm430q/4xbmb6aRpBB1L pHcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=kkGwSeTdihBY36VFXp/FW0w8u9NpfYN2EtWNHDIxCb4=; b=gJH9nebU8SnU3Sh8rnpLHe6gLGlpfqtymx7hbOHap4JRoeoiaAKGcuCzsUZWsZf3SU EMWF+YErrsm/FIp9vCfUR41F3pULMrjdb/gtcO08+coiGbnMWMui+7Gst0y52+G5vaML BSnKtgIMkG4tYAYAklQwv92MFToJmIBs2J8fcjDrZBulxgpBoH4T3jngbLSdo7NhahSx 9qFxjOUXqoNp4ZYvnYsr6MVHV7SURSzxE3EzLetSQvEPQi/6Rn798quL7DveL7PzE8Cp 1p/G0aWpToMzjMmYpzLVvgtc0slpXlifT95hP219QtfYTdptipTU/LPouqP7idSw2tAY ging== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=hj9idZMG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hu7si9327158ejc.142.2021.07.04.13.07.43; Sun, 04 Jul 2021 13:08:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=hj9idZMG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229740AbhGDUAg (ORCPT + 99 others); Sun, 4 Jul 2021 16:00:36 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:39568 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229614AbhGDUAg (ORCPT ); Sun, 4 Jul 2021 16:00:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=kkGwSeTdihBY36VFXp/FW0w8u9NpfYN2EtWNHDIxCb4=; b=hj9idZMGWGuJ3OuEEx3R84ooYL ZNgwUH5aH6cg/IZPHrfGZ84NRfkBRkqjskcuyHD7W9Ks9Ey/xMXLo9bVDP0YrbI/1+yhxbYgv5jjC kstaa/KJ5OWOr3D5fCElI2wl0vBhrVMHP7A0gBI0Isafnc3PMqBnRJpVn3xURURd0SdI=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1m08FU-00C9ez-Qc; Sun, 04 Jul 2021 21:57:52 +0200 Date: Sun, 4 Jul 2021 21:57:52 +0200 From: Andrew Lunn To: "huangguangbin (A)" Cc: Jakub Kicinski , davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, salil.mehta@huawei.com, lipeng321@huawei.com Subject: Re: [PATCH net-next 3/3] net: hns3: add support for link diagnosis info in debugfs Message-ID: References: <1624545405-37050-1-git-send-email-huangguangbin2@huawei.com> <1624545405-37050-4-git-send-email-huangguangbin2@huawei.com> <20210624122517.7c8cb329@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <08395721-4ca1-9913-19fd-4d8ec7e41e4b@huawei.com> <20210701085447.2270b1df@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > > Hi Jakub, I have a question to consult you. > > > Some fault information in our patch are not existed in current ethtool extended > > > link states, for examples: > > > "Serdes reference clock lost" > > > "Serdes analog loss of signal" > > > "SFP tx is disabled" > > > "PHY power down" > > > > Why would the PHY be powered down if user requested port to be up? > > > In the case of other user may use MDIO tool to write PHY register directly to make > PHY power down, if link state can display this information, I think it is helpful. If the user directly writes to PHY registers, they should expect bad things to happen. They can do a lot more than power the PHY down. They could configure it into loopback mode, turn off autoneg and force a mode which is compatible with the peer, etc. I don't think you need to tell the user they have pointed a foot gun at their feet and pulled the trigger. Andrew