Skip to contentSkip to conversation

Xenomai 2.6.2 + Kernel 3.5.3 + AMD Phenom II X6 1055

Xenomai Applied Mariusz Janiak 2 participants 3 messages Dec 28, 2012 – Dec 30, 2012 x86

lore
Share & tools
lore
#0 lore raw

Dnia Pi+-tek, 28 Grudnia 2012 01:41 Gilles Chanteperdrix <[email protected]> napisa^3(a)

Quoted 9 lines · Mariusz Janiak
Quoted 8 lines

Hi

As soon as you publish new Xenomai 2.6.2 release, I have tried to

launch it on my desktop, and unfortunately I went into trouble. My testbed:

Quoted 18 lines
Quoted 17 lines

- Xenomai 2.6.2,

- Kernel 3.5.3 (I haven't testes earlier versions),

- AMD Phenom II X6 1055 + Gigabyte GA-890GPA-UD3H

- Ubuntu 12.10.

Quoted 29 lines
Quoted 1 line

The problem is following (from dmesg):

The problem real problem is here (from your dmesg):

Quoted 19 lines

System has AMD C1E enabled

Switch to broadcast mode on CPU1

Switch to broadcast mode on CPU2

Switch to broadcast mode on CPU3

Switch to broadcast mode on CPU4

I went through installation manual, troubleshooting guide and forum

archives, maybe I have missed something. What is more I have tested

this

Quoted 8 lines
Quoted 5 lines

kernel on my laptop HP pavilion dm1 with AMD E-350 and it work

without problems.

Quoted 5 lines

We have a message saying:

I-pipe: cannot use LAPIC as a tick device

I-pipe: disable C1E power state in your BIOS

Thank you Gilles, this was may case, disabling a C1E power state in a BIOS definitively solved my problem.

Quoted 1 line

For some reason, however, it does not get printed in your case. I

agree

Quoted 7 lines

that we should document this in the TROUBLESHOOTING guide.

--

Gilles.

If you find useful please add bellow text to the TROUBLESHOOTING.adoc file.

On AMD x86_64
^^^^^^^^^^^^^
You will most likely also see the following message:
--------------------------------------------
I-pipe: cannot use LAPIC as a tick device
I-pipe: disable C1E power state in your BIOS
--------------------------------------------
Xenomai sends this message if C1E option is enabled in a BIOS. To fix this issue please disable C1E support in the BIOS. In some Award BIOS this option is located in the +Advanced BIOS Features->+ menu (+AMD C1E Support+).
On some systems, above message may not appear in the system log.
IMPORTANT: Disabling +AMD K8 Cool&Quiet+ option in a BIOS does not solve the problem.

Mariusz

#1 lore raw
Quoted 17 lines · Mariusz Janiak

If you find useful please add bellow text to the TROUBLESHOOTING.adoc file.

On AMD x86_64
^^^^^^^^^^^^^
You will most likely also see the following message:
--------------------------------------------
I-pipe: cannot use LAPIC as a tick device
I-pipe: disable C1E power state in your BIOS
--------------------------------------------
Xenomai sends this message if C1E option is enabled in a BIOS. To fix this issue please disable C1E support in the BIOS. In some Award BIOS this option is located in the +Advanced BIOS Features->+ menu (+AMD C1E Support+).
On some systems, above message may not appear in the system log.
IMPORTANT: Disabling +AMD K8 Cool&Quiet+ option in a BIOS does not solve the problem.

Hi Mariusz,

thanks for the help text. Could you try the following patch to see if it restores the message?

arch/x86/kernel/apic/apic.c +2 -1
index 7f07610..6cc9208 100644
@@ -545,7 +545,8 @@ static void __cpuinit setup_APIC_timer(void)
 	memcpy(levt, &lapic_clockevent, sizeof(*levt));
 	levt->cpumask = cpumask_of(smp_processor_id());
 #ifdef CONFIG_IPIPE
-	if (!(lapic_clockevent.features & CLOCK_EVT_FEAT_DUMMY))
+	if (!(lapic_clockevent.features & CLOCK_EVT_FEAT_DUMMY)
+	    && !cpu_has_amd_erratum(amd_erratum_400))
 		levt->ipipe_timer = &__get_cpu_var(lapic_itimer);
 	else {
 	       printk(KERN_INFO
Signature · 1 line
                                                                Gilles.
#2 lore raw
In reply to Mariusz Janiak
Quoted 17 lines · Mariusz Janiak

If you find useful please add bellow text to the TROUBLESHOOTING.adoc file.

On AMD x86_64
^^^^^^^^^^^^^
You will most likely also see the following message:
--------------------------------------------
I-pipe: cannot use LAPIC as a tick device
I-pipe: disable C1E power state in your BIOS
--------------------------------------------
Xenomai sends this message if C1E option is enabled in a BIOS. To fix this issue please disable C1E support in the BIOS. In some Award BIOS this option is located in the +Advanced BIOS Features->+ menu (+AMD C1E Support+).
On some systems, above message may not appear in the system log.
IMPORTANT: Disabling +AMD K8 Cool&Quiet+ option in a BIOS does not solve the problem.

Merged, thanks.

Signature · 1 line
                                                                Gilles.