Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp443311ybg; Tue, 28 Jul 2020 09:45:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdanSS4P2wQWzWcx63c7GcHcnou28QC5C8iJ43ADvsHeZ5ExtnsFQpCuod9XPs4ys3Sx1X X-Received: by 2002:a17:906:fac1:: with SMTP id lu1mr27533017ejb.427.1595954719291; Tue, 28 Jul 2020 09:45:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595954719; cv=none; d=google.com; s=arc-20160816; b=ChQt4KnMWXg/CDBn98jeI1zZGxae8moBa0CBs+qoGtmwZowJczXXrIJ+TGTUPdn1b0 moL8f+xKoPdHk12bbTD3VjAt0NCHKMdMr+NfgqREA4MkXCmv5M7ZvBLWxudC2fEWFrPb nK3ySSbO5fW08zTIQw56YT0KqX5YVMvlO8Sbx7fHjhd1qRmMrcK9269r4nDeknVhZ1hv EKCu47rwhfo/FNfE3pxkUd/gADkT56yL9abp81BpbQRZc/lGLqtsE8LJbwffbgta9AXD C5ae6QW6EDo4aYPHelkj5BHStQmNZOLGgiRFMXhr2ZoLynMSeUxpgYmMy6DICn9KHSUq TsdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject:ironport-sdr :ironport-sdr; bh=8VtNZYsc5EZXmusE84lGg+wtE7sZ3fDHL9MFrrLy8cM=; b=nB+pxuALSU8USkJeVYOKCyrV62/4mVVSJFX1/9R3m2ENQUgjcrwfVu660xH5ne0tvY cOH4qCy9i2hDZBAB/k1tlLIOI1Fvhuu9hopdzTNkaQA35/2tbtcZFW1iAgdyynvAvzGg SjZJY1HoiI336JrhBb1vV0kg324OCWiuayPXafZc9imar1+ikP5ltFYztWiqn0/5YqfW 17ywX34rjNnz9WYRuJOucB2gEjrlfp7GmkzUJdqAr/GaAffNggPSW+5OL7d2aqqM6hI4 XZrqC84ZFupSEtnpeq8q6Iig4+ZIreYswtR9VkCCUz2waZ9/ueYE+DFMC6k4SWHksawy +Eew== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ce7si2896598edb.85.2020.07.28.09.44.56; Tue, 28 Jul 2020 09:45:19 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731487AbgG1QoA (ORCPT + 99 others); Tue, 28 Jul 2020 12:44:00 -0400 Received: from mga03.intel.com ([134.134.136.65]:40860 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726548AbgG1QoA (ORCPT ); Tue, 28 Jul 2020 12:44:00 -0400 IronPort-SDR: aYIfmOwNLnspu+cwPFWw4tSAtHI3OjITTfLE/XxPGKEY/WFyBljtMH4KUsJNK1u6URbRhbyVaD fz1mv46IDxsg== X-IronPort-AV: E=McAfee;i="6000,8403,9696"; a="151241941" X-IronPort-AV: E=Sophos;i="5.75,406,1589266800"; d="scan'208";a="151241941" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jul 2020 09:43:58 -0700 IronPort-SDR: K+XeOAXfUmRMKHtJD04fv2VCeyuciQ/yKEwKCkzRr1Ch2lCU04wwHp8AZumnz9kNs9FQkpwoH0 aBsVPY8VLLbA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,406,1589266800"; d="scan'208";a="434381608" Received: from jekeller-mobl1.amr.corp.intel.com (HELO [10.212.32.199]) ([10.212.32.199]) by orsmga004.jf.intel.com with ESMTP; 28 Jul 2020 09:43:58 -0700 Subject: Re: [PATCH net-next RFC 00/13] Add devlink reload level option To: Vasundhara Volam , Moshe Shemesh Cc: "David S. Miller" , Jiri Pirko , Netdev , open list References: <1595847753-2234-1-git-send-email-moshe@mellanox.com> From: Jacob Keller Organization: Intel Corporation Message-ID: Date: Tue, 28 Jul 2020 09:43:57 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.0.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. >> 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.