Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1564507pxy; Fri, 23 Apr 2021 11:03:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydjUurrKLfXQTieqVMtW1O/r34aFHWYj6ToJJbbYuCvyVFpzHs93pmzFvDZo2DpBicVenr X-Received: by 2002:a05:6402:2691:: with SMTP id w17mr5811473edd.81.1619200992247; Fri, 23 Apr 2021 11:03:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619200992; cv=none; d=google.com; s=arc-20160816; b=BRvX48QxuM9GEJOrP939dUJUXMXtIJ0AJ4Cgfhe9R8kfDVTTDU0GwPiAPMgWNFcj8W K0LrDyN2ocvOsNWyaeBXJgPeai03l2TXbVyB10Zas1j6oN4wpQGnRcJnqX/URQMMs0LO 8JnCxjtYQhW7LttnUMm425jaJW/aU1cTrTcTQPee7VBgNjxQNRHnz4NPBB2SgH73/C6O itpdPYj0Hv6dacvDkCr7gfsRdpWYxWxPTgwdaG8qkFoehLbFfS9Ei0DX7kzJzUTOxmxc TWHCh0NRjxYkCc9/TAOIWp9h9VjSiVNvfoeqaNmgAaDsJ/HGpK9D5mdJHXDlUjv6/ScD JO+g== 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; bh=s/aM1zy+q0Mcoo9DlAXavFf5rbhtPBy36mKfDmGuvUw=; b=Vbe/wXbilGPbyA5lYjlONXE8xWgHL9V1Lm07Z+fq68J1a663fuA4qDJI1XL70BiM0S qVag4xdBOjufl+fTTJryPWs2eQlmPN9zS5xpDiYU0YihZCvT7fnhl5jdh1lONEaKwzIb PnzXcATkJn9LsgXkKwcDb4uhJaAZXTn60rsb6weRAjQpuOklvr4cV5doW8UbCj2flM6V KShrM+fgWVAoRmr2pcH9BiY/FX/uYKy4QNcbN0DSFR9aL4C9EMmyJIz8aWsMkZJ+ZztC 1wBw4Yv9FfdnRXXVlLh0YwVyDWuUR1M/UkkMKKGMsEqCegG2QdQRruwImPJwUxcvtWBl A8CA== ARC-Authentication-Results: i=1; mx.google.com; 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 b13si7101516ede.162.2021.04.23.11.02.47; Fri, 23 Apr 2021 11:03:12 -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; 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 S243123AbhDWSCH (ORCPT + 99 others); Fri, 23 Apr 2021 14:02:07 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:38492 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231400AbhDWSCG (ORCPT ); Fri, 23 Apr 2021 14:02:06 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1la07G-000hrM-F4; Fri, 23 Apr 2021 20:01:22 +0200 Date: Fri, 23 Apr 2021 20:01:22 +0200 From: Andrew Lunn To: Vadym Kochan Cc: "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, Taras Chornyi , linux-kernel@vger.kernel.org, Mickey Rachamim , Vadym Kochan Subject: Re: [PATCH net-next 1/3] net: marvell: prestera: bump supported firmware version to 3.0 Message-ID: References: <20210423155933.29787-1-vadym.kochan@plvision.eu> <20210423155933.29787-2-vadym.kochan@plvision.eu> <20210423170437.GC17656@plvision.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210423170437.GC17656@plvision.eu> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 23, 2021 at 08:04:37PM +0300, Vadym Kochan wrote: > Hi Andrew, > > On Fri, Apr 23, 2021 at 06:49:01PM +0200, Andrew Lunn wrote: > > On Fri, Apr 23, 2021 at 06:59:31PM +0300, Vadym Kochan wrote: > > > From: Vadym Kochan > > > > > > New firmware version has some ABI and feature changes like: > > > > > > - LAG support > > > - initial L3 support > > > - changed events handling logic > > > > > > Signed-off-by: Vadym Kochan > > > --- > > > drivers/net/ethernet/marvell/prestera/prestera_pci.c | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > diff --git a/drivers/net/ethernet/marvell/prestera/prestera_pci.c b/drivers/net/ethernet/marvell/prestera/prestera_pci.c > > > index 298110119272..80fb5daf1da8 100644 > > > --- a/drivers/net/ethernet/marvell/prestera/prestera_pci.c > > > +++ b/drivers/net/ethernet/marvell/prestera/prestera_pci.c > > > @@ -13,7 +13,7 @@ > > > > > > #define PRESTERA_MSG_MAX_SIZE 1500 > > > > > > -#define PRESTERA_SUPP_FW_MAJ_VER 2 > > > +#define PRESTERA_SUPP_FW_MAJ_VER 3 > > > #define PRESTERA_SUPP_FW_MIN_VER 0 > > > > I could be reading the code wrong, but it looks like anybody with > > firmware version 2 on their machine and this new driver version > > results in the switch not probing? And if the switch does not probe, > > do they have any networking to go get the new firmware version? > > > > Existing boards have management port which is separated from the PP. I don't think that is enough. You have strongly tied the kernel version to the firmware version. Upgrade the kernel without first upgrading linux-firmware, and things break. In Linux distributions these are separate packages, each with their own life cycle. There is no guarantee they will be upgraded together. > > I think you need to provide some degree of backwards compatibly to > > older firmware. Support version 2 and 3. When version 4 comes out, > > drop support for version 2 in the driver etc. The wifi driver i have for my laptop does something like this. It first tries to load the latest version of the firmware the driver supports, and if that fails, it goes back to older versions until it finds a version it can load, or gives up, saying they are all too old. Andrew