Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp685340pxb; Tue, 19 Oct 2021 10:47:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5g2DV2fYKiDUvVvgeU5N5rVXjnB6PnMh/OVjGZPQ58j/8VyK5Mc5lW3n8KpG9celxAp6Q X-Received: by 2002:a17:906:a4e:: with SMTP id x14mr37016476ejf.1.1634665646585; Tue, 19 Oct 2021 10:47:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634665646; cv=none; d=google.com; s=arc-20160816; b=KIjNdC9lWJvHeuwbk3MYmxfZZ1Ytyb7nYTBT88lkI19mgkmLAoUlswbCCky2EkTVC6 kQpg5cRhYntSo1OJFCc2O7NQxgPhqH0vR/43og577hvcHgINheW7CyzyhwyT1Vt6Wlm2 Jt6u5OhhvX1vE/VrCaE+9+n4amDYq19xl34cXf+bm5brtomh6z7VJX2DihphK9jOYsXQ J+jMk43e7orEaLmGKbl6X86OtGP5sNW5r59oLl5ibigBtAfZXfRjfKj0CKKMiptIoM6r W+Vx20uCUL+Mvx+k/4wqlySvn9eVjO+lhP5OGXhJC7EeloYUITD/dXtA90iCIOr2LgAf xpMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=FBFB5TpvCM2ffvAvKnFSlCgvqyq0TJ9lHk49iX31/z4=; b=oPI+s7sbIx6OMu+eYAJ9L64CP0Lllx/WAquMg33qW2+eOfA0PSm9yBUKIlq7Y6pDsT wNAOhUQSzdWKPOaUolCKbYc/1deVpfLezcvr/0SFC4ZdFgGtBIci0g5mKT5uMFtNC5JC efZS4yX4aVQ2GB2T9kBXED3MG9JUY/Sbk+1aW3Va60OK0GkELse1xpo0LvXfLuvhe8mV DBsMOhON4GHiLjd1FBD2qmXr8CyGXLhav4kXF/m5lFmTRZQYp6hv0B1pfb8O5hOv0bpT F+97Devxx+CY3eUtZYkKEsDfI85TB+5OErsaNTJrwbGmfccDJLwF/ofSIzVz0Y+1Q/6H d58w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kryo-se.20210112.gappssmtp.com header.s=20210112 header.b=wtDfIxAo; 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 c25si24952289edn.606.2021.10.19.10.47.02; Tue, 19 Oct 2021 10:47:26 -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=@kryo-se.20210112.gappssmtp.com header.s=20210112 header.b=wtDfIxAo; 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 S234687AbhJSRol (ORCPT + 99 others); Tue, 19 Oct 2021 13:44:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231586AbhJSRol (ORCPT ); Tue, 19 Oct 2021 13:44:41 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDE0EC06161C for ; Tue, 19 Oct 2021 10:42:27 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id r18so16090442edv.12 for ; Tue, 19 Oct 2021 10:42:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kryo-se.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FBFB5TpvCM2ffvAvKnFSlCgvqyq0TJ9lHk49iX31/z4=; b=wtDfIxAopPK3YdfWAUQxFYYuLqtBo5X09KwU4oRyNkF7nQ3w6UHKKBOR4Ss+YMbbz/ qxnISxkdk+5MlWe6Rqx/CLRN0StexKNEXbC8OfMGlA0jR7j6DjgVhoXuhav1jGTXfxiH +9q1oyxgkI7HrI9WHfI54im6ovTg4kQWkndQvLF7xRz7MVe8YvInZsoKCU9wj88F8kDC IWJ2Xp9sBk0dnKfPDznxlhHvOnpGEkiMEmuJEOS+DMBRlz7cGc45QJmay+soj5eah+sj XHz3RJP7CvHhTDm8/kgY7a+KZVTbN1nNhYT+9s2XgnNk+3Mz2Yz7Qt7XzcahkKBdUznm kE+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FBFB5TpvCM2ffvAvKnFSlCgvqyq0TJ9lHk49iX31/z4=; b=ZOAiSKQpBONt4f9rO7Qdoe2CzUI8k6CCfDYhfnSxvtnUreVI674O0lzQofE170cACK i5Q0sq1HMi9wQtX41qkK6uo/xfRvhDRFWzIjpfRP0udFlCCFGwiIQWnA1CK+XAZ/L0ap B8IOcNDyDIQFMSuqjlFvoIVQT9tG5dbciqpEuNgDfvTGvst0B90V1EQFTy8+FfvkJeot IM7DFsOkRMg3F7y+btszLPSDH+FwZ8OyVbvRuv316Qpa17l9Y6zssSIjySMXi6/Y5Gr1 /r3WlIfsHRqxegGgDCFMrnOM5a5TP7PiGSypD39EY5VS9wf3UEQRI2xoR6d2ZqOy+dQe NsGg== X-Gm-Message-State: AOAM530kAr7b30RaryFwJfKxBU3kw9t6pbbiHMlctQ7OsqFs21wA2HIq ZF49fvmPBO0hLHmhlUy5IXM6Vm7Ts0cLYAzkp0cuUw== X-Received: by 2002:a17:907:168c:: with SMTP id hc12mr39661473ejc.570.1634665317380; Tue, 19 Oct 2021 10:41:57 -0700 (PDT) MIME-Version: 1.0 References: <20211017171657.85724-1-erik@kryo.se> In-Reply-To: From: Erik Ekman Date: Tue, 19 Oct 2021 19:41:46 +0200 Message-ID: Subject: Re: [PATCH] sfc: Fix reading non-legacy supported link modes To: Andrew Lunn Cc: Edward Cree , Martin Habets , "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 only noticed this because I was using newer flags for signaling 1G/10G fibre support in my other patch. Thanks /Erik