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 01F36C433EF for ; Wed, 16 Feb 2022 17:34:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=jzDAMvRP22FhG5bgVmvgeMlHo6zXL14Xu9xLuwlDRh4=; b=LxrE1Ma3Yo2F8j upL0738TJg7G3tCfKkxP3Z+CvaWGP9e38ehmliv31v+yI3RaRrK2hfhHPhSyvnoMDEMmR8+TGOgYQ 4fGgcA/qUg1PAn5eX4lhKEaNuVx47xFCga6D0hOiYF72u3wEw3Ne/1MsjnaGgQ5TUq6OAHr0b4eDl uZF+pb5ujIv66vevoVWmbl63gmi0W2FmSQceJfbuPMMAWanYlwJoHQ63nNq7MYwjhTI8WcBgeBeLU IGcaQKfo8eHkgGaK8/51g+zPPaqX2TgGNOsT9ZSGP9U92AfP4VXvsv/NkfxQ6zjXtdsZr2fQwZDid 6JsPST/66dD+ndylxbtA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nKOB4-007y20-H8; Wed, 16 Feb 2022 17:33:18 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nKOAs-007xyh-TV for linux-arm-kernel@lists.infradead.org; Wed, 16 Feb 2022 17:33:08 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6E79D61BBB; Wed, 16 Feb 2022 17:33:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8FE1AC004E1; Wed, 16 Feb 2022 17:33:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645032785; bh=6dNhb+iVozVV1wXifPCa/cOAvDugZNaiFtN5uUrdAXI=; h=From:To:Cc:Subject:Date:From; b=T721EpLIF3e9Pe5IDXMeVolzDnG6nZ8uNmqls5rKPoKUw0QGiFZeSX9dsVUYLzEvn 6B1D5TDphNNJiu0+wSWFaOerzMNd5OvQy6oqNVcALR2CiDebb7kDSBzHj3QqlbQ/ZL Kb6d0qfFCEOAqaxeiVAm6GVulgCL1NO4iA830sX3RwtY9FLqp0E/ZddpFkOn8GVrHd FWSDN8P+8uQU0ZeO4E7H+ICqk06f5QbXzexKABMsrnz9nc7Gr+Hz9UjX+oAlkDsERn 2ZOppNFdCIjhCzcE0m2vNOQ6v32W6GL11o2vj246uc2AF9/O/x8rNr67QcKYVvudZp A1t+TSMZ+vnrA== From: Mark Brown To: Catalin Marinas , Will Deacon Cc: Joey Gouly , Branislav Rankov , Vincenzo Frascino , linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH v2 0/4] arm64/mte: Asymmetric MTE support in userspace Date: Wed, 16 Feb 2022 17:32:20 +0000 Message-Id: <20220216173224.2342152-1-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1814; h=from:subject; bh=6dNhb+iVozVV1wXifPCa/cOAvDugZNaiFtN5uUrdAXI=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBiDTUjonFisr4rKUX695xz1Yzkv8xL/+8waTtn0lOE TbFf71mJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYg01IwAKCRAk1otyXVSH0NfWB/ 0Z+4iebL+DS2G95+Tb62CUrGNmjvdadVXLBkwDZRWf9UX2KNyQmhWCKYY+f5kxudeQy8aJtXU0Mm1M Gm0Z15uf7v7fj2jJMExsI3hPY1k3tGhvRsENi/8x+aj+o2381Pk9qwZoFMgIOtq3UN+MNPgB0H0XzZ jJ8y1WqyHwnfq6W92FueAtD08W3MOaEkj0Unxw6lKXik4CLxKqp8KGZiUcyR5vkQz3Vg4ZVH8M6EvX 5EUTBRSv/SYE1RfKX+Hst31lRLgr2WUz72nts+76uLnydu6L6EJ7+VdkckA5Cg84aCGjoyx+B5DwSN 3CT5DTbnO2nBI/KzKU6yDT/7ol6SwE X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220216_093307_010933_887C0EBD X-CRM114-Status: GOOD ( 14.59 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org MTE3 adds a new mode which is synchronous for writes but asynchronous for reads. Currently we make use of this within the kernel but do not make it available for userspace, this series extends the existing userspace ABI to allow that to happen. There's no updates to the kselftests for MTE here, I have some work in progress there but there's some overlap with Joey's work extending the tests to cover some additional cases and there's some fairly extensive assumptions that need to be unpicked about only being able to generate one type of fault at once. I'll clean that up and post it later. v2: - Add details on mode selection when multiple modes are specified in the documentation (dropped Catalin & Vincenzo's tags from that patch). - Correct load/store inversions in commit messages. - Rebase onto v5.17-rc3. Mark Brown (4): arm64/mte: Document ABI for asymmetric mode arm64/mte: Add a little bit of documentation for mte_update_sctlr_user() arm64/mte: Add hwcap for asymmetric mode arm64/mte: Add userspace interface for enabling asymmetric mode Documentation/arm64/elf_hwcaps.rst | 5 ++++ .../arm64/memory-tagging-extension.rst | 21 ++++++++++----- arch/arm64/include/asm/hwcap.h | 1 + arch/arm64/include/asm/processor.h | 1 + arch/arm64/include/uapi/asm/hwcap.h | 1 + arch/arm64/kernel/cpufeature.c | 1 + arch/arm64/kernel/cpuinfo.c | 1 + arch/arm64/kernel/mte.c | 26 ++++++++++++++++++- arch/arm64/kernel/process.c | 5 +++- include/uapi/linux/prctl.h | 4 ++- 10 files changed, 57 insertions(+), 9 deletions(-) base-commit: dfd42facf1e4ada021b939b4e19c935dcdd55566 -- 2.30.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel