From patchwork Tue Aug 6 02:21:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yu Zhao X-Patchwork-Id: 13754357 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 14CCAC3DA7F for ; Tue, 6 Aug 2024 02:24:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:Cc:To:From: Subject:Message-ID:References:Mime-Version:In-Reply-To:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=klWRv7jv+zR9aL4I7OIDRLjBsHfroErcwBIt7k9CqK8=; b=AZnQduJsybQAChZV1sKZ4qdtHr 5j12zolG4s14+xknwpGwxNGJPvRqbmst1r4oMsycYCI4k2E97HHoVM8kbIB+avgk/1Xenz6xOrH/C Xt8Squc+C3+neFCSuSN2DygvaoOl4Q6gZN0YYt/Wd5TGmNRJdjIVbLuUAKmD+Kn0FY3tTCBGF1G5c +2y7QjRFDwwYietRgXSWAY6eipIx3slOqpczbuywGl2JaIrlUmMkv2bWMG+jiT5ED73WyxVmCUArI KDd0KaeC3yTGyuVTlf1FyqI+toqU9cruYrz+11t6v8AaKVchcc9Zx3RCRDb4Y623UOYbIj43SeIb0 N9HhzYpw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sb9ri-00000000Gda-3ABe; Tue, 06 Aug 2024 02:23:58 +0000 Received: from mail-yb1-xb49.google.com ([2607:f8b0:4864:20::b49]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sb9pK-00000000FtN-3sY6 for linux-arm-kernel@lists.infradead.org; Tue, 06 Aug 2024 02:21:32 +0000 Received: by mail-yb1-xb49.google.com with SMTP id 3f1490d57ef6-e0be2fa8f68so320940276.3 for ; Mon, 05 Aug 2024 19:21:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1722910889; x=1723515689; darn=lists.infradead.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=klWRv7jv+zR9aL4I7OIDRLjBsHfroErcwBIt7k9CqK8=; b=GjqFFstGwQSzfyeRj4JBe3bhbKj3/FfsF0I0yiZ3R4+GUUAjZbBU5cW8TmxW/COp+i K/xSwpkN0ywi63iDfTm2quJdGWKoghQIe1EALg9rFO+P3RrHqUaGiyq5twHyFgkN11W6 UOEde3dxKqOYr5BlAuS7IE3eADRyyYmCD9V3HQVqCgiWcM34zzCuaUUK6ylKppPBUFme tUA5EOcotN3JH+oiHoGqEbxeojRmUL0qG2l5oaIaz0/JW+MCIsX1V8XM7Sg233ikB8Yb sqOL07vfujSVzOHfEwN3+DfYLbpIZvXbFgd1Z8PP5MA7iwesADee9laMEkdtQacuCqz6 qw9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722910889; x=1723515689; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=klWRv7jv+zR9aL4I7OIDRLjBsHfroErcwBIt7k9CqK8=; b=XvQcqEoscxhq5htKBWyO7wypWS6OC3/HcEzJBLmoh5ieVBC7q2v74Ppnykb5n7CkuC pFdqFipp6EAU1g9D48KtDo0jSp1Im4O7V9BBB0lrQnZ2L/ofJ/tHENav5CyvF43zLfl+ Z45sHH+50iTRQF1Zg+AwM4LkqfyRxLwaw5FOnhG0vWnYUmmIiEWBj8zF0apfrAyj357S /WQlHu/eCYzPK/bszCinYYHv4YkCK8PlzgG5jjLEWXU8x0uvobZB/rSNrBf0Hw/SvZml Y+1Udd6T4uvDCPuaYywvCUcsqlaAvDkibREmpN+Q9cFa2GVGCIskDuIjo7IWTJMeA31+ LWuA== X-Forwarded-Encrypted: i=1; AJvYcCXGvXWRrNezZcKaoYDlLfuSm/lJgT3OHyBD/wXuVNPI7s0c41xHKC8SOXrEuOOhB0EGbZXMSmoodP0Y6V30wKHikMwihn0PzK5fBmoRcgLIjc1Fl7c= X-Gm-Message-State: AOJu0YzcWW4YGTKbTMy3yGMWnox2chJ3z1lXpjt4sMFxSbhgQM1ogD0X i/yW1K85yVuXD5u0r/c0Lb7sdyXcbjP6grUwO1dGbrhi1hCMvJlENL+6A1NuEoFy0fXwKswtGn7 BbA== X-Google-Smtp-Source: AGHT+IGBeIkNUsFUwrlBhpMmppS6FEO5hkHGCy4Rnvwll+98qZLKAoOlt7677TqFz3cp98ge6KT5O3g57gw= X-Received: from yuzhao2.bld.corp.google.com ([2a00:79e0:2e28:6:261c:802b:6b55:e09c]) (user=yuzhao job=sendgmr) by 2002:a05:6902:2b90:b0:e05:eccb:95dc with SMTP id 3f1490d57ef6-e0bde283222mr64471276.6.1722910889235; Mon, 05 Aug 2024 19:21:29 -0700 (PDT) Date: Mon, 5 Aug 2024 20:21:14 -0600 In-Reply-To: <20240806022114.3320543-1-yuzhao@google.com> Mime-Version: 1.0 References: <20240806022114.3320543-1-yuzhao@google.com> X-Mailer: git-send-email 2.46.0.rc2.264.g509ed76dc8-goog Message-ID: <20240806022114.3320543-5-yuzhao@google.com> Subject: [RFC PATCH 4/4] arm64: mm: Re-enable OPTIMIZE_HUGETLB_VMEMMAP From: Yu Zhao To: Catalin Marinas , Will Deacon Cc: Andrew Morton , David Rientjes , Douglas Anderson , Frank van der Linden , Mark Rutland , Muchun Song , Nanyong Sun , Yang Shi , linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Muchun Song , Yu Zhao X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240805_192130_988821_2CA231A7 X-CRM114-Status: UNSURE ( 9.68 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Nanyong Sun Now update of vmemmap page table can follow the rule of break-before-make safely for arm64 architecture, re-enable HVO on arm64. Signed-off-by: Nanyong Sun Reviewed-by: Muchun Song Signed-off-by: Yu Zhao --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index a2f8ff354ca6..25ff026cdaf5 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -105,6 +105,7 @@ config ARM64 select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT select ARCH_WANT_FRAME_POINTERS select ARCH_WANT_HUGE_PMD_SHARE if ARM64_4K_PAGES || (ARM64_16K_PAGES && !ARM64_VA_BITS_36) + select ARCH_WANT_OPTIMIZE_HUGETLB_VMEMMAP select ARCH_WANT_LD_ORPHAN_WARN select ARCH_WANTS_EXECMEM_LATE if EXECMEM select ARCH_WANTS_NO_INSTR