From: "Franz Engel" <franz_lambert_engel@domain.hid>
To: 'Philippe Gerum' <rpm@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] [ 1.954665] Xenomai: native skin init failed, code -19
Date: Sat, 5 Feb 2011 20:28:42 +0100 [thread overview]
Message-ID: <000001cbc56a$e6237600$b26a6200$@de> (raw)
In-Reply-To: <1296858744.2087.44.camel@domain.hid>
Hello Philippe,
In my BIOS I disabled the "Cool 'n' quite" option (I think this is C1E for AMD). I tried the patch again but I get a failure-message. I made the following steps:
I save the patch to a file ("xen.patch"):
--- a/arch/x86/kernel/process.c
+++ b/arch/x86/kernel/process.c
@@ -637,8 +637,10 @@ void __cpuinit select_idle_routine(const struct cpuinfo_x86 *c)
{
#ifdef CONFIG_IPIPE
#define default_to_mwait force_mwait
+#define maybe_c1e 0
#else
#define default_to_mwait 1
+#define maybe_c1e 1
#endif
#ifdef CONFIG_SMP
if (pm_idle == poll_idle && smp_num_siblings > 1) {
@@ -655,7 +657,7 @@ void __cpuinit select_idle_routine(const struct cpuinfo_x86 *c)
*/
printk(KERN_INFO "using mwait in idle threads.\n");
pm_idle = mwait_idle;
- } else if (check_c1e_idle(c)) {
+ } else if (maybe_c1e && check_c1e_idle(c)) {
printk(KERN_INFO "using C1E aware idle routine\n");
pm_idle = c1e_idle;
} else
I downloaded/unpacked Xenomai-2.5.5.2
I downloaded/unpacked Linux-2.6.32.20
./prepare-kernel.sh --linux=/usr/src/linux-2.6.32.20 --adeos=/home/xenomai-head/ksrc/arch/x86/patches/adeos-ipipe-2.6.32.20-x86-2.6-02.patch
cd /usr/src/linux2.6.32.20
patch -p1 -b < /home/xen.patch
Then I get the following message:
patching file arch/x86/kernel/process.c
Hunk #1 succeeded at 550 with fuzz 1 (offset -87 lines).
Hunk #2 FAILED at 657.
1 out of 2 hunks FAILED -- saving rejects to file arch/x86/kernel/process.c.rej
Did I do something wrong?
-----Ursprüngliche Nachricht-----
Von: Philippe Gerum [mailto:rpm@xenomai.org
Gesendet: Freitag, 4. Februar 2011 23:32
An: Franz Engel
Cc: xenomai@xenomai.org
Betreff: Re: [Xenomai-help] [ 1.954665] Xenomai: native skin init failed, code -19
On Fri, 2011-02-04 at 22:10 +0100, Franz Engel wrote:
> Here is my full boot log:
[snip]
> [ 0.030589] tseg: 0000000000
> [ 0.030596] CPU: Physical Processor ID: 0
> [ 0.030626] CPU: Processor Core ID: 0
> [ 0.030657] mce: CPU supports 6 MCE banks
> [ 0.030692] using C1E aware idle routine
This means that you are not running the patched kernel. There is no way
the c1e_idle routine which outputs the above message could run with it
applied.
[snip]
> [ 0.030000] CPU: L2 Cache: 512K (64 bytes/line)
> [ 0.030000] CPU 1/0x1 -> Node 0
> [ 0.030000] CPU: Physical Processor ID: 0
> [ 0.030000] CPU: Processor Core ID: 1
> [ 0.430096] CPU1: AMD Phenom(tm) II X6 1055T Processor stepping 00
> [ 0.430357] checking TSC synchronization [CPU#0 -> CPU#1]: passed.
> [ 0.440015] System has AMD C1E enabled
This means you BIOS did not disable C1E properly. The CPU still
advertises this mode.
In fact, once C1E is properly disabled by the BIOS, you should not need
the patch at all.
Please check your BIOS setup and kernel install. You don't seem to be
running what you think you do actually.
--
Philippe.
next prev parent reply other threads:[~2011-02-05 19:28 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.9723.1296855625.10284.xenomai@xenomai.org>
2011-02-04 21:10 ` [Xenomai-help] [ 1.954665] Xenomai: native skin init failed, code -19 Franz Engel
2011-02-04 22:32 ` Philippe Gerum
2011-02-05 19:28 ` Franz Engel [this message]
2011-02-05 22:59 ` Gilles Chanteperdrix
2011-02-05 21:55 ` Franz Engel
2011-02-06 9:16 ` Philippe Gerum
[not found] <mailman.9368.1296765304.10284.xenomai@xenomai.org>
2011-02-04 20:18 ` Franz Engel
2011-02-04 21:40 ` Philippe Gerum
2011-02-02 20:05 Franz Engel
2011-02-02 22:04 ` Philippe Gerum
2011-02-03 17:27 ` Franz Engel
2011-02-03 18:34 ` Philippe Gerum
2011-02-03 20:34 ` Philippe Gerum
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='000001cbc56a$e6237600$b26a6200$@de' \
--to=franz_lambert_engel@domain.hid \
--cc=rpm@xenomai.org \
--cc=xenomai@xenomai.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 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.