* [bug#32488] [PATCH] gnu: Add msr-tools.
@ 2018-08-20 23:16 Tobias Geerinckx-Rice
2018-08-20 23:34 ` Tobias Geerinckx-Rice
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Tobias Geerinckx-Rice @ 2018-08-20 23:16 UTC (permalink / raw)
To: 32488
* 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
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [bug#32488] [PATCH] gnu: Add msr-tools.
2018-08-20 23:16 [bug#32488] [PATCH] gnu: Add msr-tools Tobias Geerinckx-Rice
@ 2018-08-20 23:34 ` Tobias Geerinckx-Rice
2018-08-20 23:46 ` Tobias Geerinckx-Rice
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Tobias Geerinckx-Rice @ 2018-08-20 23:34 UTC (permalink / raw)
To: 32488
Tobias Geerinckx-Rice wrote:
> * gnu/packages/admin.scm (msr-tools): New public variable.
I suspect this is Linux-specific, so it would end up in linux.scm.
Alternatively, I've been considering something like hardware.scm
where things like ddcutil[0] could live. These things being
Linux-specific is an (unfortunate) implementation detail, not
really a meaningful category.
I'm fine with whatever.
Kind regards,
T G-R
[0]: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=32011
^ permalink raw reply [flat|nested] 5+ messages in thread
* [bug#32488] [PATCH] gnu: Add msr-tools.
2018-08-20 23:16 [bug#32488] [PATCH] gnu: Add msr-tools Tobias Geerinckx-Rice
2018-08-20 23:34 ` Tobias Geerinckx-Rice
@ 2018-08-20 23:46 ` Tobias Geerinckx-Rice
2018-08-22 22:44 ` Ludovic Courtès
2018-08-30 17:53 ` bug#32488: " Tobias Geerinckx-Rice
3 siblings, 0 replies; 5+ messages in thread
From: Tobias Geerinckx-Rice @ 2018-08-20 23:46 UTC (permalink / raw)
To: 32488
Tobias Geerinckx-Rice wrote:
> * 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
Also, as Marius just noted, this is all hella x86-specific so just
imagine a
+ (supported-systems '("i686-linux" "x86_64-linux"))
right around here.
Kind regards,
T G-R
^ permalink raw reply [flat|nested] 5+ messages in thread
* [bug#32488] [PATCH] gnu: Add msr-tools.
2018-08-20 23:16 [bug#32488] [PATCH] gnu: Add msr-tools Tobias Geerinckx-Rice
2018-08-20 23:34 ` Tobias Geerinckx-Rice
2018-08-20 23:46 ` Tobias Geerinckx-Rice
@ 2018-08-22 22:44 ` Ludovic Courtès
2018-08-30 17:53 ` bug#32488: " Tobias Geerinckx-Rice
3 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2018-08-22 22:44 UTC (permalink / raw)
To: Tobias Geerinckx-Rice; +Cc: 32488
Hi Tobias!
Tobias Geerinckx-Rice <me@tobias.gr> skribis:
> * gnu/packages/admin.scm (msr-tools): New public variable.
LGTM with ‘supported-systems’ as you note. No strong opinion as to the
module where it should go. :-)
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#32488: [PATCH] gnu: Add msr-tools.
2018-08-20 23:16 [bug#32488] [PATCH] gnu: Add msr-tools Tobias Geerinckx-Rice
` (2 preceding siblings ...)
2018-08-22 22:44 ` Ludovic Courtès
@ 2018-08-30 17:53 ` Tobias Geerinckx-Rice
3 siblings, 0 replies; 5+ messages in thread
From: Tobias Geerinckx-Rice @ 2018-08-30 17:53 UTC (permalink / raw)
To: 32488-done
Guix, Ludo',
Pushed as 6e8c75b88435550906e251dd4a9c2eb732f803d4.
Thanks for the review,
T G-R
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-08-30 18:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-20 23:16 [bug#32488] [PATCH] gnu: Add msr-tools Tobias Geerinckx-Rice
2018-08-20 23:34 ` Tobias Geerinckx-Rice
2018-08-20 23:46 ` Tobias Geerinckx-Rice
2018-08-22 22:44 ` Ludovic Courtès
2018-08-30 17:53 ` bug#32488: " Tobias Geerinckx-Rice
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.