Subject: kern/34249: ICH6 HW random number generator inoperative? pchb0: unable to read from random number generator
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <ctribo@dtcc.edu>
List: netbsd-bugs
Date: 08/21/2006 13:05:00
>Number:         34249
>Category:       kern
>Synopsis:       ICH6 HW random number generator inoperative? pchb0: unable to read from random number generator
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 21 13:05:00 +0000 2006
>Originator:     Chris Tribo
>Release:        4.99.1
>Organization:
>Environment:
NetBSD 4.99.1 #7: Mon Aug 21 08:21:21 EDT 2006 i386
>Description:
...
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0: Intel 82915P/G/GL Host (rev 0x04)
pchb0: unable to read from random number generator.
agp0 at pchb0: can't find internal VGA device config space <-- onboard video is disabled
ppb0 at pci0 dev 1 function 0: Intel 82915P/G/GL PCI Express Bridge (rev. 0x04)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled, rd/line, wr/inv ok
vga0 at pci1 dev 0 function 0: ATI Technologies Radeon X300 (RV370) 5B60 (rev. 0x00)
wsdisplay0  at bga0 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connectiong to wsdisplay0
ATI Technologies Radeo X300 Series Secondary (misc display) at pci1 dev 0 function 1 not configured
ppb1 at pci0 dev 28 function 0: Intel 82801FB/FR PCI Express Port #0 (rev. 0x03)
...
ichlpcib0 at pci0 dev 31 function 0
ichlpcib0: Intel 82801FB LPC Interface Bridge (rev. 0x03)
ichlpcib0: TCO (watchdog) timer configured.
ichlpcib0: No SpeedStep
...

-bash-3.1# rndctl -l
Source                 Bits Type      Flags
uhid1                     0 tty  estimate, collect
uhid0                     0 tty  estimate, collect
ukbd0                   512 tty  estimate, collect
ums0                      0 tty  estimate, collect
wd1                       0 disk estimate, collect
wd0                    1151 disk estimate, collect
cd0                       0 disk estimate, collect
fd0                       0 disk estimate, collect

>How-To-Repeat:
boot a current kernel on an ICH6 motherboard. ICH7,5,4,2 untested as of yet. Reading the code in /usr/src/sys/arch/x86/pci/pchb_rnd.c makes it appear that the device is present or it would have noted that it was not.
>Fix: