Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp822294iog; Wed, 15 Jun 2022 13:10:18 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uSqac8Btkj82WVuAVszIa3MwZJs+xPJpJm/ahkJl9NpwoIQCVQDWgD67QUTDAFyQBmoFJA X-Received: by 2002:aa7:db8d:0:b0:42e:1cbc:5e28 with SMTP id u13-20020aa7db8d000000b0042e1cbc5e28mr1870993edt.366.1655323818283; Wed, 15 Jun 2022 13:10:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655323818; cv=none; d=google.com; s=arc-20160816; b=ymifHYB4g9eLEe7dAns7zJ7cR/mJ1v3HvtVa3E/fbpDlaphGVeIIxD3NEbysX8UfRK VtbKi7jZc7KDIETZajwqFdXJl3gBZyoNiWa3KqYtkmgqS+ngeKeLDNCPrxEs3T4JL0bl SRM4++mKdnNFoc9e55dz/lFajPV3K1uVBQySIM7qqqwun6EpuB3KSfO+YZxLS5MW2gJm vlYTua296g5UV9r4iOcF1+fp0Wepj35bb1NpmwYmoXZK2ZKX99ftCIYMQGrSRxubk+jK 73CaxHZuqUChe8K2UNY+mCERoRN89G/j3zbLTUWpmYLckWgBFdsm6pDpOyG9Rl2Qc9W2 XVeQ== 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=BBcKY2EoP2XAVkQOai1YZk1rJli37iClEl0y13zev2I=; b=zKSDr8ghEdDM37GpBzOgydZqoRd7odPKSKQ9xOMz47Ep/0N48e2AVfo/+i8qVZi4x8 wXT6Oxb+14YyoFAyZmn1UxBd6mnzXCQOOPCeP8vx6pZJiD/ndvfVaBPyHX1GoM/Hiqpj icpHobWPLRm4rdsT+v238apHtQ4+7buYJBH4biIdXabWTGB15idzBiCVZFuhop5OJlRn cgm8uvnsklDFqIzejb1clBp1PhBPVCaiZePTRbbRet1/uXSo3DcT/xxZx1H7FevtnAfU vTslG9wmdcaZxv+0nWOPfJMVej5OurewoTuB+kY07DuDDnS6K+WyUaTWLCW2H1gRo195 TcwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="vM/EiOeN"; 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 e11-20020a170906648b00b00711d61d0e1csi15199419ejm.109.2022.06.15.13.09.52; Wed, 15 Jun 2022 13:10:18 -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; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="vM/EiOeN"; 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 S241916AbiFOUIC (ORCPT + 99 others); Wed, 15 Jun 2022 16:08:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233059AbiFOUIB (ORCPT ); Wed, 15 Jun 2022 16:08:01 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B40D40E4C; Wed, 15 Jun 2022 13:07:59 -0700 (PDT) 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=BBcKY2EoP2XAVkQOai1YZk1rJli37iClEl0y13zev2I=; b=vM/EiOeN0aRI7dKUjK6oA1UQxm lHMtho/S4DJQ27LEmGYgKnCQ8gnBBmwHyMaKsF0aTqypej1hhG5Y05u183Np8fewsqc+ZeYRqsri4 XtnE5WuFEHGP3rbIL+pvPKWDitQxifCUXjmcGCzJe1u3VQrgUz97HsyELz7CzxBdYwlc=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1o1ZIc-0073FI-5V; Wed, 15 Jun 2022 22:07:34 +0200 Date: Wed, 15 Jun 2022 22:07:34 +0200 From: Andrew Lunn To: Jakub Kicinski Cc: Oleksij Rempel , Heiner Kallweit , "David S. Miller" , Eric Dumazet , Paolo Abeni , Jonathan Corbet , Michal Kubecek , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH net-next v1 1/1] net: phy: add remote fault support Message-ID: 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=us-ascii Content-Disposition: inline In-Reply-To: <20220614220948.5f0b4827@kernel.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 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? Maybe add something to patch 0/X indicating how you plan to make use of this? Andrew