Message ID | c370778bd2f6b4810eaa2ba72cb3583fe05e1183.1604531793.git.andreyknvl@google.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=3g0P=EL=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0162CC4741F for <linux-arm-kernel@archiver.kernel.org>; Thu, 5 Nov 2020 05:29:50 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 68DA820936 for <linux-arm-kernel@archiver.kernel.org>; Thu, 5 Nov 2020 05:29:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="kSf04OvZ"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="EkHfEZTT"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="p5M7LSLa" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 68DA820936 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:To:From:Subject:References:Mime-Version:Message-Id: In-Reply-To:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=TD++287Q+IBaBMXtwpHirqy2npv3ZPg1zl+Fo2vGR9I=; b=kSf04OvZz9bXqngC6ayQD7huL TfAl/FgK/tYfzQu0+Kg2O2/8ywWRBtUt8KIVY7H4NeZPpka6JqoEFEilAEUuWjavnieh/22CtHZSc zva0DXASNN6C38xiZAuZNKg/R8sKxnH0c9mNWbmOU8yN3s4z5SlSz1zt7JsNPDs6t/S2KGVWnjMXX 20cuVn3rmn/OhaYn3qjXK2puql9QwfZyvfDu40S7qJIgTxxFmMs2fpcjNDQrDJguM0q6SRXkSz8g9 YBxJurMNBDm5rujHvqcqJMXP7DHzP5gsAJcH6aJ92gXsLciyKTKm5nrhMqGe9YIFgjhraIZtNR/h8 TWDdOtmFA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kaXoO-0006aV-NT; Thu, 05 Nov 2020 05:27:52 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kaW5B-000145-K1 for linux-arm-kernel@merlin.infradead.org; Thu, 05 Nov 2020 03:37:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:Cc:To:From:Subject: References:Mime-Version:Message-Id:In-Reply-To:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=FlydYZzkHHsNkirizC6EMfUHVnYCnfRojTwu8q88f10=; b=EkHfEZTTIWcvDLY4Y2/rGyHR+C 5OPEdQb9X+XhVh6oEBsjV532/+BgukzsP+zxBcUDW6mfYxFMSHKpm4iouJ+BUPoOOJ4K/bDfmDCsb rVjP60tVNxdIgH4mRc77+wCVZe13X8Vn0Vwxn2OH7PJohSbQzIBxwOX2xOouy5Klo69KBqSjiO9xc Np5v4ZOuVuxRM50c6OY0TWlbgq1x3FZQ8FymDwSc7I81QFpYyOiWsOxJDOZsG7S1Ch8AmcJk6r4uC fSgRdCfZQShWhayMWN7yeGsa95d6tx8U/Y3+iD6H5ft7l6/IbJBjhnXqurLC3pSkbAun6o2dQf5DK gmM3iN6Q==; Received: from mail-wr1-x449.google.com ([2a00:1450:4864:20::449]) by casper.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kaS5W-00045Q-G3 for linux-arm-kernel@lists.infradead.org; Wed, 04 Nov 2020 23:21:12 +0000 Received: by mail-wr1-x449.google.com with SMTP id u1so46974wri.6 for <linux-arm-kernel@lists.infradead.org>; Wed, 04 Nov 2020 15:21:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:in-reply-to:message-id:mime-version:references:subject :from:to:cc; bh=FlydYZzkHHsNkirizC6EMfUHVnYCnfRojTwu8q88f10=; b=p5M7LSLaT61WHDadMDBLNAMcGIKvjvrKRYa3SGUEl1sNihBTOSclx5u8f+Qo5EHr+6 /K/M6rYVP0/6LMYQMjak6x8uJ/stlKgFYI8RmUlbytD/YieCCk0bq461xG5vteDbV87h q7zMidrBXX3nA11qkrcEGRENLa+V8q0iOHBSQJnNaRnd43G/QKdtQ33bM1rV8qrK6ASm Fbt5CY4IZb18ynf9AX0rAK7lfLbADrNjjvS5SMVsvNuLWlQgvjWvUaUI3vIwvH/W4zIh /mwKwhzfd2Zbe5xAqaAGbJLjtJmBU54bFSvDGvAv1iwM33/X233VK3eCNfoh3b/h6TXl fO5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=FlydYZzkHHsNkirizC6EMfUHVnYCnfRojTwu8q88f10=; b=Y3j6y3v7G1nyDs1L6DSgYME3HDVH6hc0Vji5djcVBjmpkzNw+gbOSubxO6Fm7h6G8X 5l+SlZeLHa74yh5DCw8lCtlj0zWBwHj3MqzNx2/FlnNSsvUSgJlCQAycizOf9TQ8xAIu 5kDwnz9MHhNji3lALPNKI/Dqj6u/vtX0AJHwkcPv3vu/oybiXemWk2btV3n5gSBt3Pdr QltDJ2jP8hP+uHo8A7fwCWcd/cbNWN8oK4S3DTb7int7+T95pVl6mAF6sR6bznyPF5bn +mySXgnnfuZPD2QZNJYtNpVGg4DuTPyMw9RP7Juc4ND6292qc8HD56z8No7amW1qtxFb qhcA== X-Gm-Message-State: AOAM531KcwQ7jkexUPpCjj5fxKO6TL2dODu0rsRkwMzpvTtziE8YwkBf rjn1CuBaiXoolabCsO8NvhWIxPNG3PycHuME X-Google-Smtp-Source: ABdhPJxKCyurj8TEcTufpfKCp557hhn8rTd9/YuYr5+pEIjMzpppMattzTBc3sQQ5DICUmayYjNCq6hKLBwj/U/V X-Received: from andreyknvl3.muc.corp.google.com ([2a00:79e0:15:13:7220:84ff:fe09:7e9d]) (user=andreyknvl job=sendgmr) by 2002:a7b:c937:: with SMTP id h23mr66523wml.19.1604532008922; Wed, 04 Nov 2020 15:20:08 -0800 (PST) Date: Thu, 5 Nov 2020 00:18:41 +0100 In-Reply-To: <cover.1604531793.git.andreyknvl@google.com> Message-Id: <c370778bd2f6b4810eaa2ba72cb3583fe05e1183.1604531793.git.andreyknvl@google.com> Mime-Version: 1.0 References: <cover.1604531793.git.andreyknvl@google.com> X-Mailer: git-send-email 2.29.1.341.ge80a0c044ae-goog Subject: [PATCH v8 26/43] arm64: Enable armv8.5-a asm-arch option From: Andrey Konovalov <andreyknvl@google.com> To: Catalin Marinas <catalin.marinas@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201104_232110_681560_1FF9A7CF X-CRM114-Status: GOOD ( 11.20 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: linux-arm-kernel@lists.infradead.org, Marco Elver <elver@google.com>, Andrey Konovalov <andreyknvl@google.com>, Kevin Brodsky <kevin.brodsky@arm.com>, Will Deacon <will.deacon@arm.com>, Branislav Rankov <Branislav.Rankov@arm.com>, kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Alexander Potapenko <glider@google.com>, Evgenii Stepanov <eugenis@google.com>, Andrey Ryabinin <aryabinin@virtuozzo.com>, Andrew Morton <akpm@linux-foundation.org>, Vincenzo Frascino <vincenzo.frascino@arm.com>, Dmitry Vyukov <dvyukov@google.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
kasan: add hardware tag-based mode for arm64
|
expand
|
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index d58b4dcc6d44..cebbd07ba27c 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -1591,6 +1591,9 @@ endmenu menu "ARMv8.5 architectural features" +config AS_HAS_ARMV8_5 + def_bool $(cc-option,-Wa$(comma)-march=armv8.5-a) + config ARM64_BTI bool "Branch Target Identification support" default y @@ -1665,6 +1668,7 @@ config ARM64_MTE bool "Memory Tagging Extension support" default y depends on ARM64_AS_HAS_MTE && ARM64_TAGGED_ADDR_ABI + depends on AS_HAS_ARMV8_5 select ARCH_USES_HIGH_VMA_FLAGS help Memory Tagging (part of the ARMv8.5 Extensions) provides diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index 5789c2d18d43..50ad9cbccb51 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -100,6 +100,11 @@ ifeq ($(CONFIG_AS_HAS_ARMV8_4), y) asm-arch := armv8.4-a endif +ifeq ($(CONFIG_AS_HAS_ARMV8_5), y) +# make sure to pass the newest target architecture to -march. +asm-arch := armv8.5-a +endif + ifdef asm-arch KBUILD_CFLAGS += -Wa,-march=$(asm-arch) \ -DARM64_ASM_ARCH='"$(asm-arch)"'