From patchwork Thu Aug 22 15:10:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 13773682 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 BF69BC52D7C for ; Thu, 22 Aug 2024 15:12:19 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4DDAD6B010B; Thu, 22 Aug 2024 11:12:19 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 48DEF8001E; Thu, 22 Aug 2024 11:12:19 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3053F6B0158; Thu, 22 Aug 2024 11:12:19 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 0E41B6B010B for ; Thu, 22 Aug 2024 11:12:19 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id B35F81216CE for ; Thu, 22 Aug 2024 15:12:18 +0000 (UTC) X-FDA: 82480222356.18.C537D22 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf09.hostedemail.com (Postfix) with ESMTP id EFCF614001C for ; Thu, 22 Aug 2024 15:12:16 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=none; spf=pass (imf09.hostedemail.com: domain of joey.gouly@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=joey.gouly@arm.com; dmarc=pass (policy=none) header.from=arm.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1724339520; 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:in-reply-to:references:references; bh=ypJJJaKGYD4Ov7M2/l/WjUT/Qty4LPf9GxDEXpk7WH8=; b=nOyLoxzcBhsgiRP3BqSGYQkgLIDcm/RjWftsGzxEEKkYUHFhy5T14pDUvv+YZ7cVztYBd0 BjSUELWy3T6acBq7h4Hw7qmxLUawCKbtMmkeUTgzQKs4WAeiqunlPIzh+IaBXZE+3o5nmb RjY2azp9g2XRC5yLDXJBUj3fTEnNz4I= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=none; spf=pass (imf09.hostedemail.com: domain of joey.gouly@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=joey.gouly@arm.com; dmarc=pass (policy=none) header.from=arm.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1724339520; a=rsa-sha256; cv=none; b=sVUrH3g7PL6FasYnv6WfWylMHseULiGk8ixyBGRbeMe0T+vR5nf4O9KBYsPUHEaig3ExuK W7RxpQjm1zuDP1HMJ1OpH3XiX48brDQ8AFO1+COHb9uH98nRdYgoCpMN7dsYin8o13aUXz m5IMGQHxtsLmbFhXZBo0HiRXLefBIcc= 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 4CCD31595; Thu, 22 Aug 2024 08:12:42 -0700 (PDT) Received: from e124191.cambridge.arm.com (e124191.cambridge.arm.com [10.1.197.45]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 167F53F58B; Thu, 22 Aug 2024 08:12:11 -0700 (PDT) From: Joey Gouly To: linux-arm-kernel@lists.infradead.org Cc: nd@arm.com, akpm@linux-foundation.org, aneesh.kumar@kernel.org, aneesh.kumar@linux.ibm.com, anshuman.khandual@arm.com, bp@alien8.de, broonie@kernel.org, catalin.marinas@arm.com, christophe.leroy@csgroup.eu, dave.hansen@linux.intel.com, hpa@zytor.com, joey.gouly@arm.com, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org, maz@kernel.org, mingo@redhat.com, mpe@ellerman.id.au, naveen.n.rao@linux.ibm.com, npiggin@gmail.com, oliver.upton@linux.dev, shuah@kernel.org, skhan@linuxfoundation.org, szabolcs.nagy@arm.com, tglx@linutronix.de, will@kernel.org, x86@kernel.org, kvmarm@lists.linux.dev, linux-kselftest@vger.kernel.org Subject: [PATCH v5 12/30] arm64: re-order MTE VM_ flags Date: Thu, 22 Aug 2024 16:10:55 +0100 Message-Id: <20240822151113.1479789-13-joey.gouly@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240822151113.1479789-1-joey.gouly@arm.com> References: <20240822151113.1479789-1-joey.gouly@arm.com> MIME-Version: 1.0 X-Rspam-User: X-Stat-Signature: dbb6pthzy49hsrfz1k7cun4yan54d3ja X-Rspamd-Queue-Id: EFCF614001C X-Rspamd-Server: rspam11 X-HE-Tag: 1724339536-719056 X-HE-Meta: U2FsdGVkX19qKFtAtnVDR+3d8EituPpNE7f4esiauZ3SCtQqiwOB0Y4GAm53Vim7Przyuw50Dbdeqhb1XdbFQEoqfOJ/tPFA/ao1gU65KMselpnng8L696nY5NbGZbPjnzNA0hz7lPq5M5JP+sS2oy1hsyeVEDZ9SRLqfJ5StEIn4tLBYXs+njRmz8CCJI+2CpdW7WdeuOecMAc4yaERUJGP/nYTUW6UdyOFGv91IdgjEb+/cYJa1Icrub9BtqOpE1UXmlxfHL/uM44qp5ahdaYy/n84LsdKe9KypWOQ1Z58q48ITf79hg2lwF3obvq7uvXFLA59ie9l24X20TvXQUOeiI53cttFZZXthsv1kzgOfLzD2rcBUGdbQYLQMIW7q72Uvaj4pKW48F7KypX+KK4eqBRJYPfQlW2fy0Np9RHzF08FMqMg0uoA+A2w3UX2nJ5oSHkFyPRmPGVKMBVRvKpH/kQdDSbZAGYIL+jLzYjBZr+F6j+TJgjR0yYmVr2FHZa18MrI3tCt/bXjuyFbrdYwLtVO+sUIHLVGcI4mvtoKlXrZ6GqGCgqdiHNSXBCE5YT9GonnphnBjIqffdBbknU8EcJ8i1BFaB0FNneW1NEiIezd6KrrIFppRrqk7Ku6JUOQiWO2Gs9cNcZrr5edsH24yj4keywPGu+hrWHDH95Uo7qQ//seYbhxRwkJLMe8fClOAT0ldhTPvp0pOVcMQm9K8GP7fVMQviKVN/ARAMvUJN3v+dlcxZ2cuBhok27iruT0vw6f29+u0HzLFbna6yj0Mw2oS4ASEu7CpqEhZZ5qQuyMIY46Pc+Dx+ycARVZvljjWsMe5wVaxTwgNGUeplJeEWFq38m/xS+mIetscca9vS+H46eERHAdGou4qnIm3A4xPUt984ZHkdInsF5rgc1JA+kSVMixEu5oI9TUqz5zsqNfEbrjjFndphwULkfu10rQbKkKJhaU2whUA+t oiShBxgM M3Re0GioVWMWULAqif8SzOae4MQDwEWmK5MV0zXUxpJh1ZXjx2S5rDnSy60D+P1HK8JendFNyT/qvD1b6PGXb3cbzF4DSg/8YyGczobl+UF7guJM2u0YwHkYglTJt2hy5cbVxZ+x7DYuyvxDvRVclDMlZ3ttOywAv0GBFT5OSCuNyiONU3jyrBIxsWKhcP42SatVmDhJJauo992jBrdVENGT7P7d5wRgOd26xqrKWa4qyHulka2kJuANUFeiDRn1KMJumNU7xRwF8Q1bXiz7OG5zYvktVvPKEwQlM X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: VM_PKEY_BIT[012] will use VM_HIGH_ARCH_[012], move the MTE VM flags to accommodate this. Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon Acked-by: Catalin Marinas --- include/linux/mm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git include/linux/mm.h include/linux/mm.h index 56dc2481cc0f..39e6234e2365 100644 --- include/linux/mm.h +++ include/linux/mm.h @@ -378,8 +378,8 @@ extern unsigned int kobjsize(const void *objp); #endif #if defined(CONFIG_ARM64_MTE) -# define VM_MTE VM_HIGH_ARCH_0 /* Use Tagged memory for access control */ -# define VM_MTE_ALLOWED VM_HIGH_ARCH_1 /* Tagged memory permitted */ +# define VM_MTE VM_HIGH_ARCH_4 /* Use Tagged memory for access control */ +# define VM_MTE_ALLOWED VM_HIGH_ARCH_5 /* Tagged memory permitted */ #else # define VM_MTE VM_NONE # define VM_MTE_ALLOWED VM_NONE