Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp374514lqi; Wed, 6 Mar 2024 22:41:37 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVPA45EOBNb9fdPVtTQRki1X2ZZfUo0Xn2wgy+fH0r+w5nLYvq97ZYff//8pYmsnAuv3sXYkgn7yssvKsaVDuVJpcTKE7q7B4X0HTyMGg== X-Google-Smtp-Source: AGHT+IH/LYVzlJK5wJReNX7oaoA9i/J6iZ5va0LTcdaABggiSOJDFCmKwkOdHPDH10rTiMt1h2B6 X-Received: by 2002:a05:6358:8097:b0:17b:64af:cd7b with SMTP id a23-20020a056358809700b0017b64afcd7bmr8682258rwk.16.1709793697588; Wed, 06 Mar 2024 22:41:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709793697; cv=pass; d=google.com; s=arc-20160816; b=wEBcxk12TOshXaUeWXsKvOZx8xRsMv875lgVtpqlVQ7+/u8EjBXyKoqZPs6kmSehah Xq7PfCiJfk6P5sZ7yRg5FrjBDJ9K1gGbdVdIxNgug0FWM7VJaeWlxLD7dn8h72T/1ZZ+ Q6/Fa9vyE7+USKxvEQZi0pgAPvB1qJ5b6Z8+RcMyZpdztvm/A8zngKtB7UfoPQh4jWpJ Tk7dEHHmasON6RuX5Ehy02yK9PDkcOfjPnAfKV7WneSgy49jiLDuqRXzmGewHZK4yO7+ /7XHJoSX1NBQEd/+VroryLxjnhKnxexAW70RVqck/qp6OS1khY0H78P9/miImQaUy+Sw nq+A== 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=+0ZicA0O1XrE7g1QOQWCozTtm86akbSzfH2MeTI7SEY=; fh=lW6MHi1ma+bdiE1he+iHyx9lPKntUb1s0946rN3rfJM=; b=NJH9vLLlOW5Zm2qiOGAAunzVjmlIB/AF1VUHF7bL29YmA/ikYoSDjs6oZjspUCEWaA 0clm57q+2Lrn2JJa1X3xa1vMCOLAn3F69HVkPZOcULgLzJIts8ssFJsf+tdH/esK6Fvf YO9JnYn7rDFQAtCmzhmNMOEKpgJO/Y6bqRg7ITzVsNKZ0Apvs4IixwjZnC7MNNbi9qWt W35v+qXSoctY5nPws8AY7KsKj5s1lsMwgZQSrlu4HK7abrFZdKOY02XRLJ04Wegcz1Tu VcA4NwLKMHx03+1ZypizLX2LSdJCxSTcLbQimQPRDIgkyu//CIxsnKi2m7K73/itqYur Py1A==; 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-95021-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95021-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id c10-20020a634e0a000000b005dc891520f0si13152160pgb.272.2024.03.06.22.41.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 22:41:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-95021-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; 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-95021-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95021-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 4ECB8B23719 for ; Thu, 7 Mar 2024 06:41:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DF3FF1CD3E; Thu, 7 Mar 2024 06:41:13 +0000 (UTC) Received: from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190]) (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 7AB701BF47; Thu, 7 Mar 2024 06:41:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.190 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709793673; cv=none; b=ihaALwJaktNG8nLeN8XO3l1MIUaAI1DzOKfPiY0jd2HRn5Tk5Sf08TNkbvyEXTtPEepCK/2F1ATAfsvHMT8ga61V3kBbW8ej2+4OXz9/BR34qbXr4goFYGCU+TdvaaNb85xZwc3wInZtfoSWI6U/H2+XYX5YiggzvlkzoDss/zU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709793673; c=relaxed/simple; bh=N3m5u5/f5nUwDqyWz0PlLGEgLge3hgWkcmb61g4g93o=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=qYnbvgXAeINJNuFSUmTGUw9W08dPa842a9mL8LjouE2DmkcD+vxj+J2GAW1/99qW8n1niKgW3farAM22szq6qWW3l3o56nBL/pCO2lTmec3HO723wNW3Rxqctta7qEt7rcWU0G0Y2o1t191Jub50Z3EOkNBzuWH7yY+O2E/7Evc= 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.190 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.88.234]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4Tr04k1Fzmz2BfVw; Thu, 7 Mar 2024 14:38:46 +0800 (CST) Received: from kwepemm600005.china.huawei.com (unknown [7.193.23.191]) by mail.maildlp.com (Postfix) with ESMTPS id 0B863140336; Thu, 7 Mar 2024 14:41:08 +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; Thu, 7 Mar 2024 14:41:07 +0800 From: Longfang Liu To: , , , CC: , , , Subject: [PATCH v3 4/4] Documentation: add debugfs description for hisi migration Date: Thu, 7 Mar 2024 14:36:08 +0800 Message-ID: <20240307063608.26729-2-liulongfang@huawei.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20240307063608.26729-1-liulongfang@huawei.com> References: <20240307063608.26729-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: dggems703-chm.china.huawei.com (10.3.19.180) 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..7111af41ed05 --- /dev/null +++ b/Documentation/ABI/testing/debugfs-hisi-migration @@ -0,0 +1,34 @@ +What: /sys/kernel/debug/vfio//migration/hisi_acc/data +Date: Mar 2024 +KernelVersion: 6.8 +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: Mar 2024 +KernelVersion: 6.8 +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: Mar 2024 +KernelVersion: 6.8 +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: Mar 2024 +KernelVersion: 6.8 +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