Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1859208rwb; Fri, 2 Dec 2022 02:03:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf6DluMxlf+AsEAkT7PQHw4LiTOXIfZeraoikUb54Tfx9MoTpVMYojPXV5cBbkDIKvsyYKKr X-Received: by 2002:a65:58ca:0:b0:470:2c91:9579 with SMTP id e10-20020a6558ca000000b004702c919579mr43695071pgu.22.1669975386665; Fri, 02 Dec 2022 02:03:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669975386; cv=none; d=google.com; s=arc-20160816; b=woUEy7To4wkw4hmbPOXxPd2JXrnCPz5w9BQ6CBUt5/PSQSLI08dctqmajT4dxyRiBr LAnjfoiLtieaQFtgPSrnHUeFnQXtltiZF4Msg1fv0rAF6I2iPXambSyDcFhVMyui4YSG Q/APLm09T3ta7ERryAEBkgTSXV6xaZX1ZI2oBnnzDK1wk1k/TOPqby3oaaJePcNceYt1 pG1teYA8pVoqcFqPR5bvSa/cT6+aV7B82Kn451IDjenBDLvPVw7g0zf1i9mDJGPRVyTV 0IHi5v6H/ch926XUijmMUzg8ATQ1D1VvkaBjaYUZHgpLwZwtsR3DinUA2tNI5i8l7z+m kC/Q== 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=c18XAOvL5yFIWcKj79+Gq2ZlFQMtq7Kkx8jnXG6ECyqx1qdWXpuA7NeJP0E9TPULnB nn/MOiPhq8qhv5Cq0rb2ZKRrPo+77Do7LhJ6+EX/plS5fW/qYVn+jsxkV6uFvI5+D0p+ iYKBy94yQK9ojITsOvs5HfbjpnLIvsq4XysucYq2sIpJMs4QHRYrzWX5n/iOhGrta/IO e5blVMY6/eGKE+JqVTyMdhx8rQw0nO3Fl85Lu7vUT0scBZ8je5R1uhBDVbsb5uoyjPlr YTJrjgxWd82k/Wl8k74r2N/gcGKpyXfQJhFGXeuyFOrF77c6+D0xae7T0VYhQcdgYWRo Kp0Q== 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 d11-20020a170902aa8b00b0016f1c879eacsi6271852plr.109.2022.12.02.02.02.55; Fri, 02 Dec 2022 02:03:06 -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 S232642AbiLBJ3i (ORCPT + 84 others); Fri, 2 Dec 2022 04:29:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232550AbiLBJ3f (ORCPT ); Fri, 2 Dec 2022 04:29:35 -0500 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C28F57F8B5 for ; Fri, 2 Dec 2022 01:29:34 -0800 (PST) Received: from kwepemm600005.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4NNngh6WQ2zJqHV; Fri, 2 Dec 2022 17:28:48 +0800 (CST) 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; Fri, 2 Dec 2022 17:29:32 +0800 From: Longfang Liu To: , , , CC: , , , Subject: [PATCH v4 4/5] Documentation: add debugfs description for hisi_acc_vfio_pci Date: Fri, 2 Dec 2022 17:26:24 +0800 Message-ID: <20221202092625.35075-5-liulongfang@huawei.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20221202092625.35075-1-liulongfang@huawei.com> References: <20221202092625.35075-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: dggems704-chm.china.huawei.com (10.3.19.181) 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