From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45126) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1frtZf-0005Ro-JB for guix-patches@gnu.org; Mon, 20 Aug 2018 19:27:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1frtZe-0008T6-9M for guix-patches@gnu.org; Mon, 20 Aug 2018 19:27:03 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:50995) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1frtZe-0008Sy-4x for guix-patches@gnu.org; Mon, 20 Aug 2018 19:27:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1frtZe-0006yf-1C for guix-patches@gnu.org; Mon, 20 Aug 2018 19:27:02 -0400 Subject: [bug#32488] [PATCH] gnu: Add msr-tools. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43630) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1frtYX-0004ML-5S for guix-patches@gnu.org; Mon, 20 Aug 2018 19:25:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1frtPN-00011K-Rh for guix-patches@gnu.org; Mon, 20 Aug 2018 19:16:26 -0400 Received: from tobias.gr ([2001:470:cc92::1]:51876) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1frtPN-0000vF-Cg for guix-patches@gnu.org; Mon, 20 Aug 2018 19:16:25 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id ca3f0d49 for ; Mon, 20 Aug 2018 23:16:19 +0000 (UTC) Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id fba174a0 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Mon, 20 Aug 2018 23:16:17 +0000 (UTC) From: Tobias Geerinckx-Rice Date: Tue, 21 Aug 2018 01:16:33 +0200 Message-Id: <20180820231633.3020-1-me@tobias.gr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 32488@debbugs.gnu.org * gnu/packages/admin.scm (msr-tools): New public variable. --- gnu/packages/admin.scm | 46 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index c9230c329..ac259fc00 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -468,6 +468,52 @@ asks for a login name and then transfers over to 'login'. It is extended to allow automatic login and starting any app.") (license license:gpl2+))) +(define-public msr-tools + (package + (name "msr-tools") + (version "1.3") + (source + (origin + (method url-fetch) + (uri (string-append "https://01.org/sites/default/files/downloads/" + name "/" name "-" version ".zip")) + (sha256 + (base32 "07hxmddg0l31kjfmaq84ni142lbbvgq6391r8bd79wpm819pnigr")))) + (build-system gnu-build-system) + (arguments + `(#:make-flags + (list (string-append "sbindir=" (assoc-ref %outputs "out") "/sbin")) + #:phases + (modify-phases %standard-phases + (delete 'configure) ; no configure script + (add-before 'install 'create-output-directory + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (sbin (string-append out "/sbin"))) + (mkdir-p sbin) + #t)))) + #:tests? #f)) ; no test suite + (native-inputs + `(("unzip" ,unzip))) + (home-page "https://01.org/msr-tools/") + (synopsis "Model-Specific Register (@dfn{MSR})") + (description + "The MSR Tools project provides console utilities to directly access the +Model-Specific Registers (@dfn{MSR}s) and CPU ID of Intel-compatible processors: + +@itemize +@item @command{cpuid}: show identification and feature information of any CPU +@item @command{rdmsr}: read MSRs from any CPU or all CPUs +@item @command{wrmsr}: write to MSRs on any CPU or all CPUs +@end itemize + +These tools can be used to query and modify certain low-level CPU parameters, +such as the Turbo Boost ratio and Thermal Design Power (@dfn{TDP}) limits. + +MSR addresses differ (greatly) between processors, and any such modification can +be dangerous and may void your CPU or system board's warranty.") + (license license:gpl2))) ; cpuid.c is gpl2, {rd,wr}msr.c are gpl2+ + (define-public net-base (package (name "net-base") -- 2.18.0