Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1758197rdb; Sun, 19 Nov 2023 09:02:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IHdTW6SC9DZ+ga1oHYJKa6yHePDAx37xl4JKXSqDXlQp7XmYP2AR2TTC8QHm7bo+DDC9XgF X-Received: by 2002:a05:6820:168a:b0:57d:e76d:c206 with SMTP id bc10-20020a056820168a00b0057de76dc206mr5947464oob.1.1700413331730; Sun, 19 Nov 2023 09:02:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700413331; cv=none; d=google.com; s=arc-20160816; b=Zuka/TWXTQ5edwV0+LFrtGd06sJvQDU3Q+rlABcr0Cz9KdyLCfKa3iv7b6qd65MWys SMO9qjGGsO4IL7Jtzu3Hg7h02cmBEWryhXjMFJXSQvjJlEi8+EgeiXJx0DWQBrDp6ghP G7hKGYIe6zHPoyA24h8Uo3lG6Q7S+02apewDw4Fsmw0sUtShB6FruU3jesy9lskkaNKo 0XsqOf03a62vUVaFVTqfUZguscJJeBGfYJVWqp+hQOJM6yWX1W1AJQBEBO4KfeRXxpA1 COfpKbt2Rc3QuL8gE4i6KyIbYnCJDsQL+N01Zjg4eHmiIpVJArL7g+XnUmlIDtzEohqT oJnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=V30no8RFLwAyQ9qLWlxD+PgQr+CZ83XsB77hErsgT5M=; fh=ON0oQ90Z4xnjbNCGsyMgiRbLR29nyOKvbeaw6TmRihk=; b=c9dJGcLMMZctO1pVDvZ3D/G+OVeAcHbgD2D4Tq5hMiDC9ZC33vdxwy8Cs2jFMMNmop Eaj90eU/QhTxLrk57hCYnpDKJzOUELq7EwVZx2CLnwEtjAD028rV5ArrDOS08E0UrClH o3TvEY2L33c7GaPCJ1GYZcs9QiL3k0dCnnBu0wBP6x70KjpmYJOEOiZUadNOt/kt3L+m T9vu5C58m2jb1p1OP5VENvG12r5xUCzNLpKEyHVhHU4q5/nPbgZhVkzyjHMfLiL5tz/a y4yFAT4rj2Ji2KXHef2+d2aa21lyqByseKqKmhYLWPtNcQ9gX80DPeMagXoO+NtaDBcC YjQg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id ct15-20020a0568201c8f00b005820ade092esi2462715oob.8.2023.11.19.09.02.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 09:02:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id B40E18093D66; Sun, 19 Nov 2023 09:02:06 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231617AbjKSRBu (ORCPT + 99 others); Sun, 19 Nov 2023 12:01:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231893AbjKSRBN (ORCPT ); Sun, 19 Nov 2023 12:01:13 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 07EC7D77; Sun, 19 Nov 2023 09:00:01 -0800 (PST) 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 C6B171476; Sun, 19 Nov 2023 09:00:47 -0800 (PST) Received: from e121798.cable.virginm.net (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 9BFC23F6C4; Sun, 19 Nov 2023 08:59:56 -0800 (PST) From: Alexandru Elisei To: catalin.marinas@arm.com, will@kernel.org, oliver.upton@linux.dev, maz@kernel.org, james.morse@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, arnd@arndb.de, akpm@linux-foundation.org, mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com, mhiramat@kernel.org, rppt@kernel.org, hughd@google.com Cc: pcc@google.com, steven.price@arm.com, anshuman.khandual@arm.com, vincenzo.frascino@arm.com, david@redhat.com, eugenis@google.com, kcc@google.com, hyesoo.yu@samsung.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kvmarm@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-trace-kernel@vger.kernel.org Subject: [PATCH RFC v2 27/27] arm64: mte: Enable dynamic tag storage reuse Date: Sun, 19 Nov 2023 16:57:21 +0000 Message-Id: <20231119165721.9849-28-alexandru.elisei@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231119165721.9849-1-alexandru.elisei@arm.com> References: <20231119165721.9849-1-alexandru.elisei@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sun, 19 Nov 2023 09:02:07 -0800 (PST) Everything is in place, enable tag storage management. Signed-off-by: Alexandru Elisei --- arch/arm64/kernel/mte_tag_storage.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/kernel/mte_tag_storage.c b/arch/arm64/kernel/mte_tag_storage.c index 11961587382d..9f60e952a814 100644 --- a/arch/arm64/kernel/mte_tag_storage.c +++ b/arch/arm64/kernel/mte_tag_storage.c @@ -395,6 +395,9 @@ static int __init mte_tag_storage_activate_regions(void) reserve_tag_storage(ZERO_PAGE(0), 0, GFP_HIGHUSER_MOVABLE); + static_branch_enable(&tag_storage_enabled_key); + pr_info("MTE tag storage region management enabled"); + return 0; out_disabled: -- 2.42.1