From: Avi Kivity <avi@redhat.com>
To: Walter Haidinger <walter.haidinger@gmx.at>
Cc: kvm@vger.kernel.org
Subject: Re: OpenBSD 5.0 kernel panic in AMD K10 cpu power state
Date: Wed, 09 Nov 2011 15:40:10 +0200 [thread overview]
Message-ID: <4EBA82BA.1090602@redhat.com> (raw)
In-Reply-To: <4EBA5848.7070404@redhat.com>
On 11/09/2011 12:39 PM, Avi Kivity wrote:
> > More from misc@openbsd.org:
> > > OpenBSD 5.0 (GENERIC) #43: Wed Aug 17 10:10:52 MDT 2011
> > > deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
> > > cpu0: AMD Phenom(tm) II X6 1100T Processor ("AuthenticAMD" 686-class, 512KB L2 cache) 3.31 GHz
> > > ...
> > > kernel: protection fault trap, code=0
> > > Stopped at k1x_init+0x56: rdmsr
> > > k1x_init(d0ad7540,d09ae620,d0b8ce58,d059ce20,30000002) at k1x_init+0x56
> >
> > k1x_init() is not related to vmt, it is from k1x-pstate.c, which
> > is cpu power state driver for K10 processors.
> >
> > Thread on misc@openbsd.org with full OpenBSD dmesg:
> > http://marc.info/?l=openbsd-misc&m=132067866208188&w=2
> >
> > Since both qemu-kvm 0.14.1 and 0.15.1 show identical
> > symptoms, I assume this is in deed a KVM kernel bug.
>
> It doesn't actually follow, but happens to be correct.
>
> > Can somebody reproduce this?
>
> I'll try it out and see.
>
Actually, it looks like an OpenBSD bug. According to the AMD documentation:
"The current P-state value can be read using the P-State Status
Register. The P-State Current Limit
Register and the P-State Status Register are read-only registers. Writes
to these registers cause a #GP
exception. Support for hardware P-state control is indicated by EDX bit
7 as returned by CPUID
function 8000_0007h. Figure 18-1 shows the format of the P-State Current
Limit register."
Can you check what cpuid 80000007 returns by running 'x86info -r | grep
80000007' in a Linux guest with the same command line? if edx returns
zero, then it's OpenBSD not checking cpuid correctly.
--
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2011-11-09 13:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-08 9:25 OpenBSD 5.0 kernel panic in AMD K10 cpu power state Walter Haidinger
2011-11-09 10:39 ` Avi Kivity
2011-11-09 13:40 ` Avi Kivity [this message]
2011-11-09 14:19 ` Walter Haidinger
[not found] ` <4EBAD609.4050307@gmx.at>
2011-11-10 8:46 ` Avi Kivity
2011-11-10 22:52 ` Andre Przywara
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4EBA82BA.1090602@redhat.com \
--to=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=walter.haidinger@gmx.at \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.