Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1825458lqz; Mon, 1 Apr 2024 20:31:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU9cbR0CuFL9esqBU1KG8X1bknFJOJfUwxu4vrY1sJWcTlYwbZqAnhUruw4hmmkZdrbxk3agnA5ONs871UdHnQ8ziLZtvfamyFGMweT/w== X-Google-Smtp-Source: AGHT+IGU8qb/nuVzODC5M9EyxZdj4U8N3rlYJInNclAi/zoSBCjZnjyd1em6E6TsgmLUB2CI3bJU X-Received: by 2002:a05:6402:5253:b0:56d:eed0:4dc6 with SMTP id t19-20020a056402525300b0056deed04dc6mr5954edd.23.1712028697351; Mon, 01 Apr 2024 20:31:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712028697; cv=pass; d=google.com; s=arc-20160816; b=i7FhKq9nWNHrVi14mdAxSb2RUz5u89KLOKKtEapzRAUxoXYutKpdoxdXtS+zLg/mip b9LlW4G8mOtVe4SLg9Y/NTE4jcI6t5pPdY/1BV19VaNkfvbYWRmqjQs8sKmWpkZU96Kj oBxuIoQoYdD0r//rsvWkXN/+qjSjrge06wfmFUCr6w9FDS1QgAI0cgUZk5NH+oV80Zv4 8XTDmjBUcZOOYZGiFDp+v/ujomgW0Dv+4OUbXGiwSg7NkUCM/hQkWKwRiUx1bgCoLktr hebwe+sxzSjoGUm0NWMsTd2/IiQC9ZfCfUCjUn7zY91F9KpItMrVa5gpvRK+3MFyqTv4 jDng== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=5c7PC9V8cSDcHQJwZbzRBv5FuPO3nnvkw5a75MiTKkM=; fh=lW6MHi1ma+bdiE1he+iHyx9lPKntUb1s0946rN3rfJM=; b=TYkH0LaS/O8I5JJIIdbyJOEzpHB00GdSPi1WZX7VYEkpoFcaSOMBw26tk6lUaNOePT MfweNfZ0f+6hteiB8lGdswVSZ9QW3ZvTnUY6F0e3Ua+4YlPyiqtVET120UsBhrsA5Vbj hlsNBY7aLULJITQW+fLWPpLrGUHNnSQf6C/e+AVO1fEMp6fCSj7/7Ts08bULxm/a1Rp4 cl48ipla+HFeACDQO4WQxoC73TGiEjEr8EE16ORq9hrOruYtcZpZ+gXETDR/uc22v4Bc iL0I9GAuSfUv/e/O7pSRVCBI82Qeq7r51hVkRJs0/9BuFNhHqb3gdZNYHdOwfS4lc1Bl pddw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-127341-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127341-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id dz13-20020a0564021d4d00b0056dc71b090asi2630483edb.271.2024.04.01.20.31.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 20:31:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127341-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-127341-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127341-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 0F4C71F21B1D for ; Tue, 2 Apr 2024 03:31:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C36DB17555; Tue, 2 Apr 2024 03:31:26 +0000 (UTC) Received: from szxga05-in.huawei.com (szxga05-in.huawei.com [45.249.212.191]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 86D3315E96; Tue, 2 Apr 2024 03:31:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.191 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712028686; cv=none; b=DJjoCCDBx5Txfh8RyQTNGesurp/palOlud5ruO4ciekCC4Kyxrxwtr79sQ+ss14zBniJdz71E6KA5AK1/KMdBeKpkmKqFD68Xe+IJ/cCdDlrZ40UqqRb9DXEmUy1NiG7+d9su0199cUoCdrkPyq9PLVZ0vqE95sVTYXPXsBQsMM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712028686; c=relaxed/simple; bh=KcYFY0/J5LOE7gAjhMCVRdrkwkV0VBKNTOFoF6PhQ9Y=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=FZMP+ZPI7IecU948cRqM4cSyDkeuvvr/NeyGT2mauomicckHt7b0XBgVUJJsB8wqNp+xpswR/mXFPWSU7IUPICaAvdliY9JPj0BuKmjbRtnaVVTHHNc9HmyZFoX9vrkBDQcek6+qWj2b7Gx0OcK7qFFqeIfcMC80fhxvBug5cTE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.191 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.163.17]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4V7tdK4xZ5z1h5BL; Tue, 2 Apr 2024 11:28:37 +0800 (CST) Received: from kwepemm600005.china.huawei.com (unknown [7.193.23.191]) by mail.maildlp.com (Postfix) with ESMTPS id 131DC1A0172; Tue, 2 Apr 2024 11:31:22 +0800 (CST) Received: from huawei.com (10.50.165.33) by kwepemm600005.china.huawei.com (7.193.23.191) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Tue, 2 Apr 2024 11:31:21 +0800 From: Longfang Liu To: , , , CC: , , , Subject: [PATCH v4 4/4] Documentation: add debugfs description for hisi migration Date: Tue, 2 Apr 2024 11:24:32 +0800 Message-ID: <20240402032432.41004-5-liulongfang@huawei.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20240402032432.41004-1-liulongfang@huawei.com> References: <20240402032432.41004-1-liulongfang@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemm600005.china.huawei.com (7.193.23.191) Add a debugfs document description file to help users understand how to use the hisilicon accelerator live migration driver's debugfs. Update the file paths that need to be maintained in MAINTAINERS Signed-off-by: Longfang Liu --- .../ABI/testing/debugfs-hisi-migration | 34 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 35 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..3d7339276e6f --- /dev/null +++ b/Documentation/ABI/testing/debugfs-hisi-migration @@ -0,0 +1,34 @@ +What: /sys/kernel/debug/vfio//migration/hisi_acc/data +Date: Apr 2024 +KernelVersion: 6.9 +Contact: Longfang Liu +Description: Read the live migration data of the vfio device. + These data include device status data, queue configuration + data and some task configuration data. + The output format of the data is defined by the live + migration driver. + +What: /sys/kernel/debug/vfio//migration/hisi_acc/attr +Date: Apr 2024 +KernelVersion: 6.9 +Contact: Longfang Liu +Description: Read the live migration attributes of the vfio device. + it include device status attributes and data length attributes + The output format of the attributes is defined by the live + migration driver. + +What: /sys/kernel/debug/vfio//migration/hisi_acc/cmd_state +Date: Apr 2024 +KernelVersion: 6.9 +Contact: Longfang Liu +Description: Used to obtain the device command sending and receiving + channel status. If successful, returns the command value. + If failed, return error log. + +What: /sys/kernel/debug/vfio//migration/hisi_acc/save +Date: Apr 2024 +KernelVersion: 6.9 +Contact: Longfang Liu +Description: Trigger the Hisilicon accelerator device to perform + the state saving operation of live migration through the read + operation, and output the operation log results. diff --git a/MAINTAINERS b/MAINTAINERS index 7625911ec2f1..8c2d13b13273 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -23072,6 +23072,7 @@ M: Longfang Liu M: Shameer Kolothum L: kvm@vger.kernel.org S: Maintained +F: Documentation/ABI/testing/debugfs-hisi-migration F: drivers/vfio/pci/hisilicon/ VFIO MEDIATED DEVICE DRIVERS -- 2.24.0