Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756171AbdDEXVG (ORCPT ); Wed, 5 Apr 2017 19:21:06 -0400 Received: from mail-pg0-f48.google.com ([74.125.83.48]:33264 "EHLO mail-pg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752304AbdDEXVF (ORCPT ); Wed, 5 Apr 2017 19:21:05 -0400 From: Rick Altherr To: alex@digriz.org.uk Cc: openbmc@lists.ozlabs.org, Herbert Xu , Matt Mackall , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/3] hw_random: timeriomem_rng: Migrate to new API and improve performance Date: Wed, 5 Apr 2017 16:20:57 -0700 Message-Id: <20170405232100.2023-1-raltherr@google.com> X-Mailer: git-send-email 2.12.2.715.g7642488e1d-goog Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 810 Lines: 21 AST2400 can generate 32-bits of random data every 1us. Original driver was limited to one 32-bit read every jiffie due to deprecated API and use of timers. Migrating to new hwrng API and switching to hrtimers improves read performance of /dev/hwrng to 13Mb/s. Changes in v2: - Split API migration into separate patch - Split type and variable renames into separate patch - Split performance improvements into separate patch Rick Altherr (3): hw_random: Migrate timeriomem_rng to new API hw_random: timeriomem_rng: Shorten verbose type and variable names hw_random: timeriomem_rng: Improve performance for sub-jiffie update periods drivers/char/hw_random/timeriomem-rng.c | 157 ++++++++++++++++---------------- 1 file changed, 80 insertions(+), 77 deletions(-) -- 2.12.2.715.g7642488e1d-goog