|
75 | 75 | # https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/performance_tuning_guide/sect-red_hat_enterprise_linux-performance_tuning_guide-configuring_transparent_huge_pages |
76 | 76 | : "${_hugepage:=always}" |
77 | 77 |
|
78 | | -# CPU compiler optimizations - Defaults to prompt at kernel config if left empty |
79 | | -# AMD CPUs : "k8" "k8sse3" "k10" "barcelona" "bobcat" "jaguar" "bulldozer" "piledriver" "steamroller" "excavator" "zen" "zen2" "zen3" "zen4" |
80 | | -# Intel CPUs : "mpsc"(P4 & older Netburst based Xeon) "atom" "core2" "nehalem" "westmere" "silvermont" "sandybridge" "ivybridge" "haswell" "broadwell" "skylake" "skylakex" "cannonlake" "icelake" "goldmont" "goldmontplus" "cascadelake" "cooperlake" "tigerlake" "sapphirerapids" "rocketlake" "alderlake" |
81 | | -# Other options : |
82 | | -# - "native_amd" (use compiler autodetection - Selecting your arch manually in the list above is recommended instead of this option) |
83 | | -# - "native_intel" (use compiler autodetection and will prompt for P6_NOPS - Selecting your arch manually in the list above is recommended instead of this option) |
| 78 | +# CPU compiler optimizations - Defaults to native if left empty |
| 79 | +# - "native" (use compiler autodetection) |
| 80 | +# - "zen4" (Use znver4 compiler optimizations) |
84 | 81 | # - "generic" (kernel's default - to share the package between machines with different CPU µarch as long as they are x86-64) |
85 | | -# |
86 | 82 | : "${_processor_opt:=}" |
87 | 83 |
|
88 | | -# This does automatically detect your supported CPU and optimizes for it |
89 | | -: "${_use_auto_optimization:=yes}" |
90 | | - |
91 | 84 | # Clang LTO mode, only available with the "llvm" compiler - options are "none", "full" or "thin". |
92 | 85 | # ATTENTION - one of three predefined values should be selected! |
93 | 86 | # "full: uses 1 thread for Linking, slow and uses more memory, theoretically with the highest performance gains." |
@@ -185,7 +178,6 @@ _nv_open_pkg="NVIDIA-kernel-module-source-${_nv_ver}" |
185 | 178 | source=( |
186 | 179 | "https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/${_srcname}.tar.xz" |
187 | 180 | "config" |
188 | | - "auto-cpu-optimization.sh" |
189 | 181 | "${_patchsource}/all/0001-cachyos-base-all.patch" |
190 | 182 | "${_patchsource}/misc/0001-acpi-call.patch" |
191 | 183 | "${_patchsource}/misc/0001-handheld.patch") |
|
210 | 202 | # ZFS support |
211 | 203 | if [ "$_build_zfs" = "yes" ]; then |
212 | 204 | makedepends+=(git) |
213 | | - source+=("git+https://github.com/cachyos/zfs.git#commit=92f430b00f42964b63aee373fbf6598a20f6c0cc") |
| 205 | + source+=("git+https://github.com/cachyos/zfs.git#commit=782aa343af935fa23b16ea849c63cc023aac3363") |
214 | 206 | fi |
215 | 207 |
|
216 | 208 | # NVIDIA pre-build module support |
217 | 209 | if [ "$_build_nvidia" = "yes" ]; then |
218 | 210 | source+=("https://us.download.nvidia.com/XFree86/Linux-x86_64/${_nv_ver}/${_nv_pkg}.run" |
219 | | - "${_patchsource}/misc/nvidia/0001-Enable-atomic-kernel-modesetting-by-default.patch") |
| 211 | + "${_patchsource}/misc/nvidia/0001-Enable-atomic-kernel-modesetting-by-default.patch" |
| 212 | + "${_patchsource}/misc/nvidia/0003-Workaround-nv_vm_flags_-calling-GPL-only-code.patch") |
220 | 213 | fi |
221 | 214 |
|
222 | 215 | if [ "$_build_nvidia_open" = "yes" ]; then |
@@ -466,6 +459,7 @@ prepare() { |
466 | 459 |
|
467 | 460 | # Use fbdev and modeset as default |
468 | 461 | patch -Np1 -i "${srcdir}/0001-Enable-atomic-kernel-modesetting-by-default.patch" -d "${srcdir}/${_nv_pkg}/kernel" |
| 462 | + patch -Np1 -i "${srcdir}/0003-Workaround-nv_vm_flags_-calling-GPL-only-code.patch" -d "${srcdir}/${_nv_pkg}/kernel" |
469 | 463 | fi |
470 | 464 |
|
471 | 465 | if [ "$_build_nvidia_open" = "yes" ]; then |
|
0 commit comments