From patchwork Mon Feb 5 15:32:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robin Murphy X-Patchwork-Id: 13545690 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id E463AC48295 for ; Mon, 5 Feb 2024 15:32:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6BB996B007E; Mon, 5 Feb 2024 10:32:49 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 66C8B6B0080; Mon, 5 Feb 2024 10:32:49 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 55BEB6B0082; Mon, 5 Feb 2024 10:32:49 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 469426B007E for ; Mon, 5 Feb 2024 10:32:49 -0500 (EST) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id CD39E14062B for ; Mon, 5 Feb 2024 15:32:48 +0000 (UTC) X-FDA: 81758142816.03.59DF5EE Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf13.hostedemail.com (Postfix) with ESMTP id 1A94020031 for ; Mon, 5 Feb 2024 15:32:46 +0000 (UTC) Authentication-Results: imf13.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=arm.com; spf=pass (imf13.hostedemail.com: domain of robin.murphy@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=robin.murphy@arm.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1707147167; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references; bh=zrG+IagOBiubW1VKctzKgCdqhdJSXLuSfErZQ+Naovc=; b=tbLwvgNvaXjUBwq0vKNtvE6vfIHKlBAxV76oaB5E7dlMHUMKxrbB9mpUtn6sGWQwZVFDrI gIFr//cInRQHBVKyjZ6vF256HkdOfStaV7RwkVCZyDXYSnVHc/r1QovZ64beSRyzqD8bCt cVtBeS/V4ywG3HA24A2ed/7c5C4eHc0= ARC-Authentication-Results: i=1; imf13.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=arm.com; spf=pass (imf13.hostedemail.com: domain of robin.murphy@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=robin.murphy@arm.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1707147167; a=rsa-sha256; cv=none; b=Xvq9oDPRGPrzjk4Lkzb1QaYtS6+9AF5l2ZRS3cXljWl9oShxu/CsOaSjqoaMVwBbueJ7Il EwUq2WGvcSD4WvuY8WtCibOMYIxDnFJAwsqnJA4INnB0WkhOUqBEy6lXaQq4LjzQ7B8arD rYu/YzIue26aYctW1UTyb0p9YXP5NMo= Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CF7771FB; Mon, 5 Feb 2024 07:33:28 -0800 (PST) Received: from e121345-lin.cambridge.arm.com (e121345-lin.cambridge.arm.com [10.1.196.40]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 05AD03F5A1; Mon, 5 Feb 2024 07:32:44 -0800 (PST) From: Robin Murphy To: joro@8bytes.org Cc: will@kernel.org, pasha.tatashin@soleen.com, iommu@lists.linux.dev, linux-kernel@vger.kernel.org, linux-mm@kvack.org, rientjes@google.com, yosryahmed@google.com, john.g.garry@oracle.com Subject: [PATCH v3 0/3] iommu/iova: use named kmem_cache for iova magazines Date: Mon, 5 Feb 2024 15:32:38 +0000 Message-Id: X-Mailer: git-send-email 2.39.2.101.g768bb238c484.dirty MIME-Version: 1.0 X-Rspamd-Queue-Id: 1A94020031 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: w4bwn68fgjykiscjgue3odfkgfduh944 X-HE-Tag: 1707147166-733974 X-HE-Meta: U2FsdGVkX18lfMnLhI1Kx7hiplwanN8kjBiB4/X2N9E1Y3DlrW/s3kqZ6H9C0FfzqgLjLgbiWttzG0zWd4hWeRzcqRVLyKz9rM/TtZU1rwM+iD1fVh7SykADHAsUqQfIbA7l93z7mU7l9OM9XC/X7hvCZRSFKv5lgmL2O3vbCc+BiWIIwo/jBCFxYejYTSw1yY2EY+EfR5LXY2SCVBV6+3CxRDnOoelU5fsij9CaDgrkwHGLQoahuR10ojhGcw1ixOfrNagXovq2MJkM3/zV4m1zmLLzzNCGbetlVzr2TQm9wv9Fmx6vu9i+82eXuj+O4kgYXFeXXibjAVonYZ0gfBPyikhp0ZZU5lftOwHIsW31mN4CM3QmXKn1Uy+pWC6RNFr1yv0w2VGeqk/s+ph5V45PPxHN84dxNWyDRSgCB/3xAkh7ofYWpcPUyfyyxdJg8fhF8kK/IfCXzzb7TFzFMp64/ht42eAvw5PoEGzgHeHOGVnzXIsLbq09D3Fpn0zx4KZeh18lWI91xuuGQh7MUEWMsWZv1zHH8rz4Svn1ugawOmb5PRJDUvp2oBnEaZzWT29wYQutTuS+g9+/LsRZjIRQrohdgFp+tPhj6zJZlO4vCxpuSOq289ThQFoIboOCTvOFI70toQm3vbL781JBd8YMnDUopFKVb4wea11NEIBranGpRQ5lykEsq48Os0s3QVLIKqqmMxMWNy1WKbC64vPUpWB3z8gu08iIKcgTu/ztc/I4rtvyKL1eA1H/XyBH3qQNnTTvbCw0Nd0yR/KwbLszwEbrWiPC/VckVtuhcJISc6fEpdPMidIyOZS5C3kPkFFhtriq1DXihEeOnESdJPLhYGixNdcZKu/yA2V1EavIn2z7bhoBrLTuxudzNq1nkP92L4u3Bc32VzFJW3icXpBLLruDBqaxFV9iD7lMvyXWTP/DQeORhKapt+1r4t7POLAHi668xrp6RN6d+Dv WVTfxH1k e53AtdZvyin24nzPtCOW8nuLTWkrAsGLEzigMLeYIrFbHzb0fv6YMGbvSkhMIlo3bP5iZlibqIhR0aPskq9iAtAzUtTqEHsLCxMwV6S6k8otZb+cQUMJ9MAm0bmrU0i0sZB4FUDv0fvzXJQxs5q2k7IE5HpE91DLXIfxWZPSRer+Da5Ir9zI3HknRC04E85Oe88Jziw9jb6Eyhm1hdwAsmJ5x0q8O2Y6JjGBcrqAPZDeaduqbAwdYp4ThkxO+bjnS7twH2FyVA72mvM4= X-Bogosity: Ham, tests=bogofilter, spamicity=0.019425, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Hi all, I decided that Pasha's patch[1] was a good excuse to tackle a bit more cleanup of the existing IOVA code, so it can fit in more neatly. Thus to save time and effort I've taken the liberty of putting together this mini-series as the version I'd like to merge. Cheers, Robin. [1] https://lore.kernel.org/linux-iommu/20240202192820.536408-1-pasha.tatashin@soleen.com/ Pasha Tatashin (1): iommu/iova: use named kmem_cache for iova magazines Robin Murphy (2): iommu/iova: Tidy up iova_cache_get() failure iommu/iova: Reorganise some code drivers/iommu/iova.c | 143 +++++++++++++++++++++++-------------------- 1 file changed, 76 insertions(+), 67 deletions(-)