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 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 8A6A2C4345F for ; Fri, 12 Apr 2024 16:07:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=4RkrXkJGzwgD20xut2qdd/V445WXMZ+pz9XOMGGh4uQ=; b=sxDR/yNz4udcY7 6mylmXuiMmQjnOcCylJaCB+utjsd+7C2hveDxMWycHp5sAq4yNElt7WkIOVLjW9nzqGc3AralIsRR DgCZIT6u/+y19tj3mlIjF9+UUrehuc8IWGBrT4nettZ9YT8jWNN80VS9o1ZKTvtLvAYzSi2ucnrn0 RlQ9CF/6BMckciQ1HfLXIM/8SLo4pbqQ2exNZLVNodXKlr99yS406cvxQbxSqgrDS66LP5HXRRngX dmBU+SHtapMmV69Mg46Vh6GRDpKD903PfW3FpxVUiNoPadzcuzm9rxXEylYCCWbdLEUM1tIi4BmHD uZBHh4ONgxYFaNTpoWzA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rvJQj-00000000M30-34zN; Fri, 12 Apr 2024 16:07:09 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rvJQX-00000000Lwi-2dmM for linux-arm-kernel@lists.infradead.org; Fri, 12 Apr 2024 16:06:59 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id AC495CE3A1B; Fri, 12 Apr 2024 16:06:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B682C32783; Fri, 12 Apr 2024 16:06:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712938015; bh=g/ypGRIKAzpOzVYJiDDtGJo0LvInSV4h5nueccUUC1E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UozAD1HamJCb6dTRkGR8DSOae+cGUG8EkVSMTQQFzl2d6h9cqFhmiNH3lDDFlqPqX nFBTMTgdWGSkfrsvDvLQxBqhkE3qc0noU+gxfop1tY87nBxAqdwLbOndsDZNX0ZJW2 aAwc7Chu6p58efmVzToP0Dpr0pbQhBOqDQzvhEjwLHa301qNUzkcejhRyzkDbRl88E epS1fbw31dWNUoPWfUTO070NgO2RDmVhXcHe+/gHt29c9fJAobFlsHzr4odGEpHwbZ gtxNlyl0H0hKzVnFyxtdIlFQBDKcK8LldekfgoH5o7OrkwwZJDwyAu6ujYIZ7CqXau BwcSy3PuEthnw== From: Will Deacon To: Catalin Marinas , Mark Rutland , Ard Biesheuvel , David Hildenbrand , Donald Dutile , Eric Chanudet , Ryan Roberts Cc: kernel-team@android.com, Will Deacon , 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 Date: Fri, 12 Apr 2024 17:06:41 +0100 Message-Id: <171293670589.3659902.6442840474459477952.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20240412131908.433043-1-ryan.roberts@arm.com> References: <20240412131908.433043-1-ryan.roberts@arm.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240412_090657_874637_E09B13C9 X-CRM114-Status: GOOD ( 11.60 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel