From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pf0-f177.google.com ([209.85.192.177]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dGndE-0005WS-BQ for kexec@lists.infradead.org; Fri, 02 Jun 2017 14:32:53 +0000 Received: by mail-pf0-f177.google.com with SMTP id n23so49670581pfb.2 for ; Fri, 02 Jun 2017 07:32:31 -0700 (PDT) Subject: Re: [PATCH v3 0/2] kexec-tools: arm64: Enable D-cache in purgatory References: <59312080.1090906@arm.com> From: Pratyush Anand Message-ID: <2b80fca3-b462-a1b5-36db-e8b8b8fdc126@redhat.com> Date: Fri, 2 Jun 2017 20:02:25 +0530 MIME-Version: 1.0 In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "kexec" Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Ard Biesheuvel , Bhupesh SHARMA Cc: Mark Rutland , Baoquan He , "kexec@lists.infradead.org" , Simon Horman , James Morse , Dave Young , "linux-arm-kernel@lists.infradead.org" Hi Ard, Thanks for all the inputs. On Friday 02 June 2017 05:14 PM, Ard Biesheuvel wrote: >> Alternatively, a SHA-256 implementation that uses movz/movk sequences >> instead of ldr instructions to load the round constants would already >> be 5x faster, given that we don't need page tables to enable the >> I-cache. > Actually, looking at the C code and the objdump of the kernel's > sha256_generic driver, it is likely that it is already doing this, and > none of the points I made actually make a lot of sense ... > > Pratyush: I assume you are already enabling the I-cache in the purgatory? It's not enabled yet. But, I had tried first with enabling only I-cache, but that did not make much difference in execution time. ~Pratyush _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec