Github messages for voidlinux
 help / color / mirror / Atom feed
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: Tue, 04 Jan 2022 07:39:41 +0100	[thread overview]
Message-ID: <20220104063941.3dRqlWT7a7x0MW_ZF9i6fXN49k2cYccd-PR3AZI7Vi4@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: 1606 bytes --]

From 4d58d287fc0f468c3c6720fdaeb90a5569f23e73 Mon Sep 17 00:00:00 2001
From: Anton Afanasyev <1157248+2asoft@users.noreply.github.com>
Date: Wed, 9 Sep 2020 18:01:32 -0700
Subject: [PATCH] New package: zenpower-dkms-0.2

---
 srcpkgs/zenpower3-dkms/template | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 srcpkgs/zenpower3-dkms/template

diff --git a/srcpkgs/zenpower3-dkms/template b/srcpkgs/zenpower3-dkms/template
new file mode 100644
index 000000000000..2879cbd2ec1f
--- /dev/null
+++ b/srcpkgs/zenpower3-dkms/template
@@ -0,0 +1,28 @@
+# Template file for 'zenpower3-dkms'
+pkgname=zenpower3-dkms
+_pkgname=${pkgname%-*}
+version=0.2.0
+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/Ta180m/zenpower3"
+distfiles="https://github.com/Ta180m/zenpower3/archive/v${version}.tar.gz"
+checksum=b206c1dfd8ea742a802126d012404d31ae62f2a23ae4723ea1c0f9f54581f6a3
+dkms_modules="${_pkgname} ${version}"
+
+do_install() {
+	vmkdir /usr/src/${_pkgname}-${version}
+	vcopy "./*" usr/src/${_pkgname}-${version}
+	vsed -i -e 's/@CFLGS@//' \
+		-e 's/@VERSION@/${version}-${revision}/' \
+		"${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
+}

  parent reply	other threads:[~2022-01-04  6:39 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 ` [PR PATCH] [Updated] " 2asoft
2020-09-25  5:55 ` 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 ` 2asoft [this message]
2022-02-13 19:20 ` [PR PATCH] [Updated] " 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=20220104063941.3dRqlWT7a7x0MW_ZF9i6fXN49k2cYccd-PR3AZI7Vi4@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).