* [Xenomai-help] IRQ issues in xenomai and rtnet [not found] ` <4731CAE5.5080401@domain.hid> @ 2007-11-07 17:59 ` Leopold Palomo-Avellaneda 2007-11-07 18:12 ` [Xenomai-help] IRQ issues in xenomai and rtnet (update) Leopold Palomo-Avellaneda ` (2 more replies) 0 siblings, 3 replies; 9+ messages in thread From: Leopold Palomo-Avellaneda @ 2007-11-07 17:59 UTC (permalink / raw) To: Jan Kiszka; +Cc: xenomai, mathias_koehrer Hi, following the Jan Kiszka propose I move this thread to the xenomai list. Making some kind of resume I have this situation: - Mobo Gigabyte M61P-S3 with bios updated (nVidia nForce 430 chipset, amd64) - two old network intel e100 cards PCI - one jr3 sensor capture PCI - running a debian etch amd64 port with several kernels 2.6.22, rtai, xenomai, debian. The box _must_ boot with noapic in the grub because not hangs trying with the hd controller :-( - running a debian etch amd64 port with several kernels 2.6.23, xenomai, debian. The box boot with apic :-) the kernel config is based on a standard debian config and the xenomai part is based on the faq. The only issue that I have realised some minutes ago have been that Shared interrupts is disable (but Jan Kiszka have pointed that it does not produce hangs. I have selected in the bios that each pci slot htat has a ethernet has a specific irq, but when I load a rtnet driver, it assigns another irq. Making more test, now with 2.6.23 the irq assigned in bios more or less i maintained but still _again_ when load the rtnet driver, the box hangs ... I must put a irq specific for each card if not the kernel doesn't boot or I put irq auto and irqpoll in the kenel options. With this configuration I can configure the cards: palomo@domain.hid$ sudo ./sbin/rtroute Host Routing Table Hash Destination HW Address Device 3F 10.0.1.255 FF:FF:FF:FF:FF:FF rteth1 3F 10.0.0.255 FF:FF:FF:FF:FF:FF rteth0 and the system doesn't hang ... So, any ideas about it? Best regards, and very thanks for all your effort, Leo A Dimecres 07 Novembre 2007, Jan Kiszka va escriure: > Leopold Palomo-Avellaneda wrote: > > A Dimecres 07 Novembre 2007, Karl Reichert va escriure: > > [...] > > > >>> the _same_ card was working with rtnet (not xenomai but rtai) in a > >>> configuration that I had in another box. > >> > >> That's what I mean, the card is not the problem. The problem is the > >> current setup, so as a result it is not working. But of course not the > >> card is the one to blame. ... > > > > are you working for intel? ;-) > > > > no, I'm joking. > > > > Sadly, I have tested the same configuration with a rtai kernel and I got > > the same hang :-( Also, the network card got the same irq in rtai ... > > IRQ issues are generally I-pipe issues. And RTAI uses (almost) the same > I-pipe patch as Xenomai, thus shares the same bugs until they are fixed > upstream. Generally. > > There are currently a few fixes floating around on Adeos-main, and we > (Xenomai) have some new report probably regarding MSI. As I think I have > seen something about MSI in your config as well, could you try to > disable CONFIG_PCI_MSI to check if at least the hangs disappears (given, > of course, IRQs line will then not be in conflict again)? Also can you > try (unless you already do so) with the latest I-pipe patch for, say, > 2.6.23.x? > > Another hint regard IRQ conflict avoidance: If RTnet (or RT hardware in > general) shares some line with a Linux device you may not depend upon > (Firewire? USB?), just unload the related Linux drivers. Of course, this > doesn't fly if it is your main IDE/SATA device... > > Note that this IRQ stuff is most likely not RTnet business, so it would > be good to move the thread over to Xenomai. > > Jan ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Xenomai-help] IRQ issues in xenomai and rtnet (update) 2007-11-07 17:59 ` [Xenomai-help] IRQ issues in xenomai and rtnet Leopold Palomo-Avellaneda @ 2007-11-07 18:12 ` Leopold Palomo-Avellaneda 2007-11-08 5:05 ` [Xenomai-help] IRQ issues in xenomai and rtnet Roland Tollenaar 2007-11-08 11:59 ` [Xenomai-help] IRQ issues in xenomai and rtnet .... and others Leopold Palomo-Avellaneda 2 siblings, 0 replies; 9+ messages in thread From: Leopold Palomo-Avellaneda @ 2007-11-07 18:12 UTC (permalink / raw) To: xenomai; +Cc: mathias_koehrer A Dimecres 07 Novembre 2007, Leopold Palomo-Avellaneda va escriure: [....] > I must put a irq specific for each card if not the kernel doesn't boot or I > put irq auto and irqpoll in the kenel options. With this configuration I > can configure the cards: > > > palomo@domain.hid$ sudo ./sbin/rtroute > Host Routing Table > Hash Destination HW Address Device > 3F 10.0.1.255 FF:FF:FF:FF:FF:FF rteth1 > 3F 10.0.0.255 FF:FF:FF:FF:FF:FF rteth0 > > and the system doesn't hang ... > the system hanged 5 minutes after send the mail ... :-( Regards, Leo ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Xenomai-help] IRQ issues in xenomai and rtnet 2007-11-07 17:59 ` [Xenomai-help] IRQ issues in xenomai and rtnet Leopold Palomo-Avellaneda 2007-11-07 18:12 ` [Xenomai-help] IRQ issues in xenomai and rtnet (update) Leopold Palomo-Avellaneda @ 2007-11-08 5:05 ` Roland Tollenaar 2007-11-08 9:41 ` Leopold Palomo-Avellaneda 2007-11-08 11:59 ` [Xenomai-help] IRQ issues in xenomai and rtnet .... and others Leopold Palomo-Avellaneda 2 siblings, 1 reply; 9+ messages in thread From: Roland Tollenaar @ 2007-11-08 5:05 UTC (permalink / raw) To: Leopold Palomo-Avellaneda; +Cc: mathias_koehrer, xenomai Hi > I have selected in the bios that each pci slot htat has a ethernet has a > specific irq, but when I load a rtnet driver, it assigns another irq. Making > more test, now with 2.6.23 the irq assigned in bios more or less i maintained > but still _again_ when load the rtnet driver, the box hangs ... Is there any possibility of posting the irq assignemts as you set them in the BIOS when it hangs and..... > I must put a irq specific for each card if not the kernel doesn't boot or I > put irq auto and irqpoll in the kenel options. With this configuration I can > configure the cards: > > and the system doesn't hang ... the irq output of lspci -v when the system does not hang? Also the output of /proc/xenomai/irq IIRC. For what its worth, I understand that there may be no sharing of the IRQ of a real-time device with a non-rt device. In particular not a non-rt device that is being used. Although my experience was then always that the freezing just occurs when rtnet is started so your system hanging on boot strikes me as a bit odd. Unless of course you start rtnet in one of the rc bootscrips of course? Roland. > > > So, any ideas about it? > > Best regards, > > and very thanks for all your effort, > > Leo > > A Dimecres 07 Novembre 2007, Jan Kiszka va escriure: > >> Leopold Palomo-Avellaneda wrote: >>> A Dimecres 07 Novembre 2007, Karl Reichert va escriure: >>> [...] >>> >>>>> the _same_ card was working with rtnet (not xenomai but rtai) in a >>>>> configuration that I had in another box. >>>> That's what I mean, the card is not the problem. The problem is the >>>> current setup, so as a result it is not working. But of course not the >>>> card is the one to blame. ... >>> are you working for intel? ;-) >>> >>> no, I'm joking. >>> >>> Sadly, I have tested the same configuration with a rtai kernel and I got >>> the same hang :-( Also, the network card got the same irq in rtai ... >> IRQ issues are generally I-pipe issues. And RTAI uses (almost) the same >> I-pipe patch as Xenomai, thus shares the same bugs until they are fixed >> upstream. Generally. >> >> There are currently a few fixes floating around on Adeos-main, and we >> (Xenomai) have some new report probably regarding MSI. As I think I have >> seen something about MSI in your config as well, could you try to >> disable CONFIG_PCI_MSI to check if at least the hangs disappears (given, >> of course, IRQs line will then not be in conflict again)? Also can you >> try (unless you already do so) with the latest I-pipe patch for, say, >> 2.6.23.x? >> >> Another hint regard IRQ conflict avoidance: If RTnet (or RT hardware in >> general) shares some line with a Linux device you may not depend upon >> (Firewire? USB?), just unload the related Linux drivers. Of course, this >> doesn't fly if it is your main IDE/SATA device... >> >> Note that this IRQ stuff is most likely not RTnet business, so it would >> be good to move the thread over to Xenomai. >> >> Jan > > > > _______________________________________________ > Xenomai-help mailing list > Xenomai-help@domain.hid > https://mail.gna.org/listinfo/xenomai-help > ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Xenomai-help] IRQ issues in xenomai and rtnet 2007-11-08 5:05 ` [Xenomai-help] IRQ issues in xenomai and rtnet Roland Tollenaar @ 2007-11-08 9:41 ` Leopold Palomo-Avellaneda 2007-11-08 12:08 ` Jan Kiszka 2007-11-08 15:32 ` Roland Tollenaar 0 siblings, 2 replies; 9+ messages in thread From: Leopold Palomo-Avellaneda @ 2007-11-08 9:41 UTC (permalink / raw) To: rolandtollenaar; +Cc: mathias_koehrer, xenomai A Dijous 08 Novembre 2007, Roland Tollenaar va escriure: > Hi > > > I have selected in the bios that each pci slot htat has a ethernet has a > > specific irq, but when I load a rtnet driver, it assigns another irq. > > Making more test, now with 2.6.23 the irq assigned in bios more or less i > > maintained but still _again_ when load the rtnet driver, the box hangs > > ... > > Is there any possibility of posting the irq assignemts as you set them > in the BIOS when it hangs and..... yes, in the bios I can chose an assignment to each pci. So, looking the free irqs showed by /proc/interrups I put one network card to 11 an another to 7, that was the free. I have test several combinations. > > I must put a irq specific for each card if not the kernel doesn't boot or > > I put irq auto and irqpoll in the kenel options. With this configuration > > I can configure the cards: > > > > and the system doesn't hang ... well, as I said in a mail 5 minutes after the system hangs .... > the irq output of lspci -v when the system does not hang? palomo@domain.hid:~$ lspci -v 00:00.0 RAM memory: nVidia Corporation MCP61 Memory Controller (rev a1) Subsystem: Giga-byte Technology Unknown device 5001 Flags: bus master, 66MHz, fast devsel, latency 0 Capabilities: <access denied> 00:01.0 ISA bridge: nVidia Corporation MCP61 LPC Bridge (rev a2) Subsystem: Giga-byte Technology Unknown device 0c11 Flags: bus master, 66MHz, fast devsel, latency 0 00:01.1 SMBus: nVidia Corporation MCP61 SMBus (rev a2) Subsystem: Giga-byte Technology Unknown device 0c11 Flags: 66MHz, fast devsel, IRQ 10 I/O ports at b800 [size=64] I/O ports at 1c00 [size=64] I/O ports at 1c40 [size=64] Capabilities: <access denied> 00:01.2 RAM memory: nVidia Corporation MCP61 Memory Controller (rev a2) Subsystem: Giga-byte Technology Unknown device 0c11 Flags: 66MHz, fast devsel 00:02.0 USB Controller: nVidia Corporation MCP61 USB Controller (rev a2) (prog-if 10 [OHCI]) Subsystem: Giga-byte Technology Unknown device 5004 Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 11 Memory at ed106000 (32-bit, non-prefetchable) [size=4K] Capabilities: <access denied> 00:02.1 USB Controller: nVidia Corporation MCP61 USB Controller (rev a2) (prog-if 20 [EHCI]) Subsystem: Giga-byte Technology Unknown device 5004 Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 5 Memory at ed105000 (32-bit, non-prefetchable) [size=256] Capabilities: <access denied> 00:04.0 PCI bridge: nVidia Corporation MCP61 PCI bridge (rev a1) (prog-if 01 [Subtractive decode]) Flags: bus master, 66MHz, fast devsel, latency 0 Bus: primary=00, secondary=01, subordinate=01, sec-latency=32 I/O behind bridge: 0000a000-0000afff Memory behind bridge: e9000000-eaffffff Prefetchable memory behind bridge: ed000000-ed0fffff Capabilities: <access denied> 00:05.0 Audio device: nVidia Corporation MCP61 High Definition Audio (rev a2) Subsystem: Giga-byte Technology Unknown device a002 Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 11 Memory at ed100000 (32-bit, non-prefetchable) [size=16K] Capabilities: <access denied> 00:06.0 IDE interface: nVidia Corporation MCP61 IDE (rev a2) (prog-if 8a [Master SecP PriP]) Subsystem: Giga-byte Technology Unknown device 5002 Flags: bus master, 66MHz, fast devsel, latency 0 [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [disabled] [size=8] [virtual] Memory at 000003f0 (type 3, non-prefetchable) [disabled] [size=1] [virtual] Memory at 00000170 (32-bit, non-prefetchable) [disabled] [size=8] [virtual] Memory at 00000370 (type 3, non-prefetchable) [disabled] [size=1] I/O ports at f000 [size=16] Capabilities: <access denied> 00:07.0 Bridge: nVidia Corporation MCP61 Ethernet (rev a2) Subsystem: Giga-byte Technology Unknown device e000 Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 1279 Memory at ed107000 (32-bit, non-prefetchable) [size=4K] I/O ports at bc00 [size=8] Capabilities: <access denied> 00:08.0 IDE interface: nVidia Corporation MCP61 SATA Controller (rev a2) (prog-if 85 [Master SecO PriO]) Subsystem: Giga-byte Technology Unknown device b002 Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 11 I/O ports at 09f0 [size=8] I/O ports at 0bf0 [size=4] I/O ports at 0970 [size=8] I/O ports at 0b70 [size=4] I/O ports at d000 [size=16] Memory at ed108000 (32-bit, non-prefetchable) [size=4K] Capabilities: <access denied> 00:08.1 IDE interface: nVidia Corporation MCP61 SATA Controller (rev a2) (prog-if 85 [Master SecO PriO]) Subsystem: Giga-byte Technology Unknown device b002 Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 10 I/O ports at 09e0 [size=8] I/O ports at 0be0 [size=4] I/O ports at 0960 [size=8] I/O ports at 0b60 [size=4] I/O ports at e400 [size=16] Memory at ed104000 (32-bit, non-prefetchable) [size=4K] Capabilities: <access denied> 00:0d.0 VGA compatible controller: nVidia Corporation Unknown device 03d0 (rev a2) (prog-if 00 [VGA]) Subsystem: Giga-byte Technology Unknown device d000 Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 5 Memory at e8000000 (32-bit, non-prefetchable) [size=16M] Memory at d0000000 (64-bit, prefetchable) [size=256M] Memory at eb000000 (64-bit, non-prefetchable) [size=16M] [virtual] Expansion ROM at 88000000 [disabled] [size=128K] Capabilities: <access denied> 00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration Flags: fast devsel Capabilities: <access denied> 00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map Flags: fast devsel 00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller Flags: fast devsel 00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control Flags: fast devsel Capabilities: <access denied> 01:06.0 Ethernet controller: Intel Corporation 82557/8/9 [Ethernet Pro 100] (rev 01) Flags: bus master, medium devsel, latency 64, IRQ 5 Memory at ed000000 (32-bit, prefetchable) [size=4K] I/O ports at a000 [size=32] Memory at ea000000 (32-bit, non-prefetchable) [size=1M] [virtual] Expansion ROM at e9000000 [disabled] [size=1M] 01:07.0 Ethernet controller: Intel Corporation 82557/8/9 [Ethernet Pro 100] (rev 05) Subsystem: Intel Corporation Unknown device 0009 Flags: bus master, medium devsel, latency 64, IRQ 10 Memory at ed001000 (32-bit, prefetchable) [size=4K] I/O ports at a400 [size=32] Memory at ea100000 (32-bit, non-prefetchable) [size=1M] [virtual] Expansion ROM at e9100000 [disabled] [size=1M] Capabilities: <access denied> 01:09.0 Signal processing controller: Unknown device 1762:3112 (rev 05) Subsystem: Unknown device 1762:3112 Flags: medium devsel Memory at ea200000 (32-bit, non-prefetchable) [size=1M] 01:0e.0 FireWire (IEEE 1394): Texas Instruments TSB43AB23 IEEE-1394a-2000 Controller (PHY/Link) (prog-if 10 [OHCI]) Subsystem: Giga-byte Technology Unknown device 1000 Flags: bus master, medium devsel, latency 32, IRQ 10 Memory at ea304000 (32-bit, non-prefetchable) [size=2K] Memory at ea300000 (32-bit, non-prefetchable) [size=16K] Capabilities: <access denied> > Also the output of /proc/xenomai/irq IIRC. palomo@domain.hid:~$ cat /proc/xenomai/irq IRQ CPU0 CPU1 1285: 0 0 [IPI] 1288: 2 2 [timer] 1289: 0 0 [critical sync] 1346: 0 0 [virtual] > For what its worth, I understand that there may be no sharing of the IRQ > of a real-time device with a non-rt device. In particular not a non-rt > device that is being used. no, I can test it again but I think that I have been not able to have a combination without share at least irq of one of the network cards. > Although my experience was then always that > the freezing just occurs when rtnet is started me too. > so your system hanging on > boot strikes me as a bit odd. Unless of course you start rtnet in one of > the rc bootscrips of course? no, the hanging at boot time is when I don't put the noapic option in the 2.6.22 kernels (it's known bug) with 2.6.23 depends of irqpoll, or the manual assignment in the bios. Thanks. Leo > > A Dimecres 07 Novembre 2007, Jan Kiszka va escriure: > >> Leopold Palomo-Avellaneda wrote: > >>> A Dimecres 07 Novembre 2007, Karl Reichert va escriure: > >>> [...] > >>> > >>>>> the _same_ card was working with rtnet (not xenomai but rtai) in a > >>>>> configuration that I had in another box. > >>>> > >>>> That's what I mean, the card is not the problem. The problem is the > >>>> current setup, so as a result it is not working. But of course not the > >>>> card is the one to blame. ... > >>> > >>> are you working for intel? ;-) > >>> > >>> no, I'm joking. > >>> > >>> Sadly, I have tested the same configuration with a rtai kernel and I > >>> got the same hang :-( Also, the network card got the same irq in rtai > >>> ... > >> > >> IRQ issues are generally I-pipe issues. And RTAI uses (almost) the same > >> I-pipe patch as Xenomai, thus shares the same bugs until they are fixed > >> upstream. Generally. > >> > >> There are currently a few fixes floating around on Adeos-main, and we > >> (Xenomai) have some new report probably regarding MSI. As I think I have > >> seen something about MSI in your config as well, could you try to > >> disable CONFIG_PCI_MSI to check if at least the hangs disappears (given, > >> of course, IRQs line will then not be in conflict again)? Also can you > >> try (unless you already do so) with the latest I-pipe patch for, say, > >> 2.6.23.x? > >> > >> Another hint regard IRQ conflict avoidance: If RTnet (or RT hardware in > >> general) shares some line with a Linux device you may not depend upon > >> (Firewire? USB?), just unload the related Linux drivers. Of course, this > >> doesn't fly if it is your main IDE/SATA device... > >> > >> Note that this IRQ stuff is most likely not RTnet business, so it would > >> be good to move the thread over to Xenomai. > >> > >> Jan > > > > _______________________________________________ > > Xenomai-help mailing list > > Xenomai-help@domain.hid > > https://mail.gna.org/listinfo/xenomai-help ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Xenomai-help] IRQ issues in xenomai and rtnet 2007-11-08 9:41 ` Leopold Palomo-Avellaneda @ 2007-11-08 12:08 ` Jan Kiszka 2007-11-08 12:35 ` Leopold Palomo-Avellaneda 2007-11-08 15:32 ` Roland Tollenaar 1 sibling, 1 reply; 9+ messages in thread From: Jan Kiszka @ 2007-11-08 12:08 UTC (permalink / raw) To: Leopold Palomo-Avellaneda; +Cc: xenomai, mathias_koehrer Leopold Palomo-Avellaneda wrote: > A Dijous 08 Novembre 2007, Roland Tollenaar va escriure: >> so your system hanging on >> boot strikes me as a bit odd. Unless of course you start rtnet in one of >> the rc bootscrips of course? > > no, the hanging at boot time is when I don't put the noapic option in the > 2.6.22 kernels (it's known bug) with 2.6.23 depends of irqpoll, or the manual > assignment in the bios. You mean this is a known mainline issue, or does it only happen with I-pipe applied or additionally Xenomai loaded? In the former case, I would suggest trying your scenario on a different box, as you may suffer from at least tricky if not unfixable hardware/BIOS problems. Jan -- Siemens AG, Corporate Technology, CT SE 2 Corporate Competence Center Embedded Linux ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Xenomai-help] IRQ issues in xenomai and rtnet 2007-11-08 12:08 ` Jan Kiszka @ 2007-11-08 12:35 ` Leopold Palomo-Avellaneda 0 siblings, 0 replies; 9+ messages in thread From: Leopold Palomo-Avellaneda @ 2007-11-08 12:35 UTC (permalink / raw) To: Jan Kiszka; +Cc: xenomai, mathias_koehrer A Dijous 08 Novembre 2007, Jan Kiszka va escriure: > Leopold Palomo-Avellaneda wrote: > > A Dijous 08 Novembre 2007, Roland Tollenaar va escriure: > >> so your system hanging on > >> boot strikes me as a bit odd. Unless of course you start rtnet in one of > >> the rc bootscrips of course? > > > > no, the hanging at boot time is when I don't put the noapic option in the > > 2.6.22 kernels (it's known bug) with 2.6.23 depends of irqpoll, or the > > manual assignment in the bios. > > You mean this is a known mainline issue, or does it only happen with > I-pipe applied or additionally Xenomai loaded? No exactly, I unplug the pci network cards and the box boots ok, without irqpoll. Maybe it's a problem of compatibility of this old pci network cards. > In the former case, I > would suggest trying your scenario on a different box, as you may suffer > from at least tricky if not unfixable hardware/BIOS problems. well it's the problem of the latest mobos. You have to deal with unknowns issues. I can try, but I would like to have my new amd64 hardware running xenomai and rtnet ... I'm optimist in this :-) Leo ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Xenomai-help] IRQ issues in xenomai and rtnet 2007-11-08 9:41 ` Leopold Palomo-Avellaneda 2007-11-08 12:08 ` Jan Kiszka @ 2007-11-08 15:32 ` Roland Tollenaar 2007-11-12 10:30 ` Leopold Palomo-Avellaneda 1 sibling, 1 reply; 9+ messages in thread From: Roland Tollenaar @ 2007-11-08 15:32 UTC (permalink / raw) To: Leopold Palomo-Avellaneda; +Cc: mathias_koehrer, xenomai > no, I can test it again but I think that I have been not able to have a > combination without share at least irq of one of the network cards. > >> Although my experience was then always that >> the freezing just occurs when rtnet is started > > me too. In this case what you should do is look for non-rt devices that are not used. Preferably disable them in the BIOS and ensure that the irq's that are share with non-rt devices are shared only with devices that are not used. I.g. with the SATA controller if you don't have a SATA Hd connected, or with a USB controller that you will not be using. Roland > >> so your system hanging on >> boot strikes me as a bit odd. Unless of course you start rtnet in one of >> the rc bootscrips of course? > > no, the hanging at boot time is when I don't put the noapic option in the > 2.6.22 kernels (it's known bug) with 2.6.23 depends of irqpoll, or the manual > assignment in the bios. > > Thanks. > > Leo > >>> A Dimecres 07 Novembre 2007, Jan Kiszka va escriure: >>>> Leopold Palomo-Avellaneda wrote: >>>>> A Dimecres 07 Novembre 2007, Karl Reichert va escriure: >>>>> [...] >>>>> >>>>>>> the _same_ card was working with rtnet (not xenomai but rtai) in a >>>>>>> configuration that I had in another box. >>>>>> That's what I mean, the card is not the problem. The problem is the >>>>>> current setup, so as a result it is not working. But of course not the >>>>>> card is the one to blame. ... >>>>> are you working for intel? ;-) >>>>> >>>>> no, I'm joking. >>>>> >>>>> Sadly, I have tested the same configuration with a rtai kernel and I >>>>> got the same hang :-( Also, the network card got the same irq in rtai >>>>> ... >>>> IRQ issues are generally I-pipe issues. And RTAI uses (almost) the same >>>> I-pipe patch as Xenomai, thus shares the same bugs until they are fixed >>>> upstream. Generally. >>>> >>>> There are currently a few fixes floating around on Adeos-main, and we >>>> (Xenomai) have some new report probably regarding MSI. As I think I have >>>> seen something about MSI in your config as well, could you try to >>>> disable CONFIG_PCI_MSI to check if at least the hangs disappears (given, >>>> of course, IRQs line will then not be in conflict again)? Also can you >>>> try (unless you already do so) with the latest I-pipe patch for, say, >>>> 2.6.23.x? >>>> >>>> Another hint regard IRQ conflict avoidance: If RTnet (or RT hardware in >>>> general) shares some line with a Linux device you may not depend upon >>>> (Firewire? USB?), just unload the related Linux drivers. Of course, this >>>> doesn't fly if it is your main IDE/SATA device... >>>> >>>> Note that this IRQ stuff is most likely not RTnet business, so it would >>>> be good to move the thread over to Xenomai. >>>> >>>> Jan >>> _______________________________________________ >>> Xenomai-help mailing list >>> Xenomai-help@domain.hid >>> https://mail.gna.org/listinfo/xenomai-help > > > ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Xenomai-help] IRQ issues in xenomai and rtnet 2007-11-08 15:32 ` Roland Tollenaar @ 2007-11-12 10:30 ` Leopold Palomo-Avellaneda 0 siblings, 0 replies; 9+ messages in thread From: Leopold Palomo-Avellaneda @ 2007-11-12 10:30 UTC (permalink / raw) To: rolandtollenaar; +Cc: mathias_koehrer, xenomai Well, today it has been arrived a pci-e card. At least with two cards, rtnet can load the driver and configure the target without any problems, as I can see. *** RTnet 0.9.10 - built on Nov 7 2007 18:28:33 *** RTnet: initialising real-time networking initializing loopback... RTnet: registered rtlo Intel(R) PRO/1000 Network Driver - version 7.1.9 Copyright (c) 1999-2006 Intel Corporation. PCI: Setting latency timer of device 0000:02:00.0 to 64 e1000: 0000:02:00.0: e1000_probe: (PCI Express:2.5Gb/s:Width x1) 00:1b:21:05:0c:b6 RTnet: registered rteth0 e1000: rteth0: e1000_probe: Intel(R) PRO/1000 Network Connection e1000: rteth0: e1000_clean_tx_irq: Detected Tx Unit Hang Tx Queue <0> TDH <0> TDT <1> next_to_use <1> next_to_clean <0> buffer_info[next_to_clean] time_stamp <ffffdd90> next_to_watch <0> jiffies <ffffdef1> next_to_watch.status <0> in a few days I will try with another. Someone has tested with dual pci network card? seems that all begin to be more clear .... Regards, Leo A Dijous 08 Novembre 2007, Roland Tollenaar va escriure: > > no, I can test it again but I think that I have been not able to have a > > combination without share at least irq of one of the network cards. > > > >> Although my experience was then always that > >> the freezing just occurs when rtnet is started > > > > me too. > > In this case what you should do is look for non-rt devices that are not > used. Preferably disable them in the BIOS and ensure that the irq's that > are share with non-rt devices are shared only with devices that are not > used. > > I.g. with the SATA controller if you don't have a SATA Hd connected, or > with a USB controller that you will not be using. > > > Roland > > >> so your system hanging on > >> boot strikes me as a bit odd. Unless of course you start rtnet in one of > >> the rc bootscrips of course? > > > > no, the hanging at boot time is when I don't put the noapic option in the > > 2.6.22 kernels (it's known bug) with 2.6.23 depends of irqpoll, or the > > manual assignment in the bios. > > > > Thanks. > > > > Leo > > > >>> A Dimecres 07 Novembre 2007, Jan Kiszka va escriure: > >>>> Leopold Palomo-Avellaneda wrote: > >>>>> A Dimecres 07 Novembre 2007, Karl Reichert va escriure: > >>>>> [...] > >>>>> > >>>>>>> the _same_ card was working with rtnet (not xenomai but rtai) in a > >>>>>>> configuration that I had in another box. > >>>>>> > >>>>>> That's what I mean, the card is not the problem. The problem is the > >>>>>> current setup, so as a result it is not working. But of course not > >>>>>> the card is the one to blame. ... > >>>>> > >>>>> are you working for intel? ;-) > >>>>> > >>>>> no, I'm joking. > >>>>> > >>>>> Sadly, I have tested the same configuration with a rtai kernel and I > >>>>> got the same hang :-( Also, the network card got the same irq in rtai > >>>>> ... > >>>> > >>>> IRQ issues are generally I-pipe issues. And RTAI uses (almost) the > >>>> same I-pipe patch as Xenomai, thus shares the same bugs until they are > >>>> fixed upstream. Generally. > >>>> > >>>> There are currently a few fixes floating around on Adeos-main, and we > >>>> (Xenomai) have some new report probably regarding MSI. As I think I > >>>> have seen something about MSI in your config as well, could you try to > >>>> disable CONFIG_PCI_MSI to check if at least the hangs disappears > >>>> (given, of course, IRQs line will then not be in conflict again)? Also > >>>> can you try (unless you already do so) with the latest I-pipe patch > >>>> for, say, 2.6.23.x? > >>>> > >>>> Another hint regard IRQ conflict avoidance: If RTnet (or RT hardware > >>>> in general) shares some line with a Linux device you may not depend > >>>> upon (Firewire? USB?), just unload the related Linux drivers. Of > >>>> course, this doesn't fly if it is your main IDE/SATA device... > >>>> > >>>> Note that this IRQ stuff is most likely not RTnet business, so it > >>>> would be good to move the thread over to Xenomai. > >>>> > >>>> Jan > >>> > >>> _______________________________________________ > >>> Xenomai-help mailing list > >>> Xenomai-help@domain.hid > >>> https://mail.gna.org/listinfo/xenomai-help ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Xenomai-help] IRQ issues in xenomai and rtnet .... and others 2007-11-07 17:59 ` [Xenomai-help] IRQ issues in xenomai and rtnet Leopold Palomo-Avellaneda 2007-11-07 18:12 ` [Xenomai-help] IRQ issues in xenomai and rtnet (update) Leopold Palomo-Avellaneda 2007-11-08 5:05 ` [Xenomai-help] IRQ issues in xenomai and rtnet Roland Tollenaar @ 2007-11-08 11:59 ` Leopold Palomo-Avellaneda 2 siblings, 0 replies; 9+ messages in thread From: Leopold Palomo-Avellaneda @ 2007-11-08 11:59 UTC (permalink / raw) To: xenomai, Alexis Berlemont; +Cc: mathias_koehrer Hi, I have done more test, now using only the pci card (jr3) that Alexis are developing the comedi driver and I have found that: - if I put irq assignment in the bios auto, the box hangs when I try to load any xenomai device (driver, rtnet/comedi) - if I select an irq 7 (with 9 not boots) assignment to the jr3 driver, the box doesn't hang, but the insmod never return. The rtnet could run if I chose some irq in the bios (doesn't matters, the bios assign another :-( ) and then I unload the driver that share the same irq. Then the rtnet works :-) Questions? - the pcie could work better with xenomai? I will buy one pcie network card to test it. - when I boot the box, in the bios boot message the irq assignment to the data adquisicion card is NA (non available?) what does it means? thanks in advance and I'm sorry if I begin to be bored you :-( Best regards, Leo A Dimecres 07 Novembre 2007, Leopold Palomo-Avellaneda va escriure: > Hi, > > following the Jan Kiszka propose I move this thread to the xenomai list. > Making some kind of resume I have this situation: > > - Mobo Gigabyte M61P-S3 with bios updated (nVidia nForce 430 chipset, > amd64) - two old network intel e100 cards PCI > - one jr3 sensor capture PCI > - running a debian etch amd64 port with several kernels 2.6.22, rtai, > xenomai, debian. The box _must_ boot with noapic in the grub because not > hangs trying with the hd controller :-( > > - running a debian etch amd64 port with several kernels 2.6.23, xenomai, > debian. The box boot with apic :-) > > > the kernel config is based on a standard debian config and the xenomai part > is based on the faq. The only issue that I have realised some minutes ago > have been that Shared interrupts is disable (but Jan Kiszka have pointed > that it does not produce hangs. > > I have selected in the bios that each pci slot htat has a ethernet has a > specific irq, but when I load a rtnet driver, it assigns another irq. > Making more test, now with 2.6.23 the irq assigned in bios more or less i > maintained but still _again_ when load the rtnet driver, the box hangs ... > > I must put a irq specific for each card if not the kernel doesn't boot or I > put irq auto and irqpoll in the kenel options. With this configuration I > can configure the cards: > > > palomo@domain.hid$ sudo ./sbin/rtroute > Host Routing Table > Hash Destination HW Address Device > 3F 10.0.1.255 FF:FF:FF:FF:FF:FF rteth1 > 3F 10.0.0.255 FF:FF:FF:FF:FF:FF rteth0 > > and the system doesn't hang ... > > > So, any ideas about it? > > Best regards, > > and very thanks for all your effort, > > Leo > > A Dimecres 07 Novembre 2007, Jan Kiszka va escriure: > > Leopold Palomo-Avellaneda wrote: > > > A Dimecres 07 Novembre 2007, Karl Reichert va escriure: > > > [...] > > > > > >>> the _same_ card was working with rtnet (not xenomai but rtai) in a > > >>> configuration that I had in another box. > > >> > > >> That's what I mean, the card is not the problem. The problem is the > > >> current setup, so as a result it is not working. But of course not the > > >> card is the one to blame. ... > > > > > > are you working for intel? ;-) > > > > > > no, I'm joking. > > > > > > Sadly, I have tested the same configuration with a rtai kernel and I > > > got the same hang :-( Also, the network card got the same irq in rtai > > > ... > > > > IRQ issues are generally I-pipe issues. And RTAI uses (almost) the same > > I-pipe patch as Xenomai, thus shares the same bugs until they are fixed > > upstream. Generally. > > > > There are currently a few fixes floating around on Adeos-main, and we > > (Xenomai) have some new report probably regarding MSI. As I think I have > > seen something about MSI in your config as well, could you try to > > disable CONFIG_PCI_MSI to check if at least the hangs disappears (given, > > of course, IRQs line will then not be in conflict again)? Also can you > > try (unless you already do so) with the latest I-pipe patch for, say, > > 2.6.23.x? > > > > Another hint regard IRQ conflict avoidance: If RTnet (or RT hardware in > > general) shares some line with a Linux device you may not depend upon > > (Firewire? USB?), just unload the related Linux drivers. Of course, this > > doesn't fly if it is your main IDE/SATA device... > > > > Note that this IRQ stuff is most likely not RTnet business, so it would > > be good to move the thread over to Xenomai. > > > > Jan > > _______________________________________________ > Xenomai-help mailing list > Xenomai-help@domain.hid > https://mail.gna.org/listinfo/xenomai-help ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2007-11-12 10:30 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <200711061807.26236.lepalom@domain.hid>
[not found] ` <200711071500.23914.lepalom@domain.hid>
[not found] ` <4731CAE5.5080401@domain.hid>
2007-11-07 17:59 ` [Xenomai-help] IRQ issues in xenomai and rtnet Leopold Palomo-Avellaneda
2007-11-07 18:12 ` [Xenomai-help] IRQ issues in xenomai and rtnet (update) Leopold Palomo-Avellaneda
2007-11-08 5:05 ` [Xenomai-help] IRQ issues in xenomai and rtnet Roland Tollenaar
2007-11-08 9:41 ` Leopold Palomo-Avellaneda
2007-11-08 12:08 ` Jan Kiszka
2007-11-08 12:35 ` Leopold Palomo-Avellaneda
2007-11-08 15:32 ` Roland Tollenaar
2007-11-12 10:30 ` Leopold Palomo-Avellaneda
2007-11-08 11:59 ` [Xenomai-help] IRQ issues in xenomai and rtnet .... and others Leopold Palomo-Avellaneda
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.