From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 550F6C4360C for ; Fri, 27 Sep 2019 07:41:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 28048205F4 for ; Fri, 27 Sep 2019 07:40:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726282AbfI0Hk7 (ORCPT ); Fri, 27 Sep 2019 03:40:59 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:39178 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725842AbfI0Hk6 (ORCPT ); Fri, 27 Sep 2019 03:40:58 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id A8FC9557BDC17811BB43; Fri, 27 Sep 2019 15:40:54 +0800 (CST) Received: from [127.0.0.1] (10.74.191.121) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.439.0; Fri, 27 Sep 2019 15:40:48 +0800 To: , CC: , "netdev@vger.kernel.org" , "linuxarm@huawei.com" From: Yunsheng Lin Subject: [question] About triggering a region snapshot through the devlink cmd Message-ID: Date: Fri, 27 Sep 2019 15:40:47 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.74.191.121] X-CFilter-Loop: Reflected Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hi, Jiri & Alex It seems that a region' snapshot is only created through the driver when some error is detected, for example: mlx4_crdump_collect_fw_health() -> devlink_region_snapshot_create() We want to trigger a region' snapshot creation through devlink cmd, maybe by adding the "devlink region triger", because we want to check some hardware register/state when the driver or the hardware does not detect the error sometimes. Does about "devlink region triger" make sense? If yes, is there plan to implement it? or any suggestion to implement it?