From: Andy Isaacson <adi@hexapodia.org>
To: linux-kernel@vger.kernel.org
Subject: powertop "pread cpu0 0xe8 : Bad file descriptor" fixed by CONFIG_MSR
Date: Sat, 6 Aug 2011 15:52:02 -0700 [thread overview]
Message-ID: <20110806225202.GO6058@hexapodia.org> (raw)
I hadn't seen this issue discussed on the list, and I don't know of a
powertop mailing list, so here's what stymied my use of powertop until I
straced it.
With CONFIG_MSR=n, powertop "1.97-2" (from Debian unstable) on 3.0.1
(and presumably many other recent kernels) exits at startup with:
pread cpu0 0xe8 : Bad file descriptor
strace shows:
open("/dev/cpu/0/msr", O_RDONLY) = -1 ENOENT (No such file or directory)
pread(4294967295, 0x7fff4c8347c8, 8, 232) = -1 EBADF (Bad file descriptor)
Setting CONFIG_MSR=m and loading msr.ko fixes the issue, allowing
powertop to work again (tested against 3.0.1). I'm pretty sure this is
a regression from long ago -- I have had CONFIG_X86_MSR=n in almost all
configs since 2.6.34-07097-gf4b87de, and powertop worked in most of
those kernels. But I don't have references for what versions of
powertop and what kernels I was running at various points.
-andy
next reply other threads:[~2011-08-06 22:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-06 22:52 Andy Isaacson [this message]
2011-08-08 9:08 ` Américo Wang
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=20110806225202.GO6058@hexapodia.org \
--to=adi@hexapodia.org \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®