Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Feb 2021 10:42:01 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 253344] System hard resets when setting CPU frequency with Ryzen 2600
Message-ID:  <bug-253344-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253344

            Bug ID: 253344
           Summary: System hard resets when setting CPU frequency with
                    Ryzen 2600
           Product: Base System
           Version: 12.2-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: blaircwyatt@gmail.com

I started having an issue when I enabled powerd on FreeBSD 12.2. With the
default adaptive settings, the system would hard reset shortly after starti=
ng
the daemon.

After some digging it seems that it this reset occurs when the frequency is=
 set
and is instantly reproduceable with sysctl:

nas: ~# sysctl dev.cpu.0.freq
dev.cpu.0.freq: 3400
nas: ~# sysctl -n dev.cpu.0.freq_levels
3400/3867 2975/3383 2800/2537 2450/2219 2100/1902 1750/1585 1550/1237 1356/=
1082
1162/927 968/773 775/618 581/463 387/309 193/154
nas: ~# sysctl dev.cpu.0.freq=3D2100
dev.cpu.0.freq: 3400 -> 2100
nas: ~#
*reset*

I am running the following configuration:

ASUS PRIME A320I-K
Ryzen 2600
Corsair 2x8GB 2666MHz
SilverStone 650W SFX Power Supply
4x8TB WD Red
Asus BIOS update latest version 2203 - 2020/08/11 (AGESA at 1006).

I have updated to FreeBSD 12.2-RELEASE-p3 (from a fresh install of RELEASE)=
 as
well.

After some searching, I also tried the following BIOS tricks and they don't
change the symptom:
Global C-State Control - Disabled
Power Supply Idle Control - Typical
SMT - Disabled

I did run up an Ubuntu instance and frequency scaling is working and report=
ing
correctly on there (under /proc/cpuinfo).

Interestingly the FreeBSD system reports 22.5W at idle with just
CPU/RAM/Motherboard/Fans/USB/No Graphics Card (but the CPU still reporting
2400MHz) and the same could be seen under Ubuntu.

Something else of interest is that with this config, temp monitoring reports
incorrect temperatures (same as board temp in BIOS, CPU temp is about 10
degrees more):

dev.cpu.11.temperature: 32.1C
dev.cpu.10.temperature: 32.1C
dev.cpu.9.temperature: 32.1C
dev.cpu.8.temperature: 32.1C
dev.cpu.7.temperature: 32.1C
dev.cpu.6.temperature: 32.1C
dev.cpu.5.temperature: 32.1C
dev.cpu.4.temperature: 32.1C
dev.cpu.3.temperature: 32.1C
dev.cpu.2.temperature: 32.1C
dev.cpu.1.temperature: 32.1C
dev.cpu.0.temperature: 32.1C

Could it be that the CPU is actually scaling correctly without powerd and j=
ust
not reporting? Anyway, that's a bit of an aside, the hard reboot is the main
problem.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-253344-227>