[PATCH 0/2]: Niagara2 RNG driver.

From: David Miller
Date: Fri May 16 2008 - 19:54:35 EST



These next two patches implement the RNG driver for Niagara2.
They are also available on the master branch at:

git://git.kernel.org/pub/scm/linux/kernel/git/davem/n2rng-2.6.git

The driver transparently works on both control and guest nodes in
virtualized environments.

I've testedit on both single and dual socket Niagara2 systems, and
rngd seems to be happy with the output. Below is a typical driver
load and rng stats message log.

Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>

--------------------
[1102905.419644] n2rng.c:v0.1 (May 15, 2008)
[1102905.419687] n2rng f027a3c8: Registered RNG HVAPI major 2 minor 0
[1102905.419707] n2rng f027a3c8: Found Victoria Falls RNG, units: 2
[1102905.423798] n2rng f027a3c8: Selftest passed on unit 0
[1102905.432773] n2rng f027a3c8: Selftest passed on unit 1
[1102905.432813] n2rng f027a3c8: RNG ready
--------------------
May 16 16:34:07 maramba rngd[4674]: stats: bits received from HRNG source: 500064
May 16 16:34:07 maramba rngd[4674]: stats: bits sent to kernel pool: 440512
May 16 16:34:07 maramba rngd[4674]: stats: entropy added to kernel pool: 440512
May 16 16:34:07 maramba rngd[4674]: stats: FIPS 140-2 successes: 25
May 16 16:34:07 maramba rngd[4674]: stats: FIPS 140-2 failures: 0
May 16 16:34:07 maramba rngd[4674]: stats: FIPS 140-2(2001-10-10) Monobit: 0
May 16 16:34:07 maramba rngd[4674]: stats: FIPS 140-2(2001-10-10) Poker: 0
May 16 16:34:07 maramba rngd[4674]: stats: FIPS 140-2(2001-10-10) Runs: 0
May 16 16:34:07 maramba rngd[4674]: stats: FIPS 140-2(2001-10-10) Long run: 0
May 16 16:34:07 maramba rngd[4674]: stats: FIPS 140-2(2001-10-10) Continuous run: 0
May 16 16:34:07 maramba rngd[4674]: stats: HRNG source speed: (min=425.351; avg=560.278; max=3314.314)Kibits/s
May 16 16:34:07 maramba rngd[4674]: stats: FIPS tests speed: (min=699.644; avg=9559.709; max=20302.755)Kibits/s
May 16 16:34:07 maramba rngd[4674]: stats: Lowest ready-buffers level: 2
May 16 16:34:07 maramba rngd[4674]: stats: Entropy starvations: 0
May 16 16:34:07 maramba rngd[4674]: stats: Time spent starving for entropy: (min=0; avg=0.000; max=0)us
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/