All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: "Felipe Brandão Cavalcanti" <cavalkaf@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Slow boot with Xenomai
Date: Thu, 06 Aug 2009 22:32:25 +0200	[thread overview]
Message-ID: <4A7B3DD9.4030000@domain.hid> (raw)
In-Reply-To: <8b216e9e0908050557s3789edcdq5b8b6b88bf52861b@domain.hid>

Felipe Brandão Cavalcanti wrote:
> 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
> 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).

> 
> 
> 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.

-- 
					    Gilles.



  reply	other threads:[~2009-08-06 20:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-05 12:57 [Xenomai-help] Slow boot with Xenomai Felipe Brandão Cavalcanti
2009-08-06 20:32 ` Gilles Chanteperdrix [this message]
2009-08-06 21:01   ` Steven Seeger

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=4A7B3DD9.4030000@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=cavalkaf@domain.hid \
    --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.