[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/06: gnu: Add msr-tools.
From: |
Tobias Geerinckx-Rice |
Subject: |
02/06: gnu: Add msr-tools. |
Date: |
Thu, 30 Aug 2018 13:29:03 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit 6e8c75b88435550906e251dd4a9c2eb732f803d4
Author: Tobias Geerinckx-Rice <address@hidden>
Date: Thu Aug 30 17:50:48 2018 +0200
gnu: Add msr-tools.
* gnu/packages/hardware.scm (msr-tools): New public variable.
---
gnu/packages/hardware.scm | 49 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm
index d3a99af..f77336e 100644
--- a/gnu/packages/hardware.scm
+++ b/gnu/packages/hardware.scm
@@ -73,3 +73,52 @@ ddcutil allows colour-related settings to be saved at the
time a monitor is
calibrated, and restored when the calibration is applied.")
(license (list license:bsd-3 ; FindDDCUtil.cmake
license:gpl2+)))) ; everything else
+
+(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)
+ ;; 'make install' assumes that sbindir exists.
+ (let* ((out (assoc-ref outputs "out"))
+ (sbin (string-append out "/sbin")))
+ (mkdir-p sbin)
+ #t))))
+ #:tests? #f)) ; no test suite
+ (native-inputs
+ `(("unzip" ,unzip)))
+ ;; These registers and the CPUID instruction only exist on (most) x86
chips.
+ (supported-systems (list "i686-linux" "x86_64-linux"))
+ (home-page "https://01.org/msr-tools/")
+ (synopsis "Read and write Model-Specific Registers (@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:
+
address@hidden
address@hidden @command{cpuid}: show identification and feature information of
any CPU
address@hidden @command{rdmsr}: read MSRs from any CPU or all CPUs
address@hidden @command{wrmsr}: write to MSRs on any CPU or all CPUs
address@hidden 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+
- branch master updated (7693f67 -> 0c048c1), Tobias Geerinckx-Rice, 2018/08/30
- 06/06: gnu: cmocka: Update to 1.1.2., Tobias Geerinckx-Rice, 2018/08/30
- 05/06: gnu: keyutils: Update to 1.5.11., Tobias Geerinckx-Rice, 2018/08/30
- 04/06: gnu: Don't use unstable tarballs in (packages opencl)., Tobias Geerinckx-Rice, 2018/08/30
- 03/06: gnu: Add pipewalker., Tobias Geerinckx-Rice, 2018/08/30
- 01/06: gnu: Add ddcutil., Tobias Geerinckx-Rice, 2018/08/30
- 02/06: gnu: Add msr-tools.,
Tobias Geerinckx-Rice <=