Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2062511rwb; Thu, 19 Jan 2023 20:23:14 -0800 (PST) X-Google-Smtp-Source: AMrXdXvX4uboZh94DxlY91ZmyV+5pltGemcUwXeIHICrXNE7s3DjNqViLRM1DXngQbh182pgdRiw X-Received: by 2002:aa7:d7d9:0:b0:478:5688:7c9f with SMTP id e25-20020aa7d7d9000000b0047856887c9fmr23027467eds.29.1674188594484; Thu, 19 Jan 2023 20:23:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674188594; cv=none; d=google.com; s=arc-20160816; b=x9CoG8TK8xSmDdu5Lr0oMyjn/dvX4X2DpdT3SDpRcVmvXU4MubGFFjmTMGQYhyE1YE 9RgmW0tkKAN43mxjL4w6r8C7fFoX4kCncCjg3Z+fNxJW/3Xz2kAwRYBJhBR7318Ta1OG Tb3PsSu1wr4S0GAMnGkIVt2D9TbuVRJTCg8HsOJCXHOvcqqHRsu/Yv3wAERsUGHZdQfk 5p+h1rE9qtZxaEjVoPV2h1JRR1ZELP5cAKIZeg2I06B5n2ZCA7qHOn7vupkj4ABwx6Yo LQzc1qUlv149NZPUUf+i73jXqtYQXCEfNjnkJioZw5sdjZwyy9NdLYkQl6v4HzEFuk2W LmrQ== 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=f0bRXZm6kCtS4yja2bvTWGi6fgxN9C8T88ZOoPQitQ4=; b=eL214vJgycjh2E8ciSEydKunwT1ya0kAPycT//STbPQ9/7RzmKOfOKAuNRRkqd1szC YemTJAQbUaE9bNg6kqSug81Mk+pxRjIzCSEmpB/9zhk3zReCa+MkwY9ELD0wwfaSXFGe QAhntHs2/YjqrljEMLfASPEZBQWoyXgtYMsU2nYcSWxtjvKhEl1oiU0tkwTlaJAFG7NK K3sV6pcmxHrwSRdsvpJbSnvCbduHhonu9KLoLh+HEBnbwaTDzV1xuoUbLf6yr56O1npp EG0oSg9c/1qQjzGpX7mzQvS0WOCDGKoC+7cR59S7HJG+CqrnJl8ygEz8aq7ERqrNxKPc NTZQ== 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 i20-20020a0564020f1400b0049d699c63ccsi20626598eda.82.2023.01.19.20.23.01; Thu, 19 Jan 2023 20:23:14 -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 S229552AbjATDcY (ORCPT + 46 others); Thu, 19 Jan 2023 22:32:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229885AbjATDcK (ORCPT ); Thu, 19 Jan 2023 22:32:10 -0500 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9603B1EFA for ; Thu, 19 Jan 2023 19:32:09 -0800 (PST) Received: from kwepemm600005.china.huawei.com (unknown [172.30.72.57]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4NylPV0G1cz16NHQ; Fri, 20 Jan 2023 11:30:22 +0800 (CST) Received: from huawei.com (10.50.163.32) 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.34; Fri, 20 Jan 2023 11:32:07 +0800 From: Longfang Liu To: , , , CC: , , , Subject: [PATCH v7 4/5] Documentation: add debugfs description for hisi_acc_vfio_pci Date: Fri, 20 Jan 2023 11:29:29 +0800 Message-ID: <20230120032930.43608-5-liulongfang@huawei.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20230120032930.43608-1-liulongfang@huawei.com> References: <20230120032930.43608-1-liulongfang@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.50.163.32] 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..d644a497c464 --- /dev/null +++ b/Documentation/ABI/testing/debugfs-hisi-migration @@ -0,0 +1,32 @@ +What: /sys/kernel/debug/vfio_mig//state +Date: Jan 2023 +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: Jan 2023 +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: Jan 2023 +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: Jan 2023 +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