Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2944493pxa; Tue, 18 Aug 2020 02:11:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHc27c6PeQ1OOYMjrL751e1iyG8Ef8bq1DL6XaUlGtsuXBm0OF/icHbZXiitKZSzuByrJa X-Received: by 2002:a17:906:2f17:: with SMTP id v23mr18577684eji.343.1597741909986; Tue, 18 Aug 2020 02:11:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597741909; cv=none; d=google.com; s=arc-20160816; b=AH7Y/oaBFWMaLfKPzBPJh0mKREzummGzP6ZHdAgBA6kcMaAT2CJcOKWkyOikLqR/6S Bz8DC+SNA3oDa1WztuVfU9ZTQ5POqKEmLzGsF04zJ70g/Bv+70FYQjun1+UulXgzKfUh 9vUlOONBpvdOeL29kZSmVZ9cruudSQbknjE7CAtPIMHXRpyhdqM2tCddEOd7GQ/bDWQz qcR//S1LZpyuY2wBLDpNhGpVEHO4QI6CLKP3lrsLf0E1HQnhH5oxllO1c7kFK9bOfGKC 1a9vfdXayLZISrY24/gldAN2RC5fEOmMpGxJbGwBFFRWfgprGqAG8mwvSDD5mQtgZIgI 41ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=KpcCA1ZEvoZ2dw2EhhZA8Hor+WKkCjTOyzDjT4/nqFc=; b=MoqfwH55W2glKCJa8WCSgv+rCgf2oPADBn6E1oGoDdgxOB9GpRPEXPHddqwF76RPhw PJu1pZQUj1M3cODM+NQ4jjs6D6zd53qVOqAvyotT7ggN3rKVDEqDHhSMZ8uoxGHef5lc 3sEcul7Ew0fS9e/lN/THX/3nwYZlM2uDZ8RL9cBUYJiJn0GraCIH/beUwpO04pCCFVMH ErsQ12MGhvZyACZV6v3Xo964Ra3GJGikpihqucYChBY0plOIZayCL/C7YmmKM463Kj0B 720hFN1uhydh9sa5qU9rqXUfIbPrmniN9FPQYADtIDanS/pj+lB4Xe1PA3Igc8Sc0pa0 deAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=jMyex0Y7; 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=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s18si12552973eja.619.2020.08.18.02.11.25; Tue, 18 Aug 2020 02:11:49 -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=@nvidia.com header.s=n1 header.b=jMyex0Y7; 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=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726484AbgHRJKv (ORCPT + 99 others); Tue, 18 Aug 2020 05:10:51 -0400 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:13968 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726353AbgHRJKv (ORCPT ); Tue, 18 Aug 2020 05:10:51 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Tue, 18 Aug 2020 02:09:53 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Tue, 18 Aug 2020 02:10:51 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Tue, 18 Aug 2020 02:10:51 -0700 Received: from [10.21.180.203] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 18 Aug 2020 09:10:40 +0000 Subject: Re: [PATCH net-next RFC v2 01/13] devlink: Add reload action option to devlink reload command To: Jiri Pirko , Moshe Shemesh CC: "David S. Miller" , Jakub Kicinski , Jiri Pirko , , References: <1597657072-3130-1-git-send-email-moshe@mellanox.com> <1597657072-3130-2-git-send-email-moshe@mellanox.com> <20200817163612.GA2627@nanopsycho> From: Moshe Shemesh Message-ID: <3ed1115e-8b44-b398-55f2-cee94ef426fd@nvidia.com> Date: Tue, 18 Aug 2020 12:10:36 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20200817163612.GA2627@nanopsycho> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1597741793; bh=KpcCA1ZEvoZ2dw2EhhZA8Hor+WKkCjTOyzDjT4/nqFc=; h=X-PGP-Universal:Subject:To:CC:References:From:Message-ID:Date: User-Agent:MIME-Version:In-Reply-To:Content-Type: Content-Transfer-Encoding:Content-Language:X-Originating-IP: X-ClientProxiedBy; b=jMyex0Y7h+2Z0BjdTUxln7lQiokb2clNBETbcQHDNQINBfOG1IJRYjM7wz70ElRIn l0niJUKaAXZtR//1HkbZGgdOh4ehKogiqrCKrTE2zOjInz65nN65pBXem4iYwh6HsR YfHCxYAa6HVL+Vmz4e/MOtN1hknnaq0ys7W7QQ9XBWQIV+p8VFb7y7An5tCr4NLkKi 2+wMslO+8EHKfAv0a2z7YP1H/UxobmmXd9Df8P1NhYeqC0gUKRgdp9TbLA7Bf7XYG2 M4FX3yxxsH1dP6tjrYIjtPrhCI/Lmib/lInCnjAx4bF+c6vGsybQH86A3Iz3SXQNqW kbmBhyRNQWtOA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/17/2020 7:36 PM, Jiri Pirko wrote: > Mon, Aug 17, 2020 at 11:37:40AM CEST, moshe@mellanox.com wrote: >> Add devlink reload action to allow the user to request a specific reload >> action. The action parameter is optional, if not specified then devlink >> driver re-init action is used (backward compatible). >> Note that when required to do firmware activation some drivers may need >> to reload the driver. On the other hand some drivers may need to reset > Sounds reasonable. I think it would be good to indicate that though. Not > sure how... Maybe counters on the actions done ? Actually such counters can be useful on debug, knowing what reloads we had since driver was up. > >> the firmware to reinitialize the driver entities. >> Reload actions supported are: >> driver_reinit: driver entities re-initialization, applying devlink-param >> and devlink-resource values. >> fw_activate: firmware activate. >> fw_live_patch: firmware live patching. >>