From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Stephen Bryant <sbxenomai@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Unexpected preemption of highest priority thread
Date: Tue, 27 Jul 2010 15:30:04 +0200 [thread overview]
Message-ID: <4C4EDF5C.9000901@domain.hid> (raw)
In-Reply-To: <AANLkTi=NSEHpoxYHM0HmjtA-xW7Ec69eTgryOYzrvRhC@mail.gmail.com>
Stephen Bryant wrote:
> On 26 July 2010 14:45, Gilles Chanteperdrix
> <gilles.chanteperdrix@xenomai.org
> <mailto:gilles.chanteperdrix@xenomai.org>> wrote:
>
> Stephen Bryant wrote:
> > Do you mean enabling / disabling the individual options in the SMI
> > Workaround section of the kernel config file, or are you suggesting
> > something lower level / something else?
>
> The options in the SMI workaround section of the kernel config file
> actually disable some bits in some SMI registers, so they are already
> low level. Anyway, yes, it is what I ask you to do.
>
>
> --
> Gilles.
>
>
> I've been looking into this when I've had the time and the results so
> far are that:
> - Globally disabling SMI fails.
> - Disabling all 8 'non-global' SMI options succeeds, but does not change
> my latency results.
>
> From this I conclude that 'Globally disable SMI' really does try to
> disable every SMI signal, which is different from just deselecting each
> of the 8 'Enable ... SMI' options presented, which I had not realised.
The "Global disabling" bit, disable all SMI sources without even having
to list them. As such, as explained in the TROUBLESHOOTING file, it is
way more reliable than having to know all the SMI sources and disable
them one by one.
> Also, my problem may still be SMI related, and I can only test this if I
> can convince the BIOS to allow global SMI disabling.
>
> So my next steps are to:
> 1 - Look for ways to change or circumvent the BIOS (if possible).
There is an "SMI lock" bit, which once enabled, can not be disabled. So,
if the BIOS you use uses this bit, there is nothing you can do, except
changing the BIOS. You can ask the board manufacturer to give you
another BIOS where this bit is not locked, so that you can test whether
SMI are the source of your problem.
> 2 - Try a few other kernel settings (for examples the timers available)
> to find out if my issue stems from something other than SMIs.
> 3 - Progressively change the Xenomai SMI disabling code to test SMIs not
> covered by the 8 options presented.
>
> I'll be checking the literature for help with these, but if anyone has
> any pointers that would be much appreciated,
What you need is the datasheet of your chipset. I had looked at a
datasheet when doing this code, and found other sources, but did not
implement their disabling, you will find references in the
ksrc/arch/x86/smi.c file, and they are probably incomplete for your
particular chipset, which is why you should look for the datasheet of
your exact chipset.
--
Gilles.
prev parent reply other threads:[~2010-07-27 13:30 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-21 10:54 [Xenomai-help] Unexpected preemption of highest priority thread Stephen Bryant
2010-07-21 11:06 ` Gilles Chanteperdrix
2010-07-21 12:05 ` Stephen Bryant
2010-07-21 13:04 ` Stephen Bryant
2010-07-21 13:06 ` Gilles Chanteperdrix
2010-07-22 7:49 ` Stephen Bryant
2010-07-22 7:54 ` Gilles Chanteperdrix
2010-07-22 9:09 ` Stephen Bryant
2010-07-22 10:56 ` Gilles Chanteperdrix
2010-07-26 10:27 ` Stephen Bryant
2010-07-26 12:11 ` Gilles Chanteperdrix
2010-07-26 12:31 ` Stephen Bryant
2010-07-26 13:45 ` Gilles Chanteperdrix
2010-07-27 13:20 ` Stephen Bryant
2010-07-27 13:30 ` Gilles Chanteperdrix [this message]
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=4C4EDF5C.9000901@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=sbxenomai@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.