Received: by 2002:a05:7208:3228:b0:82:47:81bb with SMTP id cb40csp551598rbb; Fri, 12 Apr 2024 09:07:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVRmvGhhFX612ulNAH0DhW+i8FG+Jhof7ZEmjawyaxbCUAGTaTf0o70+gCyLCsI9VokJtLrwcFyU5KZEYcYujnMFZSOgiCU95zUSTqUfA== X-Google-Smtp-Source: AGHT+IFqEabzZHMgViXiUTYkIPTe1a5RhtXiF4Qs/9rSt2ja+v7ENxDOoyT3dYQXstl5UGLHp1uN X-Received: by 2002:a05:6300:8095:b0:1a7:5425:496d with SMTP id ap21-20020a056300809500b001a75425496dmr3384164pzc.13.1712938050228; Fri, 12 Apr 2024 09:07:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712938050; cv=pass; d=google.com; s=arc-20160816; b=lWDKpNefDIjR3v7F5YOyJbodvuCiGJ9B21q24ZqBUKx2HLRJ7WSPssVgwLSsozlmUr sgVUHRZDEyYbbkAe4biMs07KClOOStAPb612sMgE/TFTZwe/3HQjcjwTs3cp4EWjkrDc ay5x2amc+imLOKUhgUn1MKf1NUlZy6YpB0xXJ3kSvd4l3ewRSiVls7+OJfyXbhnyVnY3 HJMNYGCsAK3HNluszypvUQu3S1DbAltqZ5zZzhnf17IwhoV21+Dk8Wtv9JHMDfFoBxlU a86g87SLd3mviSQnzjhQqYTcjc8w+H8GfAwYr6MyYwt1/9P/fTnAO4aX9ZhK7ZYiQiYr qsrw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=GrP5LlfOvuLkAk91WNcD8nxo9HwxHm3CmfcdxJ7Q/iI=; fh=7UzF4AfZroyfbxSKSUAX8u9xPRwnF0we5Q3J6zevg0E=; b=NJRgpACJNjfj4ghxfrPfJGblnCK1S4BNDy9VuuXDsG0yHbAYw+zq9SWFejDlRwjxzp GByZ2QzmC0amlpOrUiFPklB9/hWD7HJXDxj/sx8DxQPcCEuYTcTWxox1rfhBVMhYQ4rV TkXmuW0M2w9ewi7PxN1u58aa7FjfZvJOpqvbXM2P8NVnDUSGcJVAVhLQBQtQsBsXhzOz Ij2FnqBLsgTPSNR/6S68bBpGkl9HJce44TzPhucVTLHhuh2SLLoXUC/BM6yFtAZbcGJP 5mHjMFEc7FquuHuzoBdOyGGruTGnfBbeC0nPofWxdAWI0oKxaI8WT4gFkvLlnusH5PPI WewQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UozAD1Ha; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-143005-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143005-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id x189-20020a6386c6000000b005cd82e43aa3si3356555pgd.321.2024.04.12.09.07.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 09:07:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143005-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UozAD1Ha; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-143005-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143005-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 09A7B28202F for ; Fri, 12 Apr 2024 16:07:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ACD371487F6; Fri, 12 Apr 2024 16:06:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UozAD1Ha" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D91C91494B7 for ; Fri, 12 Apr 2024 16:06:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712938015; cv=none; b=HHs4eesZkBr07daWFjVWiw6qTXv2GlVylEsxyvb56xYa/AA6zjiAZPPBsbXluGm73kgKsHwvcfN/O/PnEtfVdAYbLnCyyObq+tvZzJC8su7o2Aqw01yov3Pa614FIQIMhBFchWobRdRLu8VHaCj5AiTcodUFBBR8fynXfDSB4n4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712938015; c=relaxed/simple; bh=g/ypGRIKAzpOzVYJiDDtGJo0LvInSV4h5nueccUUC1E=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=HQuGnkgQU1nMp/mhjnDZZEenLZWI95nj7ZcZXYvdKumCZdA3Lm1VUFVK2mYq9arCPyTncH5tpfuVE+lFKZuOumXoBGNXDHhAQJKeAzbPTQZ5Nj9n4VMUVsyhxg/9GRokLahk2GIfL75fPq8PtPYET+sTfHKrImWGhY99H3XeoFw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UozAD1Ha; arc=none smtp.client-ip=10.30.226.201 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> 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="utf-8" Content-Transfer-Encoding: 8bit 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