Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1114178lqd; Thu, 25 Apr 2024 06:32:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUey/kyP3Fb71aRmmcFIrQwNMXSfAW979D8n6dsEaNnb3M8GBRxPIg39+dqokB65mRARiWkU/1/oujykAzIj/t7DplDdiz51auGTAbJcw== X-Google-Smtp-Source: AGHT+IFXkzdTbJ+76A8gTZvxO6maDb56f4HM+4yVHW+TEiC+g3w3cKdoeMPjHTzzP3RtNNiwgWRD X-Received: by 2002:a05:6a00:23c9:b0:6ea:f43b:b961 with SMTP id g9-20020a056a0023c900b006eaf43bb961mr4770710pfc.6.1714051941576; Thu, 25 Apr 2024 06:32:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714051941; cv=pass; d=google.com; s=arc-20160816; b=SRqBHPV8VJDXPlPJWxkpFng5TwmTX6bHZ8NJ58srD1NCV7k9UNCNkNGwWeG4MEPNtO s62lmCW1tyl6ixl7jFwfND3T96HirF2WvL/CyOq1zWQDQhyHIgrm2FD/heUZPw6obGzR 3LzklaEwdfFRzwX7rC0bNqFhl57NkIU3LJyxsDn5ekaPR3oMHbyGPZlM3rM3miGjI2qA WVTwOnl0YSSeB7zBwT3m0UjQaOXgJmvc3D90AA7/eiL/d7mLxHlRWdjJAMbfG65rXnrJ MvJfZrOtYBpltzLOZc1u6qmaA/M97Ok01sKOf61wi4kD9i+ly9zUToNv9BuxvNK8T48i bH8A== 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=g2Twjs2I6ci6jLHusMbt5p88nwfFRn9qYiP/sJXMlzA=; fh=lW6MHi1ma+bdiE1he+iHyx9lPKntUb1s0946rN3rfJM=; b=QS9sDlJnz+IRQwzZ+UGthY/ztyJkW9pV51j1ImkFvSJRIkVdvAqVXa5Lfk25H6mZP4 BmUQ6liFo/zwhuE+FBDtCw1MhtomjwceiltgiS922JXVX0OM/LqlXcIdJ7scS6JcWMWx Ii0CEAp/M2qemslpOKLMvcpA1pR+PwlcXCHhHmSK/GsNNrPKd6gIIiH1kNu/UUSsatnv UYaiW3SSOgkHadxpu/uyOG/1aGOS/76rZMIcj/YfWdV1Cu2luGRGcAJyLf02BmOeLunL /miM0lWUQZ2LWcAthYEWNWjzl/uJg2p3NYhSKHnizwKDS32N9U2QG5ryX/L/39brk20z x7Ow==; 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-158605-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158605-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id h2-20020a056a00170200b006e629ca2803si13669701pfc.180.2024.04.25.06.32.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 06:32:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158605-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; 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-158605-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158605-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 3DBF5283BE1 for ; Thu, 25 Apr 2024 13:32:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7F6A914A60A; Thu, 25 Apr 2024 13:31:03 +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 E497A149C72; Thu, 25 Apr 2024 13:31:00 +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=1714051863; cv=none; b=FO3ZWtAbcT5mWO7DbGBmihUT/S/I2o7ZXY2gZBMGIr6aceYFMO10WX00DoU7vL3TEPsKFj2smYNBtz50RPqDyWS2sfZlPIplC+HH6srZo7RX1wUe6j9TdHXgbixm6+qYO6h+djlZ0WIrom+zM8MLbudCZnHtIcsJGKdPI2SGUXI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714051863; c=relaxed/simple; bh=AmmKBfzyX+YfzTxOlBjU4m3Tik03AGhkaqnSEzVj3AE=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ix2g+v/W+jHBAxtSlr0iUFQNnHBkgnicNmfFlohY+MPupdUoAGnUfI1wG6NOv/LVE+Q6I/4pI3UjGsMFkgbqjF7pRwjp8aBS+es0sbELgUGVdVzUm91iOTGcteCHU2TkIx+qqLO5pLPFyBb6e/tKteai0dDd0oAArF4FqDOHQrg= 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 4VQGrD1SCjz1R5kx; Thu, 25 Apr 2024 21:27:56 +0800 (CST) Received: from kwepemm600005.china.huawei.com (unknown [7.193.23.191]) by mail.maildlp.com (Postfix) with ESMTPS id 2CC84180080; Thu, 25 Apr 2024 21:30: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_256_GCM_SHA384) id 15.1.2507.35; Thu, 25 Apr 2024 21:30:58 +0800 From: Longfang Liu To: , , , CC: , , , Subject: [PATCH v6 5/5] Documentation: add debugfs description for hisi migration Date: Thu, 25 Apr 2024 21:23:22 +0800 Message-ID: <20240425132322.12041-6-liulongfang@huawei.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20240425132322.12041-1-liulongfang@huawei.com> References: <20240425132322.12041-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 | 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 aa415ddc6c03..d2bcf926bb18 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -23234,6 +23234,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