Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1272354iog; Thu, 16 Jun 2022 02:51:26 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tRxubq+XuWmCnxdVCTMEljWbOTBe+O2DiUo6BuRkaT9rKRs9EI6LxAFvjFIi/0b1TNO+Zq X-Received: by 2002:a65:5c05:0:b0:3db:7729:88e1 with SMTP id u5-20020a655c05000000b003db772988e1mr3679668pgr.577.1655373085922; Thu, 16 Jun 2022 02:51:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655373085; cv=none; d=google.com; s=arc-20160816; b=lP7Xpz+qi2C539OJVZX5k77uLj3PqaYsMMGzFJ/OTNxUdtPOP+WkIaadtg8mvDuheR +HzT5t0eF0oy9KDKAzk7UeY4U7UBsDVfDKqK+KKByXiFUFc3DSbFt8u9xMcJBQ/rh3f0 PhagCcWmiPRr8aTaPrNoUwMoHpXIfNGZ5LS9OHyACpiv/rVIGdXI01dhD4/7Dji+asFw 9QBftJbhB84BJjTj5/SHHgx4Vh7xRClALaC5gKQLHakUnsBMWfnTqjKhQWOFOUrYOBZk brIgwNTGD11bOfwDGpxLASQpwieop54jwlY6C7qs8tj5SVhBD+Nkrlhojx9P60gxSlSA QGJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=mL2V0FzY79XoC3MxhAXYiDpa4UMwyvy+3FECnL5Is7o=; b=b3VZgSJkF5sCHdrsfU9rNtG1k3jmD/ZEo9QAZWiR03zP7k+mFh38bNuP0LuHRizQY2 5B8u9mzmoDkIFFlwa6PiFFOUUoGD12Y6xtagO8D6MaICKA09EjsFNBXtJrZJWVVLimoJ rj2eFexyrid2nDXbUT9ZA7mRTmKL7pFZcpVabzla3NVp8pfXuCCrUIrIv3bD2Fntcxdq 2MPnFNUdWS1+mW+EW3Uqwjm4ODzGPsn5hougORdPnfW0m4h+yYoJQrlXgg1GQkoIeOVq Ll560owX2as7MuzGX6YnG8Aqp5X4tYK+h24OBo7497SMNsuyI3dGND21xliok9mCm+OR d/sg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u9-20020a634549000000b0040a88edd7c5si1912108pgk.819.2022.06.16.02.51.13; Thu, 16 Jun 2022 02:51:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359726AbiFPJfB (ORCPT + 99 others); Thu, 16 Jun 2022 05:35:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359483AbiFPJfA (ORCPT ); Thu, 16 Jun 2022 05:35:00 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB15B35867 for ; Thu, 16 Jun 2022 02:34:59 -0700 (PDT) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o1ltt-00071U-Dp; Thu, 16 Jun 2022 11:34:53 +0200 Received: from ore by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1o1lts-00035k-0K; Thu, 16 Jun 2022 11:34:52 +0200 Date: Thu, 16 Jun 2022 11:34:51 +0200 From: Oleksij Rempel To: Andrew Lunn Cc: Jakub Kicinski , Michal Kubecek , Jonathan Corbet , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Eric Dumazet , kernel@pengutronix.de, Paolo Abeni , "David S. Miller" , Heiner Kallweit Subject: Re: [PATCH net-next v1 1/1] net: phy: add remote fault support Message-ID: <20220616093451.GA28995@pengutronix.de> References: <20220608093403.3999446-1-o.rempel@pengutronix.de> <20220613125552.GA4536@pengutronix.de> <20220614185221.79983e9b@kernel.org> <20220614220948.5f0b4827@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 15, 2022 at 10:07:34PM +0200, Andrew Lunn wrote: > On Tue, Jun 14, 2022 at 10:09:48PM -0700, Jakub Kicinski wrote: > > On Wed, 15 Jun 2022 05:37:46 +0200 Andrew Lunn wrote: > > > > Does this dovetail well with ETHTOOL_A_LINKSTATE_EXT_STATE / > > > > ETHTOOL_A_LINKSTATE_EXT_SUBSTATE ? > > > > > > > > That's where people who read extended link state out of FW put it > > > > (and therefore it's read only now). > > > > > > I did wonder about that. But this is to do with autoneg which is part > > > of ksetting. Firmware hindered MAC drivers also support ksetting > > > set/get. This patchset is also opening the door to more information > > > which is passed via autoneg. It can also contain the ID the link peer > > > PHY, etc. This is all part of 802.3, where as > > > ETHTOOL_A_LINKSTATE_EXT_STATE tends to be whatever the firmware > > > offers, not something covered by a standard. > > > > I see, yeah, I think you're right. > > > > But I'm missing the bigger picture. I'm unclear on who is supposed > > to be setting the fault user space or kernel / device? > > It is also a bit unclear, but at the moment, i think user > space. However, i can see the kernel making use of maybe RF TEST to > ask the link peer to go quiet in order to perform a cable test. > > Oleksij, what are your use cases? Currently I was thinking only about diagnostic: - request transmit pause for cable testing - request remote loopback for selftest. In this case I will need to use vendor specific NextPage to request something like this. > Maybe add something to patch 0/X indicating how you plan to make use of this? I can move it from first patch if needed. -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |