Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2030880pxk; Mon, 14 Sep 2020 02:56:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyX1ejQRZPkkE3BuUwo1So2yQNDHcCCQ5+bRqDyOqZT7QSOaV7i8d0BUPM88C7QZzNxWtMV X-Received: by 2002:a17:906:f9d8:: with SMTP id lj24mr14182427ejb.379.1600077384925; Mon, 14 Sep 2020 02:56:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600077384; cv=none; d=google.com; s=arc-20160816; b=NBMSa8Xtr9AX2tvzTSBpNQvIgiJjWn1i94RSxw9TK3TTZsVVLSNgl+9o0AQewrWyiG fwupgZGpvgcg2KO+ZFOaYbf5tYrG1MROsZnAEzkWW4bDI5riz59IEK35rCzKPdoRkxcB mnL837bVYmUxNDl9VZyWqsyAYLn3STX6I1yHzBytDa6njqBfh7prn2pN9Zap8IjsCdGu MALlO4xeAPR7t1zTqWXPmnKO8Q/sX+a/Nj95849aB+/c3fg9+lbMLecR3ny/rrn9OvCZ fo6ppKdbxov5jIAF6+L6Y9C8d9OygaP0VJmXA7jY1M9okM7NFvriQI/ysd5rIYJbjA7J vJxg== 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=OLbK0D4QGcViPP4+fN4RDTHX6B/bM2Mu6LGn5qvcRcU=; b=NIf2R+B/jOQ0bJVUEAuxLu+4vjlgSuVeeZp5M9hnDgtTXYuNV5HFPQV4zMTuHBXejJ nHAJNKYM5DfQThBt/76uDDXZk1lvNeNQtXVzJxdkQJ2eNNWxLQc1NFLUQWxzdn7l42vs ESoDK2XjwEuUHBiKhjc5I+Z6yeQnzgENhXZGMx+GfimYKikE59mEBYU/VSXtLuwiZFcK UnhSz6itdVtNveEFRkLGvnAHMPSmUkCS6BQzT+at7ZfW2/SrsPyOsqXkKEVISvN67F6N /ez/JlHQET222rchfeZBMBrUZLQEj4GKLIw+72/atNmQDYTewaO6BKisFh5qVVClJx5e 0DsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=dFYAdsIC; 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 v25si6447175eja.693.2020.09.14.02.56.02; Mon, 14 Sep 2020 02:56:24 -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=dFYAdsIC; 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 S1726349AbgINJzK (ORCPT + 99 others); Mon, 14 Sep 2020 05:55:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726239AbgINJzI (ORCPT ); Mon, 14 Sep 2020 05:55:08 -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 1CB1BC06174A for ; Mon, 14 Sep 2020 02:55:08 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id w3so18063307ljo.5 for ; Mon, 14 Sep 2020 02:55:08 -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=OLbK0D4QGcViPP4+fN4RDTHX6B/bM2Mu6LGn5qvcRcU=; b=dFYAdsIC4Zsz2A30EabNTdmDmZ0MQFme03K1MycqGkC8UDobD4zXjIhTFQTopq2GXM lu5Ywa+lMnB9EXT0YOeJky3UM8Tx6vZZsw0q+mpB1qx2+DUSlnF63s2PRFAIqLJds5qU 64++J9P1bEJhSAAc+7nAEghmjJ1AgQDRMighc= 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=OLbK0D4QGcViPP4+fN4RDTHX6B/bM2Mu6LGn5qvcRcU=; b=IbpJMRDBUmZ3p56wUdvyIa1osOLJSbDq9EafXbGNMJnqTu48GfKpQY8p5ROp0hBCqA kRfj5WVeuPnW6iCrmtIBiP8sMmcLQQ9/xahVx1Mr7iVFQRXdKRoaUcx51+/FMhvT6sP6 RdSH6oQsp54mpIfIxKxIoZMUVpfprRMVg5lCq2T1Tf4CcQPOH229S9/iow+iiL9ZjNIc +/205wZKmSXUyNW1FShpek6dWIidt7FMWRSpD+kGz1JyZxg6iAHDbRScaAkLqSc1mpp+ N2wpb5S8XENYo6DS0pjr9kv7d/oaCrwpgHerKNdgH2SHEYjXylw2/rTYKMpe2RuUOanY dWzQ== X-Gm-Message-State: AOAM533N1eqiIWVx/d3V1QmGIB2KzUbOsht2tdZHqz5pVUTLZJqWqWOt gHZTkwXBn6f5usl0i0YLCtKbLz32T9+r4elklxdGrg== X-Received: by 2002:a2e:874e:: with SMTP id q14mr4415207ljj.320.1600077306404; Mon, 14 Sep 2020 02:55:06 -0700 (PDT) MIME-Version: 1.0 References: <1600063682-17313-1-git-send-email-moshe@mellanox.com> <1600063682-17313-2-git-send-email-moshe@mellanox.com> <20200914093234.GB2236@nanopsycho.orion> In-Reply-To: <20200914093234.GB2236@nanopsycho.orion> From: Vasundhara Volam Date: Mon, 14 Sep 2020 15:24:55 +0530 Message-ID: Subject: Re: [PATCH net-next RFC v4 01/15] devlink: Add reload action option to devlink reload command To: Jiri Pirko Cc: Moshe Shemesh , "David S. Miller" , Jakub Kicinski , Jiri Pirko , Netdev , open list , Michael Chan 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 Mon, Sep 14, 2020 at 3:02 PM Jiri Pirko wrote: > > Mon, Sep 14, 2020 at 09:08:58AM CEST, vasundhara-v.volam@broadcom.com wrote: > >On Mon, Sep 14, 2020 at 11:39 AM Moshe Shemesh wrote: > > [...] > > > >> @@ -1126,15 +1126,24 @@ mlxsw_devlink_core_bus_device_reload_down(struct devlink *devlink, > >> } > >> > >> static int > >> -mlxsw_devlink_core_bus_device_reload_up(struct devlink *devlink, > >> - struct netlink_ext_ack *extack) > >> +mlxsw_devlink_core_bus_device_reload_up(struct devlink *devlink, enum devlink_reload_action action, > >> + struct netlink_ext_ack *extack, > >> + unsigned long *actions_performed) > >Sorry for repeating again, for fw_activate action on our device, all > >the driver entities undergo reset asynchronously once user initiates > >"devlink dev reload action fw_activate" and reload_up does not have > >much to do except reporting actions that will be/being performed. > > > >Once reset is complete, the health reporter will be notified using > > Hmm, how is the fw reset related to health reporter recovery? Recovery > happens after some error event. I don't believe it is wise to mix it. Our device has a fw_reset health reporter, which is updated on reset events and firmware activation is one among them. All non-fatal firmware reset events are reported on fw_reset health reporter. > > Instead, why don't you block in reload_up() until the reset is complete? Though user initiate "devlink dev reload" event on a single interface, all driver entities undergo reset and all entities recover independently. I don't think we can block the reload_up() on the interface(that user initiated the command), until whole reset is complete. > > > >devlink_health_reporter_recovery_done(). Returning from reload_up does > >not guarantee successful activation of firmware. Status of reset will > >be notified to the health reporter via > >devlink_health_reporter_state_update(). > > > >I am just repeating this, so I want to know if I am on the same page. > > > >Thanks. > > [...]