From owner-freebsd-current@FreeBSD.ORG Thu Jun 5 20:09:37 2008 Return-Path: Delivered-To: current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 23273106571B; Thu, 5 Jun 2008 20:09:37 +0000 (UTC) (envelope-from stas@ht-systems.ru) Received: from smtp.ht-systems.ru (mr0.ht-systems.ru [78.110.50.55]) by mx1.freebsd.org (Postfix) with ESMTP id 9DBF28FC23; Thu, 5 Jun 2008 20:09:36 +0000 (UTC) (envelope-from stas@ht-systems.ru) Received: from [78.110.49.49] (helo=quasar.ht-systems.ru) by smtp.ht-systems.ru with esmtpa (Exim 4.62) (envelope-from ) id 1K4KxV-0006NQ-Qs; Thu, 05 Jun 2008 23:17:13 +0400 Received: by quasar.ht-systems.ru (Postfix, from userid 1024) id 17AF473007; Thu, 5 Jun 2008 23:17:10 +0400 (MSD) Date: Thu, 5 Jun 2008 23:17:05 +0400 From: Stanislav Sedov To: current@FreeBSD.org Message-Id: <20080605231705.db589d89.stas@FreeBSD.org> Organization: The FreeBSD Project X-XMPP: ssedov@jabber.ru X-Voice: +7 916 849 20 23 X-PGP-Fingerprint: F21E D6CC 5626 9609 6CE2 A385 2BF5 5993 EB26 9581 X-Mailer: carrier-pigeon Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Thu__5_Jun_2008_23_17_05_+0400_.9i9sGHxFp9UIvIe" Cc: rpaulo@FreeBSD.org, kib@FreeBSD.org Subject: cpuctl(formely devcpu) patch test request X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jun 2008 20:09:37 -0000 --Signature=_Thu__5_Jun_2008_23_17_05_+0400_.9i9sGHxFp9UIvIe Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, FreeBSD hackers! Due to increasing requests to have a special device to provide MSR reading/writing abilities in the base system, it was decided to integrate sysutils/devcpu module into the kernel. Given the fact there were no new bugs found in devcpu for a long time (though I fixed several while preparing patches;-)) this should not brake our kernel entirely. Basically, the patch[1] implements a new pseudo-device cpuctl which provides interface to read/write machine- specific registers, retrieve CPUID data and update processor firmware (on P6+ and K8 cpus). All of this operations are performed via simple ioctl interface. Currently, only amd64 and i386 cpus are supported. I'd like to ask all interested parties to review the patch mentioned[1]. kib@ was kind enough to review the work on early stages (thanks a lot!) but there might be bugs that was not noticed yet. Or you might have some points about the interface and implementation - tell it now, before the code hits the tree. I plan to update the microcode update utility to use the new interface when it will be committed. devcpu module will be shipped for older FreeBSD versions. Thanks! [1] http://www.SpringDaemons.com/stas/cpuctl.diff --=20 Stanislav Sedov ST4096-RIPE --Signature=_Thu__5_Jun_2008_23_17_05_+0400_.9i9sGHxFp9UIvIe Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkhIO7YACgkQK/VZk+smlYE88QCfbpX4fN2KsDKJggmp811l1VuS atEAmwRn3knCQhxhjMnnjsPr3IlN1iyx =L2tb -----END PGP SIGNATURE----- --Signature=_Thu__5_Jun_2008_23_17_05_+0400_.9i9sGHxFp9UIvIe--