Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp218346lqp; Fri, 12 Apr 2024 15:44:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWoHLEy6xmHlFxLMrJ5DKB95UiumQsTZwypODfwDVUsfdmtnTrW5jjQRp2Hs7gK6Eqpn+1sVrBC0IdU9K8mahcZ+IXUb6ghyfVdOw2NPg== X-Google-Smtp-Source: AGHT+IGHuZiuMd0hNsdo4K0A8nfdbwarm0VUU8dsLhoZ4PW/iUM1W2QV2XtdqSEE0FVL1JUxgQed X-Received: by 2002:a05:6a20:96d0:b0:1a7:8b88:96b3 with SMTP id hq16-20020a056a2096d000b001a78b8896b3mr4603305pzc.9.1712961893134; Fri, 12 Apr 2024 15:44:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712961893; cv=pass; d=google.com; s=arc-20160816; b=twtS4Fayk1+tbfr11B3A0/v+LXIl6hZ/nVdeziWS0fM0qTzGjZufG/56KAUyE/ZwoR gmzR6AAqcorlC5cO2inY5Ab2EVpKuQ4sd0pbupz8AZ9LmJm9oLHi5P5f4ppXjGK8E+VE Gkk5zIKB74vaw3G3tfZNACv4K187uqLZrhxC7m6n+H11eIk9rGwb8YqJOmyYqc2cET14 zPq9mbeqliWd2wku2pPnXqU+8DES5hMLskRNanZP+b0rao9oIMtARgyKxb6xDvBEz7+9 OT8loZFwI4A/SXfdHphQ9XYrt24Hkm/IYKliesYySL/8J2AlpLuU3OWg2f8yJx9itCmP 0VfA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:dkim-signature:date; bh=bK7KfBMPyOIucwDtN0e7NfhXAX7dIzQN2rgbT78Breo=; fh=WCmUchq/+h7t9LHs05mYc5AZn5Kw6XWgWcg8L/eMr98=; b=YzmpP9LVyld9qV3DWUOmdQg9tvjiaql3L2uYI3qMh8p1KZHnhsSuevVr34Xrrw2DYc gQSdQxmNkJUAAEe+NH6bfI+RLbJj7SShMMvTfHANn6fdjIFXJKutWFzA4GcQaL79ojoU RTlmcTXPdP7qcDBgmVGlsAsM1st6gP8d7u4uAniKLuQOSqbnnSmuZMbSoDbudui3pvQ/ Xxms9UPxoUQqEK5zYW77NHzhGEh9/UTrkGy06DZyUbTfO4ilfargo+OWuQMcb4WIZVI5 Gd9udAEsgZ2yAxB6dglFtXgMXVNEtggWeUanQKBfWKGUb40pXIWrpkK+xJLQliM3c4HO Iw5Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=S9p6DXVR; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-143415-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143415-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id cj11-20020a056a00298b00b006ea7f4aed70si4194412pfb.199.2024.04.12.15.44.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 15:44:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143415-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=S9p6DXVR; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-143415-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143415-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id E4FB2B2327E for ; Fri, 12 Apr 2024 22:44:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 271CB1487CD; Fri, 12 Apr 2024 22:44:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="S9p6DXVR" Received: from out-181.mta1.migadu.com (out-181.mta1.migadu.com [95.215.58.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7F97F225D7 for ; Fri, 12 Apr 2024 22:44:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712961881; cv=none; b=ibocq9HvsjZa+vL35eMqfGujya4bHkMnEDTvokzZ1cdarVZmEgZGb7RPz2crM1X5VhvvVl5c151hDLVe1M2tsTqH2Q7VC61HdF3wd71yRBGHolihTMKRqv9uGQ14wsyA2s/58sGq/qGxF9YS1XyKdyJ7xAFZ2PxCuw1uG6KhUhc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712961881; c=relaxed/simple; bh=2/G8pva0QKXdcG7pAlRPcQQaEkGLUnJpeXwjjOIqChY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=i/xGacUho4Eu1q3lFEI1kVQnRN9Ri6knlooKyPgh54ogcF97+D+Rk02239ZgSkP4p/z7CBwjbFAZlVH9/RplrB5ThTVqyD259YxvM0/LIj5tNPPk46Z6x1fT+yOOOkcYHM+1/BBi0Uc68gXXp/nKDd+SZLt88TcTXKetdR9448M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=S9p6DXVR; arc=none smtp.client-ip=95.215.58.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Date: Wed, 10 Apr 2024 21:53:41 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1712961877; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=bK7KfBMPyOIucwDtN0e7NfhXAX7dIzQN2rgbT78Breo=; b=S9p6DXVRqT4Q3RBVm7Uq9aPDAJOOzIiSGngKqvRMvNWI8kHldgoRu+I3oxpRc8RPeCTXYE rNPpTaRupbgiEaYYO+Wb9MdGx5CS1G/ZS+NpHFGPZgs4dI7FECqKaBUKjvrNuPLzlwPpCm KonJVHhiEGrZwSX6WL6pvVmUyuIlROA= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Itaru Kitayama To: Will Deacon Cc: Catalin Marinas , Mark Rutland , Ard Biesheuvel , David Hildenbrand , Donald Dutile , Eric Chanudet , Ryan Roberts , kernel-team@android.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 0/3] Speed up boot with faster linear map creation Message-ID: References: <20240412131908.433043-1-ryan.roberts@arm.com> <171293670589.3659902.6442840474459477952.b4-ty@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <171293670589.3659902.6442840474459477952.b4-ty@kernel.org> X-Migadu-Flow: FLOW_OUT On Fri, Apr 12, 2024 at 05:06:41PM +0100, Will Deacon wrote: > On Fri, 12 Apr 2024 14:19:05 +0100, Ryan Roberts wrote: > > It turns out that creating the linear map can take a significant proportion of > > the total boot time, especially when rodata=full. And most of the time is spent > > waiting on superfluous tlb invalidation and memory barriers. This series reworks > > the kernel pgtable generation code to significantly reduce the number of those > > TLBIs, ISBs and DSBs. See each patch for details. > > > > The below shows the execution time of map_mem() across a couple of different > > systems with different RAM configurations. We measure after applying each patch > > and show the improvement relative to base (v6.9-rc2): > > > > [...] > > Applied to arm64 (for-next/mm), thanks! > > [1/3] arm64: mm: Don't remap pgtables per-cont(pte|pmd) block > https://git.kernel.org/arm64/c/5c63db59c5f8 > [2/3] arm64: mm: Batch dsb and isb when populating pgtables > https://git.kernel.org/arm64/c/1fcb7cea8a5f > [3/3] arm64: mm: Don't remap pgtables for allocate vs populate > https://git.kernel.org/arm64/c/0e9df1c905d8 I confirm this series boots the system on FVP (with my .config and my buildroot rootfs using Shrinkwrap). Tested-by: Itaru Kitayama Thanks, Itaru. > > Cheers, > -- > Will > > https://fixes.arm64.dev > https://next.arm64.dev > https://will.arm64.dev