Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1163968rwe; Thu, 25 Aug 2022 17:18:45 -0700 (PDT) X-Google-Smtp-Source: AA6agR6wwTiXHWuDrchCry6xqrWpV6VlplONM4W4v4eWc2SBf05n9kfc3Ge5k4FMccOnOAtF3XRH X-Received: by 2002:a65:6290:0:b0:422:4a8f:c687 with SMTP id f16-20020a656290000000b004224a8fc687mr1242409pgv.57.1661473125124; Thu, 25 Aug 2022 17:18:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1661473125; cv=pass; d=google.com; s=arc-20160816; b=MmtDOgc7SRsJgFVFGhd6Wbr62iQTTIN5K5z8Eoyzede9UkSWirwpESlVSki/9nSB9K qYs+9qRqBa0TH5EMyzqRjDsEwqqT+J1LNQCiVJ9DeO8dl8ZrNLh1yVUWm8bqPtbhGkAE qXVCuljlVzMDsFcoDwPvenD6FDsUz9wEcInvfENtGzUe+TOCCGOqN0OKqd2zaKglAVpd /mvDj0bU0folreTFk00ndGMWqUuI1IN2ZTJ3/nqr4sGkZnC6KnQ9TwfrvBMuAB79Y68d R2khh8PUix141tXXxzIz/27+Qgxexyww9G109gT11nGFVW1q+AAl3hsILWrlxgX8fJtY 7d/Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:in-reply-to:user-agent:date:message-id:from :references:cc:to:subject:dkim-signature; bh=Cmqfc25JmN2/5RFCB1EzOZtDmsErkU6GoI7j2itHpus=; b=j8a0fIpdZeAWb0yIfyH5so6m88GMb3mHrCcYBtjoisNsqi+CNzjRBSwe+nC0EfKG7C dvrZ35+ytru8ne+j0S0fDoUeM3cgYcAULET3ug5hL/fMjd/2URGv112qiuPRAsYhpmB1 jpWp2H5FpgQJ0ktni5B9zwLPpounZpkpiHnF2pGTmw5PRoRI11J4vfwJ8huYioxAU4Yr mhhshzmsg6dWzcErhkVndqfdlVnEJq7J9+wFYQL32epulqHXS3QZRYfYhK0BMbP96Yv2 0nzteY06CkFETj2MfVTn0x7Ii/E872eIZva20FxiYsWELy4ExkH7tELOJfiZ98rCE5V3 UoRA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@seco.com header.s=selector1 header.b=h9Q2Ywrf; arc=pass (i=1 spf=pass spfdomain=seco.com dkim=pass dkdomain=seco.com dmarc=pass fromdomain=seco.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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=seco.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e4-20020a170902ef4400b0016caa701d5bsi275180plx.487.2022.08.25.17.18.25; Thu, 25 Aug 2022 17:18:45 -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=@seco.com header.s=selector1 header.b=h9Q2Ywrf; arc=pass (i=1 spf=pass spfdomain=seco.com dkim=pass dkdomain=seco.com dmarc=pass fromdomain=seco.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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=seco.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237937AbiHZAIY (ORCPT + 99 others); Thu, 25 Aug 2022 20:08:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244288AbiHZAIT (ORCPT ); Thu, 25 Aug 2022 20:08:19 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2048.outbound.protection.outlook.com [40.107.21.48]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62899C8774; Thu, 25 Aug 2022 17:08:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nBnq1hGrngsqUJdG6Zm05n1Eoxszw6rXJnIgc7m6YMODyUnKuyJKpJXpON6EIzXdbHdvkHE8bIxWXgBegw+vgkYoKoNvmU3mEOAw9o12tTJfyslOx7DJnL8aIvsjAxnlrbsH49jb3cppUSTpXox3XnOGsIjlN+jHFV6cUXvcThjxlqyK+1l4Ei2kt8R39kYtI77JWAMqFiUamniRY8Q9zv9Y70H4FgdRy+RlxhAKf34Vwpyx66Tc9mIMlWzpLblIpu5JvVcPMtXwHdIWTNfMu3H30cLQVNwlCn1AfMm/YzDeAxBGYAdkLXWA8xjSI69dNlUxTEZRbiKiKD+BbX4Tpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Cmqfc25JmN2/5RFCB1EzOZtDmsErkU6GoI7j2itHpus=; b=SaBtMoiTNcaotHSrvSwgYvzpzZ576NBk3oLACe24Zt7DhhbRH1DMZGjhH9gcrJuCuPKa1Bx9NfFzm2zGLIEURtaFobW8jYn5tTyl42CQ4UdfX26pJfvh/D5HsPo6ttr43wXo1woEzBp+JI3I+nNWVZ9mb/ZLoxGDcWXfAENoh6tFrwr46bIE07cZhtDyjWaihGS9SfnTAhAEdfqWbeT1Abmk0gGDUpT1biX2K2BUKei9HWmx5A4UEtR2gEvPjsJh2GaaOhfRI9NPrlwDFePcRtBpOPh+FoTxtVBLMPP0GmIiEVlt6Jkbi+e0KK4/cOmTxcLwzrx4IISFhMa0bmc/hA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=seco.com; dmarc=pass action=none header.from=seco.com; dkim=pass header.d=seco.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seco.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Cmqfc25JmN2/5RFCB1EzOZtDmsErkU6GoI7j2itHpus=; b=h9Q2YwrfD3OFoiKcmjfvRuA44ROdSnAoBe+HcfPOQXaK0lNfKQrEMLV5sfHhFCpv4c69pvMWXlVPxsMCDMjJFXj8RFCLwnbmLPVZejjjm61MbREyINPdYERzy3P6NL+aKsn8oeyqInLCbWgy7t9Q+ouve2ghXFMYJ3BjpuM6bl9r1RSBU36EqYkPX+huWgOZpJipihway3PjnPweb4TjA+BUEfezxJXR4lI/RVFeBpq8OZ5VNBoVADJQTStx3fqvnRlJQSGJ58tdt6jF0248T2by/LnvA8sJOExBpf/8a+JkgR0uTc/rqUVi+VYvGwRbTAdd8tWlKwLshpKl4491Wg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=seco.com; Received: from DB7PR03MB4972.eurprd03.prod.outlook.com (2603:10a6:10:7d::22) by DBBPR03MB7146.eurprd03.prod.outlook.com (2603:10a6:10:209::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5566.16; Fri, 26 Aug 2022 00:08:12 +0000 Received: from DB7PR03MB4972.eurprd03.prod.outlook.com ([fe80::ecaa:a5a9:f0d5:27a2]) by DB7PR03MB4972.eurprd03.prod.outlook.com ([fe80::ecaa:a5a9:f0d5:27a2%4]) with mapi id 15.20.5504.019; Fri, 26 Aug 2022 00:08:12 +0000 Subject: Re: [PATCH v3 02/11] net: phy: Add 1000BASE-KX interface mode To: Vladimir Oltean 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 References: <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> <20220818195151.3aeaib54xjdhk3ch@skbuf> <68b28596-cd16-2485-87df-b659060b0b0b@seco.com> <68b28596-cd16-2485-87df-b659060b0b0b@seco.com> <20220825234526.f6pjq56sab4pm6u4@skbuf> From: Sean Anderson Message-ID: Date: Thu, 25 Aug 2022 20:08:08 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 In-Reply-To: <20220825234526.f6pjq56sab4pm6u4@skbuf> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: BL1PR13CA0170.namprd13.prod.outlook.com (2603:10b6:208:2bd::25) To DB7PR03MB4972.eurprd03.prod.outlook.com (2603:10a6:10:7d::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4fc9790e-786b-4a49-f95c-08da86f71092 X-MS-TrafficTypeDiagnostic: DBBPR03MB7146:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hHLMUvzHYCLav2XBz5Q5II9b5+NjODzCCYMJPOb+kDp0hBPfAKlkdzPs7AB6G5Ut/toc+Iq8nI+gRCM6KhekywQhsAelGWwL1PE56mOCnj7gzDbyClq/v0U3t5fMdLwMIwbcrN93cffzUua74Ml67OmU63HttZEHk1w9fUzoAnbrh/SOg/094zbYmYuFP0DT3nb9XDgHMoTRPRZjbYYU1FCQFOt99D1e1a6GWsm4I42aFnVDsd8/1hHMzIhZ67Y9t0Ipz581t8T/8SXFA1BRoRy8PfK1VUxuzIXglWIXFHaA9ehHwP3vgp7YKtmBy2I/zD2gKJ2DbZ2jRZvxNu/dRJBj/QU2RIxhersKxsS0Iar9Td1XevrKHFDDKRNMEsnGBIno3td0SzUeMV2qSKmEMwuoXlreYzzQmBB6XowljjB/BtS7GcrtC1BH+sD3su6xN1F7zy/g09n5L/Mo/LA1CpMpPSgRoFV1YEsTlzj/3qsY14WCnzmJUATNcDbjs8Dk5VOVa4EcWZDYcXttr6/nmu29SoE+VyvvxDwSQHjPW3RacDizI+v25B9eiKM50lkjjZ1/eHJ+PReojZyrHnxgnnA6KQzskyyk5CFOc9bND3YS+aqousxHub/oNrN0TfQzvJsCQbYo8UEKga9JwWd5+Eer6fjYCZhKY/2DxP9Vr3MHIjtjZ6BQheFsRNKCVhShvJSlqAtPokPfQX3K5v8IiS/UiNXmdoK8Nx+ycP03RgB0ytCHqLogsvSXK+WSIFcYrJUgb+jJLJ5Uz7NBh7b7L9ugxQ+PrT8L7KoAX3HRwQXGRMjzrM5z6rtC7K1uW8Jt6UGD5Rm2FcPJXk8rBDcRP7JnYrd4fn3/YtaaKDqE8Uw= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR03MB4972.eurprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(346002)(39850400004)(136003)(376002)(366004)(396003)(83380400001)(186003)(2616005)(38100700002)(36756003)(38350700002)(6916009)(316002)(31696002)(86362001)(52116002)(53546011)(2906002)(6512007)(26005)(54906003)(6506007)(7416002)(6666004)(8936002)(41300700001)(31686004)(5660300002)(66476007)(66556008)(66946007)(8676002)(6486002)(966005)(4326008)(44832011)(478600001)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?dGpQcHRiS1grakt4YkRpcG9HcS9FeHM2TEo3K20rU2x3UkZoU055eXhMODdU?= =?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FZLaEFBNTZqeUs5WmpraGk0eHlJOWM1?= =?utf-8?B?RG5qditTVnVkeGdYKys4Yjg2VXQxcnpaUXQ2SjZqTEtiWXMzZThpVm9CbHZR?= =?utf-8?B?OEk0d1R1NUFUWWNrTjBNVC8wQkdDTHhWZCtTbHlFM3lUQWZvUUR1M2NXRXBz?= =?utf-8?B?SlBrMEtJNS94MDhPc1FjbCtOT0puZnFPMjE2aVY1ZE5Td3pPMkRNdUZwRHhJ?= =?utf-8?B?dmw0aHpGRjZEc3ZjdTRuTE1jSS9FSkJ3RDZHQzArT1JzTE5XMG5LT1AwVTNF?= =?utf-8?B?c202Q1BxaXFmWnZCY2xheXJNNkZWVW04Yzh4SGI5VTNrWFdSdzdaWjhDWHJE?= =?utf-8?B?SUE9PQ==?= X-OriginatorOrg: seco.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4fc9790e-786b-4a49-f95c-08da86f71092 X-MS-Exchange-CrossTenant-AuthSource: DB7PR03MB4972.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Aug 2022 00:08:12.1489 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: bebe97c3-6438-442e-ade3-ff17aa50e733 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: VoBh8fpI4gApd4AnMYeCFvmisCIoDYWD5cUCvxSNkI16lyykwRYrsXcotqKjyJvkSxj1teCaGJ0vOkGsNitvUw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR03MB7146 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,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 8/25/22 7:45 PM, Vladimir Oltean wrote: > On Thu, Aug 25, 2022 at 06:50:23PM -0400, Sean Anderson wrote: >> > The problem is that our current model looks something like >> > >> > 1. MAC <-- A --> phy (ethernet) --> B <-- far end >> > 2. MAC <-> "PCS" <-> phy (serdes) --> C <-- phy (ethernet) --> B <-- far end >> > 3. --> C <-- transciever --> B <-- far end >> > 4. --> D <-- far end >> > >> > Where 1 is the traditional MAC+phy architecture, 2 is a MAC connected to >> > a phy over a serial link, 3 is a MAC connected to an optical >> > transcievber, and 4 is a backplane connection. A is the phy interface >> > mode, and B is the ethtool link mode. C is also the "phy interface >> > mode", except that sometimes it is highly-dependent on the link mode >> > (e.g. 1000BASE-X) and sometimes it is not (SGMII). The problem is case >> > 4. Here, there isn't really a phy interface mode; just a link mode. >> > >> > Consider the serdes driver. It has to know how to configure itself. >> > Sometimes this will be the phy mode (cases 2 and 3), and sometimes it >> > will be the link mode (case 4). In particular, for a link mode like >> > 1000BASE-SX, it should be configured for 1000BASE-X. But for >> > 1000BASE-KX, it has to be configured for 1000BASE-KX. I suppose the >> > right thing to do here is rework the phy subsystem to use link modes and >> > not phy modes for phy_mode_ext, since it seems like there is a >> > 1000BASE-X link mode. But what should be passed to mac_prepare and >> > mac_select_pcs? >> > >> > As another example, consider the AQR113C. It supports the following >> > (abbreviated) interfaces on the MAC side: >> > >> > - 10GBASE-KR >> > - 1000BASE-KX >> > - 10GBASE-R >> > - 1000BASE-X >> > - USXGMII >> > - SGMII >> > >> > This example of what phy-mode = "1000base-kx" would imply. I would >> > expect that selecting -KX over -X would change the electrical settings >> > to comply with clause 70 (instead of the SFP spec). >> >> Do you have any comments on the above? > > What comments do you expect? My message was just don't get sidetracked > by trying to tackle problems you don't need to solve, thinking they're > just there, along the way. > > "The problem" of wanting to describe an electrical using phy-mode was > discussed before, with debatable degrees of success and the following > synopsis: > > | phy_interface_t describes the protocol *only*, it doesn't describe > | the electrical characteristics of the interface. So, if we exclude > | the electrical characteristics of SFI, we're back to 10GBASE-R, > | 10GBASE-W, 10GFC or 10GBASE-R with FEC. That's what phy_interface_t > | is, not SFI. > | > | So, I propose that we add 10GBASE-R to the list and *not* SFI. > > https://lore.kernel.org/netdev/20191223105719.GM25745@shell.armlinux.org.uk/ > > I don't have access to 802.3 right now to double check, but I think this > is a similar case here - between 1000Base-SX and 1000Base-KX, only the > PMA/PMD is different, otherwise they are still both 1000Base-X in terms > of protocol/coding. Well, the main thing is that the PCS has to know we are doing c73 AN, as opposed to c37. Maybe we need another MLO_AN_? Or perhaps the PCS should look at the advertisement in order to determine how to advertise? But then who determines whether we do c73? This should really come from the device tree, and not involve userspace manually setting up the advertisement. And of course the serdes has to find out what the link mode is. I suppose we could stick this stuff in the device tree. Maybe using ethtool link modes for phy_set_mode_ext is better, but it's still not ideal since many link modes are electrically identical (we don't want to special-case full/half duplex in every serdes driver). > As for the second "example". I had opened my copy of the AQR113C manual > and IIRC it listed 10GBASE-KR in the system interfaces, but I don't > recall seeing 1000Base-KX. And even for 10GBASE-KR, there weren't a lot > of details, like what is configurable about it, is there C73 available etc. > Not extremely clear what that is about, tbh. Something that has > 10GBase-KR on system side and 10GBase-T on media side sounds like a > media converter to me. Not sure how we model those in phylib (I think > the answer is we don't). I'd agree with your assesment that it's a media converter and that the documentation isn't clear. However, it's fairly trivial to support in the manner I outlined. That's actually the main thing I'm getting at: the rest of the code is structured to treat a PHY_INTERFACE_MODE_1000BASEKX in the right way, even if it's not really a phy interface mode (...just like 1000BASE-X isn't really a phy interface mode). --Sean