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 07430C43334 for ; Fri, 24 Jun 2022 17:15:52 +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=I6fM6ShrvPdZa6hS0Hg1a4cYhNsPiAsMl6BQx2ltXAM=; b=F9WNrJIyNxACwO 3wZ4onTJXqDEXNlCbVCaEAEt26Q1AjyuXhb+PpLEPaNpIDGGv5zM1uo3AKxbvqXxyC6CSkhw7Il6U ekHE7jkX2rQCGNV470WbJhL0LcQ0cCef4ZQTMAI1qRMMaxr4q1PnoxLIYCZMCeIs1FFjVeTrhKkDt fOTpdbshO7RIJIP9L/GB+LZdqYFC9HLFmVeamSpYPwaUtAlZ1TDmuR8hWwmMlJkfdSEQ53KMlqHEc 6DaPoBeYNpoMvYEo9okuL3UkTVBZZeUjG/thVvi53Vvr8UcBY6WSA1DIZdS/jwJ6na3hJWJFmVDsh j5TVl/9KjN47OJSMsprw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o4mtI-003A0b-R0; Fri, 24 Jun 2022 17:14:44 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o4mss-0039rJ-12 for linux-arm-kernel@lists.infradead.org; Fri, 24 Jun 2022 17:14:20 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 5A321B82AD7; Fri, 24 Jun 2022 17:14:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F704C341C6; Fri, 24 Jun 2022 17:14:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656090849; bh=E/C46b0je+Xj0GZxhx7eimlUw3fJExsKumMAjvmn260=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iuPBWR5XQeaQ6BFQPFSzWqSHZESzABae2pQsqFx/KJzrO0pdT6X+Z7idudEarKDqh xEr/8BqpvqIHy/DTS8c4FF7e4+Trbnc/pgp+Z4xQhE4h+OPJ1inHCQQ3wuKh9vET4t 2dZ14Nkm10Sof2s26wVNC/Nlv62IVJHaOZHWRx3mWgHJOO3Rx+EiaMpLckpJTRKqlr pyo4R2HbS9i7+a1qqahcqG6HjZDTGay/FhY6DrWJrxtD7o+HnYF+4mtkeV0gD6Fd56 fVuB8F0Q40gVRy5hu2nW7GG2s5lAdWvvwbm+Z/cGZ4kmfzsxxJ82RHNr0ZzNSSGmbF hZlFekhE5Cihg== From: Will Deacon To: Ard Biesheuvel , linux-arm-kernel@lists.infradead.org Cc: catalin.marinas@arm.com, kernel-team@android.com, Will Deacon , Kees Cook , Anshuman Khandual , Mark Rutland , Marc Zyngier , Mark Brown Subject: Re: [PATCH v5 00/21] arm64: refactor boot flow Date: Fri, 24 Jun 2022 18:13:58 +0100 Message-Id: <165608749729.2949123.11945169231578414421.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220624150651.1358849-1-ardb@kernel.org> References: <20220624150651.1358849-1-ardb@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220624_101418_454672_05DC59B8 X-CRM114-Status: GOOD ( 18.00 ) 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, 24 Jun 2022 17:06:30 +0200, Ard Biesheuvel wrote: > This series aims to streamline the boot flow with respect to cache > maintenance and redundant copying of data in memory. > > Additionally, this series removes the little dance we do to create a > kernel mapping, relocate the kernel, run the KASLR init code, tear down > the old mapping and create a new one, relocate the kernel again, and > finally enter the kernel proper. Instead, it invokes a minimal C > function 'kaslr_early_init()' while running from the ID map which > includes a temporary mapping of the FDT. This change represents a > substantial chunk of the diffstat, as it requires some work to > instantiate code that can run safely from an arbitrary load address. > > [...] Applied to arm64 (for-next/boot), thanks! [01/21] arm64: head: move kimage_vaddr variable into C file https://git.kernel.org/arm64/c/475031b6ed43 [02/21] arm64: mm: make vabits_actual a build time constant if possible https://git.kernel.org/arm64/c/0d9b1ffefabe [03/21] arm64: head: move assignment of idmap_t0sz to C code https://git.kernel.org/arm64/c/e8d13cced5c5 [04/21] arm64: head: drop idmap_ptrs_per_pgd https://git.kernel.org/arm64/c/ebd9aea1f27e [05/21] arm64: head: simplify page table mapping macros (slightly) https://git.kernel.org/arm64/c/53519ddf5894 [06/21] arm64: head: switch to map_memory macro for the extended ID map https://git.kernel.org/arm64/c/50fcd39d24c2 [07/21] arm64: head: split off idmap creation code https://git.kernel.org/arm64/c/e42ade29e3bc [08/21] arm64: kernel: drop unnecessary PoC cache clean+invalidate https://git.kernel.org/arm64/c/2e945851e268 [09/21] arm64: head: pass ID map root table address to __enable_mmu() https://git.kernel.org/arm64/c/723d3a8ed172 [10/21] arm64: mm: provide idmap pointer to cpu_replace_ttbr1() https://git.kernel.org/arm64/c/1682c45b9206 [11/21] arm64: head: add helper function to remap regions in early page tables https://git.kernel.org/arm64/c/b013c1e1c659 [12/21] arm64: head: cover entire kernel image in initial ID map https://git.kernel.org/arm64/c/c3cee924bd85 [13/21] arm64: head: use relative references to the RELA and RELR tables https://git.kernel.org/arm64/c/d7bea550279d [14/21] arm64: head: create a temporary FDT mapping in the initial ID map https://git.kernel.org/arm64/c/f70b3a23324a [15/21] arm64: idreg-override: use early FDT mapping in ID map https://git.kernel.org/arm64/c/a004393f45d9 [16/21] arm64: head: factor out TTBR1 assignment into a macro https://git.kernel.org/arm64/c/c0be8f18a3bf [17/21] arm64: head: populate kernel page tables with MMU and caches on https://git.kernel.org/arm64/c/6495b9ba6271 [18/21] arm64: head: record CPU boot mode after enabling the MMU https://git.kernel.org/arm64/c/005e12676af0 [19/21] arm64: kaslr: defer initialization to initcall where permitted https://git.kernel.org/arm64/c/fc5a89f75d2a [20/21] arm64: head: avoid relocating the kernel twice for KASLR https://git.kernel.org/arm64/c/aacd149b6238 [21/21] arm64: setup: drop early FDT pointer helpers https://git.kernel.org/arm64/c/7559d9f97581 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