Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7613089rwb; Tue, 15 Nov 2022 15:12:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf5XQXgWZoEbW5CBoAq0QjArNCeOukvTGUd1bBxmyPrjxTQRKynovsOcjpkCrGN6uXwFZrP+ X-Received: by 2002:a17:906:58d6:b0:7ae:e67c:6c4c with SMTP id e22-20020a17090658d600b007aee67c6c4cmr11367950ejs.375.1668553976274; Tue, 15 Nov 2022 15:12:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668553976; cv=none; d=google.com; s=arc-20160816; b=pGXKtOC54n6hP0PzyQ5AeCQSmyNAoSMpUoHR59GrCg5Rt0GyJheCWMiVguuJzeCSJV 001MB6kxDenZf+A8QJ2YbaoZKRgiR55y450nAhfx396zA+3ZqeyMfPqm/XUSKv0e1aFq myq+8oB9s1xda5VetNJgWRui4ZQSv4bDWxs+Kl2gNWa1WbBu5ha71dDpfwJdT5vYoVe5 psafkyaUupRIuwlm9An2i9MZ5KnvLt2TbnmyJb8neAwY8nmSVUuFYdZOaTIKHE36xyVg gZWzJHhKSOSc8njHlsYjBvOLnmV1PdrqHCZRh1ZPAudhB/Hh7ErGzz1p+cBKPyXS8sBq QZpg== 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=UlKLpXR//UcwE/ngqXPZB9w8rILjc8ig1dwjMbGlblE=; b=jhUdeHotSb7b/1eppjwX6gE0WVuA/Khwhg4qFa5SuPFHWQ7cQIyywq64y+fTzRublc kOVuH4zaaSsA0P3kDD6bMJ98PmeMOPmzUFG/21yabcTypkxYsH7FEiBenxHFukPUBXbh nGgozanKgHVRlnZwhfI8CAosAxqqI7NZ0QuVIkWTZquRxt3nL1ax/ryZ5MgpnqVIG/xW KQX/lfWz8Y1unIn5hPOkc2ixmxHEDBj0f+lEdtiknCaZqhZqo/82vOoJ7OKySsQlyzQQ 1171sBZvmwWgPL+GGb0nWb12mReX9icqkxFe+/hIfuwo1ulsgSiOg6HtSmXTI7lFOLKf Djyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=kMTa+MZe; 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 eb6-20020a0564020d0600b0045d0660a039si14909490edb.316.2022.11.15.15.12.34; Tue, 15 Nov 2022 15:12:56 -0800 (PST) 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=kMTa+MZe; 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 S230315AbiKOWhj (ORCPT + 91 others); Tue, 15 Nov 2022 17:37:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229710AbiKOWhh (ORCPT ); Tue, 15 Nov 2022 17:37:37 -0500 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66D76EC; Tue, 15 Nov 2022 14:37:36 -0800 (PST) Received: by mail-ej1-x62b.google.com with SMTP id kt23so39832142ejc.7; Tue, 15 Nov 2022 14:37:36 -0800 (PST) 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:subject:date:message-id:reply-to; bh=UlKLpXR//UcwE/ngqXPZB9w8rILjc8ig1dwjMbGlblE=; b=kMTa+MZeE17QrUZWi6K9AcXDCmBcjcW50Yfy9xSM0YbLL9HanFo/1PlGq2PbXg6szW 0Dqd9+8P4Vws5MExIT0uxrAMzWPHbrELHlTRhHBcPoBgclgNdCS38hZxluHaycmjyIXN MU8/+GOF5R2mWSvHY1r8ulLQalestU/jlYDECScaWPv9xS5UgPv0ejFdUEy08xG9wAN+ LOxsIpRxJYzNiKOnMm5twcM8G1bBVEp5ckQRv4Ceon73B9/zAC8NncRy8NRtWC6kklCg 4hHOERbtWdccJ+Wn/ts1QhTGSFuE2Rvrfg0EH8x8LNbO3YzfWYtwkNVVWkmhoApcogdE pRTQ== 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:subject:date :message-id:reply-to; bh=UlKLpXR//UcwE/ngqXPZB9w8rILjc8ig1dwjMbGlblE=; b=jSqbnhkAcEjxPREHNEDlrBVnbKKQMrYl+yMZGhZJ44twNVkZSdCNIG85TyWfkv61Ip nLaruQ0FxZHtrczL8LR8lb6YVEBni1frTeEpbAydgNHbdZ4NDPBibrsVbHCZZBBmjUTa XjwbS9vnN0LTlHxOfaMIxh/CSeSWj/53hbm/orsqb7XcyBazNHE/9s5JwV0dDs8bVwU1 QUVQ5X9ls81qwO4XZH04ygRVx2TqKLFMKBezPwB6ygPOwZHwL//hrovo8l8YYnj4u57I 2b9eWvyphiloEo1ocrKiNXaaLNMe3spclbm6NDipqvO7qiNL3bcDOw86Ue7bpy6VSMQ0 SkQA== X-Gm-Message-State: ANoB5pkVkl4RQuIlP1RHwRqFz93+RYtTMYjCYhJt2OLU53CA5bWwEHDC 94ASCdMPcm1KoHLtoh2IVLU= X-Received: by 2002:a17:906:1583:b0:7ad:923a:b849 with SMTP id k3-20020a170906158300b007ad923ab849mr15735274ejd.677.1668551854810; Tue, 15 Nov 2022 14:37:34 -0800 (PST) Received: from skbuf ([188.26.57.19]) by smtp.gmail.com with ESMTPSA id gv28-20020a1709072bdc00b007af75e6b6fesm1676789ejc.147.2022.11.15.14.37.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Nov 2022 14:37:34 -0800 (PST) Date: Wed, 16 Nov 2022 00:37:32 +0200 From: Vladimir Oltean To: Sean Anderson Cc: Andrew Lunn , Heiner Kallweit , Russell King , netdev@vger.kernel.org, Eric Dumazet , Tim Harvey , "David S . Miller" , linux-kernel@vger.kernel.org, Paolo Abeni , Jakub Kicinski Subject: Re: [PATCH] phy: aquantia: Configure SERDES mode by default Message-ID: <20221115223732.ctvzjbpeaxulnm5l@skbuf> References: <20221114210740.3332937-1-sean.anderson@seco.com> <20221114210740.3332937-1-sean.anderson@seco.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221114210740.3332937-1-sean.anderson@seco.com> <20221114210740.3332937-1-sean.anderson@seco.com> 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 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 Mon, Nov 14, 2022 at 04:07:39PM -0500, Sean Anderson wrote: > When autonegotiation completes, the phy interface will be set based on > the global config register for that speed. If the SERDES mode is set to > something which the MAC does not support, then the link will not come > up. The register reference says that the SERDES mode should default to > XFI, but for some phys lower speeds default to XFI/2 (5G XFI). To ensure > the link comes up correctly, configure the SERDES mode. > > We use the same configuration for all interfaces. We don't advertise > any speeds faster than the interface mode, so they won't be selected. > We default to pause-based rate adaptation, but enable USXGMII rate > adaptation for USXGMII. I'm not sure if this is correct for > SGMII; it might need USXGMII adaptation instead. > > This effectively disables switching interface mode depending on the > speed, in favor of using rate adaptation. If this is not desired, we > would need some kind of API to configure things. > > Signed-off-by: Sean Anderson > --- Was this patch tested and confirmed to do something sane on any platform at all?