Slow boot with Xenomai
Hello,
We are currently trying to install Xenomai (version 2.5rc2) on a Geode GX1 (PCM 3350 board), kernel 2.6.26 (Debian 5.0). However, we have run into a few issues.
Whenever we install the kernel with Local APIC support enabled, xenomai gives the error:
Xenomai: Local APIC absent or disabled! Disable APIC support or pass "lapic=1" as bootparam.
Passing the lapic=1 parameter doesn't seem to do much, so we decided to turn off APIC support in the kernel.
The kernel now boots, however, it does so extremely slowly. It is hanging (i.e., takes a long time) whenever an IRQ probe is required. The latencies are also pretty bad - worst case in xeno-test is 2ms!
So, any ideias on why this is happening?
Thanks for the help,
Signature · 5 lines
-Felipe Brandão Cavalcanti
LARA - Robotics and Automation Laboratory
Department of Electrical Engineering
UnB - University of Brasília, Brazil
http://www.lara.unb.br/Quoted 3 lines · Felipe Brandão Cavalcanti
Hello,
We are currently trying to install Xenomai (version 2.5rc2) on a Geode GX1 (PCM 3350 board), kernel 2.6.26 (Debian 5.0).
The Geode is a very very bad choice:
- it is going to disappear any time soon
- its performances in many domains are far from the average x86 performances.
However, we have run into a
Quoted 7 lines
few issues.
Whenever we install the kernel with Local APIC support enabled, xenomai gives the error:
Xenomai: Local APIC absent or disabled! Disable APIC support or pass "lapic=1" as bootparam.
Ok. I guess your Geode does not have an APIC. I have a Geode and just checked, it has the same issue, so, you should turn of apic in kernel configuration. Maybe something is needed in the BIOS to enable it (because the AMD specs say that the Geode has an APIC).
Quoted 10 lines
Passing the lapic=1 parameter doesn't seem to do much, so we decided to turn off APIC support in the kernel.
The kernel now boots, however, it does so extremely slowly. It is hanging (i.e., takes a long time) whenever an IRQ probe is required. The latencies are also pretty bad - worst case in xeno-test is 2ms!
So, any ideias on why this is happening?
Probably an issue induced by power management disabling the tsc. So the usual advices apply, please be sure to disable any smart power management issue in the bios configuration and to boot with ACPI enabled (except ACPI_PROCESSOR). Someone, a long time ago, posted on the RTAI mailing list a way to disable this tsc thing by running an outb at a well defined address, but I never was able to test it since my Geode does not have this issue. Another workaround reported to work is to boot with idle=poll passed on the command line. Yet another workaround is to avoid using the tsc (by selecting in the kernel configuration a processor without tsc), but this means a lot of overhead.
Signature · 1 line
Gilles.
Quoted 4 lines · Gilles Chanteperdrix
The Geode is a very very bad choice:
- it is going to disappear any time soon
- its performances in many domains are far from the average x86 performances.
Agreed.
Quoted 5 lines
Ok. I guess your Geode does not have an APIC. I have a Geode and just checked, it has the same issue, so, you should turn of apic in kernel configuration. Maybe something is needed in the BIOS to enable it (because the AMD specs say that the Geode has an APIC).
I've also tried to figure out how to get it to work with both a GX1 and an LX-800 and cannot get it to work. I have read on other lists that there is no APIC.
Quoted 10 lines
Probably an issue induced by power management disabling the tsc. So the usual advices apply, please be sure to disable any smart power management issue in the bios configuration and to boot with ACPI enabled (except
ACPI_PROCESSOR). Someone, a long time ago, posted on the RTAI mailing list a way to disable this tsc thing by running an outb at a well defined address, but I never was able to test it since my Geode does not have this issue. Another workaround reported to work is to boot with idle=poll passed on the command line. Yet another workaround is to avoid using the tsc (by selecting in the kernel configuration a processor without tsc), but this means a lot of overhead.
We use TSC with idle=poll and things work correctly. However, the power saving mode will not run. However, gx1 is efficient and does not require a heatsink or fan, so it will not hurt your hardware. If you are running off a battery then you might want to use another approach.
The big issue with geode is the SMI overhead. It's terrible, and it will be a thorn in your side as you try to minimize jitter. I suggest you consider another board. Someday when I get some time, I may try and look into an smi disable function for geode. I think Gilles was going to look into it at some point, too. I've not really had a chance to work with Xenomai since May as the company I assist part time has been working on other things lately.
Steven