From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 4 00:10:26 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6895024A for ; Tue, 4 Dec 2012 00:10:26 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 079BE8FC0C for ; Tue, 4 Dec 2012 00:10:25 +0000 (UTC) Received: from tom.home (localhost [127.0.0.1]) by kib.kiev.ua (8.14.5/8.14.5) with ESMTP id qB40AMlT092891; Tue, 4 Dec 2012 02:10:22 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.7.1 kib.kiev.ua qB40AMlT092891 Received: (from kostik@localhost) by tom.home (8.14.5/8.14.5/Submit) id qB40AMlc092890; Tue, 4 Dec 2012 02:10:22 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 4 Dec 2012 02:10:22 +0200 From: Konstantin Belousov To: Karl Pielorz Subject: Re: Two Intel E31220L 9.0-Stable systems, 'kern.random' missing on one? Message-ID: <20121204001022.GM3013@kib.kiev.ua> References: <019F3C674FEE8BF6DB530F39@MightyAtom.tdx.co.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zMJiK8ZuAkzScPs5" Content-Disposition: inline In-Reply-To: <019F3C674FEE8BF6DB530F39@MightyAtom.tdx.co.uk> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on tom.home Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Dec 2012 00:10:26 -0000 --zMJiK8ZuAkzScPs5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 03, 2012 at 03:11:21PM +0000, Karl Pielorz wrote: >=20 > Hi, >=20 > I have two SuperMicro E31220L based systems - both had identical=20 > /etc/sysctl.conf - I then shifted them from 9.0-R to 9.0-Stable (as of=20 > 2012/12/03). >=20 > Now I've noticed of them complains at boot time that a bunch of OID's are= =20 > missing - and sure enough: >=20 > " > sysctl kern.random > sysctl: unknown oid 'kern.random' > " >=20 > But the other system returns these fine. >=20 > One system ID's as 'Intel E31220L @ 2.20Ghz' - the other ID's as 'Intel= =20 > E31220L V2 @ 2.30Ghz' the V2 system is apparently 'missing' the kern.rand= om=20 > stuff. >=20 > The only reason I can think for the OID's not being present is if one=20 > system is using hardware RNG? - Though 'man 4 random' states: >=20 > "The only hardware implementation currently is for the > VIA C3 Nehemiah (stepping 3 or greater) CPU. More will be added in = the > future." >=20 > Is there any other reason why they would have 'disappeared' on the non V2= =20 > system? (in fact, looking at the Feature2 line I can see 'RDRAND' on the = V2=20 > system, hmm so I'm guessing that's it?!) You noted that RDRAND is supported by your hardware. And indeed, FreeBSD got the RDRAND (aka Bull Mountain) hardware random number generator support recently. =46rom my reading of the sys/dev/random code, the kern.random OID is only instantiated if the software implementation is selected. If you prefer software, you can disable RDRAND with hw.ivy_rng_enable=3D0 tunable. --zMJiK8ZuAkzScPs5 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQIcBAEBAgAGBQJQvT9tAAoJEJDCuSvBvK1BvHMP/1vFEH3p/QS+3xVFMbhxiDOZ X8p+6GFyAHdBOx93fdkuxmRFrpv9fx5b3ur+vMWOmveQfKvu+vgSgch+2zlHubN1 6EmMVSzae/AtFz42bNxM+Pp0Z83bSzbuSmz+FdnzyW0bt3XBxKbyVANmTVEXs2ID UjRHGAEQov1FUto3aL/IuATiAdAbj3WceCIkHHbKGP9zqxN4sCTn8NrxSQ70pwMB Wlc9nYTZsZquH3GX7hCh6nmm9XlVoR3DQyAwIauBBFtGXNRKSTNaw65aI+uHmNWO QLg2sWnaYm2SVC2DQj3CQL7fW0p2BXBWh5QDGCAsFskwREZgtVdV+VRjDmVYwBfP hXUIrHgxWCV6B2Fx5Afx+2wYKZK1oewn4KpBzg4wZXQF84hNGQ6mQpxzMxkikJvG xI1xAr7JWUho/2WFQeRT08N6hJfAPxPFYjr1euA1OKS24roy8seV3QHFEWQ2QS19 ECyQ9Rov2zE4ez2t82kmMjQ+bbaDoIOGioJeR53Z2lhH4Q+4vMxD9VVYLIEBsU0I FNLdCIzG+IjTrQHNlMd+6m6XLiSDIhztetEacHbKh4fSC0kP83XzKtxu/DAC14Sd 2kE6Sp83kKEYuSosUncEYPCUDbkbBnpELIYTo+xXBK91W1BNAKI4DQmce9FOuy1z 7OrTaotQ1E29CvHxkPVk =OHvM -----END PGP SIGNATURE----- --zMJiK8ZuAkzScPs5--