From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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=-8.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,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 CF876C10DCE for ; Thu, 12 Mar 2020 04:10:36 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id B5DDF206F2 for ; Thu, 12 Mar 2020 04:10:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B5DDF206F2 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 42F0B6B0003; Thu, 12 Mar 2020 00:10:36 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3DF586B0006; Thu, 12 Mar 2020 00:10:36 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2F4706B0007; Thu, 12 Mar 2020 00:10:36 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0148.hostedemail.com [216.40.44.148]) by kanga.kvack.org (Postfix) with ESMTP id 159266B0003 for ; Thu, 12 Mar 2020 00:10:36 -0400 (EDT) Received: from smtpin23.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 04B63181AEF31 for ; Thu, 12 Mar 2020 04:10:36 +0000 (UTC) X-FDA: 76585383630.23.bed21_2240a320e6702 X-HE-Tag: bed21_2240a320e6702 X-Filterd-Recvd-Size: 2306 Received: from huawei.com (szxga05-in.huawei.com [45.249.212.191]) by imf50.hostedemail.com (Postfix) with ESMTP for ; Thu, 12 Mar 2020 04:10:35 +0000 (UTC) Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 86278FECFFDF72F6F915; Thu, 12 Mar 2020 12:10:31 +0800 (CST) Received: from DESKTOP-KKJBAGG.china.huawei.com (10.173.220.25) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.487.0; Thu, 12 Mar 2020 12:10:25 +0800 From: Zhenyu Ye To: , , , , , , , CC: , , , , , , , , Subject: [RFC PATCH v2 0/3] arm64: tlb: add support for TTL field Date: Thu, 12 Mar 2020 12:10:15 +0800 Message-ID: <20200312041018.1927-1-yezhenyu2@huawei.com> X-Mailer: git-send-email 2.22.0.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.173.220.25] X-CFilter-Loop: Reflected Content-Transfer-Encoding: quoted-printable 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: ARMv8.4-TTL provides the TTL field in tlbi instruction to indicate the level of translation table walk holding the leaf entry for the address that is being invalidated. Hardware can use this information to determine if there was a risk of splintering. The PATCH v2 is based on Marc's NV series[1]. [1] git://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git k= vm-arm64/nv-5.6-rc1 Zhenyu Ye (3): arm64: tlb: use __tlbi_level replace __tlbi in Stage-1 arm64: tlb: use mm_struct.context.flags to indicate TTL value arm64: tlb: add support for TTL in some functions arch/arm64/include/asm/mmu.h | 11 +++++++++++ arch/arm64/include/asm/tlb.h | 3 +++ arch/arm64/include/asm/tlbflush.h | 19 ++++++------------- arch/arm64/kernel/process.c | 2 +- arch/arm64/mm/hugetlbpage.c | 2 ++ 5 files changed, 23 insertions(+), 14 deletions(-) --=20 2.19.1