From: Philippe Gerum <rpm@xenomai.org>
To: Russell Johnson <rjohnson@domain.hid>
Cc: 'xenomai-core' <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] Handling PCI MSI interrupts
Date: Fri, 17 Feb 2006 16:45:12 +0100 [thread overview]
Message-ID: <43F5EF88.1080400@domain.hid> (raw)
In-Reply-To: <001d01c633d0$7a5a7300$1e01a8c0@domain.hid>
Russell Johnson wrote:
>>>I tested (and intended) the patch for MSI (w/o maskbits), not MSI-X.
>>>What e1000 chip are you using exactly? Easiest way to tell is by using
>>>'/sbin/lspci'. I may be able to help you out with MSI-X as well, but in
>>>that case, I have no hardware platform to test on.
>
>
>>>You can check whether or not MSI is actually being used by doing
>>>'/sbin/lspci -v' and look for the Capability: Message Signalled
>>>Interrupt. When the driver is running in MSI mode, it should read
>>>'Enable+' instead of 'Enable-'.
>
>
> This e1000 chip actually doesn't have MSI support. I had assumed that since
> the e1000 driver caused the hanging and disabling MSI in the kernel caused
> the hang to go away that the problem was MSI in the e1000. The e1000 driver
> only enables MSI on newer chips than what are in the Dell 28xx machines.
>
Same problem here actually; the e1000 driver attempts to enable MSI routing for
recent adapters (i82547 rev. #2, if I read this code correctly) due to bugs in
older revisions. Unfortunately, the dual Xeon I've been using to check for
CONFIG_PCI_MSI has an older adapter, so the routing is still done by the IO-APIC,
and the bug does not trigger.
>
>>>As it's a Dell, I assume there's two Intel Penium CPU's
>>>inside. Are you running with SMP enabled ?
>
>
> SMP is enabled.
>
>
>>>The local (internal) CPU APIC hasn't been informed that the interrupt
>>>has been dealt with and it will therefore allow no other interrupts
>>>anymore to arrive in the CPU (including your keyboard's).
>>>In fact, your CPU is idle.
>
>
> I have used a PCI analyzer to see infinite loops on this machine for past
> similar kernel issues and assumed it would be the same due to the symptoms.
>
>
>>> When I build a kernel with Adeos but disable MSI then the
>>> system works fine for the most part. There is one scenario
>>> where the system will still hang
>>> doing disk and network accesses under a moderate load of I/O.
>>>
>>>Hm. That may indicate another issue.
>>
>>Indeed. This behaviour has not been reported yet with patches
>>from the Adeos I-pipe series. Does it also happen with SMP
>>disabled, or Hyperthreading disabled?
>
>
> It did happen with SMP disabled and I have always left hyperthreading
> disabled because it is my understanding that hyperthreading is not supported
> by the adeos patch.
Adeos should not have any problem with HT; actually it has no impact on the
interrupt sub-system it deals with, we just happen to see multiple CPUs, which is
common case handled by the SMP support.
>
>
>>>Try upgrading the kernel. The kernel usually comes with updated drivers
>>>as well. Currently I'm running 2.6.16-rc2, which I had to patch manually
>
>
>>>for Adeos (about 3 'hunks' from the 2.6.15-i386-1.2-00 patch didn't
>>>apply properly). By using 2.6.16-rc2, I got much better Intel
>>>(especially i865 graphics) chipset support than 2.6.15. Note, however,
>>>that I did the bug fixing in this thread on a plain 2.6.15, though (and
>>>the msi.c code is nearly identical).
>>>
>>>I would recommend upgrading to 2.6.15 with the latest Adeos patch and
>>>try to get a stable system before enabling MSI.
>
>
> In short, MSI doesn't seem to have been my issue. I now have a more stable
> kernel. Apparently this system had some other faults with the specific
> configuration options I was using. I had to patch to the 2.6.14.7 level
> (was at .4) and change some of the options in my .config. Specifically, I
> had to leave ACPI enabled (I had disabled as a test a while back). With
> ACPI disabled, the machine would still hang if the USB was disabled in the
> BIOS.
You might want to try booting with acpi=ht, so that the ACPI kitchen sink is
warmed up far enough to enumerate LAPICs but not more.
>
> After learning how to check for MSI, no devices in my system seem to
> actually be using MSI. The code patches you provided were never actually
> executed. Time will tell if my system is stable.
>
> Thanks for your help!
You are welcome.
> Russ
>
>
>
--
Philippe.
next prev parent reply other threads:[~2006-02-17 15:45 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-14 15:44 [Xenomai-core] Handling PCI MSI interrupts Jeroen Van den Keybus
2006-02-14 17:50 ` Philippe Gerum
2006-02-14 18:07 ` Jeroen Van den Keybus
2006-02-14 18:17 ` Jan Kiszka
2006-02-14 18:26 ` Philippe Gerum
2006-02-14 18:52 ` Jeroen Van den Keybus
2006-02-14 19:22 ` Jeroen Van den Keybus
2006-02-14 19:33 ` Jeroen Van den Keybus
2006-02-14 21:41 ` Jeroen Van den Keybus
2006-02-14 21:56 ` Philippe Gerum
2006-02-15 11:00 ` Jeroen Van den Keybus
2006-02-15 18:02 ` Jeroen Van den Keybus
2006-02-15 18:34 ` Jeroen Van den Keybus
2006-02-15 20:09 ` Philippe Gerum
2006-02-15 20:50 ` Jeroen Van den Keybus
2006-02-15 22:48 ` Philippe Gerum
2006-02-15 22:58 ` Jeroen Van den Keybus
2006-02-15 23:09 ` Russell Johnson
2006-02-16 9:36 ` Philippe Gerum
2006-02-16 14:23 ` Russell Johnson
2006-02-17 12:54 ` Jeroen Van den Keybus
2006-02-17 13:08 ` Philippe Gerum
2006-02-17 14:43 ` Russell Johnson
2006-02-17 15:45 ` Philippe Gerum [this message]
2006-02-17 15:57 ` Jeroen Van den Keybus
2006-02-17 16:07 ` Philippe Gerum
2006-02-17 16:49 ` Jeroen Van den Keybus
2006-02-17 18:37 ` Jeroen Van den Keybus
2006-02-17 18:39 ` Philippe Gerum
2006-02-19 18:50 ` Philippe Gerum
2006-02-14 18:23 ` Philippe Gerum
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=43F5EF88.1080400@domain.hid \
--to=rpm@xenomai.org \
--cc=rjohnson@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.