From patchwork Thu Jul 7 12:52:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Barry Song <21cnbao@gmail.com> X-Patchwork-Id: 12909534 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 1C87FC433EF for ; Thu, 7 Jul 2022 12:53:12 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 870896B0073; Thu, 7 Jul 2022 08:53:12 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 820526B0074; Thu, 7 Jul 2022 08:53:12 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6E80D6B0075; Thu, 7 Jul 2022 08:53:12 -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 625FF6B0073 for ; Thu, 7 Jul 2022 08:53:12 -0400 (EDT) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay11.hostedemail.com (Postfix) with ESMTP id 3412F80E19 for ; Thu, 7 Jul 2022 12:53:12 +0000 (UTC) X-FDA: 79660294224.29.20DB1D8 Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) by imf22.hostedemail.com (Postfix) with ESMTP id CACEFC0057 for ; Thu, 7 Jul 2022 12:53:11 +0000 (UTC) Received: by mail-pg1-f175.google.com with SMTP id r22so11440965pgr.2 for ; Thu, 07 Jul 2022 05:53:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=OkXjFR+NYH0OoqXK6diEul5vRaNtuMp4IaWe2/sFDXI=; b=nuqQ+wJ5o95y7jGGqpjCELTfPjPUHgi7E7FTZs0gaGOCcqFLscKyTXuknhl2r0Tr8i GOKY+oU6XKhO8aGgFKaqc5b+9pKcLFKJ7RiiUd+QY6xRysPA/boO7vrt9gotnDM1k9VM zIFmA8SksMiiE9HHckgX6o3SgQiX8ApGKfCA6UHTrz2tEszAPlMUEjm835NOJBg9WeDe CzWBlbfIOMzbr9uTof81U+ft8J7xcwV9GCdQefl3HC72cHN8J4/cN0Wni9gPCz5OCWIl olZjBjGuiap0t573baIhDwmeLQibM5GcnlMYqdobD9no36jFTc8y4Ce7Val9hIgEyvo+ VDXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=OkXjFR+NYH0OoqXK6diEul5vRaNtuMp4IaWe2/sFDXI=; b=hF5LjYWJaFJhV8292rDiWcHDDhgPtgHQp9Oyo201jJC8oo+E35QfYf1KUvRjr1K5Y9 Dtig0z8eJaH8/CXQs5wVhZr3XeLwGFgYY2d+deV4GL/A6p60fuiVNnvCNS/hiRnpGdvm ZpPdvvOcW0lthQadMQt7C4GwuTzbhibHX1RVXrshltq9scS119KsuzGeSVxSgaVjT51u hpx30ogjWvV3b2jYTt8fe3KHXhrlmPJRsHtR9zyaw/LrRN+dcrobfU0QuE8iP5t7O1oW 9Yg8pEsE+zBf9+XjvZBId6iTjH9EUGbQGnKPAYhhHDqu9Km0DtX5eZca0zSyR2rN6A00 Sf/w== X-Gm-Message-State: AJIora8wfxHOU5DDMBhmy2l2/RkCaQp+OSoCAgOBr1+itKw98gnQvynW ZxLrsevRqCVgEpt/CTws83k= X-Google-Smtp-Source: AGRyM1v1964MD/IIcSfx/8Y5slyYPx4KMBqa/W04tHsO/yrwZoWnhZV8fVssXI0+aMYp8g1qivWNHw== X-Received: by 2002:a63:f415:0:b0:408:808b:238f with SMTP id g21-20020a63f415000000b00408808b238fmr38849185pgi.469.1657198390801; Thu, 07 Jul 2022 05:53:10 -0700 (PDT) Received: from localhost.localdomain (47-72-206-164.dsl.dyn.ihug.co.nz. [47.72.206.164]) by smtp.gmail.com with ESMTPSA id a11-20020a1709027e4b00b0016a3b5a46f0sm27907831pln.241.2022.07.07.05.53.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jul 2022 05:53:10 -0700 (PDT) From: Barry Song <21cnbao@gmail.com> To: akpm@linux-foundation.org, linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, x86@kernel.org, catalin.marinas@arm.com, will@kernel.org, linux-doc@vger.kernel.org Cc: corbet@lwn.net, arnd@arndb.de, linux-kernel@vger.kernel.org, darren@os.amperecomputing.com, yangyicong@hisilicon.com, huzhanyuan@oppo.com, lipeifeng@oppo.com, zhangshiming@oppo.com, guojian@oppo.com, realmz6@gmail.com, Barry Song , Nadav Amit , Mel Gorman Subject: [PATCH 1/4] Revert "Documentation/features: mark BATCHED_UNMAP_TLB_FLUSH doesn't apply to ARM64" Date: Fri, 8 Jul 2022 00:52:39 +1200 Message-Id: <20220707125242.425242-2-21cnbao@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220707125242.425242-1-21cnbao@gmail.com> References: <20220707125242.425242-1-21cnbao@gmail.com> MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1657198391; 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:dkim-signature; bh=OkXjFR+NYH0OoqXK6diEul5vRaNtuMp4IaWe2/sFDXI=; b=vHwS8ZVFTA0hsyM75pDSxIU/qrS0sMHfZskrHxBGzeeNDmbXRjehaS/p8HCzWtJVVpyOgB hjwoi8ZDdkjgdv/g+JHn0sTn+xJM9L96m4K7zSvkwIobPJl0Gl95Xf98DQTlBVGu6NL9e2 P4T1heQ1Ya0CVUhakMTkEjDKBz8lsG0= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1657198391; a=rsa-sha256; cv=none; b=h5gb4F+nqI+t5M6GVfbyVEb24ewiUQ6Ay71uRe5IVzdGE2+1Stqc0pe4zhw5y7KnIIVU9u XGEXo0ZIa7vnItEe8kYEg20L+VP8vMdJdB5U6lBszOlpchpklc7IjnpheTHU53DdsUUQkE 6VRchQSggkFiZYjcS0Sc1ncTBRxli70= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=nuqQ+wJ5; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf22.hostedemail.com: domain of 21cnbao@gmail.com designates 209.85.215.175 as permitted sender) smtp.mailfrom=21cnbao@gmail.com X-Stat-Signature: roddhbt5cb5k1yj8i41qxzuyrkixd3wy X-Rspamd-Queue-Id: CACEFC0057 X-Rspam-User: Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=nuqQ+wJ5; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf22.hostedemail.com: domain of 21cnbao@gmail.com designates 209.85.215.175 as permitted sender) smtp.mailfrom=21cnbao@gmail.com X-Rspamd-Server: rspam10 X-HE-Tag: 1657198391-514110 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: From: Barry Song This reverts commit 6bfef171d0d74cb050112e0e49feb20bfddf7f42. I was wrong to say batched tlb flush didn't apply to ARM. The fact is though ARM64 has hardware TLB flush, it is not free and could be quite expensive. We still have a good chance to enable batched and deferred TLB flush on ARM64 for memory reclamation. A possible way is that we only queue tlbi instructions in hardware's queue. When we have to broadcast TLB, we broadcast it by dsb. We just need to get adapted to the existing framework of BATCHED_UNMAP_TLB_FLUSH. Cc: Will Deacon Cc: Jonathan Corbet Cc: Nadav Amit Cc: Mel Gorman Signed-off-by: Barry Song --- Documentation/features/arch-support.txt | 1 - Documentation/features/vm/TLB/arch-support.txt | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Documentation/features/arch-support.txt b/Documentation/features/arch-support.txt index 118ae031840b..d22a1095e661 100644 --- a/Documentation/features/arch-support.txt +++ b/Documentation/features/arch-support.txt @@ -8,5 +8,4 @@ The meaning of entries in the tables is: | ok | # feature supported by the architecture |TODO| # feature not yet supported by the architecture | .. | # feature cannot be supported by the hardware - | N/A| # feature doesn't apply to the architecture diff --git a/Documentation/features/vm/TLB/arch-support.txt b/Documentation/features/vm/TLB/arch-support.txt index 039e4e91ada3..1c009312b9c1 100644 --- a/Documentation/features/vm/TLB/arch-support.txt +++ b/Documentation/features/vm/TLB/arch-support.txt @@ -9,7 +9,7 @@ | alpha: | TODO | | arc: | TODO | | arm: | TODO | - | arm64: | N/A | + | arm64: | TODO | | csky: | TODO | | hexagon: | TODO | | ia64: | TODO |