https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295941

            Bug ID: 295941
           Summary: Minisforum MS01 instability after 7b26353a59d6
                    hwpstate_intel: Disable package control on hybrid CPU
           Product: Base System
           Version: 16.0-CURRENT
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: [email protected]
          Reporter: [email protected]

I'm opening this bug as requested by Adrian & so that others can find the bug
in case the have the same problem.  I'm not asking for a reversion of the
commit mentioned in the subject.

I have a Minisforum MS-01, which is basically a laptop CPU in a desktop
motherboard that I use as a workstation. It is running the latest firmware
(1.27).  When I first got the box last summer, I would encounter the box
powering cycling as soon as I typed make -j20 buildkernel if
dev.hwpstate_intel.X.epp was set lower than 44.   So I added setting those
sysctls to 44 to /etc/sysctl.conf and forgot about it.

After I upgraded to a recent main version (1ee4b5fd824a fork: Drop an uneeded
PHOLD/PRELE pair), the instability returned. And was present for even higher
values of epp (I think I even tried 100).   I tried reverting 7b26353a59d6 and
it "fixed" the problem.

I asked claude for help, and it told me about iccmax, which caps the
instantaneous CPU power.  Setting this to 8*100 seems to solve my issues (it
defaults to 8*210). Setting is done as:  cpucontrol -m 0x601=0x320 /dev/cpuctl0

I suspect this is something about a 110v supply on a US power brick vs a 220v
supply on a Chinese power brick.

Adrian asked me to raise this issue to point out how power saving changes can
have odd effects.

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

Reply via email to