Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp534552pxb; Mon, 25 Oct 2021 13:13:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7iDNVf5+To23UMq+lOB6FPucIlP/DFCQlCnGMrSSGxkl1IJIg8qf8O6YTvpxkyha145WV X-Received: by 2002:aa7:d788:: with SMTP id s8mr27015067edq.175.1635192802063; Mon, 25 Oct 2021 13:13:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635192802; cv=none; d=google.com; s=arc-20160816; b=lem0izJgfeyjotXFulZ3dIF0KKIMZujHgMTsspkdvGt13XaV03B//gKFkGZy6ZnptO Aamm+sAyr/yV8X9s/0FJC3F6ZRgRUmrHHZKxAs1PzuO082qdt3u71ZTFXB4KvOHa1C2a 9nSWJgBWRTq5H421r/r3taQgPSvzA6O6VhLQtsDOHymjGqNetyt1sNQwxEiNg1uvtkF/ 7wQjleA0Uk+msr9V285D+0kCBY0h3TkBNjiGceoCqu71UhOFN0c/3Hl3Hj5yrCEW9mW5 P5ZBibk6CWxCzk58pMhff0IpsfHXf8jhO9IAgIJn1Gosq0acG44zPg92X3u6dUSFlhHW 5Skg== 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=WpgMH3xxaoecpeOJaRPaLgLJl4EJJvdRqRH9yCLdUuA=; b=hxtPng9+kYtfN9DhNypoyn8sqD2EQNQ3Z0bFGjbSYV0LxhATR+fuIDLOyDUcMRxiBZ 3tVzJVsxYXnEMlOtUH5lo25Df8P9DXmqfxMgD3P1lKRh1Rts904Fb/o3bUXJLqRkrI69 RUDBapOzSafk9+b5wAWnFVr9mam202z+S8agLbplx/IvYyG3pc9QH5GnLLy9RgxyuqJH Dvl7+CmEcEAipRCkvXu2Iudcm8GgBo07SWnGGIq//sgUqENf3yjtSEYlgjR+hwLqaMTx fU+MpNsHX+v/W4o2or0wkggPymDcU2iCGPbJdKFZESo+xFNWvH5TN+zHRuqikED/Juzb AVag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kryo-se.20210112.gappssmtp.com header.s=20210112 header.b=lSY+KrUe; 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 o22si34528497edc.7.2021.10.25.13.12.56; Mon, 25 Oct 2021 13:13:22 -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=lSY+KrUe; 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 S236792AbhJYUMJ (ORCPT + 99 others); Mon, 25 Oct 2021 16:12:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233389AbhJYULq (ORCPT ); Mon, 25 Oct 2021 16:11:46 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 335F6C04A40F for ; Mon, 25 Oct 2021 12:30:11 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id y12so4228222eda.4 for ; Mon, 25 Oct 2021 12:30:11 -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=WpgMH3xxaoecpeOJaRPaLgLJl4EJJvdRqRH9yCLdUuA=; b=lSY+KrUe51PreKwfNsCUG5hB6Fg/pLD9K5auf3Y5p4qrG3/aeUyP004kV4dC+qzqtm dH+Ns/Il1Z/qL/N8b8kSHqRhkcsQRWKGQkJYKTLtxdL0uksoUjif1JfXxv9XVUnJ1kBe 9lnzmHg71fmYpm9iH6vqXCZOvVZ9qRFKLM/h9MecRaA4tvLV0wFp18RY4Y3bj5jUDnDe apOD7afUEGD9QRUPMrVXN0Wj7Vr7GPZ6ROeeREJAmiyWryzv8Ye5fPGlCGgsmAnuS0F0 Q2MTTzbAImBCY4fmCwR6m5BinlQSkKIyNZxE53+yddRiZcEoCKn3/srxf5MVp4zWaKwx Gifg== 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=WpgMH3xxaoecpeOJaRPaLgLJl4EJJvdRqRH9yCLdUuA=; b=vj0pE94NbmcwWTU9IIYnGgMeeosj/fCv8KQOrnmkzPsLqAVsxbQQTAFLqayctKAp2K NP7pKHzQmJaSXnkleVoiKQB8z88lrIRb6qN+mRZeYYb2jekILVo02jNym7tJYV7AXP5g gteb0RLUmoTesdDFfell0sYCKXxJgu2UoEoPWZL58Fq91eoZ3nN5XlPYkCk6Fs7VfBvR nFlBLSFhG+kM9Sz8lwyFpLioYuUs6QiCKhIwslixDQK6yDp3jaqEEimmMg3kOe57Ynyx Wj/HdOFKpus6ctyWerN5zN484ARyqfPUQX1mGeWZuIVPjz349Ygu+TmcpTLGjdzEOtLz J9RA== X-Gm-Message-State: AOAM531bC4OTwy98f1/vD1NCfF45lwl2+EKyxvryeI02PnxWTVNMy0UY suMbjKH8qZVUIr2OtvEf075Ja6kQEtTeICJ78APciQ== X-Received: by 2002:aa7:de12:: with SMTP id h18mr17165835edv.109.1635190209558; Mon, 25 Oct 2021 12:30:09 -0700 (PDT) MIME-Version: 1.0 References: <20211017171657.85724-1-erik@kryo.se> In-Reply-To: From: Erik Ekman Date: Mon, 25 Oct 2021 21:29:58 +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 Mon, 25 Oct 2021 at 20:58, Erik Ekman wrote: > > On Tue, 19 Oct 2021 at 20:29, Andrew Lunn wrote: > > > > 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. > > > Thanks > > I found that the SFC9250 is also affected (it supports 10/25/40/50/100G) > > Fixes: 5abb5e7f916ee8 ("sfc: add bits for 25/50/100G > supported/advertised speeds") > > /Erik I see that the other patch adding new modes (c62041c5baa9d, "sfc: Export fibre-specific supported link mode") has been merged to net (and upstream), so this is needed there as well. /Erik