Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1946243pxa; Mon, 3 Aug 2020 03:27:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRLWKUSiJ9jZemZzdbHxvyI5FpttXxoTk+fwZZKIpFFJpGq89n2Udmus4IqbAR+2J9xXSH X-Received: by 2002:a17:906:74d0:: with SMTP id z16mr15645508ejl.51.1596450456368; Mon, 03 Aug 2020 03:27:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596450456; cv=none; d=google.com; s=arc-20160816; b=NSAeA0YEXj7xHuKipHK9z3qCOIV0NCsOqThU3sa3hbqIN/ozS1D5vanP6CiPxpgDr4 HLZrBbJjA3ROrZUO7oWpVxH4LeDvFSZGC5XtFxcVnIUfSrJ5OHvVDfgW6YcCs+1ZQ4/r iuFusr6OTLiO/Etwm4n6eMjYl/8JfZsA+1Sq9igGjQ2tXA3VkOKQSCx/ZmVJUZvXMHXB MvyVF8RqM1SklnI8YLkaym5LaU9acJ5A5Bdl7sY1sHBwBhLbUPBzfGBjd8ICG0wRLeEo mzilI0oJl4iwV5hszbL2g08KyuV7nhTl0mEftum7yPWi6RAqohhfVE1rjQo/2lY6LkCJ pkLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Q/DGzoF6CXxtHgCXxPInKWoutLOVz6raFMjHyyz/ipo=; b=jnYUTA2Fw/GeP4LvoS41FHlU0OJ8s3NOS55kqtcgwpPbUkPVH8GvF/lZrmdyIu4aRw BrftdZjr2Z+omKy9DUpqeMBDwPAANank223DxcLf5kHGBbYH0jk84fGGfn4IkUmC/x6G pCsuSIK5b9d1r5XnEsZpz0vY7w4Kf0BPsFVWbkpXx0kRrOmfrrq7z3g3aLhkcS0j0wRm BtIAwZS58FA2LaDj0OL/uAapjvj3OYJhzOUHBc/EcK0F9EYLiGFSPFBOc9cVQpdtSD2f HfNJQk5/W+R4Uhenj01zghtwgCAiHCklPxCs5v6O7Xm5dthL57HirqKLOgGaCd92GgGo wq9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=U5IJ1EiF; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x6si10018628ede.495.2020.08.03.03.27.10; Mon, 03 Aug 2020 03:27:36 -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=@broadcom.com header.s=google header.b=U5IJ1EiF; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726169AbgHCKZQ (ORCPT + 99 others); Mon, 3 Aug 2020 06:25:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725933AbgHCKZO (ORCPT ); Mon, 3 Aug 2020 06:25:14 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCCFFC06174A for ; Mon, 3 Aug 2020 03:25:13 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id t6so26108206ljk.9 for ; Mon, 03 Aug 2020 03:25:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Q/DGzoF6CXxtHgCXxPInKWoutLOVz6raFMjHyyz/ipo=; b=U5IJ1EiF6Tz96U8sH967hVgdN6eea3a58Qqz9un8vqypSnbKs2aEJ4TPhcj1Axgs9/ 1vxUi7H9lgsLV8PGg1dvx+3ltT0XFwCopKDQ5rjEEYofaDDuabSk5w8/vgRL7llBhkha DYLLhHKEFW1YWXEC87G8XM88E7pFxgfH6ObLA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Q/DGzoF6CXxtHgCXxPInKWoutLOVz6raFMjHyyz/ipo=; b=Hkch2t+/sgTMpKv/43FlXfF5DAMcHwRegiXlbDDk0G8fuOTXF+KEFZYmJ2ZyckUaU3 gzHvq+PYzcirjNCnn4eHigliwX7gAxHPXAka5x3SI6TUfxYcoDbuCq822X2EZHZQY3al QgLbyOPnrSXpFqZ5xycVla2kUxZ54NBcOIiwBCrPg3IE69YNSQ56Z/MIQLmtfnQS25Jo AGscK7vD4SuD8QtsuCQK7aTrngw0qIuJwjvySKIo8A4bngof7ycEVIoJTx/qUu/FAbZX r7vwz2Ydyhnij630+Dsy9piTPlMsreQ+2XIlccH74IfRmUVUhVLkW/QEhz7yzFyqmuhy Hnzw== X-Gm-Message-State: AOAM530ZnviCmUG35AgAjTPdTXzeDsE67LkhpLtOV/BkSyTySpJAZeZG RBdkR7Uo9JZDRxdZJ7mWSaTVgzuFICmgZZHlK9Q5qg== X-Received: by 2002:a2e:9010:: with SMTP id h16mr2737548ljg.316.1596450311318; Mon, 03 Aug 2020 03:25:11 -0700 (PDT) MIME-Version: 1.0 References: <1595847753-2234-1-git-send-email-moshe@mellanox.com> In-Reply-To: From: Vasundhara Volam Date: Mon, 3 Aug 2020 15:54:59 +0530 Message-ID: Subject: Re: [PATCH net-next RFC 00/13] Add devlink reload level option To: Jacob Keller Cc: Moshe Shemesh , "David S. Miller" , Jiri Pirko , Netdev , open list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 28, 2020 at 10:13 PM Jacob Keller wrote: > > > > On 7/27/2020 10:25 PM, Vasundhara Volam wrote: > > On Mon, Jul 27, 2020 at 4:36 PM Moshe Shemesh wrote: > >> > >> Introduce new option on devlink reload API to enable the user to select the > >> reload level required. Complete support for all levels in mlx5. > >> The following reload levels are supported: > >> driver: Driver entities re-instantiation only. > >> fw_reset: Firmware reset and driver entities re-instantiation. > > The Name is a little confusing. I think it should be renamed to > > fw_live_reset (in which both firmware and driver entities are > > re-instantiated). For only fw_reset, the driver should not undergo > > reset (it requires a driver reload for firmware to undergo reset). > > > > So, I think the differentiation here is that "live_patch" doesn't reset > anything. This seems similar to flashing the firmware and does not reset anything. > > >> fw_live_patch: Firmware live patching only. > > This level is not clear. Is this similar to flashing?? > > > > Also I have a basic query. The reload command is split into > > reload_up/reload_down handlers (Please correct me if this behaviour is > > changed with this patchset). What if the vendor specific driver does > > not support up/down and needs only a single handler to fire a firmware > > reset or firmware live reset command? > > In the "reload_down" handler, they would trigger the appropriate reset, > and quiesce anything that needs to be done. Then on reload up, it would > restore and bring up anything quiesced in the first stage. Yes, I got the "reload_down" and "reload_up". Similar to the device "remove" and "re-probe" respectively. But our requirement is a similar "ethtool reset" command, where ethtool calls a single callback in driver and driver just sends a firmware command for doing the reset. Once firmware receives the command, it will initiate the reset of driver and firmware entities asynchronously.