Xenomai 2.6.2 + Kernel 3.5.3 + AMD Phenom II X6 1055
Dnia Sobota, 29 Grudnia 2012 17:51 Gilles Chanteperdrix <[email protected]> napisał(a)
Quoted 44 lines · Mariusz Janiak
Quoted 4 lines
If you find useful please add bellow text to the TROUBLESHOOTING.adoc file.
Quoted 14 lines
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@@ -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_INFOSignature · 2 lines
-- Gilles.
Hi Gilles,
I confirm, the patch solve problem with printing warning messages in a system log. Executing 'dmesg | grep -i i-pipe' give following results
I-pipe: cannot use LAPIC as a tick device
I-pipe: disable C1E power state in your BIOS
I-pipe: cannot use LAPIC as a tick device
I-pipe: disable C1E power state in your BIOS
I-pipe: cannot use LAPIC as a tick device
I-pipe: disable C1E power state in your BIOS
I-pipe: cannot use LAPIC as a tick device
I-pipe: disable C1E power state in your BIOS
I-pipe: cannot use LAPIC as a tick device
I-pipe: disable C1E power state in your BIOS
I-pipe: cannot use LAPIC as a tick device
I-pipe: disable C1E power state in your BIOS
I-pipe: could not find timer for cpu #1
Mariusz.
Quoted 50 lines · Mariusz Janiak
Dnia Sobota, 29 Grudnia 2012 17:51 Gilles Chanteperdrix <[email protected]> napisał(a)
Quoted 44 lines · Mariusz Janiak
Quoted 4 lines
If you find useful please add bellow text to the TROUBLESHOOTING.adoc file.
Quoted 14 lines
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@@ -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_INFOSignature · 2 lines
-- Gilles.Hi Gilles,
I confirm, the patch solve problem with printing warning messages in a system log. Executing 'dmesg | grep -i i-pipe' give following results
Quoted 13 lines
I-pipe: cannot use LAPIC as a tick device
I-pipe: disable C1E power state in your BIOS
I-pipe: cannot use LAPIC as a tick device
I-pipe: disable C1E power state in your BIOS
I-pipe: cannot use LAPIC as a tick device
I-pipe: disable C1E power state in your BIOS
I-pipe: cannot use LAPIC as a tick device
I-pipe: disable C1E power state in your BIOS
I-pipe: cannot use LAPIC as a tick device
I-pipe: disable C1E power state in your BIOS
I-pipe: cannot use LAPIC as a tick device
I-pipe: disable C1E power state in your BIOS
I-pipe: could not find timer for cpu #1
Not really nice, could you try this one:
arch/x86/kernel/apic/apic.c +10 -6
@@ -545,14 +545,18 @@ 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 -"I-pipe: cannot use LAPIC as a tick device\n" ); -if (cpu_has_amd_erratum (amd_erratum_400)) -printk (KERN_INFO -"I-pipe: disable C1E power state in your BIOS\n" ); +static atomic_t printed =ATOMIC_INIT (-1 ); +printk (KERN_INFO +"I-pipe: cannot use LAPIC on cpu #%d as a tick device\n" , +smp_processor_id ()); +if (cpu_has_amd_erratum (amd_erratum_400) + &&atomic_inc_and_test (&printed)) +printk (KERN_INFO +"I-pipe: disable C1E power state in your BIOS\n" ); }#endif /* CONFIG_IPIPE */
Signature · 1 line
Gilles.