Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp290062lqd; Wed, 24 Apr 2024 02:18:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWCOELFpA9PlcB8R/sjd1qghkbHoGwsl31hI3L2CMfrZEsokcvI9DK28GEwCl2xLTJEJAQTN/NIYKs9jikMzoYYsWoynWsxZyU3FHc2Ng== X-Google-Smtp-Source: AGHT+IFDyZyaBNAUmnMDHjMVarXr7hZUvyolbIYaI8Q1i3Yk+gtw4pBxamMRPNMUXYPQQlIVySdk X-Received: by 2002:a17:903:2284:b0:1e4:7bf1:521 with SMTP id b4-20020a170903228400b001e47bf10521mr7206405plh.19.1713950333814; Wed, 24 Apr 2024 02:18:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713950333; cv=pass; d=google.com; s=arc-20160816; b=Fz8hDQYkolStx5Hz5ELmwcnLM0tR22eHgZaBNCjqCDQc3UOWJNoDDRJLV/8KmJP1NB NgpcUdeP0y8p5tU9aLZ6LtahMrwrnkFvKCUzX8gV7uPb67PsHudnXK2ywQDX3uiKL8HB hfLs+Mj2sUdH3jDvQ7cgVRLv08QuUfpJ3rCXugk9lVoREG0iLkR+X0YatbXxjXniDM5Y gkjh6VTZyPayUpYnS/J4qqGQp3NVy6GUCtgJJkUlojzRfMCQny3u6rWCCv+RZ0nFybPm Ands4nTtGUudT3a72d7V2IjUleB8lcYWRqPwBgEnp1+gmmljs4mlXeu9eFUf810WwQpJ LnuA== 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=5L7JbfaksAEyonfk0kEBDHgrHn56zD3MFE8eFQP9s2o=; fh=lW6MHi1ma+bdiE1he+iHyx9lPKntUb1s0946rN3rfJM=; b=Ocb8CmHVeyAyzeNtbigdA3KrZSowWN774T6o6fwl9IwlDaV10wnOzAfssJ3u1xHUeK cLTeJD2R0aQJl0y2/kTZykA7d6GH/kq6avOsQzERMVTmeLSQq0RGHqinyFtMIH5G/7pc d+Sj0lhKMjqCGA3+QGBj9TLRRt+erMJD1uZQbr+44vr/KIAga0S9Y5plXjb0SjI3YAZL 9gokb6Msns7RQtahECt5l892STd8GPoDnLuu01ckBPKn8PAGT3VBsxYJLkRRV8CICWiV oVmkeH6J7f3F69W8EaJHy1cOtMUhZgyrTX928ZXI8g0i7Ls7lIyzLnq3AF2VUYkKVn5z MSZg==; 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-156596-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156596-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 m4-20020a170902bb8400b001e0b3ae7eb8si10592774pls.146.2024.04.24.02.18.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 02:18:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-156596-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-156596-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156596-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 2AF41B26CB7 for ; Wed, 24 Apr 2024 09:05:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5CE66158D89; Wed, 24 Apr 2024 09:05:15 +0000 (UTC) Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) (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 0587815886E; Wed, 24 Apr 2024 09:05:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.189 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713949514; cv=none; b=lMrNjip/bYVLTulSoqdLwNWYCwGNMSOi9UMUh2a94WDYi9RuFEx4wHrwIYh/jB47bCcY71htbhIuv8BRexjTL2LFS4ZHkWQ0/VEwpakSL9e8UpAPTTBx6VOsiS2FLeZCYUusO8T/uHr0rfc+mJaeyJVJASJ1KH0i74IEg9nkMAg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713949514; c=relaxed/simple; bh=99uil39rbdssmjNXI7yaMpLDb6nTKTjeJ++aM7M4M5k=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=LyWRvhEWutvv8qIyw+dtMi9WbWy3+mEFpOLPz1hIbbm07T2yW+IxC7pTwBNN3jjoq9/GbGi5mf5tDL9hym5GuwnmNMqI/QIzR7XfiNwAf0xYtEAsjwnI7qH373QolDKnneFyOotApuXZkV5v0fo4aoYnwje5EYYg8iqZ9Xik4CE= 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.189 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.48]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4VPY0K5bMLzNtV7; Wed, 24 Apr 2024 17:02:25 +0800 (CST) Received: from kwepemm600005.china.huawei.com (unknown [7.193.23.191]) by mail.maildlp.com (Postfix) with ESMTPS id 1A4A018007B; Wed, 24 Apr 2024 17:04:57 +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; Wed, 24 Apr 2024 17:04:56 +0800 From: Longfang Liu To: , , , CC: , , , Subject: [PATCH v5 5/5] Documentation: add debugfs description for hisi migration Date: Wed, 24 Apr 2024 16:57:21 +0800 Message-ID: <20240424085721.12760-6-liulongfang@huawei.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20240424085721.12760-1-liulongfang@huawei.com> References: <20240424085721.12760-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: dggems705-chm.china.huawei.com (10.3.19.182) 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 | 27 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 28 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..f391f2366bfa --- /dev/null +++ b/Documentation/ABI/testing/debugfs-hisi-migration @@ -0,0 +1,27 @@ +What: /sys/kernel/debug/vfio//migration/hisi_acc/dev_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, some task configuration data and Device attribute data. + The output format of the data is defined by the live + migration driver. + +What: /sys/kernel/debug/vfio//migration/hisi_acc/migf_data +Date: Apr 2024 +KernelVersion: 6.9 +Contact: Longfang Liu +Description: Read the data from the last completed live migration. + These data include device status data, queue configuration + data, some task configuration data and Device attribute data. + The output format of the data 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. 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