add hw_random RNG driver
Subsystems (2)
PATCH 2/2 add hw_random RNG driver
#
# drivers/char/Config.in 1.48 -> 1.49
# Documentation/Configure.help 1.176 -> 1.177
# drivers/char/Makefile 1.34 -> 1.35
# (new) -> 1.1 drivers/char/hw_random.c # (new) -> 1.2 Documentation/hw_random.txt
#
# --------------------------------------------
# 03/08/07 [email protected] 1.1067
# [hw_random] add combined Intel+AMD+VIA h/w RNG driver # -------------------------------------------- #
Documentation/Configure.help +15 -0
@@ -18797,6 +18797,21 @@ If unsure, say N. +Intel/AMD/VIA HW Random Number Generator support +CONFIG_HW_RANDOM + This driver provides kernel-side support for the + Random Number Generator hardware found on Intel i8xx-based motherboards, + AMD 76x-based motherboards, and Via Nehemiah CPUs. + + Provides a character driver, used to read() entropy data. + + To compile this driver as a module ( = code which can be inserted in + and removed from the running kernel whenever you want), say M here + and read <file:Documentation/modules.txt>. The module will be called + hw_random. + + If unsure, say N. + Power Management support CONFIG_PM "Power Management" means that parts of your computer are shut
Documentation/hw_random.txt new file +138 -0
138 lines not on this page · raw message
drivers/char/Config.in +4 -0
@@ -267,6 +267,10 @@ if [ "$CONFIG_X86" = "y" -o "$CONFIG_IA64" = "y" ]; then dep_tristate 'Intel i8x0 Random Number Generator support' CONFIG_INTEL_RNG $CONFIG_PCI fi +if [ "$CONFIG_X86" = "y" -o "$CONFIG_IA64" = "y" -o \ + "$CONFIG_X86_64" = "y" ]; then + dep_tristate 'Intel/AMD/VIA HW Random Number Generator support' CONFIG_HW_RANDOM $CONFIG_PCI +fi dep_tristate 'AMD 76x native power management (Experimental)' CONFIG_AMD_PM768 $CONFIG_PCI tristate '/dev/nvram support' CONFIG_NVRAM tristate 'Enhanced Real Time Clock Support' CONFIG_RTC
drivers/char/Makefile +1 -0
@@ -247,6 +247,7 @@ obj-$(CONFIG_DS1620) += ds1620.o obj-$(CONFIG_INTEL_RNG) += i810_rng.o obj-$(CONFIG_AMD_RNG) += amd768_rng.o +obj-$(CONFIG_HW_RANDOM) += hw_random.o obj-$(CONFIG_AMD_PM768) += amd76x_pm.o obj-$(CONFIG_BRIQ_PANEL) += briq_panel.o
drivers/char/hw_random.c new file +631 -0
631 lines not on this page · raw message
Documentation/hw_random.txt line 26
Quoted 4 lines · In article <[email protected]> you wrote:
Documentation/hw_random.txt new file +4
-0+ bits the RNG circuitry will enter a low power state. Intel will + provide a binary software driver to give third party software + access to our RNG for use as a security feature. At this time, + the RNG is only to be used with a system in an OS-present state.
this part is confusing, seems it does not apply to linux kernel?
Review
Quoted 2 lines
(quoted diff) +2
-0+ hardware is faulty or has been tampered with). Data is only + output if the hardware "has-data" flag is set
where is the flag coming from, where can one read it? What happens if no data is present, will it block?
Greetings
Bernd
Signature · 2 lines
eckes privat - http://www.eckes.org/ Project Freefire - http://www.freefire.org/
Quoted 9 lines · Bernd Eckenfels
Documentation/hw_random.txt line 26
Quoted 4 lines · In article <[email protected]> you wrote:
Documentation/hw_random.txt new file +4
-0+ bits the RNG circuitry will enter a low power state. Intel will + provide a binary software driver to give third party software + access to our RNG for use as a security feature. At this time, + the RNG is only to be used with a system in an OS-present state.this part is confusing, seems it does not apply to linux kernel?
yes, I agree.
Quoted 6 lines
Review
Quoted 2 lines
(quoted diff) +2
-0+ hardware is faulty or has been tampered with). Data is only + output if the hardware "has-data" flag is setwhere is the flag coming from, where can one read it? What happens if no data is present, will it block?
Correct, it will block.
Jeff