Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp14210701rwb; Sun, 27 Nov 2022 20:00:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf50cyyzkV/pPGFwsJVg6SSKzpzblxM1kRWKB/jvqKLWT6YnMli5FqWkBPau45oA90NJbw04 X-Received: by 2002:a62:648a:0:b0:572:76dd:3756 with SMTP id y132-20020a62648a000000b0057276dd3756mr30727469pfb.9.1669608021001; Sun, 27 Nov 2022 20:00:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669608020; cv=none; d=google.com; s=arc-20160816; b=0d0agDU3Ow1h7/vdcOsy7F8SPma0HInvZ4vaX4jTT9uT0Ebfgw0ONt+aB5GNzYSTG2 9MQS2uTpD9BxU05mxuwOr4VfefD+tdqoR+ghmtR4WYdLpthTAbd8iGRLAKbK6Jcf3zno Cw4/cyw9h+uPqKi9NAFPTcGPYOslfWjxmZN0uFcvbny3ePuEtZZcqPVVw/C/Of45oAJa vCpI+q0V9Ekpged5SaejHoZWRobQ3dnPl9ESxzgfPXUqqeI4lXq2kf3XoKE8QOJPc5bQ gorFJ1097LWXdUSfx7xeBWppEm43v59N4MOk9dAJvxqh3lj5w38+kv96exqhfrlByywv 8h7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=vT7BMWVDvF3UW8kvYu0VifrvHV7czuxU1P4z+0blQv4=; b=VjIdtXIW1fMA0jqaAtU8oXLDlSbOSJH8D14aa+AcdarvrGnWbghkucRBAXjJ8FnfUv xgZqBSUzE+cCHfNP5ZAbG6r9wgZnMhMRoxRVLXDtFdaZVtCES5Sa03+qihrocWKAlFYJ PFYGO/lfst1kCmImwIOQkcQrk2VN1OCaMA1F/3Yjoku59tOOyCPND57LhZWQlekKn0WU M9EPGaEnmecoDeVv0Oj7rrU20A7+Ghga4rnX0Vc97Pv6gzaICilKp5fuY8vA8/ShbIHE Krn1eYWaeI3bd0NfcBF42A4UcKSS7LgwPdqvtdoKSyPTNU5mn+ujs9Hmb9R0MvFyAoRD pZwQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m33-20020a634c61000000b00477ca030f2esi10755921pgl.239.2022.11.27.20.00.10; Sun, 27 Nov 2022 20:00:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229886AbiK1DPK (ORCPT + 84 others); Sun, 27 Nov 2022 22:15:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229514AbiK1DPJ (ORCPT ); Sun, 27 Nov 2022 22:15:09 -0500 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF6EAFD39 for ; Sun, 27 Nov 2022 19:15:07 -0800 (PST) Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4NL9YY5P4MzHw6j; Mon, 28 Nov 2022 11:14:25 +0800 (CST) Received: from kwepemm600005.china.huawei.com (7.193.23.191) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 28 Nov 2022 11:15:06 +0800 Received: from huawei.com (10.67.164.66) by kwepemm600005.china.huawei.com (7.193.23.191) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 28 Nov 2022 11:15:05 +0800 From: Longfang Liu To: , , , CC: , , , Subject: [PATCH v3 4/5] Documentation: add debugfs description for hisi_acc_vfio_pci Date: Mon, 28 Nov 2022 11:11:59 +0800 Message-ID: <20221128031200.11017-5-liulongfang@huawei.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20221128031200.11017-1-liulongfang@huawei.com> References: <20221128031200.11017-1-liulongfang@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.164.66] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemm600005.china.huawei.com (7.193.23.191) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a debugfs document description file to help users understand how to use the accelerator live migration driver's debugfs. Signed-off-by: Longfang Liu --- .../ABI/testing/debugfs-hisi-migration | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Documentation/ABI/testing/debugfs-hisi-migration diff --git a/Documentation/ABI/testing/debugfs-hisi-migration b/Documentation/ABI/testing/debugfs-hisi-migration new file mode 100644 index 000000000000..a8cfc7688b88 --- /dev/null +++ b/Documentation/ABI/testing/debugfs-hisi-migration @@ -0,0 +1,32 @@ +What: /sys/kernel/debug/vfio_mig//state +Date: Nov 2022 +Contact: linux-kernel@vger.kernel.org +Description: Read the live migration status of the VF device. + The status of these live migrations includes: + ERROR, RUNNING, STOP, STOP_COPY, RESUMING. + +What: /sys/kernel/debug/vfio_mig//mig_data +Date: Nov 2022 +Contact: linux-kernel@vger.kernel.org +Description: Read the live migration data of the VF device. + The output format of the data is defined by the live + migration driver. + +What: /sys/kernel/debug/vfio_mig//mig_attr +Date: Nov 2022 +Contact: linux-kernel@vger.kernel.org +Description: Read the live migration attributes of the VF device. + The output format of the attributes is defined by the live + migration driver. + +What: /sys/kernel/debug/vfio_mig//debug +Date: Nov 2022 +Contact: linux-kernel@vger.kernel.org +Description: This debug file supports "echo" command write operations. + The command is actually represented by an integer number, and the + specific meaning is defined by the corresponding device driver. + For example, three commands are defined in the HiSilicon accelerator + live migration driver: + 0: State save + 1: State resume + 2: IO test -- 2.24.0