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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C2732C07E9D for ; Tue, 18 Oct 2022 11:57:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230327AbiJRL5v (ORCPT ); Tue, 18 Oct 2022 07:57:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230192AbiJRL5l (ORCPT ); Tue, 18 Oct 2022 07:57:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3845BCB8D for ; Tue, 18 Oct 2022 04:57:32 -0700 (PDT) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 401A761536 for ; Tue, 18 Oct 2022 11:57:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 53E4CC433D6; Tue, 18 Oct 2022 11:57:29 +0000 (UTC) Date: Tue, 18 Oct 2022 12:57:25 +0100 From: Catalin Marinas To: Ard Biesheuvel Cc: linux-efi@vger.kernel.org, keescook@chromium.org, Matthew Garrett , Peter Jones , Ilias Apalodimas , Palmer Dabbelt , Atish Patra , Arnd Bergmann , Huacai Chen , Xi Ruoyao , Lennart Poettering , Jeremy Linton , Will Deacon Subject: Re: [PATCH 02/21] arm64: efi: Avoid dcache_clean_poc() altogether in efi_enter_kernel() Message-ID: References: <20221017171700.3736890-1-ardb@kernel.org> <20221017171700.3736890-3-ardb@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221017171700.3736890-3-ardb@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-efi@vger.kernel.org On Mon, Oct 17, 2022 at 07:16:41PM +0200, Ard Biesheuvel wrote: > To allow efi_enter_kernel() to be shared with the EFI zboot decompressor > build, drop another reference to dcache_clean_poc() and replace it with > a single DC CVAC instruction. To ensure that it covers the remainder of > efi_enter_kernel() as intended, reorganize the code a bit so it fits in > a 32-byte cacheline, and align it to 32 bytes. (Even though the > architecture defines 16 as the minimum D-cache line size, even the > chosen value of 32 is highly unlikely to ever be encountered on real > hardware, and this works with any line size >= 32) This should do. > -0: > + adr x4, 1f > + dc civac, x4 s/civac/cvac/ ? Otherwise, Acked-by: Catalin Marinas