Skip to content

Archlinux Kernel based on different schedulers and some other performance improvements.

fix autodetection for all cpu's

Peter Jungd2d0a2790fc8
diff --git a/linux-bore/auto-cpu-optimization.sh b/linux-bore/auto-cpu-optimization.sh
index 4cc1dc47..ad995b0a 100755
--- a/linux-bore/auto-cpu-optimization.sh
+++ b/linux-bore/auto-cpu-optimization.sh
@@ -12,10 +12,42 @@ then
elif [[ ${MARCH} == "ZNVER3" ]]
then
MARCH="ZEN3"
-
+elif [[ ${MARCH} == "BDVER1" ]]
+then
+ MARCH="BULLDOZER"
elif [[ ${MARCH} == "BDVER2" ]]
+ MARCH="PILEDRIVER"
+then
+elif [[ ${MARCH} == "BDVER3" ]]
+ MARCH="STEAMROLLER"
+then
+elif [[ ${MARCH} == "BDVER4" ]]
+ MARCH="EXCAVATOR"
+then
+elif [[ ${MARCH} == "BTVER1" ]]
+then
+ MARCH="BOBCAT"
+elif [[ ${MARCH} == "BTVER2" ]]
+ MARCH="JAGUAR"
+then
+elif [[ ${MARCH} == "AMDFAM10" ]]
+ MARCH="MK10"
+then
+elif [[ ${MARCH} == "K8-SSE3" ]]
+ MARCH="K8SSE3"
+then
+elif [[ ${MARCH} == "BONNELL" ]]
+ MARCH="ATOM"
+then
+elif [[ ${MARCH} == "GOLDMONT-PLUS" ]]
+ MARCH="GOLDMONTPLUS"
+then
+elif [[ ${MARCH} == "SKYLAKE-AVX512" ]]
+ MARCH="SKYLAKE2"
+then
+elif [[ ${MARCH} == "ICELAKE-CLIENT" ]]
+ MARCH="ICELAKE"
then
- MARCH="MPILEDRIVER"
fi
MARCH2=M${MARCH}
echo
diff --git a/linux-cachyos-bmq/auto-cpu-optimization.sh b/linux-cachyos-bmq/auto-cpu-optimization.sh
index 4cc1dc47..ad995b0a 100755
--- a/linux-cachyos-bmq/auto-cpu-optimization.sh
+++ b/linux-cachyos-bmq/auto-cpu-optimization.sh
@@ -12,10 +12,42 @@ then
elif [[ ${MARCH} == "ZNVER3" ]]
then
MARCH="ZEN3"
-
+elif [[ ${MARCH} == "BDVER1" ]]
+then
+ MARCH="BULLDOZER"
elif [[ ${MARCH} == "BDVER2" ]]
+ MARCH="PILEDRIVER"
+then
+elif [[ ${MARCH} == "BDVER3" ]]
+ MARCH="STEAMROLLER"
+then
+elif [[ ${MARCH} == "BDVER4" ]]
+ MARCH="EXCAVATOR"
+then
+elif [[ ${MARCH} == "BTVER1" ]]
+then
+ MARCH="BOBCAT"
+elif [[ ${MARCH} == "BTVER2" ]]
+ MARCH="JAGUAR"
+then
+elif [[ ${MARCH} == "AMDFAM10" ]]
+ MARCH="MK10"
+then
+elif [[ ${MARCH} == "K8-SSE3" ]]
+ MARCH="K8SSE3"
+then
+elif [[ ${MARCH} == "BONNELL" ]]
+ MARCH="ATOM"
+then
+elif [[ ${MARCH} == "GOLDMONT-PLUS" ]]
+ MARCH="GOLDMONTPLUS"
+then
+elif [[ ${MARCH} == "SKYLAKE-AVX512" ]]
+ MARCH="SKYLAKE2"
+then
+elif [[ ${MARCH} == "ICELAKE-CLIENT" ]]
+ MARCH="ICELAKE"
then
- MARCH="MPILEDRIVER"
fi
MARCH2=M${MARCH}
echo
diff --git a/linux-cachyos-bore/auto-cpu-optimization.sh b/linux-cachyos-bore/auto-cpu-optimization.sh
index 4cc1dc47..ad995b0a 100755
--- a/linux-cachyos-bore/auto-cpu-optimization.sh
+++ b/linux-cachyos-bore/auto-cpu-optimization.sh
@@ -12,10 +12,42 @@ then
elif [[ ${MARCH} == "ZNVER3" ]]
then
MARCH="ZEN3"
-
+elif [[ ${MARCH} == "BDVER1" ]]
+then
+ MARCH="BULLDOZER"
elif [[ ${MARCH} == "BDVER2" ]]
+ MARCH="PILEDRIVER"
+then
+elif [[ ${MARCH} == "BDVER3" ]]
+ MARCH="STEAMROLLER"
+then
+elif [[ ${MARCH} == "BDVER4" ]]
+ MARCH="EXCAVATOR"
+then
+elif [[ ${MARCH} == "BTVER1" ]]
+then
+ MARCH="BOBCAT"
+elif [[ ${MARCH} == "BTVER2" ]]
+ MARCH="JAGUAR"
+then
+elif [[ ${MARCH} == "AMDFAM10" ]]
+ MARCH="MK10"
+then
+elif [[ ${MARCH} == "K8-SSE3" ]]
+ MARCH="K8SSE3"
+then
+elif [[ ${MARCH} == "BONNELL" ]]
+ MARCH="ATOM"
+then
+elif [[ ${MARCH} == "GOLDMONT-PLUS" ]]
+ MARCH="GOLDMONTPLUS"
+then
+elif [[ ${MARCH} == "SKYLAKE-AVX512" ]]
+ MARCH="SKYLAKE2"
+then
+elif [[ ${MARCH} == "ICELAKE-CLIENT" ]]
+ MARCH="ICELAKE"
then
- MARCH="MPILEDRIVER"
fi
MARCH2=M${MARCH}
echo
diff --git a/linux-cachyos-cacule/auto-cpu-optimization.sh b/linux-cachyos-cacule/auto-cpu-optimization.sh
index 4cc1dc47..ad995b0a 100755
--- a/linux-cachyos-cacule/auto-cpu-optimization.sh
+++ b/linux-cachyos-cacule/auto-cpu-optimization.sh
@@ -12,10 +12,42 @@ then
elif [[ ${MARCH} == "ZNVER3" ]]
then
MARCH="ZEN3"
-
+elif [[ ${MARCH} == "BDVER1" ]]
+then
+ MARCH="BULLDOZER"
elif [[ ${MARCH} == "BDVER2" ]]
+ MARCH="PILEDRIVER"
+then
+elif [[ ${MARCH} == "BDVER3" ]]
+ MARCH="STEAMROLLER"
+then
+elif [[ ${MARCH} == "BDVER4" ]]
+ MARCH="EXCAVATOR"
+then
+elif [[ ${MARCH} == "BTVER1" ]]
+then
+ MARCH="BOBCAT"
+elif [[ ${MARCH} == "BTVER2" ]]
+ MARCH="JAGUAR"
+then
+elif [[ ${MARCH} == "AMDFAM10" ]]
+ MARCH="MK10"
+then
+elif [[ ${MARCH} == "K8-SSE3" ]]
+ MARCH="K8SSE3"
+then
+elif [[ ${MARCH} == "BONNELL" ]]
+ MARCH="ATOM"
+then
+elif [[ ${MARCH} == "GOLDMONT-PLUS" ]]
+ MARCH="GOLDMONTPLUS"
+then
+elif [[ ${MARCH} == "SKYLAKE-AVX512" ]]
+ MARCH="SKYLAKE2"
+then
+elif [[ ${MARCH} == "ICELAKE-CLIENT" ]]
+ MARCH="ICELAKE"
then
- MARCH="MPILEDRIVER"
fi
MARCH2=M${MARCH}
echo
diff --git a/linux-cachyos-cfs/auto-cpu-optimization.sh b/linux-cachyos-cfs/auto-cpu-optimization.sh
index 4cc1dc47..ad995b0a 100755
--- a/linux-cachyos-cfs/auto-cpu-optimization.sh
+++ b/linux-cachyos-cfs/auto-cpu-optimization.sh
@@ -12,10 +12,42 @@ then
elif [[ ${MARCH} == "ZNVER3" ]]
then
MARCH="ZEN3"
-
+elif [[ ${MARCH} == "BDVER1" ]]
+then
+ MARCH="BULLDOZER"
elif [[ ${MARCH} == "BDVER2" ]]
+ MARCH="PILEDRIVER"
+then
+elif [[ ${MARCH} == "BDVER3" ]]
+ MARCH="STEAMROLLER"
+then
+elif [[ ${MARCH} == "BDVER4" ]]
+ MARCH="EXCAVATOR"
+then
+elif [[ ${MARCH} == "BTVER1" ]]
+then
+ MARCH="BOBCAT"
+elif [[ ${MARCH} == "BTVER2" ]]
+ MARCH="JAGUAR"
+then
+elif [[ ${MARCH} == "AMDFAM10" ]]
+ MARCH="MK10"
+then
+elif [[ ${MARCH} == "K8-SSE3" ]]
+ MARCH="K8SSE3"
+then
+elif [[ ${MARCH} == "BONNELL" ]]
+ MARCH="ATOM"
+then
+elif [[ ${MARCH} == "GOLDMONT-PLUS" ]]
+ MARCH="GOLDMONTPLUS"
+then
+elif [[ ${MARCH} == "SKYLAKE-AVX512" ]]
+ MARCH="SKYLAKE2"
+then
+elif [[ ${MARCH} == "ICELAKE-CLIENT" ]]
+ MARCH="ICELAKE"
then
- MARCH="MPILEDRIVER"
fi
MARCH2=M${MARCH}
echo
diff --git a/linux-cachyos-hardened/auto-cpu-optimization.sh b/linux-cachyos-hardened/auto-cpu-optimization.sh
index 4cc1dc47..ad995b0a 100755
--- a/linux-cachyos-hardened/auto-cpu-optimization.sh
+++ b/linux-cachyos-hardened/auto-cpu-optimization.sh
@@ -12,10 +12,42 @@ then
elif [[ ${MARCH} == "ZNVER3" ]]
then
MARCH="ZEN3"
-
+elif [[ ${MARCH} == "BDVER1" ]]
+then
+ MARCH="BULLDOZER"
elif [[ ${MARCH} == "BDVER2" ]]
+ MARCH="PILEDRIVER"
+then
+elif [[ ${MARCH} == "BDVER3" ]]
+ MARCH="STEAMROLLER"
+then
+elif [[ ${MARCH} == "BDVER4" ]]
+ MARCH="EXCAVATOR"
+then
+elif [[ ${MARCH} == "BTVER1" ]]
+then
+ MARCH="BOBCAT"
+elif [[ ${MARCH} == "BTVER2" ]]
+ MARCH="JAGUAR"
+then
+elif [[ ${MARCH} == "AMDFAM10" ]]
+ MARCH="MK10"
+then
+elif [[ ${MARCH} == "K8-SSE3" ]]
+ MARCH="K8SSE3"
+then
+elif [[ ${MARCH} == "BONNELL" ]]
+ MARCH="ATOM"
+then
+elif [[ ${MARCH} == "GOLDMONT-PLUS" ]]
+ MARCH="GOLDMONTPLUS"
+then
+elif [[ ${MARCH} == "SKYLAKE-AVX512" ]]
+ MARCH="SKYLAKE2"
+then
+elif [[ ${MARCH} == "ICELAKE-CLIENT" ]]
+ MARCH="ICELAKE"
then
- MARCH="MPILEDRIVER"
fi
MARCH2=M${MARCH}
echo
diff --git a/linux-cachyos-pds/auto-cpu-optimization.sh b/linux-cachyos-pds/auto-cpu-optimization.sh
index 117514bd..ad995b0a 100755
--- a/linux-cachyos-pds/auto-cpu-optimization.sh
+++ b/linux-cachyos-pds/auto-cpu-optimization.sh
@@ -1,10 +1,60 @@
#!/bin/bash
CPU=$(gcc -Q -march=native --help=target|grep mtune=|awk '{print $2}'|head -1)
MARCH=$(echo $CPU|tr '[:lower:]' '[:upper:]'&&echo)
+if [[ ${MARCH} == "ZNVER" ]]
+then
+ MARCH="ZEN"
+
+elif [[ ${MARCH} == "ZNVER2" ]]
+then
+ MARCH="ZEN2"
+
+elif [[ ${MARCH} == "ZNVER3" ]]
+then
+ MARCH="ZEN3"
+elif [[ ${MARCH} == "BDVER1" ]]
+then
+ MARCH="BULLDOZER"
+elif [[ ${MARCH} == "BDVER2" ]]
+ MARCH="PILEDRIVER"
+then
+elif [[ ${MARCH} == "BDVER3" ]]
+ MARCH="STEAMROLLER"
+then
+elif [[ ${MARCH} == "BDVER4" ]]
+ MARCH="EXCAVATOR"
+then
+elif [[ ${MARCH} == "BTVER1" ]]
+then
+ MARCH="BOBCAT"
+elif [[ ${MARCH} == "BTVER2" ]]
+ MARCH="JAGUAR"
+then
+elif [[ ${MARCH} == "AMDFAM10" ]]
+ MARCH="MK10"
+then
+elif [[ ${MARCH} == "K8-SSE3" ]]
+ MARCH="K8SSE3"
+then
+elif [[ ${MARCH} == "BONNELL" ]]
+ MARCH="ATOM"
+then
+elif [[ ${MARCH} == "GOLDMONT-PLUS" ]]
+ MARCH="GOLDMONTPLUS"
+then
+elif [[ ${MARCH} == "SKYLAKE-AVX512" ]]
+ MARCH="SKYLAKE2"
+then
+elif [[ ${MARCH} == "ICELAKE-CLIENT" ]]
+ MARCH="ICELAKE"
+then
+fi
+MARCH2=M${MARCH}
echo
echo "----------------------------------"
echo "| APPLYING AUTO-CPU-OPTIMIZATION |"
echo "----------------------------------"
-echo "[*] DETECTED CPU (MARCH) : $MARCH"
-sed -i "/CONFIG_GENERIC_CPU=y/d;s/\# CONFIG_M$MARCH is not set/CONFIG_M$MARCH=y/g" .config
+echo "[*] DETECTED CPU (MARCH) : ${MARCH2}"
+scripts/config -k --disable CONFIG_GENERIC_CPU
+scripts/config -k --enable CONFIG_${MARCH2}
sleep 3&&echo
diff --git a/linux-cachyos-rc/auto-cpu-optimization.sh b/linux-cachyos-rc/auto-cpu-optimization.sh
index 4cc1dc47..ad995b0a 100755
--- a/linux-cachyos-rc/auto-cpu-optimization.sh
+++ b/linux-cachyos-rc/auto-cpu-optimization.sh
@@ -12,10 +12,42 @@ then
elif [[ ${MARCH} == "ZNVER3" ]]
then
MARCH="ZEN3"
-
+elif [[ ${MARCH} == "BDVER1" ]]
+then
+ MARCH="BULLDOZER"
elif [[ ${MARCH} == "BDVER2" ]]
+ MARCH="PILEDRIVER"
+then
+elif [[ ${MARCH} == "BDVER3" ]]
+ MARCH="STEAMROLLER"
+then
+elif [[ ${MARCH} == "BDVER4" ]]
+ MARCH="EXCAVATOR"
+then
+elif [[ ${MARCH} == "BTVER1" ]]
+then
+ MARCH="BOBCAT"
+elif [[ ${MARCH} == "BTVER2" ]]
+ MARCH="JAGUAR"
+then
+elif [[ ${MARCH} == "AMDFAM10" ]]
+ MARCH="MK10"
+then
+elif [[ ${MARCH} == "K8-SSE3" ]]
+ MARCH="K8SSE3"
+then
+elif [[ ${MARCH} == "BONNELL" ]]
+ MARCH="ATOM"
+then
+elif [[ ${MARCH} == "GOLDMONT-PLUS" ]]
+ MARCH="GOLDMONTPLUS"
+then
+elif [[ ${MARCH} == "SKYLAKE-AVX512" ]]
+ MARCH="SKYLAKE2"
+then
+elif [[ ${MARCH} == "ICELAKE-CLIENT" ]]
+ MARCH="ICELAKE"
then
- MARCH="MPILEDRIVER"
fi
MARCH2=M${MARCH}
echo
diff --git a/linux-cachyos-tt/auto-cpu-optimization.sh b/linux-cachyos-tt/auto-cpu-optimization.sh
index 4cc1dc47..ad995b0a 100755
--- a/linux-cachyos-tt/auto-cpu-optimization.sh
+++ b/linux-cachyos-tt/auto-cpu-optimization.sh
@@ -12,10 +12,42 @@ then
elif [[ ${MARCH} == "ZNVER3" ]]
then
MARCH="ZEN3"
-
+elif [[ ${MARCH} == "BDVER1" ]]
+then
+ MARCH="BULLDOZER"
elif [[ ${MARCH} == "BDVER2" ]]
+ MARCH="PILEDRIVER"
+then
+elif [[ ${MARCH} == "BDVER3" ]]
+ MARCH="STEAMROLLER"
+then
+elif [[ ${MARCH} == "BDVER4" ]]
+ MARCH="EXCAVATOR"
+then
+elif [[ ${MARCH} == "BTVER1" ]]
+then
+ MARCH="BOBCAT"
+elif [[ ${MARCH} == "BTVER2" ]]
+ MARCH="JAGUAR"
+then
+elif [[ ${MARCH} == "AMDFAM10" ]]
+ MARCH="MK10"
+then
+elif [[ ${MARCH} == "K8-SSE3" ]]
+ MARCH="K8SSE3"
+then
+elif [[ ${MARCH} == "BONNELL" ]]
+ MARCH="ATOM"
+then
+elif [[ ${MARCH} == "GOLDMONT-PLUS" ]]
+ MARCH="GOLDMONTPLUS"
+then
+elif [[ ${MARCH} == "SKYLAKE-AVX512" ]]
+ MARCH="SKYLAKE2"
+then
+elif [[ ${MARCH} == "ICELAKE-CLIENT" ]]
+ MARCH="ICELAKE"
then
- MARCH="MPILEDRIVER"
fi
MARCH2=M${MARCH}
echo
diff --git a/linux-cachyos/auto-cpu-optimization.sh b/linux-cachyos/auto-cpu-optimization.sh
index 4cc1dc47..ad995b0a 100755
--- a/linux-cachyos/auto-cpu-optimization.sh
+++ b/linux-cachyos/auto-cpu-optimization.sh
@@ -12,10 +12,42 @@ then
elif [[ ${MARCH} == "ZNVER3" ]]
then
MARCH="ZEN3"
-
+elif [[ ${MARCH} == "BDVER1" ]]
+then
+ MARCH="BULLDOZER"
elif [[ ${MARCH} == "BDVER2" ]]
+ MARCH="PILEDRIVER"
+then
+elif [[ ${MARCH} == "BDVER3" ]]
+ MARCH="STEAMROLLER"
+then
+elif [[ ${MARCH} == "BDVER4" ]]
+ MARCH="EXCAVATOR"
+then
+elif [[ ${MARCH} == "BTVER1" ]]
+then
+ MARCH="BOBCAT"
+elif [[ ${MARCH} == "BTVER2" ]]
+ MARCH="JAGUAR"
+then
+elif [[ ${MARCH} == "AMDFAM10" ]]
+ MARCH="MK10"
+then
+elif [[ ${MARCH} == "K8-SSE3" ]]
+ MARCH="K8SSE3"
+then
+elif [[ ${MARCH} == "BONNELL" ]]
+ MARCH="ATOM"
+then
+elif [[ ${MARCH} == "GOLDMONT-PLUS" ]]
+ MARCH="GOLDMONTPLUS"
+then
+elif [[ ${MARCH} == "SKYLAKE-AVX512" ]]
+ MARCH="SKYLAKE2"
+then
+elif [[ ${MARCH} == "ICELAKE-CLIENT" ]]
+ MARCH="ICELAKE"
then
- MARCH="MPILEDRIVER"
fi
MARCH2=M${MARCH}
echo
diff --git a/linux-cacule-rdb/auto-cpu-optimization.sh b/linux-cacule-rdb/auto-cpu-optimization.sh
index 4cc1dc47..ad995b0a 100755
--- a/linux-cacule-rdb/auto-cpu-optimization.sh
+++ b/linux-cacule-rdb/auto-cpu-optimization.sh
@@ -12,10 +12,42 @@ then
elif [[ ${MARCH} == "ZNVER3" ]]
then
MARCH="ZEN3"
-
+elif [[ ${MARCH} == "BDVER1" ]]
+then
+ MARCH="BULLDOZER"
elif [[ ${MARCH} == "BDVER2" ]]
+ MARCH="PILEDRIVER"
+then
+elif [[ ${MARCH} == "BDVER3" ]]
+ MARCH="STEAMROLLER"
+then
+elif [[ ${MARCH} == "BDVER4" ]]
+ MARCH="EXCAVATOR"
+then
+elif [[ ${MARCH} == "BTVER1" ]]
+then
+ MARCH="BOBCAT"
+elif [[ ${MARCH} == "BTVER2" ]]
+ MARCH="JAGUAR"
+then
+elif [[ ${MARCH} == "AMDFAM10" ]]
+ MARCH="MK10"
+then
+elif [[ ${MARCH} == "K8-SSE3" ]]
+ MARCH="K8SSE3"
+then
+elif [[ ${MARCH} == "BONNELL" ]]
+ MARCH="ATOM"
+then
+elif [[ ${MARCH} == "GOLDMONT-PLUS" ]]
+ MARCH="GOLDMONTPLUS"
+then
+elif [[ ${MARCH} == "SKYLAKE-AVX512" ]]
+ MARCH="SKYLAKE2"
+then
+elif [[ ${MARCH} == "ICELAKE-CLIENT" ]]
+ MARCH="ICELAKE"
then
- MARCH="MPILEDRIVER"
fi
MARCH2=M${MARCH}
echo
diff --git a/linux-cacule/auto-cpu-optimization.sh b/linux-cacule/auto-cpu-optimization.sh
index 4cc1dc47..ad995b0a 100755
--- a/linux-cacule/auto-cpu-optimization.sh
+++ b/linux-cacule/auto-cpu-optimization.sh
@@ -12,10 +12,42 @@ then
elif [[ ${MARCH} == "ZNVER3" ]]
then
MARCH="ZEN3"
-
+elif [[ ${MARCH} == "BDVER1" ]]
+then
+ MARCH="BULLDOZER"
elif [[ ${MARCH} == "BDVER2" ]]
+ MARCH="PILEDRIVER"
+then
+elif [[ ${MARCH} == "BDVER3" ]]
+ MARCH="STEAMROLLER"
+then
+elif [[ ${MARCH} == "BDVER4" ]]
+ MARCH="EXCAVATOR"
+then
+elif [[ ${MARCH} == "BTVER1" ]]
+then
+ MARCH="BOBCAT"
+elif [[ ${MARCH} == "BTVER2" ]]
+ MARCH="JAGUAR"
+then
+elif [[ ${MARCH} == "AMDFAM10" ]]
+ MARCH="MK10"
+then
+elif [[ ${MARCH} == "K8-SSE3" ]]
+ MARCH="K8SSE3"
+then
+elif [[ ${MARCH} == "BONNELL" ]]
+ MARCH="ATOM"
+then
+elif [[ ${MARCH} == "GOLDMONT-PLUS" ]]
+ MARCH="GOLDMONTPLUS"
+then
+elif [[ ${MARCH} == "SKYLAKE-AVX512" ]]
+ MARCH="SKYLAKE2"
+then
+elif [[ ${MARCH} == "ICELAKE-CLIENT" ]]
+ MARCH="ICELAKE"
then
- MARCH="MPILEDRIVER"
fi
MARCH2=M${MARCH}
echo
diff --git a/linux-tt/auto-cpu-optimization.sh b/linux-tt/auto-cpu-optimization.sh
index 4cc1dc47..ad995b0a 100755
--- a/linux-tt/auto-cpu-optimization.sh
+++ b/linux-tt/auto-cpu-optimization.sh
@@ -12,10 +12,42 @@ then
elif [[ ${MARCH} == "ZNVER3" ]]
then
MARCH="ZEN3"
-
+elif [[ ${MARCH} == "BDVER1" ]]
+then
+ MARCH="BULLDOZER"
elif [[ ${MARCH} == "BDVER2" ]]
+ MARCH="PILEDRIVER"
+then
+elif [[ ${MARCH} == "BDVER3" ]]
+ MARCH="STEAMROLLER"
+then
+elif [[ ${MARCH} == "BDVER4" ]]
+ MARCH="EXCAVATOR"
+then
+elif [[ ${MARCH} == "BTVER1" ]]
+then
+ MARCH="BOBCAT"
+elif [[ ${MARCH} == "BTVER2" ]]
+ MARCH="JAGUAR"
+then
+elif [[ ${MARCH} == "AMDFAM10" ]]
+ MARCH="MK10"
+then
+elif [[ ${MARCH} == "K8-SSE3" ]]
+ MARCH="K8SSE3"
+then
+elif [[ ${MARCH} == "BONNELL" ]]
+ MARCH="ATOM"
+then
+elif [[ ${MARCH} == "GOLDMONT-PLUS" ]]
+ MARCH="GOLDMONTPLUS"
+then
+elif [[ ${MARCH} == "SKYLAKE-AVX512" ]]
+ MARCH="SKYLAKE2"
+then
+elif [[ ${MARCH} == "ICELAKE-CLIENT" ]]
+ MARCH="ICELAKE"
then
- MARCH="MPILEDRIVER"
fi
MARCH2=M${MARCH}
echo
diff --git a/zfs-builtin/auto-cpu-optimization.sh b/zfs-builtin/auto-cpu-optimization.sh
index 4cc1dc47..ad995b0a 100755
--- a/zfs-builtin/auto-cpu-optimization.sh
+++ b/zfs-builtin/auto-cpu-optimization.sh
@@ -12,10 +12,42 @@ then
elif [[ ${MARCH} == "ZNVER3" ]]
then
MARCH="ZEN3"
-
+elif [[ ${MARCH} == "BDVER1" ]]
+then
+ MARCH="BULLDOZER"
elif [[ ${MARCH} == "BDVER2" ]]
+ MARCH="PILEDRIVER"
+then
+elif [[ ${MARCH} == "BDVER3" ]]
+ MARCH="STEAMROLLER"
+then
+elif [[ ${MARCH} == "BDVER4" ]]
+ MARCH="EXCAVATOR"
+then
+elif [[ ${MARCH} == "BTVER1" ]]
+then
+ MARCH="BOBCAT"
+elif [[ ${MARCH} == "BTVER2" ]]
+ MARCH="JAGUAR"
+then
+elif [[ ${MARCH} == "AMDFAM10" ]]
+ MARCH="MK10"
+then
+elif [[ ${MARCH} == "K8-SSE3" ]]
+ MARCH="K8SSE3"
+then
+elif [[ ${MARCH} == "BONNELL" ]]
+ MARCH="ATOM"
+then
+elif [[ ${MARCH} == "GOLDMONT-PLUS" ]]
+ MARCH="GOLDMONTPLUS"
+then
+elif [[ ${MARCH} == "SKYLAKE-AVX512" ]]
+ MARCH="SKYLAKE2"
+then
+elif [[ ${MARCH} == "ICELAKE-CLIENT" ]]
+ MARCH="ICELAKE"
then
- MARCH="MPILEDRIVER"
fi
MARCH2=M${MARCH}
echo