Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp720298pxb; Tue, 19 Oct 2021 11:31:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTbIZu4HNdrR6MaG0vO+2FIBLmQH78q1P4JDNETFTnjCyTQeKRiqAjG276SHjcBVivJt5P X-Received: by 2002:a65:664f:: with SMTP id z15mr30032818pgv.252.1634668288636; Tue, 19 Oct 2021 11:31:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634668288; cv=none; d=google.com; s=arc-20160816; b=Tf81+URTF4n8H/0DDG/oiyFiQkAzHmREpJ2OXkU+ySNrfe2PJr5jDC0k8W7RYvApG9 ZvJboiO1dbUC/WbtPPJtomWIsPlsZZ/AIDY89j/kH1qvqJzS7LTzLdhcPGnCmJjcSuzq VHCG/gz9EMpSH8lxfWIdkmN7Fw9EtidCru9H4zXuFQDaUfXUuj8NvlrIXSsiE8c9okfH JG64wvfMJHEiBPv5jpN2RwqHfvJJ32OM3paq345qJlkInS82XEWjE336UN+8ah8y6iJo zliu3x8WTRevHo4sC449mmSW7iGdg6s0iKOCN0EvS+KFsWzKfytBJ1wi5vOm5zLi086Y EfHQ== 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=K4bmpxjUABK2VjQu377WvFa/RSa+W3Zp84SaOUJXuSk=; b=Q/C5xBs9dzLEkZqN9x7Xbb4C8wcc8Muc/7zvWXGNYsCab+drzipbZjdH4E7oMuif4r 2+8lxMrYMerAlT7+b3/XLbosL04l+XcmTgf5kN3bcGg2d7jSHCS7Tg1wAO33YwKRjqT6 74VS5/G3jf42dQ4gfC2tfcwC8R0bnwoz2B45CwvFRMS4vzg1V7YJE6hVE8rizdiQjesD w0NR4JOoV5HNaI73PxXkyzuth/Bol815euxIKyuwC4J9cSfuFHUros8ev+alQKqbBmPg as3pSD1lyCohtzRethFQRISY+lNbJ5Cte47suihUrZZWx76ByXatN+RH67d0rZ+7IWlf 3idA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=R+Gf+Ofn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lw6si2556449pjb.95.2021.10.19.11.31.13; Tue, 19 Oct 2021 11:31:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=R+Gf+Ofn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234846AbhJSSbp (ORCPT + 99 others); Tue, 19 Oct 2021 14:31:45 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:47348 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234738AbhJSSbo (ORCPT ); Tue, 19 Oct 2021 14:31:44 -0400 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=K4bmpxjUABK2VjQu377WvFa/RSa+W3Zp84SaOUJXuSk=; b=R+Gf+Ofnbuja4TXNg0EcZhF4sH b65vWitDJDTM4WliSU0kUbJoItMn9vxcem1ewn3OIVgPLRfEHbbrJdfeMLZCkuB5MoZQszSh84oBt iyWL2FH5QDOuCjK1cX/Plya6EdwWAT/usfyfZvUErmiAyP/vwwZpoCdLwW/nG6v7+ado=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1mctrc-00B75E-Ax; Tue, 19 Oct 2021 20:29:28 +0200 Date: Tue, 19 Oct 2021 20:29:28 +0200 From: Andrew Lunn To: Erik Ekman Cc: Edward Cree , Martin Habets , "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] sfc: Fix reading non-legacy supported link modes Message-ID: References: <20211017171657.85724-1-erik@kryo.se> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 19, 2021 at 07:41:46PM +0200, Erik Ekman wrote: > On Tue, 19 Oct 2021 at 17:21, Andrew Lunn wrote: > > > > On Sun, Oct 17, 2021 at 07:16:57PM +0200, Erik Ekman wrote: > > > Everything except the first 32 bits was lost when the pause flags were > > > added. This makes the 50000baseCR2 mode flag (bit 34) not appear. > > > > > > I have tested this with a 10G card (SFN5122F-R7) by modifying it to > > > return a non-legacy link mode (10000baseCR). > > > > Does this need a Fixes: tag? Should it be added to stable? > > > > The speed flags in use that can be lost are for 50G and 100G. > The affected devices are ones based on the Solarflare EF100 networking > IP in Xilinx FPGAs supporting 10/25/40/100-gigabit. > I don't know how widespread these are, and if there might be enough > users for adding this to stable. > > The gsettings api code for sfc was added in 7cafe8f82438ced6d ("net: > sfc: use new api ethtool_{get|set}_link_ksettings") > and the bug was introduced then, but bits would only be lost after > support for 25/50/100G was added in > 5abb5e7f916ee8d2d ("sfc: add bits for 25/50/100G supported/advertised speeds"). > Not sure which of these should be used for a Fixes tag. I would you this second one, since that is when it becomes visible to users. Andrew