From patchwork Thu Nov 14 19:55:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Gunthorpe X-Patchwork-Id: 13875587 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 97AB5D6A22C for ; Thu, 14 Nov 2024 19:57:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:Message-ID:Date:Subject:Cc:To:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=e8Dtk2wvMGrE937U+nF+QuLqyJB0q+rvMfwl4icTFyc=; b=XbFyD40XbQj2zihNcK9U+ZDQuT ZLHK/oGB7XVOVNwMvhkaofwG+zEZmAJBNu1ze9fy1C9lwHPBw6KwuZtaKjTysoRvXf/HvGkC5GiR3 TXMHdWKbiNW1bE2TV2tSuUDbL+jvK9K2WfPJFApEA5XxtsD33A1w2msKmtMVD38Ztq37REDuj/7/p VuetjFdFLK/DdFBjNVwHv/6NEbqPsmZGR6JWzxeII02LEO0xB+Pc+Q6iGh2EO8RITRRvXm2fZBPo8 cjDw0AqXGs5de9DNbopety0ry+jMECHbPioTrIjCrgG/0pE4vVpoCrDkadh8DfXPdRsOzZAjasweJ UhPq7GKA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tBfyA-00000000fWu-1vlv; Thu, 14 Nov 2024 19:57:34 +0000 Received: from mail-bn1nam02on2061f.outbound.protection.outlook.com ([2a01:111:f403:2407::61f] helo=NAM02-BN1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tBfwN-00000000f77-2sJg for linux-arm-kernel@lists.infradead.org; Thu, 14 Nov 2024 19:55:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=iZGR/QRyFxybd2sYdVB/ucdgC5ei7HU0/TkXrImCTG1eMA8sPGgNG7Oss1VTN9XXfWbSYBDG/nqDLMDDlL5Zs0EUetS+TLBizT5IZLkw9Og9OE6QP5LoSzMY1ZQPdMa9DWWZaYhangcHxW8HMLJXZt3nQ6tOo6l4S31NsEWdCLeItH7ml/CmFwcVHx8M4zXQdI0FlKmTJhexLoGII1NJeoVJol2tqK+0gREEtF6cI7lLy2aRTsLeqdwRHWI6m9SQgASp8Fj7Pzv4DyxysW34F9JgbMpKzzAT4ML8hliA2akm1mBuJ7mB4acxRypS3iPZhZfvGSDO9ItFO56QqdYHcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=e8Dtk2wvMGrE937U+nF+QuLqyJB0q+rvMfwl4icTFyc=; b=wkO507jUzKgehq42sREseOhbm76NdCTHdA0VZzrCWLtkSi2dIe6MndJgYWA0sW8FrMEBmvo8C8nZOkwksuOcv9xQQ22lJx0ukY2facVTRt6tx/nj2sQpwgMoBUifHsY6xXFvB6nv7J/Dxr+ctsDuxbGbM34C+gqUZYHlQpWJabDvsjoSfNKPZngRTto2oxU2pM4YFX5xXwI5SxBaEX2YbCQpjMoCXLHA0Aw1+GBBhX9tCt7F0RshuH3wO+YPZiTKF01m2lvNeKd3K1F9jdZZXKwR8RVzMab2Q5r9BNn94f7qw9LiRqyM+XD7LazJ8nmtA0u4cM3A2hhX4gkUhEI9VA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; 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=e8Dtk2wvMGrE937U+nF+QuLqyJB0q+rvMfwl4icTFyc=; b=aeNqTnlaNVdSqMHzqXAX5SH0ZL1wsbv2EVhA/E4K9raeHlc0ap23ISA6Wtt2gdnKsMsv86SymkgipzzkLLfWc1YWRvM/i1N0CnqUDHT4pzYKMhhzaXtLdSwr2sBiC0ufchqOttoRPrIjLc9V+ptzyVqG0iVNHrEeBM2HCad000Do3EeiYJ1TiqELxLoMDusP9eR9ug5oEi2KCjrqSGZiZtG7N1juSuWstz70wmdWs5yXb/VsqTOEotdlUYF9St1B+GR7lxQNLo5i568+0H1XP7y0OUAuaCSYyjYAZs9y/v5pJsVwoM/Ds2Vei2npZSSEZM4zFDXtpGDBqY3HaOg+Zg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from CH3PR12MB8659.namprd12.prod.outlook.com (2603:10b6:610:17c::13) by PH7PR12MB6563.namprd12.prod.outlook.com (2603:10b6:510:211::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.28; Thu, 14 Nov 2024 19:55:33 +0000 Received: from CH3PR12MB8659.namprd12.prod.outlook.com ([fe80::6eb6:7d37:7b4b:1732]) by CH3PR12MB8659.namprd12.prod.outlook.com ([fe80::6eb6:7d37:7b4b:1732%4]) with mapi id 15.20.8137.027; Thu, 14 Nov 2024 19:55:33 +0000 From: Jason Gunthorpe To: Lu Baolu , David Woodhouse , iommu@lists.linux.dev, Joerg Roedel , Kevin Tian , linux-arm-kernel@lists.infradead.org, Robin Murphy , Suravee Suthikulpanit , Will Deacon Cc: patches@lists.linux.dev Subject: [PATCH 0/2] Rename ops->domain_alloc_user() to domain_alloc_paging_flags() Date: Thu, 14 Nov 2024 15:55:29 -0400 Message-ID: <0-v1-c252ebdeb57b+329-iommu_paging_flags_jgg@nvidia.com> X-ClientProxiedBy: BN0PR04CA0063.namprd04.prod.outlook.com (2603:10b6:408:ea::8) To CH3PR12MB8659.namprd12.prod.outlook.com (2603:10b6:610:17c::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH3PR12MB8659:EE_|PH7PR12MB6563:EE_ X-MS-Office365-Filtering-Correlation-Id: f95316bc-4b88-4a12-0a85-08dd04e64c37 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|1800799024|376014|366016; X-Microsoft-Antispam-Message-Info: zzVKyC1+UCLwqiPCAPibDi2sqrX0EkjXpay/1SVWzGsPkPey0lyiAJvykwNNf3wMhhYOjQmlZuqoELJ5zHSgCt/QmsMV48k3rFgjXtNR7tFkSMVFHUfc9SltTkOEHyxtgYs2pzsqvr9BGaiNr0kxQ8/ZG5DxpxSnk0hYVP+WsryvjDW69JV0wLky5VQsDkjs5tm051e6tRhm6H0le7Qxn2HrlhSBbnKPaSJfXmlaVr4apIQQOUUBfZfOa5VBJ2s0Z/E6Pe+Z1NjehMJ28bMkv77BQGNH+S3TAzUeiCQw240kevIAC0VmH6RxSAApD1AqRFQf+HDztNvKdkaDzDy2Y5Nsk9FnFkEfAkuqxoAtm2iKQ3jnwx15lqu3wAx+aYv1MElXJH4FDtfPVh0LAnMZfpZS26WJZHEV7Mm+1mEPDg8aXVlBpc7WaxIgp2IobFG0xXupQBiqywEKA3k1tKdtpAbWlqB4ErGmD3BgTNnHXpJlXeeD56qSK5CKwLAGsATDAf3gLyqh3rgN/8HyLRlw6IqN/BhQDgiutSe3qbzEg/IpkstJSZxDfpWRLX3y3m1arSzVF3I/kNXE20XJxlL7vuJb2MMwB1FbExap+IUgJsSzPXAZfmzAaq23Utn1ADdBQ2coCWDFbKVwch2VWgnQNgsuXrDYdg4CpmlJxnVufCE6w7i8QYDv8cn+O0HRgKlJeJp5QLEtNOj179OGEduFNcVX/UMIjwxDklgSQ47Ohwc4qttEN0v8ImCNIwlHvQ/hFIh7XoFlZ+iBi5753OxWFX2WMZ+gqcC00e0TfJIME3oCan+mas/oFYVoK6CAdYYXWa+2Bb9ATS1djnhq2tAshW/SZIXzJ82bATXAIrwfzFrlWmrB0fwkrCa9N4fokMeTrrcrFUtK95f2T3daxQgIS/vdUXu9oZoAczltKh43R7CZSU7++qxAigf5oSEwzmybHbFgTYCn/Ot32k6MPp0Az6MpzxT8uIIcnm1Iza0O4ie8QhjZAs6MLMRSAdB4bPUvtoIs4nvrh9v94bqjSVqAJyRVx+6aJNBerY5EOhRS/gbhdC9ME2unjizqbrRNrtgNYS7ftee0XNzh9lsZPzemIqKyL9w1YociIHea5LJqpBxqFI0Fbxov/X0GhEuDExbYUlV2M8LjCzjBXXWmc4fR15OToER68RN9zYkDO5LfIsRgyou3synrS6IzpVPeIt0xq1jS+wXoYVawwcVrGCW5u0GgmEWO+voUJrTCkoE4RExdh+66eenbsITbiE7mut4FiHvjMsT3pb851c/iIFQ9H7zDN/2tQDTzkZ06/DvA1TN6h1QmXCgVUhxAEcxAFYI1 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CH3PR12MB8659.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(7416014)(1800799024)(376014)(366016);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0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4/VHDjB6foBsKL2kw1X3xuKqAQqfGURWUd5wp+tZeRK7HHtRUiPQvQR3Hji3E4t5yOz0qgAHbNFJpV1ELsxbP16vWUvU/sNEWwkwbYN5WbSzpsva91sLAKKX/fufLv3fgUoRxVwMgrKgRu2/l/SCxiage7YgX5JrrP5b2iuixJy86Ihb6asK9dwl5+m74BjlfF8MAFhPfDvUdEqId4FqqeO05MU6VZIrY21+BtX1xuO1b01hdIvdlKiDiTIt7T5ygUP6H7hnLXQMT+FJGs7T86JbDmr/y5H60GPy71P9Z4jtU44KIHCXcEU3gP6mnru8jtWzRqJpkXEsZBxF35BPCn0G7pZBgiY/hEu1bwMx2qJqcLeb7md3s3vjqS8jjBdu801JNGQquMkEi58V7lPTOZ8BZ1rQRhpbEQQOlCKXD85bceYlOC/kLpDVSiJcni6S6IV5dYA6avK0tVf5KHVrK3Aj0waykoOoTHzaKk5+dwx8kPHU= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: f95316bc-4b88-4a12-0a85-08dd04e64c37 X-MS-Exchange-CrossTenant-AuthSource: CH3PR12MB8659.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Nov 2024 19:55:32.5591 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: YpC3ubUl1Y6W1cqMuebyNzOy6AylLXzAJBCrQu/wOp+kY/LpexKczx9gQVqMBNOZ X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB6563 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241114_115543_725868_6AD41C06 X-CRM114-Status: GOOD ( 10.67 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This tidies some of the naming that has become messy this cycle. This series is on top of the iommufd and iommu tress as there are dependences on the iommufd selftests files changes. I would like to push this into this merge window so that the next cycle can have the folowup got through the driver trees. Otherwise we will again have conflicts and problems. I have written additional patches to consolidate the drivers to use only domain_alloc_paging_flags() instead of implementing both. So I propose sending this as a late pull request in the second week. Jason Gunthorpe (2): iommu: Add ops->domain_alloc_nested() iommu: Rename ops->domain_alloc_user() to domain_alloc_paging_flags() drivers/iommu/amd/iommu.c | 9 +++---- drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 9 +++---- drivers/iommu/intel/iommu.c | 15 +++--------- drivers/iommu/intel/iommu.h | 6 +++-- drivers/iommu/intel/nested.c | 11 +++++++-- drivers/iommu/iommu.c | 4 +-- drivers/iommu/iommufd/hw_pagetable.c | 16 ++++++------ drivers/iommu/iommufd/selftest.c | 15 +++++------- include/linux/iommu.h | 27 ++++++++++++--------- 9 files changed, 57 insertions(+), 55 deletions(-) base-commit: 6143bfc47c18a1505b8f4cda83432c24c842a6ce