From 29f9c8cf4c0e384efab394a78864e2faa0f1e19d Mon Sep 17 00:00:00 2001 From: SChernykh <15806605+SChernykh@users.noreply.github.com> Date: Wed, 28 Aug 2024 13:49:27 +0200 Subject: [PATCH] Added Zen5 to randomx_boost.sh --- scripts/randomx_boost.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/randomx_boost.sh b/scripts/randomx_boost.sh index adfc4bdf..f971979f 100755 --- a/scripts/randomx_boost.sh +++ b/scripts/randomx_boost.sh @@ -28,6 +28,14 @@ if grep -E 'AMD Ryzen|AMD EPYC' /proc/cpuinfo > /dev/null; wrmsr -a 0xc001102b 0x2000cc10 echo "MSR register values for Zen3 applied" fi + elif grep "cpu family[[:space:]]\{1,\}:[[:space:]]26" /proc/cpuinfo > /dev/null; + then + echo "Detected Zen5 CPU" + wrmsr -a 0xc0011020 0x4400000000000 + wrmsr -a 0xc0011021 0x4000000000040 + wrmsr -a 0xc0011022 0x8680000401570000 + wrmsr -a 0xc001102b 0x2040cc10 + echo "MSR register values for Zen5 applied" else echo "Detected Zen1/Zen2 CPU" wrmsr -a 0xc0011020 0