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:[email protected]]
Gesendet: Freitag, 4. Februar 2011 23:32
An: Franz Engel
Cc: [email protected]
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.
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help