mirror of
https://github.com/xmrig/xmrig.git
synced 2024-10-30 21:17:52 +00:00
commit
a076f739e3
1 changed files with 16 additions and 6 deletions
|
@ -4,12 +4,22 @@ modprobe msr
|
||||||
|
|
||||||
if cat /proc/cpuinfo | grep "AMD Ryzen" > /dev/null;
|
if cat /proc/cpuinfo | grep "AMD Ryzen" > /dev/null;
|
||||||
then
|
then
|
||||||
echo "Detected Ryzen"
|
if cat /proc/cpuinfo | grep "cpu family[[:space:]]:[[:space:]]25" > /dev/null;
|
||||||
wrmsr -a 0xc0011022 0x510000
|
then
|
||||||
wrmsr -a 0xc001102b 0x1808cc16
|
echo "Detected Ryzen (Zen3)"
|
||||||
wrmsr -a 0xc0011020 0
|
wrmsr -a 0xc0011020 0x4480000000000
|
||||||
wrmsr -a 0xc0011021 0x40
|
wrmsr -a 0xc0011021 0x1c000200000040
|
||||||
echo "MSR register values for Ryzen applied"
|
wrmsr -a 0xc0011022 0xc000000401500000
|
||||||
|
wrmsr -a 0xc001102b 0x2000cc14
|
||||||
|
echo "MSR register values for Ryzen (Zen3) applied"
|
||||||
|
else
|
||||||
|
echo "Detected Ryzen (Zen1/Zen2)"
|
||||||
|
wrmsr -a 0xc0011020 0
|
||||||
|
wrmsr -a 0xc0011021 0x40
|
||||||
|
wrmsr -a 0xc0011022 0x1510000
|
||||||
|
wrmsr -a 0xc001102b 0x2000cc16
|
||||||
|
echo "MSR register values for Ryzen (Zen1/Zen2) applied"
|
||||||
|
fi
|
||||||
elif cat /proc/cpuinfo | grep "Intel" > /dev/null;
|
elif cat /proc/cpuinfo | grep "Intel" > /dev/null;
|
||||||
then
|
then
|
||||||
echo "Detected Intel"
|
echo "Detected Intel"
|
||||||
|
|
Loading…
Reference in a new issue