Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp813909lqp; Thu, 23 May 2024 00:05:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU0W952c97IJmFHmpwjSavTTsKy2aQwKMinmL30En+LAbr3z7WL0aE52DddG1wSOU5U1BOdpL1X+C+eURKMRGSKO3cex3wYe/7wiiw7tg== X-Google-Smtp-Source: AGHT+IGV1en9FCNqn8GKzu+uFrW0Lv5wIYYh1Qv8PkIgn5dGiXFRFHLB9F2WY8+0wOO6NvmykIKq X-Received: by 2002:a05:620a:22ab:b0:792:bf10:3ebf with SMTP id af79cd13be357-794994b60ffmr397569385a.56.1716447953644; Thu, 23 May 2024 00:05:53 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-792bf33b158si212469085a.400.2024.05.23.00.05.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 00:05:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187071-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VvFd+te7; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-187071-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187071-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 508D11C22190 for ; Thu, 23 May 2024 07:05:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EB98113C9BD; Thu, 23 May 2024 07:05:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="VvFd+te7" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 321AA13AA24; Thu, 23 May 2024 07:05:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=198.175.65.11 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716447946; cv=fail; b=A/wsvXVRoGEd2gZRAGK78851NchsWLmCBJgdZ36WcyfmW1cJHDrRbSBowDrnIrPvkicShFwDbDkroa4RMX2Ql2pufKY5mBavjt9gYEaYspKWgBDIIcXOyglNBeG7R3Or+JAtd2FVaNG3P7Tcz2cIEbRVbQzwDulxAss0O06h2bQ= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716447946; c=relaxed/simple; bh=L0zHpDrP3h4mB/yFqb0ej7cZ6eiwGGVU2uUpdHbBluE=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=BuDzyDTX+bBHl/XzTOI2cDQ0E31fQDzd1mwl1dIzwC6N6WrhCeE+rNKOWyEY6gDbAWA1v9x1IHHnkyHp7KwMax3gBl91qiZSy9lWoxLZr95p2gUVXHOG9sGXSokenRGEygR9jIRFm4XhZynPq5R9O0OAdE+y2dtlAOvKzRvotXE= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=VvFd+te7; arc=fail smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1716447945; x=1747983945; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=L0zHpDrP3h4mB/yFqb0ej7cZ6eiwGGVU2uUpdHbBluE=; b=VvFd+te7xNycDnjM2tA7mXPmURpLmNLkV0JCmhS7Z3+Rq9MPRBb8BTyF W/oOFEGRbVfuM5K1tB71WlEZ0RM132GIc8gsCvjc9wqA2Q+akRNxK+WQI Yf5ziqd+xh8wHur81mZ+dvCIQXy71/1WErBpvG05aPMzMR5rLo9AM5hJb SuSNAoFLB0NVw9UESsvOWc3QC2mhs6nJO1qhJOSDFEegxZwiBNK9ZMARp OGZsyJHxHh5OAv9f5hDk46kYf+LnoJVHc98SIfT6aM8fvwDl4rXTNQ5tM iO/5Hz3wdhHLYYlOP1s9+WtyITiMmIbLbtmoFfPsi+kYml32U8MdQ16oR Q==; X-CSE-ConnectionGUID: so7oISVWSu+9jK9MTIbsDg== X-CSE-MsgGUID: KoXzJtFkRailEimssNeU7g== X-IronPort-AV: E=McAfee;i="6600,9927,11080"; a="23315809" X-IronPort-AV: E=Sophos;i="6.08,181,1712646000"; d="scan'208";a="23315809" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 May 2024 00:05:32 -0700 X-CSE-ConnectionGUID: KSwrZnpNRUSBw9+xN2AAbA== X-CSE-MsgGUID: 8DUk1Jn+SPWs6Frxbd2/cA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,181,1712646000"; d="scan'208";a="64792295" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmviesa001.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 23 May 2024 00:05:31 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 23 May 2024 00:05:31 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 23 May 2024 00:05:30 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Thu, 23 May 2024 00:05:30 -0700 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (104.47.73.168) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Thu, 23 May 2024 00:05:30 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k4sP0oRFNSV7uclog7S9M8cfHD8rIsv/sxn7hgDkteONJnKnNhrancKvoSdmB1KmrdW5g+B1pZWnIjj1bsmwmyFNSCAzzftDS8x1JrLPvc5JTvm0d9znp5wdK77tRTiMEYqzmGWrwG4Bq2E7IHcyEUwgJWLvSVDC9aGUG8nVWqeGVlFUi8Py13nMXmAKj6iAwO/q62XyM/033APUyA4aBPxEJn/UX9Azv5VT6vuvXpBv9n0RIseqStVbMqvab4b5JIyrT20L6c/9zKmGve8FJ4bDtksvKSaSyAk4SxN+tSeBXrOToBYVHB5shojqwhqbnUCT0PZz3yCu7gMNRUhJnw== 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=y7F8Gkv9IOvaki99mYY08hVPD2Ro+oUTNV8O+gH32tA=; b=h/6b7XsbO6avR474x0+/uxd/AbLhIz5uSeD1uaU5uHX5Ekw5SzE40+Dp5oicAd56FU7ymjlPyHpu2uWbGktYKhH9PPXSH46179tzkui0nzlxfw2Kcw/NKcIq7R5uwTpqJy0JCXBEuUEqLQCz89e+y40dCOcrca/VS65kwTt5MYw/dAly9+ejGXBzi5DMvCUqAmzXi/Y/aIPPTaqp/qJpkvF1Q57ZzcBTPXMpEwnbFJgEm0+NHZods9fMaeGQsJ5A/2bqNNOoO+Rafv2f/vBjL3AxRBLd7zrqT60347dtSKbELz5GqkZ/I1q/pSP9lq76KIIP/HhZ581y/raffbw88A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from BN9PR11MB5276.namprd11.prod.outlook.com (2603:10b6:408:135::18) by SA2PR11MB4827.namprd11.prod.outlook.com (2603:10b6:806:11f::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.22; Thu, 23 May 2024 07:05:28 +0000 Received: from BN9PR11MB5276.namprd11.prod.outlook.com ([fe80::b576:d3bd:c8e0:4bc1]) by BN9PR11MB5276.namprd11.prod.outlook.com ([fe80::b576:d3bd:c8e0:4bc1%5]) with mapi id 15.20.7611.016; Thu, 23 May 2024 07:05:28 +0000 From: "Tian, Kevin" To: Nicolin Chen , "will@kernel.org" , "robin.murphy@arm.com" , "jgg@nvidia.com" , "suravee.suthikulpanit@amd.com" CC: "joro@8bytes.org" , "linux-kernel@vger.kernel.org" , "iommu@lists.linux.dev" , "linux-arm-kernel@lists.infradead.org" , "linux-tegra@vger.kernel.org" , "Liu, Yi L" , "eric.auger@redhat.com" , "vasant.hegde@amd.com" , "jon.grimm@amd.com" , "santosh.shukla@amd.com" , "Dhaval.Giani@amd.com" , "shameerali.kolothum.thodi@huawei.com" Subject: RE: [PATCH RFCv1 12/14] iommufd: Add IOMMUFD_OBJ_VQUEUE and IOMMUFD_CMD_VQUEUE_ALLOC Thread-Topic: [PATCH RFCv1 12/14] iommufd: Add IOMMUFD_OBJ_VQUEUE and IOMMUFD_CMD_VQUEUE_ALLOC Thread-Index: AQHajVVtTIyOrzFsYEOvw2C4tndA2rGkop0Q Date: Thu, 23 May 2024 07:05:28 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BN9PR11MB5276:EE_|SA2PR11MB4827:EE_ x-ms-office365-filtering-correlation-id: 965d35d6-b0db-4a24-1bac-08dc7af6ba19 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230031|366007|1800799015|7416005|376005|38070700009; x-microsoft-antispam-message-info: =?us-ascii?Q?F9SedGA4xqavpmdf1b9THN71mTsG01JkGHwtUX1lwPrBqNuZnLtvaKS01vAV?= =?us-ascii?Q?gjYLubvmf6QTbZWUvQ31iFRhiNRAaikqwZebQy324XKMTL0m5FxfHQh62P8y?= =?us-ascii?Q?nrc4KLOxFKzZw5SXgiiJ84wxpMhU4Ztp5HKH3Is520GRvTlQP/+ag7yUe4l5?= =?us-ascii?Q?yW9KK1/b6Ty5kQTbWnRu/0jHzou9tGGJLX40MMcwvD1iIYP9OZGbWK93IXVK?= =?us-ascii?Q?AqtelwevpoNl0HZzyyh1Z9ll4Q5n0gi3PDfio4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?Q?k2nCTq7DIO5tlZNSL5uRn1Phuz6aaauuoQY2kSQFWQY/JX2h01SZ/d9PtTnm?= =?us-ascii?Q?2idtbTzJtzNIggvnAR3LSUtqg3z/tmYMxE588S+pIzs/ZyAFDcLa8Re0O8UA?= =?us-ascii?Q?cw7weCNPNBF+W6XtEd9KaQE6HxWxH7oOSp6sIRDPQ0q9SUq6GlIymfjtf/22?= =?us-ascii?Q?vQZ43/Y6rLZz00nbWUkDhwOURSE/N+ITpPp9bDrOlV0PVg=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN9PR11MB5276.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(1800799015)(7416005)(376005)(38070700009);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?B7v0S3anpRQ2FsHYpMsWfqGNEdeq6uC+Nqz/mk/vjtWjoqsRvyovUfOU8gfu?= =?us-ascii?Q?tqYxNQzrvhT7eCdLkBgi60r7+rpEZ7H0B9kgQlaw3IFdJ0hgVnBmdK9dfoko?= =?us-ascii?Q?dDJ59eEuMSU6gbQxjHbjFXmuLF8YiCyE5FOs5O1YGWbZbgI6oIG60m4utOdE?= =?us-ascii?Q?FmUr9BcztHZ0iesFAhlrpKoGNMmVUpNhiJ0YL5W+JyFvIJJRNNwrVPLnP1RG?= =?us-ascii?Q?w7n9UXW4TM6sjjuLg1rtR4hauHt6nrRGMmdO4z83TvEU8hTW8A81Vmd5/h5m?= =?us-ascii?Q?o4RnPtvTph5BACjoeZ474s+5lC12b98jyhMI2m1PG8nygGG0/yL8Eb6B6nSW?= =?us-ascii?Q?vPe2BusmR36Pf5VrE/4i5kKFyeFRn7Ce3jhUE6QW0ps76OUzkaSbyyJ+qvNv?= =?us-ascii?Q?giAzVXgUbubRWIzz8d6ASBj0etpZYvV8c/qlDVDZqMz5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55HyXIA/FuZMzAUHUHrLnFH65ZZG4OJYJRCrmC7?= =?us-ascii?Q?WK7MrT458cbPif1zXrrX3faMEGEL4xWRsEta5AnEQy+IDjyDKL5dGoZzXbmY?= =?us-ascii?Q?Lx/F0wjGv2dTmOVDIBkZWiC5WbvglcyKmbyAxR5t8NdnnpTLM/YlpOu8RQxW?= =?us-ascii?Q?UYjulSGq4pMFVFcTGYxTGloBrNV8nhn283VRQu1GaE8BZr06dXpHLMluXHYQ?= =?us-ascii?Q?J94MugA7SkmeLVBamdk5oHXQ/y3aVYamIUyJSXgX?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN9PR11MB5276.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 965d35d6-b0db-4a24-1bac-08dc7af6ba19 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 May 2024 07:05:28.2481 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 0/kPTTrsGR0plIHu4jxZSQ5T+jwr+5AyM5JNp+1blKAbPGBCpOOhj/JWo/oNuTimAz6cwwDIw2nkdav9irUfIQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR11MB4827 X-OriginatorOrg: intel.com > From: Nicolin Chen > Sent: Saturday, April 13, 2024 11:47 AM > + > +/** > + * struct iommu_vqueue_tegra241_cmdqv - NVIDIA Tegra241's Virtual > Command Queue > + * for its CMDQV Extension for ARM = SMMUv3 > + * (IOMMU_VQUEUE_DATA_TEGRA241_CMDQ= V) > + * @vcmdq_id: logical ID of a virtual command queue in the VIOMMU > instance > + * @vcmdq_log2size: (1 << @vcmdq_log2size) will be the size of the vcmdq > + * @vcmdq_base: guest physical address (IPA) to the vcmdq base address > + */ > +struct iommu_vqueue_tegra241_cmdqv { > + __u32 vcmdq_id; > + __u32 vcmdq_log2size; > + __aligned_u64 vcmdq_base; > +}; Is there restriction that log2size cannot exceed 12? According to patch14: + q_base =3D arm_smmu_domain_ipa_to_pa(vintf->s2_domain, arg.vcmdq_base); + vcmdq->cmdq.q.q_base =3D q_base & VCMDQ_ADDR; + vcmdq->cmdq.q.q_base |=3D arg.vcmdq_log2size; It only converts the IPA to HPA for the starting page, assuming continuous host pages backing a guest cmd queue including multiple pages. but what guarantees it?