Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2091688pxa; Mon, 3 Aug 2020 07:17:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUTVEMqyYWpBqT1Fe0k7zoV3p54Se4sPTw/Wteqqk/EM8gViyrC2Jlm2u0DXPKLNq5Zfwj X-Received: by 2002:aa7:df15:: with SMTP id c21mr9089636edy.334.1596464274595; Mon, 03 Aug 2020 07:17:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596464274; cv=none; d=google.com; s=arc-20160816; b=1BaDtGZ9u07F2RcKxazbTQIWJ8tNP8WCSVlZ634qzt0SX34SuV3fgj3jVaL46519XL keGgLgiBf5zlO0tbvLK3y7rT7RoezwUT41kGLJXWTHQFitcvUXQx9A+fVP0bvVEytzC7 Te2cAMSTT5tzH9BOKihMxpnPx3p+kSKoKnQt+I0442iHeNr/G12xLWaR4o58eKBS6XLk hTgPX2b1XWwUsjmbGJIjjvHKm52yj4aieBpQdV4qw3WNg2IT1asY+oUk9yQmN3pNh+QN WOC7XYDpYhi//Dd6D3gRYcD8oFRlw/tzESOY0/TZU1u3tdRkzI/tfl+8PDbIg/ndbQkO +z9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=FLbHjv6sJwixVTPUkFoWSHRhodSffvVZyVRd7tIiasg=; b=ZhQc75OCI5u1SECgop8/UH/NkPOGVj6gQVBrd3T/dMZyGytzukEfiz/pV3+emxtaA8 1Nd91Pjg1ZUEC93sGSaK+C2OnSyDaMH5TjaghLTFmA6WQ6eOsdWhvZc8xY4yZgcGXFCn dCHLq8VnX8Xg/XCf2NX9KGEASJqvwOEradcCzrlny7kNR2Ufp1RiUQj3jO0ff5+72633 e+MfiSD8QoFQe3ICkUoLzhk5KYza+T8z8ZE6BxY00o3ab6wbg4NFJZbtT4ZmSufZc6Xw u1xW6Y/9fUk3m/HqvnLBKgKQtXb+catOHD4lEAHWDeZd5VHU/ARm/y4mwGphAjLaw3Iz QjmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b="B2zEn/cT"; 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 gr8si10390729ejb.601.2020.08.03.07.17.30; Mon, 03 Aug 2020 07:17:54 -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=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b="B2zEn/cT"; 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 S1727915AbgHCOOp (ORCPT + 99 others); Mon, 3 Aug 2020 10:14:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726796AbgHCOOp (ORCPT ); Mon, 3 Aug 2020 10:14:45 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F77EC06174A for ; Mon, 3 Aug 2020 07:14:45 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id l2so23819288wrc.7 for ; Mon, 03 Aug 2020 07:14:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=FLbHjv6sJwixVTPUkFoWSHRhodSffvVZyVRd7tIiasg=; b=B2zEn/cTAPCSpXohJxxE9xLki5PX7qj9FmnR22H1MmYxjKdSSg9r8fn9D17nOWsVtF fpVS7mehInJffm1ZUCUB5jRQIx1fCpAgsTJyn2PNCjOChfYXSZ1Uox5t9Jt35RUxLJaU +/wMv7/H2JoJ+vt+M0cl367/9AZOYXG6Pk2fjwfbYyh2u3ZBqLWaw6MpROnuZniEy+w2 tzfUUvPNKwKzIeuwp/UoeEj/GZu6ToI2fNUJAzVG3Hr5Hg+JmYyWq0jc1ZSvubOs6x8D T0gEKGEVsM/4QIa6Dxq3d/Pgbq+MtlXF5j2qK1/sHPLpUiEuqHY8YMxRipZRojLA3fXZ mssg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=FLbHjv6sJwixVTPUkFoWSHRhodSffvVZyVRd7tIiasg=; b=KmWqnMN35Uo7HvtS1gCXPCAFXcWM4arZ5dgY7p+Q9ZpAJg3J2c660xIQyL/kJv0q67 apzhcfG5/0v3DcGZyeB+cEvipBDSO52CVvYsNqHadTj51fxUsGcp9jk2KrCi+wxqdTzn cYSl25p0UcPVYG0j3yMwPFaoQG5ehnkctECIKa5oH196WIO5+apl5PU6cns08G/HT8Nh cyeHyAUTfFyObvgnQH6PgGxOB4m8nRMtlJk1ErfcNq0DgXnNs+0GTFlOMJbld1sdQHrd s2e3/Fg2jTpPvwt5iD4IgPMRI4KS8L2zLFQffXdz3r4FzPTMOVX4M2Hht8eMldJkbjmj 309g== X-Gm-Message-State: AOAM5331pTogcrGA6kVM289mXSfnTijWz2JUN74MWycXF9xjMYYM1PuB U8l9m9ipIEF91JRNi+2Nw5gVeg== X-Received: by 2002:adf:a4c8:: with SMTP id h8mr15140393wrb.262.1596464083711; Mon, 03 Aug 2020 07:14:43 -0700 (PDT) Received: from localhost (ip-89-176-225-97.net.upcbroadband.cz. [89.176.225.97]) by smtp.gmail.com with ESMTPSA id i82sm19051192wmi.10.2020.08.03.07.14.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Aug 2020 07:14:43 -0700 (PDT) Date: Mon, 3 Aug 2020 16:14:42 +0200 From: Jiri Pirko To: Moshe Shemesh Cc: Jakub Kicinski , Jacob Keller , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "David S. Miller" , Jiri Pirko , Vasundhara Volam Subject: Re: [PATCH net-next RFC 01/13] devlink: Add reload level option to devlink reload command Message-ID: <20200803141442.GB2290@nanopsycho> References: <20200728135808.GC2207@nanopsycho> <464add44-3ab1-21b8-3dba-a88202350bb9@intel.com> <20200728114458.762b5396@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20200728130653.7ce2f013@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <04f00024-758c-bc19-c187-49847c24a5a4@mellanox.com> <20200729140708.5f914c15@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <3352bd96-d10e-6961-079d-5c913a967513@mellanox.com> <20200730161101.48f42c5b@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <0f2467fd-ee2e-1a51-f9c1-02f8a579d542@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0f2467fd-ee2e-1a51-f9c1-02f8a579d542@mellanox.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sat, Aug 01, 2020 at 11:32:25PM CEST, moshe@mellanox.com wrote: > >On 7/31/2020 2:11 AM, Jakub Kicinski wrote: >> On Thu, 30 Jul 2020 15:30:45 +0300 Moshe Shemesh wrote: >> > > > > My expectations would be that the driver must perform the lowest >> > > > > reset level possible that satisfies the requested functional change. >> > > > > IOW driver may do more, in fact it should be acceptable for the >> > > > > driver to always for a full HW reset (unless --live or other >> > > > > constraint is specified). >> > > > OK, but some combinations may still not be valid for specific driver >> > > > even if it tries lowest level possible. >> > > Can you give an example? >> > For example take the combination of fw-live-patch and param-init. >> > >> > The fw-live-patch needs no re-initialization, while the param-init >> > requires driver re-initialization. >> > >> > So the only way to do that is to the one command after the other, not >> > really combining. >> You need to read my responses more carefully. I don't have >> fw-live-patch in my proposal. The operation is fw-activate, >> --live is independent and an constraint, not an operation. > > >OK, I probably didn't get the whole picture right. > >I am not sure I got it yet, please review if that's the uAPI that you mean >to: > >devlink dev reload [ net-ns-respawn { PID | NAME | ID } ] [ driver-param-init >] [ fw-activate [ --live] ] Jakub, why do you prefer to have another extra level-specific option "live"? I think it is clear to have it as a separate level. The behaviour of the operation is quite different. > > >Also, I recall that before devlink param was added the devlink reload was >used for devlink resources. Yes. That was the primary usecase. That is also why mlxsw does fw reset, because the fw reset is needed in order to pass resources configuration. So I don't think that the name should be "driver-param-init" as it is not specific to params. > >I am not sure it is still used for devlink resources as I don't see it in the >code of devlink reload. > >But if it is we probably should add it as another operation. > >Jiri, please comment on that. >