-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure to build dkms modules #435
Comments
Can you please try to build against the current |
Also if compiling Linux Kernel and CoreFreq with clang/llvm, check for |
|
Also i seem to be unable to register the cpu idle driver but maybe i followed somthing wrong so if you can drop somthing here to help me that would be appreicated. |
Does your kernel log ( Can you validate Processor with CoreFreq |
Do you still have an issue to start CoreFreq ? |
Okay so i was delayed but ill post the dmesg tomorrow. |
also the daemon wont start on its own. i have to manually allow it to start every time. |
No sign of crash in log above. Procedure to run CoreFreqRight after booting, starts CoreFreq this way:
make clean all CC='clang' LLVM=1 ## for your CachyOS LTO setup
insmod ./corefreqk.ko
lsmod|grep corefreq ## you should see kernel module of CoreFreq
./corefreq -d ## one thread per CPU is listed
./corefreq-cli Does it work ? If not, please reboot to mainline Linux kernel, not CachyOS. make clean all CC=gcc Go back to step 2 |
|
Please see #435 (comment) how CachyOS is built |
Look like a high change that lto now breaks it. the corefreq-cli works when build from source |
okay so when i install from aur...
|
AUR is built with these options: _makenconfig=1 _use_llvm_lto=thin _cpusched=cachyos makepkg -cCsfir
|
Now building with
|
Now building with no LTO _makenconfig=1 _use_llvm_lto=none _cpusched=cachyos makepkg -cCsfir |
Booting: Linux version 6.3.1-1-cachyos (linux-cachyos@cachyos) (gcc (GCC) 13.1.1 20230429, GNU ld (GNU Binutils) 2.40.0)
...
Command line: initrd=\EFI\Linux\amd-ucode.img initrd=\EFI\Linux\initramfs-linux-cachyos.img Building: make clean all ## GGC forced used because no LTO
...
make -j1 -C /lib/modules/6.3.1-1-cachyos/build M=/xxx/CoreFreq modules
CC [M] /xxx/CoreFreq/corefreqk.o
MODPOST /xxx/CoreFreq/Module.symvers
CC [M] /xxx/CoreFreq/corefreqk.mod.o
LD [M] /xxx/CoreFreq/corefreqk.ko
BTF [M] /xxx/CoreFreq/corefreqk.ko Starting: insmod /xxx/CoreFreq/corefreqk.ko
/xxx/CoreFreq/corefreqd -d
Btw: zgrep CONFIG_FORTIFY_SOURCE /proc/config.gz
# CONFIG_FORTIFY_SOURCE is not set |
Now configuring full LTO
Booting: Linux version 6.3.1-1-cachyos-lto (linux-cachyos-lto@cachyos) (clang version 15.0.7, LLD 15.0.7) #1 SMP PREEMPT_DYNAMIC Sat, 06 May 2023 03:15:57 +0000
Command line: initrd=\EFI\Linux\amd-ucode.img initrd=\EFI\Linux\initramfs-linux-cachyos-lto.img
... Building & running CoreFreq make clean all CC='clang' LLVM=1
insmod /xxx/CoreFreq/corefreqk.ko
/xxx/CoreFreq/corefreqd -d
|
Wrapping up nowThin LTO does not work with CoreFreq |
I am currently on the non lto version but it still gives me the error I said above when trying corefreq-cli |
Based on #435 (comment) and #435 (comment) it's hard to imagine what's going on your system. There's only one way to make CoreFreq works; It has to successfully startup in that order:
So I would like you to run CoreFreq with the mainstream Linux kernel and gcc ; no CachyOS flavor of whatever, no patch. |
Hello, |
Ill test this after work |
DKMS make.log for corefreq-1.95.5.r0.g34efe5d for kernel 6.3.0-4-cachyos-lto (x86_64)
The text was updated successfully, but these errors were encountered: