From: 2asoft <2asoft@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: zenpower-dkms-0.1.12
Date: Fri, 11 Sep 2020 05:52:54 +0200 [thread overview]
Message-ID: <20200911035254.bixxI3Qe6cWfPnWz2eNKsvf9awt8CMUGEp6YOd_f5jY@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-24807@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 1094 bytes --]
There is an updated pull request by 2asoft against master on the void-packages repository
https://github.com/2asoft/void-packages 2asoft/zenpower-dkms
https://github.com/void-linux/void-packages/pull/24807
New package: zenpower-dkms-0.1.12
This adds a Linux kernel driver for reading sensors for AMD Zen family CPUs (as a DKMS module).
I did not write the code, merely the package template.
Verified on a [B550I AORUS PRO AX](https://www.gigabyte.com/Motherboard/B550I-AORUS-PRO-AX-rev-10) with a Ryzen 5 3600.
Without this module:
```zsh
% sensors
No sensors found!
Make sure you loaded all the kernel drivers you need.
Try sensors-detect to find out which these are.
```
With this module:
```zsh
% sensors
zenpower-pci-00c3
Adapter: PCI adapter
SVI2_Core: +0.91 V
SVI2_SoC: +1.09 V
Tdie: +40.0°C (high = +95.0°C)
Tctl: +40.0°C
Tccd1: +40.2°C
SVI2_P_Core: 5.45 W
SVI2_P_SoC: 11.91 W
SVI2_C_Core: +5.27 A
SVI2_C_SoC: +11.18 A
```
A patch file from https://github.com/void-linux/void-packages/pull/24807.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-2asoft/zenpower-dkms-24807.patch --]
[-- Type: text/x-diff, Size: 1581 bytes --]
From 27f27b2dbb99d0aa058a833988b99809f1a02b0a Mon Sep 17 00:00:00 2001
From: Anton Afanasyev <anton@doubleasoftware.com>
Date: Wed, 9 Sep 2020 18:01:32 -0700
Subject: [PATCH] New package: zenpower-dkms-0.1.12
---
srcpkgs/zenpower-dkms/template | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
create mode 100644 srcpkgs/zenpower-dkms/template
diff --git a/srcpkgs/zenpower-dkms/template b/srcpkgs/zenpower-dkms/template
new file mode 100644
index 00000000000..fcd9e3f2e4c
--- /dev/null
+++ b/srcpkgs/zenpower-dkms/template
@@ -0,0 +1,28 @@
+# Template file for 'zenpower-dkms'
+pkgname=zenpower-dkms
+_pkgname=zenpower
+version=0.1.12
+revision=1
+archs="x86_64"
+wrksrc="${_pkgname}-${version}"
+depends="dkms"
+short_desc="Linux kernel driver for reading sensors for AMD Zen family CPUs (DKMS)"
+maintainer="Anton Afanasyev <anton@doubleasoftware.com>"
+license="GPL-2.0-only"
+homepage="https://github.com/ocerman/zenpower"
+distfiles="https://github.com/ocerman/$_pkgname/archive/v${version}.tar.gz"
+checksum=fd25dffbc0f0139e167aa8adecc61ce200f0395c6778302e236b4043f125e77d
+dkms_modules="${_pkgname} ${version}"
+
+do_install() {
+ vmkdir /usr/src/${_pkgname}-${version}
+ vcopy "./*" usr/src/${_pkgname}-${version}
+ sed -e "s/@CFLGS@//" \
+ -e "s/@VERSION@/${version}-${revision}/" \
+ -i "${PKGDESTDIR}/usr/src/${_pkgname}-${version}/dkms.conf"
+
+ # modules-load.d(5) file.
+ vmkdir usr/lib/modules-load.d
+ echo "${_pkgname}" > ${DESTDIR}/usr/lib/modules-load.d/${_pkgname}.conf
+ chmod 644 ${DESTDIR}/usr/lib/modules-load.d/${_pkgname}.conf
+}
next prev parent reply other threads:[~2020-09-11 3:52 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-10 15:23 [PR PATCH] " 2asoft
2020-09-10 16:45 ` hippi777
2020-09-11 3:52 ` 2asoft [this message]
2020-09-25 5:55 ` [PR PATCH] [Updated] " 2asoft
2020-10-10 18:39 ` 2asoft
2020-12-20 1:55 ` [PR REVIEW] " ericonr
2020-12-20 1:55 ` ericonr
2020-12-20 1:55 ` ericonr
2021-12-31 21:31 ` [PR PATCH] [Updated] " 2asoft
2022-01-03 14:36 ` [PR REVIEW] " ericonr
2022-01-03 14:36 ` ericonr
2022-01-04 6:39 ` [PR PATCH] [Updated] " 2asoft
2022-02-13 19:20 ` 2asoft
2022-05-15 2:12 ` github-actions
2022-05-16 1:20 ` [PR REVIEW] " 2asoft
2022-05-30 2:14 ` [PR PATCH] [Closed]: " github-actions
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200911035254.bixxI3Qe6cWfPnWz2eNKsvf9awt8CMUGEp6YOd_f5jY@z \
--to=2asoft@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).