Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp838339rwb; Thu, 18 Aug 2022 13:13:27 -0700 (PDT) X-Google-Smtp-Source: AA6agR5ac8uaM+28/SnGiI4EOF29Jh4+P+daC9N/7ngmg/QQbuTa4W0U9RaSalV3/TIi9i5iWIB7 X-Received: by 2002:a17:907:288a:b0:730:996d:c605 with SMTP id em10-20020a170907288a00b00730996dc605mr2717899ejc.682.1660853607593; Thu, 18 Aug 2022 13:13:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660853607; cv=none; d=google.com; s=arc-20160816; b=PvMMnaBk3uvpVF2TaAE5iwIK8DpfLfr4gqnP+k368F2YwLCbgzFbm7GR8fkeUNH+xM u0U1uGYV55jbeFmwd9piF+mtvDZsLQYNqinhB4gJEzOr5YTeX8R47sNnm6l6Q7PRWtXo jYbIUjdDYvjUQD6ehgp9OipCzUqXlJWya10nWko/1hZ8Mqetmd6MR3O9RRhhaZ2fJQQn RqwVEwMRoRnzf9Pt3nnqZWSeQ9RX2kLg40kh2gM0hUpHoVgIGfbZMQRaHz/bAZbplVC7 f+IO2EK+LJqnQhjSFFlRXOjJ4daBvk4LCRzQgty65KLjTItDUw4diysraHlG1/ecGI6p 562w== 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=hJQEc74fhcb/IA4FjfVIxRsmkNGKKuU8/s6b05HKDVw=; b=RlTChoTlY3siVww1KFt2LWc296LIWA4H2QCPE9HqSiF4F/1FkdxbRwlI8Rps4t9+xR tiChEDADJrzcrV5ZG9bBLrKRIw4CaWYlPPd4XH4XRet56m9OcRDIlx3egkCJcKVNXjr4 MOS29bHIMH9tQBHaLsb5Cqz5YlBHLJgaDAJipeACO/0S+HjU+w8dt/bFpNzpFNd3f/3B UkMb5FYDT5UcUfWe9f1Gh5LMivr8NphI8m6sn7w1QLSFl2cyDsz963vdKUvDTNjIgrhn /hpYKXDoQBDYMVfyijP2RcfKwmydTnNe9cZzKzaLB4MIuXOEv6XNVMZNQowWItZbFxfb X9Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=H3XqHBnT; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y8-20020a056402358800b00446156b5445si1711998edc.412.2022.08.18.13.13.01; Thu, 18 Aug 2022 13:13:27 -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=@gmail.com header.s=20210112 header.b=H3XqHBnT; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245712AbiHRTv6 (ORCPT + 99 others); Thu, 18 Aug 2022 15:51:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234438AbiHRTv5 (ORCPT ); Thu, 18 Aug 2022 15:51:57 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24DC5AB183; Thu, 18 Aug 2022 12:51:56 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id kb8so5158327ejc.4; Thu, 18 Aug 2022 12:51:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc; bh=hJQEc74fhcb/IA4FjfVIxRsmkNGKKuU8/s6b05HKDVw=; b=H3XqHBnTsowEj35kTeZMzczYvTj/qwZKg02AuUot3sIpeFGcR9rytnrUuM8Q4tEO1t moQh+s6MpBEYbcErUYZEgIJwtKwax1HsBVI7dNdaeny2Vzv76NvMjgu0gQRSBGU/DCUo QMfJqxJz+SQmLPQX3VQMRXWY1KHt0tFiC4D9b2hk2/yvuo0xvXo/WyapelfmX2c2AsEf Yn6qZBMtxAqgzBcX00Rq4OGLC+CkXYbD0jS6Efw6FymdFD/NNGUURAPzId0MmD/zX5pI Xp1gxWPGdCnsFHo0/TKkN1oH3ndxIlF9EE18uFpPtyCKD4n0AGM4DK263dsrB6gKvuyb MyvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=hJQEc74fhcb/IA4FjfVIxRsmkNGKKuU8/s6b05HKDVw=; b=UE4WwTfN78HqHqG9c0NINw23+gn5D8vu64gDD9z9PC1QM5L5GhEu2k3HhQba0ahggQ EAvKEotzK46JruIp1/p8TBOnolNCXlXXxe0XFiesaFRH7xUQafqgb3CXohSkJESyP21L Y7ko22X9ElmUuYFU7axuhqKQE/jIN6kEDHAS0ceHjLFZBjp+IskIHa+DQ3bLujj8p/VH VNrzUPHiukfvyEP0HYYcuDadQjo029pF0FjGzXHUItCuExwz0IjKSIt8dsrUoDWa2wCy g1ljBAXxA9aFLGd4ND/gr8aRQWLZ2DwcMepxt+3qX6Afl6gJ5tmd+PIbzrh3wrJeUEcs +vEQ== X-Gm-Message-State: ACgBeo2onzAnOvYAh0ttHSR2xNtghjidF+oH2fWKam49sARWQ2OQ4j83 Zw/DlVtvo2GcijP1Vm3/drvPLjk9q14= X-Received: by 2002:a17:907:6d12:b0:731:8595:9784 with SMTP id sa18-20020a1709076d1200b0073185959784mr2736646ejc.323.1660852314497; Thu, 18 Aug 2022 12:51:54 -0700 (PDT) Received: from skbuf ([188.25.231.137]) by smtp.gmail.com with ESMTPSA id jw12-20020a17090776ac00b00730fd9ccf84sm1244751ejc.90.2022.08.18.12.51.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Aug 2022 12:51:53 -0700 (PDT) Date: Thu, 18 Aug 2022 22:51:51 +0300 From: Vladimir Oltean To: Sean Anderson Cc: netdev@vger.kernel.org, Andrew Lunn , Heiner Kallweit , Russell King , Paolo Abeni , Eric Dumazet , Alexandru Marginean , "David S . Miller" , Jakub Kicinski , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 02/11] net: phy: Add 1000BASE-KX interface mode Message-ID: <20220818195151.3aeaib54xjdhk3ch@skbuf> References: <20220725153730.2604096-1-sean.anderson@seco.com> <20220725153730.2604096-3-sean.anderson@seco.com> <20220818165303.zzp57kd7wfjyytza@skbuf> <8a7ee3c9-3bf9-cfd1-67ab-bb11c1a0c82a@seco.com> <35779736-8787-f4cb-4160-4ff35946666d@seco.com> <20220818171255.ntfdxasulitkzinx@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 Thu, Aug 18, 2022 at 01:28:19PM -0400, Sean Anderson wrote: > That's not what's documented: > > > ``PHY_INTERFACE_MODE_10GBASER`` > > This is the IEEE 802.3 Clause 49 defined 10GBASE-R protocol used with > > various different mediums. Please refer to the IEEE standard for a > > definition of this. > > > > Note: 10GBASE-R is just one protocol that can be used with XFI and SFI. > > XFI and SFI permit multiple protocols over a single SERDES lane, and > > also defines the electrical characteristics of the signals with a host > > compliance board plugged into the host XFP/SFP connector. Therefore, > > XFI and SFI are not PHY interface types in their own right. > > > > ``PHY_INTERFACE_MODE_10GKR`` > > This is the IEEE 802.3 Clause 49 defined 10GBASE-R with Clause 73 > > autonegotiation. Please refer to the IEEE standard for further > > information. > > > > Note: due to legacy usage, some 10GBASE-R usage incorrectly makes > > use of this definition. > > so indeed you get a new phy interface mode when you add c73 AN. The > clarification only applies to *incorrect* usage. I challenge you to the following thought experiment. Open clause 73 from IEEE 802.3, and see what is actually exchanged through auto-negotiation. You'll discover that the *use* of the 10GBase-KR operating mode is *established* through clause 73 AN (the Technology Ability field). So what sense does it make to define 10GBase-KR as "10Base-R with clause 73 AN" as the document you've quoted does? None whatsoever. The K in KR stands for bacKplane, and typical of this type of PMD are the signaling and link training procedures described in the previous clause, 72. Clause 73 AN is not something that is a property of 10GBase-KR, but something that exists outside of it. So if clause 73 *establishes* the use of 10GBase-KR (or 1000Base-KX or others) through autonegotiation, then what sense does it have to put phy-mode = "1000base-kx" in the device tree? Does it mean "use C73 AN", or "don't use it, I already know what operating mode I want to use"? If it means "use C73 AN", then what advertisement do you use for the Technology Ability field? There's a priority resolution function for C73, just like there is one for C28/C40 for the twisted pair medium (aka that thing that allows you to fall back to the highest supported common link speed). So why would you populate just one bit in Technology Ability based on DT, if you can potentially support multiple operating modes? And why would you even create your advertisement based on the device tree, for that matter? Twisted pair PHYs don't do this.