[DragonFlyBSD - Bug #2781] DFly 4.0.3; PC Engines APU AMD T40E CPU; kernel panic when when setting machdep.mwait.CX.idle=AUTO

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Fri Jan 30 02:26:28 PST 2015

Issue #2781 has been updated by swildner.

Can you give us a verbose dmesg (i.e., select either 'v' at the loader.menu or set boot_verbose=yes in loader.conf) too?

Bug #2781: DFly 4.0.3; PC Engines APU AMD T40E CPU; kernel panic when when setting machdep.mwait.CX.idle=AUTO

* Author: CosmicDJ
* Status: New
* Priority: Low
* Assignee: 
* Category: Kernel
* Target version: 4.0.x

I get a kernel panic when doing "sysctl machdep.mwait.CX.idle=AUTO" (AUTODEEP does not work):

# sysctl machdep.mwait.CX.idle=AUTO
machdep.mwait.CX.idle: INVALID

Fatal trap 12: page fault while in kernel mode
cpuid = 1; lapic->id = 01000000
fault virtual address   = 0x3fffffff4
fault code              = supervisor read data, page not present
instruction pointer     = 0x8:0xffffffff809ccc6e
stack pointer           = 0x10:0xffffffe02b458a80
frame pointer           = 0x10:0xffffffe02b458ab0
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = Idle
current thread          = pri 12
kernel: type 12 trap, code=0

CPU1 stopping CPUs: 0x00000001
Stopped at      cpu_idle+0x19a: movl    (%rdx,%rax,4),%edx

The CPU should support C1 and C6 (see http://www.cpu-world.com/CPUs/Bobcat/AMD-G%20Series%20G-T40E%20-%20GET40EFQB22GVE.html).
BIOS is "Build 9/8/2014".

#powernow_load="YES" # XXX does not work with a T40E CPU (yet?)

#machdep.mwait.CX.idle=AUTODEEP XXX

Some sysctls:
# sysctl kern.cputimer
kern.cputimer.intr.select: lapic
kern.cputimer.intr.freq: 100000264
kern.cputimer.intr.reglist: lapic
kern.cputimer.freq: 14318180
kern.cputimer.clock: 754746750
kern.cputimer.name: HPET
kern.cputimer.select: HPET ACPI-safe i8254_timer2 dummy

# sysctl machdep.mwait
machdep.mwait.CX.repeat_shift: 1
machdep.mwait.CX.spin: INVALID
machdep.mwait.CX.idle: INVALID
machdep.mwait.C0.subcnt: 0
machdep.mwait.C0.entered: 0
machdep.mwait.C1.subcnt: 0
machdep.mwait.C1.entered: 47478
machdep.mwait.C2.subcnt: 0
machdep.mwait.C2.entered: 0
machdep.mwait.C3.subcnt: 0
machdep.mwait.C3.entered: 0
machdep.mwait.C4.subcnt: 0
machdep.mwait.C4.entered: 0
machdep.mwait.C5.subcnt: 0
machdep.mwait.C5.entered: 0
machdep.mwait.C6.subcnt: 0
machdep.mwait.C6.entered: 0
machdep.mwait.C7.subcnt: 0
machdep.mwait.C7.entered: 0

# sysctl hw.acpi | grep cx
hw.acpi.cpu.cx_lowest: C1
hw.acpi.cpu.cx_lowest_use: C1
hw.acpi.cpu0.cx_supported: C1/100
hw.acpi.cpu0.cx_lowest: C1
hw.acpi.cpu0.cx_lowest_use: C1
hw.acpi.cpu0.cx_usage: 0.00% last 1000000us
hw.acpi.cpu1.cx_supported: C1/100
hw.acpi.cpu1.cx_lowest: C1
hw.acpi.cpu1.cx_lowest_use: C1
hw.acpi.cpu1.cx_usage: 0.00% last 1000000us

# sysctl hw.acpi.cpu | grep px
hw.acpi.cpu.px_dom0.available: 1000 800
hw.acpi.cpu.px_dom0.members: cpu1(800) cpu0(800)
hw.acpi.cpu.px_dom0.select: 800
hw.acpi.cpu.px_global: 1000

dmesg is attached

dmesg.txt (10.7 KB)

You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account

More information about the Bugs mailing list