Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1604967rdb; Thu, 25 Jan 2024 00:02:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IE8mZBIjon7Tffn5/QbhzcTVCMlk7AeP7Xj2lsf5G37c31DXwkO4myYDY7zn5Ozfu4rQVqU X-Received: by 2002:a17:90a:f189:b0:290:c394:c8fd with SMTP id bv9-20020a17090af18900b00290c394c8fdmr352862pjb.25.1706169724806; Thu, 25 Jan 2024 00:02:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706169724; cv=pass; d=google.com; s=arc-20160816; b=Fzx5wHtZA5azg2NE7xkdD61zxgI7JXGlfs3ljE+i70EGR1myejIWlc+oTuGUBCW9ro PzO+73hkBHWA50LV4yvJyhMTgOzHc91mNf5xWb2EKzmJ15xMLjHcCIvciffGfZjhn1CV yM8SFD0vOBgBD5CQO/6/l84Q/Y12WVR9xxv5LLHMu634Rpqf2foSZnQ8gVJ4R+CTyCqB 4Ykvr9tuR0nnFiZym2m1TZnOgLUTZkBQTHm6nSrtaPmwDRAMD2A9LmI07TddO+Xobc2h tyc2c8MdorW+DSisPSaVODKQuWLzesGmTyL/4nzvcOKM6bjxQECc+nziTDW6m0CEHgYy kNiw== 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=ZAB+RS8U487mfPMnbbAw1qv5kUUSnlQyzBhRqppJsOE=; fh=lW6MHi1ma+bdiE1he+iHyx9lPKntUb1s0946rN3rfJM=; b=nOzRJEUqeonMRKxECrvhYlIJP7X4fexu69u3dhGVYgPPgEM9aKysNbhUv+lPIqi26T rfCUkUfTQKyO77lgChGn2xrXrjeoBp3L3gSxJPxOY0ZvhCfYB6r1CKddTa9CvsXvJnOi V20ENmbEPGMsr03GkvFmiKhGJFYZuz5YF69Im5bbimIiCdD/dtoW6Gnk8jwvyo26dryb VCU2dhkZuSv/2sqTLB9Hrltcc0dtH19BpPDgt1/6aJVdBCgrpVkcogw6/yPEG9yCUXp3 MHIBvvfyJEe+teyl+bXT+OzTLsg81MiX+m831j1QnmwQFFLizfRoupNl4C71gKeRoqKQ hX/A== 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-38124-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38124-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id np3-20020a17090b4c4300b00292a6820c0fsi461760pjb.11.2024.01.25.00.02.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 00:02:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-38124-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; 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-38124-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38124-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E86BD28BD56 for ; Thu, 25 Jan 2024 08:01:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4115918E0C; Thu, 25 Jan 2024 08:01:06 +0000 (UTC) Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) (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 DB39118035; Thu, 25 Jan 2024 08:01:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.255 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706169665; cv=none; b=C5fxVKYVXUuKUP8+tvmwHj1XKk9B+tSQBXYEkmxlI/fpiwXs3Hkr1djJQZxgmF9RVaZ1vSuOMF2cFizgRyalwqoysWCy9DWvbforYOzBaKcnJh7H1UpHZYsuug0BDWUJsP4EqG65+zcD+JfNxU2Zu2TZ6YjekQQ81m7s/SBDjaw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706169665; c=relaxed/simple; bh=Xl0TmeJ+mRn2vWcKVhHEFlceOfHZO+RIPMQACXTlSFw=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=GfaPhxSKr3/X8M/W6XD4tqOzktXf75sa32uxMpIZGdoJQaTP75UxD3nRLLrKQ+cWI62PoRjZQTObtgvsN0zvAnlIAPEB41OtS20tkRkgRI9u/LwaSDxOXE/Qz2uOkoLkPU6HHZwbZ08E9uwcTkAd5wRf2mXNB4boWXiPSqwjOWI= 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.255 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.252]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4TLCsl6pYzz18LWF; Thu, 25 Jan 2024 15:59:55 +0800 (CST) Received: from kwepemm600005.china.huawei.com (unknown [7.193.23.191]) by mail.maildlp.com (Postfix) with ESMTPS id BB45C18005C; Thu, 25 Jan 2024 16:00:59 +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_128_GCM_SHA256) id 15.1.2507.35; Thu, 25 Jan 2024 16:00:59 +0800 From: Longfang Liu To: , , , CC: , , , Subject: [PATCH 3/3] Documentation: add debugfs description for hisi migration Date: Thu, 25 Jan 2024 15:55:25 +0800 Message-ID: <20240125075525.42168-4-liulongfang@huawei.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20240125075525.42168-1-liulongfang@huawei.com> References: <20240125075525.42168-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: dggems704-chm.china.huawei.com (10.3.19.181) 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..d61255c3bcd9 --- /dev/null +++ b/Documentation/ABI/testing/debugfs-hisi-migration @@ -0,0 +1,34 @@ +What: /sys/kernel/debug/vfio//migration/hisi_acc/data +Date: JAN 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: JAN 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: JAN 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: JAN 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 20f8e9872deb..115d43d307e8 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -22856,6 +22856,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