From patchwork Tue Oct 17 18:15:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolin Chen X-Patchwork-Id: 154410 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp4318043vqb; Tue, 17 Oct 2023 11:16:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFemJOhZNGfIEkz5B2JKGt41znly+zm+P+dyWS4N4Ff4SpHdsD1BspIyW9TQOcJgHEWxAG7 X-Received: by 2002:a17:903:340c:b0:1ca:1ce1:bfac with SMTP id ke12-20020a170903340c00b001ca1ce1bfacmr3059491plb.1.1697566607510; Tue, 17 Oct 2023 11:16:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697566607; cv=pass; d=google.com; s=arc-20160816; b=vOt/cbP2+EYt8arjX+bxqnOhOBmKi5SxW8/wL4sQnt4ubkmY7lOQRzRNWL/k1KblTJ TgxFso30skAM8b/3llm6v56MxnFtnFhWz94nYy/A40zX38GhKQJHXUvM3XFBdY4+FdOH AvPYVm2+YJPKCChwprEugG229Lazs+O2PVcTPTKsHZjL9goNRmfMo5j3m2+jRBXvZDwP YJ6htgtk1r9q6oxIrf1mSGr91S/WmRD1cVFirJH41Rn65YlqXq7Dy8GADWvMhyDnsuDB ZzX99OQBfoiMZVof6xu4jEu82CtiXAuxmONIfXaC4XL+X4b1ciGxgvArdhvspo2bla83 murQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=tCkP7Cfa5udXj3hkQtCvCD+Y4NgIa13Jimac8qH50p0=; fh=l4Ehh327Rwz9qzKIAe3oC4GRTp1aamKUw3aF9Lb8At0=; b=Ql7y4cgS31noC1FICxACxW/S4NulSiPpG3yyl9M1NGyzp+ja/Dv7pr6SGQLhPHkW1V kZgktMcT0fX50ZYlSCZ2s+gxbBt4FG20jO1rjLMrYrkpHcHJ6dqoKLJWNuVolQnxkkwn 2idcq0dfqXFcR2dLCznqPg5XrMwJIyDTMe8AbBWZtAazc2TZIJhjRQpYCQ8Ru1DgvK94 J+61dkJx+rIyegZkchQn0MdCblpoKi/bKMngcRU2EzR2SEls3ZH+7W0t1V6/xpCwqXR3 PprEpFnYbNAv8JvMNr7zJyoXzJzz7lCHDv8DlXZOALlap5yutdYkMmSTDwM+kB2AEkC1 JhyA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=bnOD5gLt; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id c1-20020a170902d48100b001c77674ea94si2485891plg.434.2023.10.17.11.16.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 11:16:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=bnOD5gLt; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 4769880C9C81; Tue, 17 Oct 2023 11:16:26 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343679AbjJQSQX (ORCPT + 21 others); Tue, 17 Oct 2023 14:16:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232208AbjJQSQV (ORCPT ); Tue, 17 Oct 2023 14:16:21 -0400 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2080.outbound.protection.outlook.com [40.107.101.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4EBD093 for ; Tue, 17 Oct 2023 11:16:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=muaRN+v6AKXF2Q/GWx1IMgqVPQdH5k4GdbOmym10ktJlEMeWrRwZc82Xwu4O/PUCVQKreDhUWUBevXM+ITnpYwpyrXExfk1HzqUqpyNLGw0hZAnSaUXQ80Gr8rJD+6ro/Mtge4mPZaH/Vz1R3de3X9caJp9R1M2gjUbjyaVHE09fc/ZKQyXVEef2lpTA3XffVyANiQEMMLaQbWoyrNMyTBfTpsOXOKw/fSvP/EcBUSwrm2W2blNnkw3gR4BzHi6L+QHMOIj5/oaqONUM/j0NglNNMSCvZHDPI3N/bpmawJgB1XqUvk1lje8jBLPJ7ygy4OEhQ6rqSaDGYtcEi/0dIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=tCkP7Cfa5udXj3hkQtCvCD+Y4NgIa13Jimac8qH50p0=; b=i+bBpSQnA1ozqsqtsDjeIZ/3aP6eyqCay6x3SLREpm/TvHmjGhDXfq7BZfSkx4/J3hIophMRDxL0eQApOKWXZniR92iedydtFwWRQm9qEVb4UMxtVyY3xo2o+gOHTGIiIHH7TPQqxkM3NAZUKp4THxmoIppe1KaAhJjS0DSTL+aixgpwRsXV4AOXXzWQVOqcE8Vr4TrL47AJTZX1heBEJcaV7DDwqcnigcA/fXP5XCeQpd1Hwxq9v0cDHFkM6XvyXg/DDg+0168/epgnlHN5U17onJS+isbJgnbHCWzi5QCUwAVhrmMOpRq5wWJ0WOjLtetud/oraouRphYRY8xKQA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=intel.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tCkP7Cfa5udXj3hkQtCvCD+Y4NgIa13Jimac8qH50p0=; b=bnOD5gLt1KPoo1BYWr0KrXEGWcwDhy3S+yauOdkB0oJVxc0kK9RNp8NkZmRsX6utChpufEc77IcGkTuX4QKuvPNEGx0QUpDAlsCwV5MbqEZiuojjH3N8pptPP44/TTcOVRoT25KFHn6kfqOYZtBnBDf1n9Xvynnb7irgJ+3eQQ5znVaDOCG2rJ76Y6Z8t6kU5YANUE2C2eoenmtQlxyKDcvQfFS/3FywjRv5R+QpUCKutZBX+iS0qB2aIkALus0stJibSde9bdKFgrxNFRuHk38uSaSpbW/Op8DdZWho5nLTXjB+EgNjGbmT3OaatCbUHJ/W3KFleWqmpCkYqQpj6g== Received: from MN2PR01CA0042.prod.exchangelabs.com (2603:10b6:208:23f::11) by PH8PR12MB7448.namprd12.prod.outlook.com (2603:10b6:510:214::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6886.36; Tue, 17 Oct 2023 18:16:17 +0000 Received: from BL6PEPF0001AB71.namprd02.prod.outlook.com (2603:10b6:208:23f:cafe::f1) by MN2PR01CA0042.outlook.office365.com (2603:10b6:208:23f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6886.37 via Frontend Transport; Tue, 17 Oct 2023 18:16:16 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by BL6PEPF0001AB71.mail.protection.outlook.com (10.167.242.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.20 via Frontend Transport; Tue, 17 Oct 2023 18:16:16 +0000 Received: from rnnvmail204.nvidia.com (10.129.68.6) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Tue, 17 Oct 2023 11:15:59 -0700 Received: from rnnvmail204.nvidia.com (10.129.68.6) by rnnvmail204.nvidia.com (10.129.68.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Tue, 17 Oct 2023 11:15:59 -0700 Received: from Asurada-Nvidia.nvidia.com (10.127.8.13) by mail.nvidia.com (10.129.68.6) with Microsoft SMTP Server id 15.2.986.41 via Frontend Transport; Tue, 17 Oct 2023 11:15:59 -0700 From: Nicolin Chen To: , CC: , , , Subject: [PATCH] iommufd: Correct IOMMU_HWPT_ALLOC_NEST_PARENT description Date: Tue, 17 Oct 2023 11:15:52 -0700 Message-ID: <20231017181552.12667-1-nicolinc@nvidia.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL6PEPF0001AB71:EE_|PH8PR12MB7448:EE_ X-MS-Office365-Filtering-Correlation-Id: ec4015a2-9e53-47fc-90d3-08dbcf3d2794 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qIze+t5I9SpbROd0e698jQ49igxfzagJ2+kQXSUArM+DVFVQqOrUMqweopXEsWAzmnqpNrkOCNGfTU6UyK7J0bJX2Q/IZpbDEIFk8i4CNOF8+/Qb6hmTmfn4eMJYQPMlnmyN30gLX2B98YuVT+NF/+UjXUj6bnkNZOmSg28qGvRlvp1LqzHRpCqbbeglKTN+7fGt2VjZbdPEiSSjwedCjBOuKgXULf+vi2hSlW5r2nJ/nsg065LJur8BfFe7/P0+k0qpdAnaWr9yglDBSdJKbd6PFxjSGxTumbbKo8Z58uLKnEGAlpbXi+pkBN+zDPPmmAJLf2CaSYfTtSP9ec+gO832cCloD5An52yRD9dN5r5DOFiuYfysxP0MWzbhT2VczJGZEPpnbRuW5YMWNAex0vpcnMxXd/gl82rXvtu1yHQ87w0ayv4GhjDnP9o09mjcXTwtWNXCbyZdEQV7MJIo7mKP8O24pyrDJ3/y+GLS+l3JcWNwEuIqyZYS39Vyd/1AZJoxKfJ015T2tkX4asEaPIYW0xi8SHSPHRNahvkvjjgWIIr5UzyjHlxYCSb1mwq7ZGN4Z0Jf4Hal6sSlDUjGTR8AvV6/y+N3eCfc/PQKwzy4bh5W7WochUIjQYvqLePIM8aOpyKo3rAb7MCcoSuHsUgKXGJjuOIY0RptEasDtMWdoQLhMdx4EzHn2b94arCtOHiuydhQ3XZkYN05o9SF40BmCdzRBwnq3eD7giqYLRU= X-Forefront-Antispam-Report: CIP:216.228.117.160;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge1.nvidia.com;CAT:NONE;SFS:(13230031)(4636009)(346002)(376002)(39860400002)(136003)(396003)(230922051799003)(82310400011)(64100799003)(186009)(1800799009)(451199024)(46966006)(40470700004)(36840700001)(336012)(426003)(36756003)(2906002)(86362001)(1076003)(356005)(7636003)(26005)(82740400003)(2616005)(83380400001)(7696005)(478600001)(47076005)(6666004)(4326008)(36860700001)(5660300002)(8936002)(8676002)(40480700001)(316002)(40460700003)(70206006)(110136005)(70586007)(54906003)(41300700001);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Oct 2023 18:16:16.4872 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ec4015a2-9e53-47fc-90d3-08dbcf3d2794 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.160];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BL6PEPF0001AB71.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR12MB7448 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 17 Oct 2023 11:16:26 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780027603230490336 X-GMAIL-MSGID: 1780027603230490336 The IOMMU_HWPT_ALLOC_NEST_PARENT flag is used to allocate a HWPT. Though a HWPT holds a domain in the core structure, it is still quite confusing to describe it using "domain" in the uAPI kdoc. Correct it to "HWPT". Fixes: 4ff542163397 ("iommufd: Support allocating nested parent domain") Signed-off-by: Nicolin Chen --- include/uapi/linux/iommufd.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/uapi/linux/iommufd.h b/include/uapi/linux/iommufd.h index 4a7c5c8fdbb4..be7a95042677 100644 --- a/include/uapi/linux/iommufd.h +++ b/include/uapi/linux/iommufd.h @@ -349,9 +349,8 @@ struct iommu_vfio_ioas { /** * enum iommufd_hwpt_alloc_flags - Flags for HWPT allocation - * @IOMMU_HWPT_ALLOC_NEST_PARENT: If set, allocate a domain which can serve - * as the parent domain in the nesting - * configuration. + * @IOMMU_HWPT_ALLOC_NEST_PARENT: If set, allocate a HWPT that can serve as + * the parent HWPT in a nesting configuration. */ enum iommufd_hwpt_alloc_flags { IOMMU_HWPT_ALLOC_NEST_PARENT = 1 << 0,