Package Details: zenpower3-dkms 0.2.0-10

Git Clone URL: https://aur.archlinux.org/zenpower3-dkms.git (read-only, click to copy)
Package Base: zenpower3-dkms
Description: Linux kernel driver for reading sensors for AMD Zen family CPUs
Upstream URL: https://github.com/AliEmreSenel/zenpower3
Keywords: amd dkms driver ryzen sensors zen zenpower
Licenses: GPL2
Conflicts: zenpower, zenpower3
Provides: zenpower, zenpower3
Submitter: dodecahedron
Maintainer: zen
Last Packager: zen
Votes: 60
Popularity: 2.01
First Submitted: 2021-06-19 23:55 (UTC)
Last Updated: 2026-08-11 16:48 (UTC)

Dependencies (2)

Required by (7)

Sources (2)

Latest Comments

1 2 3 4 5 6 Next › Last »

detian commented on 2026-08-06 23:30 (UTC)

@bdyb I'm not the maintainer anymore, and the upstream actually supports kernel 7.2 already, you can flag this package out-of-date to notify @zen to update this package.

bdyb commented on 2026-08-06 19:52 (UTC) (edited on 2026-08-06 19:55 (UTC) by bdyb)

@detian zenergy does not report total socket power (at least on zen3 CPUs).

It would be better to patch the source to make it build for 7.2 For example something like this

prepare() {
    sed -e "s/@CFLGS@//" \
        -e "s/@VERSION@/$pkgver/" \
        -i "$srcdir/$_pkgname/dkms.conf"

    # Patch cpuid_ecx for Kernel 7.2 compatibility
    python3 -c "
path = '$srcdir/$_pkgname/zenpower.c'
with open(path, 'r') as f:
    content = f.read()

target = 'data->nodes_per_cpu = 1 + ((cpuid_ecx(0x8000001E) >> 8) & 0b111);'
replacement = '''unsigned int eax, ebx, ecx, edx;
\t\tasm volatile(\"cpuid\" : \"=a\" (eax), \"=b\" (ebx), \"=c\" (ecx), \"=d\" (edx) : \"0\" (0x8000001E));
\t\tdata->nodes_per_cpu = 1 + ((ecx >> 8) & 0b111);'''

if target in content:
    content = content.replace(target, replacement)
    with open(path, 'w') as f:
        f.write(content)
"
} 

detian commented on 2026-05-12 18:39 (UTC)

I recommend using zenergy + k10temp as the replacement for zenpower.

heyimnyl commented on 2026-05-12 13:55 (UTC) (edited on 2026-05-12 14:06 (UTC) by heyimnyl)

not building against kernel

==> dkms install --no-depmod zenpower3/0.2.0 -k 7.0.5-arch1-1
==> dkms install --no-depmod zenpower/0.2.0 -k 7.0.5-arch1-1
Deprecated feature: CLEAN (/var/lib/dkms/zenpower/0.2.0/source/dkms.conf)
Error! Bad return status for module build on kernel: 7.0.5-arch1-1 (x86_64)
Consult /var/lib/dkms/zenpower/0.2.0/build/make.log for more information.
==> WARNING: `dkms install --no-depmod zenpower/0.2.0 -k 7.0.5-arch1-1' exited 10
==> dkms install --no-depmod nvidia/595.71.05 -k 7.0.5-arch1-1
==> depmod 7.0.5-arch1-1
(11/16) Updating linux initcpios... 

logged:

cat /var/lib/dkms/zenpower/0.2.0/build/make.log

DKMS (dkms-3.4.1) make.log for zenpower/0.2.0 for kernel 7.0.5-arch1-1 (x86_64)
Tue May 12 03:47:46 PM CEST 2026
Building module(s)
# command: make -j32 KERNELRELEASE=7.0.5-arch1-1 TARGET=7.0.5-arch1-1 CFLAGS_MODULE+=
make[1]: Entering directory '/usr/lib/modules/7.0.5-arch1-1/build'
make[2]: Entering directory '/var/lib/dkms/zenpower/0.2.0/build'
  CC [M]  zenpower.o
zenpower.c:38:10: fatal error: asm/amd_nb.h: No such file or directory
   38 | #include <asm/amd_nb.h>
      |          ^~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [/usr/lib/modules/7.0.5-arch1-1/build/scripts/Makefile.build:289: zenpower.o] Error 1
make[3]: *** [/usr/lib/modules/7.0.5-arch1-1/build/Makefile:2106: .] Error 2
make[2]: *** [/usr/lib/modules/7.0.5-arch1-1/build/Makefile:248: __sub-make] Error 2
make[2]: Leaving directory '/var/lib/dkms/zenpower/0.2.0/build'
make[1]: *** [Makefile:248: __sub-make] Error 2
make[1]: Leaving directory '/usr/lib/modules/7.0.5-arch1-1/build'
make: *** [Makefile:29: modules] Error 2
# exit code: 2
# elapsed time: 00:00:00

detian commented on 2025-12-20 00:30 (UTC)

@dreieck OK Updated!

dreieck commented on 2025-12-19 15:31 (UTC)

Ahoj,

please add
sed -i "s/-Wimplicit-fallthrough=3/-Wimplicit-fallthrough/" "$srcdir/$_pkgname/Makefile"
to prepare(), otherwise build fails for clang compiled kernels with

error: unknown warning option '-Wimplicit-fallthrough=3'; did you mean '-Wimplicit-fallthrough'? [-Werror,-Wunknown-warning-option]

Regards!

djvadim100 commented on 2025-09-01 12:30 (UTC)

Thank you, everything works.

detian commented on 2025-05-25 10:31 (UTC)

@jongeduard Updated.

jongeduard commented on 2025-05-25 07:39 (UTC)

During update there's a deprecation warning:

( 8/14) Install DKMS modules
==> dkms install --no-depmod zenpower3/0.2.0 -k 6.12.30-1-lts
Deprecated feature: CLEAN (/usr/src/zenpower3-0.2.0/dkms.conf)
==> dkms install --no-depmod zenpower3/0.2.0 -k 6.14.7-arch2-1
Deprecated feature: CLEAN (/var/lib/dkms/zenpower3/0.2.0/source/dkms.conf)
==> depmod 6.12.30-1-lts
==> depmod 6.14.7-arch2-1