From patchwork Sat Sep 26 10:26:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 11801277 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A518C139F for ; Sat, 26 Sep 2020 10:26:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 86D0C238EE for ; Sat, 26 Sep 2020 10:26:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601116018; bh=xqiPUAST54JTB0j3DmJS5nGLUhpSj79eXiwW+1nWHWw=; h=From:To:Cc:Subject:Date:List-ID:From; b=TDcGw3b/9Ir8K7b1dXz/90MxtAc5CL7of2gMsUqK5UQfIVORvcRIld87Vw0TgL+xU iww8GZvBxm4VcPGn2KcB37+XoprOWF/V56WGiWq6JeQVDjOUfL0mP/IaMB0MtZbYeB LsPsZBDw4iD1HxXvxohkf02qtfNTGjp2osdFxXXE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726309AbgIZK05 (ORCPT ); Sat, 26 Sep 2020 06:26:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:41598 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726210AbgIZK05 (ORCPT ); Sat, 26 Sep 2020 06:26:57 -0400 Received: from e123331-lin.nice.arm.com (lfbn-nic-1-188-42.w2-15.abo.wanadoo.fr [2.15.37.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4BA66238E2; Sat, 26 Sep 2020 10:26:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601116017; bh=xqiPUAST54JTB0j3DmJS5nGLUhpSj79eXiwW+1nWHWw=; h=From:To:Cc:Subject:Date:From; b=U0uU0PUF2upCmLHhsB5yH6QwoxiAfG+rgxZPDSpNWxj3fdI94gGUI8vawYu4uWp32 ft9JtTLBjhKie24JOviTP/WFaKutRSq+ZjKQPIL9E5ER8UM3KSNXcRrNYZSq1EQgNw 6zPVcJNxejg+wu7iYvsu7ItttVBLOVNHpHRx3wqE= From: Ard Biesheuvel To: linux-crypto@vger.kernel.org Cc: herbert@gondor.apana.org.au, Ard Biesheuvel , Douglas Anderson , David Laight Subject: [PATCH v2 0/2] crypto: xor - defer and optimize boot time benchmark Date: Sat, 26 Sep 2020 12:26:49 +0200 Message-Id: <20200926102651.31598-1-ardb@kernel.org> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Doug reports [0] that the XOR boot time benchmark takes more time than necessary, and runs at a time when there is little room for other boot time tasks to run concurrently. Let's fix this by #1 deferring the benchmark, and #2 uses a faster implementation. Changes since v2: - incorporate Doug's review feedback re coarse clocks and the use of pr_info - add Doug's ack to #1 [0] https://lore.kernel.org/linux-arm-kernel/20200921172603.1.Id9450c1d3deef17718bd5368580a3c44895209ee@changeid/ Cc: Douglas Anderson Cc: David Laight Ard Biesheuvel (2): crypto: xor - defer load time benchmark to a later time crypto: xor - use ktime for template benchmarking crypto/xor.c | 67 +++++++++++++------- 1 file changed, 44 insertions(+), 23 deletions(-)