* [PR PATCH] New package: zenpower-dkms-0.1.12
@ 2020-09-10 15:23 2asoft
2020-09-10 16:45 ` hippi777
` (14 more replies)
0 siblings, 15 replies; 16+ messages in thread
From: 2asoft @ 2020-09-10 15:23 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1089 bytes --]
There is a new 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: 2258 bytes --]
From ca6449eae59b9f46a6f21b40355dc823e4c0622a 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/files/dkms.conf | 11 ++++++++++
srcpkgs/zenpower-dkms/template | 29 +++++++++++++++++++++++++++
2 files changed, 40 insertions(+)
create mode 100644 srcpkgs/zenpower-dkms/files/dkms.conf
create mode 100644 srcpkgs/zenpower-dkms/template
diff --git a/srcpkgs/zenpower-dkms/files/dkms.conf b/srcpkgs/zenpower-dkms/files/dkms.conf
new file mode 100644
index 00000000000..c627831d757
--- /dev/null
+++ b/srcpkgs/zenpower-dkms/files/dkms.conf
@@ -0,0 +1,11 @@
+PACKAGE_NAME="zenpower"
+PACKAGE_VERSION="@VERSION@"
+BUILT_MODULE_NAME="zenpower"
+
+AUTOINSTALL="yes"
+REMAKE_INITRD="no"
+
+MAKE="'make' -j$(nproc) TARGET=${kernelver} CFLAGS_MODULE+=@CFLGS@"
+CLEAN="make clean"
+
+DEST_MODULE_LOCATION="/kernel/drivers/hwmon/zenpower"
diff --git a/srcpkgs/zenpower-dkms/template b/srcpkgs/zenpower-dkms/template
new file mode 100644
index 00000000000..6316752a112
--- /dev/null
+++ b/srcpkgs/zenpower-dkms/template
@@ -0,0 +1,29 @@
+# Template file for 'zenpower-dkms'
+pkgname=zenpower-dkms
+_pkgname=zenpower
+version=0.1.12
+revision=1
+archs=noarch
+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}
+ vinstall ${FILESDIR}/dkms.conf 644 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
+}
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: New package: zenpower-dkms-0.1.12
2020-09-10 15:23 [PR PATCH] New package: zenpower-dkms-0.1.12 2asoft
@ 2020-09-10 16:45 ` hippi777
2020-09-11 3:52 ` [PR PATCH] [Updated] " 2asoft
` (13 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: hippi777 @ 2020-09-10 16:45 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 361 bytes --]
New comment by hippi777 on void-packages repository
https://github.com/void-linux/void-packages/pull/24807#issuecomment-690486071
Comment:
hi there :)
i think if this will be accepted (why not), then a pointer to it from the docs could be useful for those who are affected, but im not sure about the related policies, just i guess it fits...
bests! :)
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PR PATCH] [Updated] New package: zenpower-dkms-0.1.12
2020-09-10 15:23 [PR PATCH] New package: zenpower-dkms-0.1.12 2asoft
2020-09-10 16:45 ` hippi777
@ 2020-09-11 3:52 ` 2asoft
2020-09-25 5:55 ` 2asoft
` (12 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: 2asoft @ 2020-09-11 3:52 UTC (permalink / raw)
To: ml
[-- 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
+}
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PR PATCH] [Updated] New package: zenpower-dkms-0.1.12
2020-09-10 15:23 [PR PATCH] New package: zenpower-dkms-0.1.12 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
` (11 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: 2asoft @ 2020-09-25 5:55 UTC (permalink / raw)
To: ml
[-- 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 92743384e013e6841ce6566a1bce565517525910 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
+}
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PR PATCH] [Updated] New package: zenpower-dkms-0.1.12
2020-09-10 15:23 [PR PATCH] New package: zenpower-dkms-0.1.12 2asoft
` (2 preceding siblings ...)
2020-09-25 5:55 ` 2asoft
@ 2020-10-10 18:39 ` 2asoft
2020-12-20 1:55 ` [PR REVIEW] " ericonr
` (10 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: 2asoft @ 2020-10-10 18:39 UTC (permalink / raw)
To: ml
[-- 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 2eeef981bb7dea35a50bbf7de0f7def1118ef06b 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
+}
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PR REVIEW] New package: zenpower-dkms-0.1.12
2020-09-10 15:23 [PR PATCH] New package: zenpower-dkms-0.1.12 2asoft
` (3 preceding siblings ...)
2020-10-10 18:39 ` 2asoft
@ 2020-12-20 1:55 ` ericonr
2020-12-20 1:55 ` ericonr
` (9 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: ericonr @ 2020-12-20 1:55 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 182 bytes --]
New review comment by ericonr on void-packages repository
https://github.com/void-linux/void-packages/pull/24807#discussion_r546307830
Comment:
```suggestion
archs="x86_64*"
```
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PR REVIEW] New package: zenpower-dkms-0.1.12
2020-09-10 15:23 [PR PATCH] New package: zenpower-dkms-0.1.12 2asoft
` (4 preceding siblings ...)
2020-12-20 1:55 ` [PR REVIEW] " ericonr
@ 2020-12-20 1:55 ` ericonr
2020-12-20 1:55 ` ericonr
` (8 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: ericonr @ 2020-12-20 1:55 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 237 bytes --]
New review comment by ericonr on void-packages repository
https://github.com/void-linux/void-packages/pull/24807#discussion_r546307784
Comment:
No need to put `$_pkgname` here, either use the full URL or replace it with `${homepage}`.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PR REVIEW] New package: zenpower-dkms-0.1.12
2020-09-10 15:23 [PR PATCH] New package: zenpower-dkms-0.1.12 2asoft
` (5 preceding siblings ...)
2020-12-20 1:55 ` ericonr
@ 2020-12-20 1:55 ` ericonr
2021-12-31 21:31 ` [PR PATCH] [Updated] " 2asoft
` (7 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: ericonr @ 2020-12-20 1:55 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 165 bytes --]
New review comment by ericonr on void-packages repository
https://github.com/void-linux/void-packages/pull/24807#discussion_r546307721
Comment:
Please use `vsed`.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PR PATCH] [Updated] New package: zenpower-dkms-0.1.12
2020-09-10 15:23 [PR PATCH] New package: zenpower-dkms-0.1.12 2asoft
` (6 preceding siblings ...)
2020-12-20 1:55 ` ericonr
@ 2021-12-31 21:31 ` 2asoft
2022-01-03 14:36 ` [PR REVIEW] " ericonr
` (6 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: 2asoft @ 2021-12-31 21:31 UTC (permalink / raw)
To: ml
[-- 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: 1600 bytes --]
From 65cb72248ee12c33a716754efa1dce54ef89c846 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..433fdad3aac7
--- /dev/null
+++ b/srcpkgs/zenpower3-dkms/template
@@ -0,0 +1,28 @@
+# Template file for 'zenpower3-dkms'
+pkgname=zenpower3-dkms
+_pkgname=zenpower3
+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}
+ 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
+}
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PR REVIEW] New package: zenpower-dkms-0.1.12
2020-09-10 15:23 [PR PATCH] New package: zenpower-dkms-0.1.12 2asoft
` (8 preceding siblings ...)
2022-01-03 14:36 ` [PR REVIEW] " ericonr
@ 2022-01-03 14:36 ` ericonr
2022-01-04 6:39 ` [PR PATCH] [Updated] " 2asoft
` (4 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: ericonr @ 2022-01-03 14:36 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 189 bytes --]
New review comment by ericonr on void-packages repository
https://github.com/void-linux/void-packages/pull/24807#discussion_r777512850
Comment:
Shouldn't this be left for the user to do?
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PR REVIEW] New package: zenpower-dkms-0.1.12
2020-09-10 15:23 [PR PATCH] New package: zenpower-dkms-0.1.12 2asoft
` (7 preceding siblings ...)
2021-12-31 21:31 ` [PR PATCH] [Updated] " 2asoft
@ 2022-01-03 14:36 ` ericonr
2022-01-03 14:36 ` ericonr
` (5 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: ericonr @ 2022-01-03 14:36 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 230 bytes --]
New review comment by ericonr on void-packages repository
https://github.com/void-linux/void-packages/pull/24807#discussion_r777512615
Comment:
Using `vsed` is preferred. Could mention that this is taken from the makefile, too.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PR PATCH] [Updated] New package: zenpower-dkms-0.1.12
2020-09-10 15:23 [PR PATCH] New package: zenpower-dkms-0.1.12 2asoft
` (9 preceding siblings ...)
2022-01-03 14:36 ` ericonr
@ 2022-01-04 6:39 ` 2asoft
2022-02-13 19:20 ` 2asoft
` (3 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: 2asoft @ 2022-01-04 6:39 UTC (permalink / raw)
To: ml
[-- 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
+}
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PR PATCH] [Updated] New package: zenpower-dkms-0.1.12
2020-09-10 15:23 [PR PATCH] New package: zenpower-dkms-0.1.12 2asoft
` (10 preceding siblings ...)
2022-01-04 6:39 ` [PR PATCH] [Updated] " 2asoft
@ 2022-02-13 19:20 ` 2asoft
2022-05-15 2:12 ` github-actions
` (2 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: 2asoft @ 2022-02-13 19:20 UTC (permalink / raw)
To: ml
[-- 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 d056aed74264fc70dbcc8d573f9334ca082f2fa9 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
+}
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: New package: zenpower-dkms-0.1.12
2020-09-10 15:23 [PR PATCH] New package: zenpower-dkms-0.1.12 2asoft
` (11 preceding siblings ...)
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
14 siblings, 0 replies; 16+ messages in thread
From: github-actions @ 2022-05-15 2:12 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 305 bytes --]
New comment by github-actions[bot] on void-packages repository
https://github.com/void-linux/void-packages/pull/24807#issuecomment-1126843534
Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PR REVIEW] New package: zenpower-dkms-0.1.12
2020-09-10 15:23 [PR PATCH] New package: zenpower-dkms-0.1.12 2asoft
` (12 preceding siblings ...)
2022-05-15 2:12 ` github-actions
@ 2022-05-16 1:20 ` 2asoft
2022-05-30 2:14 ` [PR PATCH] [Closed]: " github-actions
14 siblings, 0 replies; 16+ messages in thread
From: 2asoft @ 2022-05-16 1:20 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 268 bytes --]
New review comment by 2asoft on void-packages repository
https://github.com/void-linux/void-packages/pull/24807#discussion_r873263890
Comment:
Other Void ports that carry DKMS modules that I've seen also install said modules; I just followed the existing "example".
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PR PATCH] [Closed]: New package: zenpower-dkms-0.1.12
2020-09-10 15:23 [PR PATCH] New package: zenpower-dkms-0.1.12 2asoft
` (13 preceding siblings ...)
2022-05-16 1:20 ` [PR REVIEW] " 2asoft
@ 2022-05-30 2:14 ` github-actions
14 siblings, 0 replies; 16+ messages in thread
From: github-actions @ 2022-05-30 2:14 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 927 bytes --]
There's a closed pull request on the void-packages repository
New package: zenpower-dkms-0.1.12
https://github.com/void-linux/void-packages/pull/24807
Description:
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
```
^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2022-05-30 2:14 UTC | newest]
Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-10 15:23 [PR PATCH] New package: zenpower-dkms-0.1.12 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 ` [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
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).