Skip to contentSkip to conversation

IRQ issues in xenomai and rtnet

Xenomai-help Leopold Palomo-Avellaneda 3 participants 9 messages Nov 7, 2007 – Nov 12, 2007 3 messages not in the archive

lore
Share & tools
lore
#3 lore raw
In reply to a message not in the archive

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:

[email protected]$ 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:

Quoted 39 lines
Quoted 10 lines · Leopold Palomo-Avellaneda

A Dimecres 07 Novembre 2007, Karl Reichert va escriure:
[...]

Quoted 6 lines
Quoted 2 lines

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

Quoted 6 lines

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

#4 lore raw

Re: [Xenomai-help] IRQ issues in xenomai and rtnet (update)

A Dimecres 07 Novembre 2007, Leopold Palomo-Avellaneda va escriure:
[....]

Quoted 5 lines

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:

Quoted 8 lines
[email protected]$ 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

#5 lore raw
In reply to Leopold Palomo-Avellaneda

Hi

Quoted 1 line

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

Quoted 3 lines

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.

Quoted 56 lines

So, any ideas about it?

Best regards,

and very thanks for all your effort,

Leo

A Dimecres 07 Novembre 2007, Jan Kiszka va escriure:

Quoted 32 lines
Quoted 8 lines · Leopold Palomo-Avellaneda

A Dimecres 07 Novembre 2007, Karl Reichert va escriure:
[...]

Quoted 5 lines
Quoted 2 lines

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

Quoted 6 lines

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

Quoted 4 lines

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
[email protected]
https://mail.gna.org/listinfo/xenomai-help

#6 lore raw

A Dijous 08 Novembre 2007, Roland Tollenaar va escriure:

Quoted 10 lines

Hi

Quoted 5 lines

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.

Quoted 5 lines
Quoted 5 lines

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

Quoted 1 line

the irq output of lspci -v when the system does not hang?

[email protected]:~$  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>

Quoted 1 line

Also the output of /proc/xenomai/irq IIRC.

[email protected]:~$ cat /proc/xenomai/irq
IRQ         CPU0        CPU1
1285:           0           0         [IPI]
1288:           2           2         [timer]
1289:           0           0         [critical sync]
1346:           0           0         [virtual]
Quoted 3 lines

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.

Quoted 2 lines

Although my experience was then always that
the freezing just occurs when rtnet is started

me too.

Quoted 3 lines

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

Quoted 46 lines
Quoted 46 lines

A Dimecres 07 Novembre 2007, Jan Kiszka va escriure:

Quoted 36 lines
Quoted 10 lines · Leopold Palomo-Avellaneda

A Dimecres 07 Novembre 2007, Karl Reichert va escriure:
[...]

Quoted 6 lines
Quoted 2 lines

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

Quoted 7 lines

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

Quoted 4 lines

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
[email protected]
https://mail.gna.org/listinfo/xenomai-help

#11 lore raw

Re: [Xenomai-help] IRQ issues in xenomai and rtnet .... and others

In reply to Leopold Palomo-Avellaneda

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:

Quoted 94 lines

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:

[email protected]$ 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:

Quoted 36 lines
Quoted 10 lines · Leopold Palomo-Avellaneda

A Dimecres 07 Novembre 2007, Karl Reichert va escriure:
[...]

Quoted 6 lines
Quoted 2 lines

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

Quoted 7 lines

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

Quoted 4 lines

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
[email protected]
https://mail.gna.org/listinfo/xenomai-help

#7 lore raw
In reply to Leopold Palomo-Avellaneda
Quoted 8 lines · Leopold Palomo-Avellaneda

A Dijous 08 Novembre 2007, Roland Tollenaar va escriure:

Quoted 3 lines

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

Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux
#8 lore raw

A Dijous 08 Novembre 2007, Jan Kiszka va escriure:

Quoted 6 lines
Quoted 5 lines · Leopold Palomo-Avellaneda

A Dijous 08 Novembre 2007, Roland Tollenaar va escriure:

Quoted 3 lines

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?

Quoted 6 lines
Quoted 3 lines

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.

Quoted 3 lines

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

#9 lore raw
In reply to Leopold Palomo-Avellaneda
Quoted 5 lines

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.

Quoted 1 line

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

Quoted 55 lines
Quoted 3 lines

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

Quoted 42 lines
Quoted 42 lines

A Dimecres 07 Novembre 2007, Jan Kiszka va escriure:

Quoted 33 lines
Quoted 8 lines · Leopold Palomo-Avellaneda

A Dimecres 07 Novembre 2007, Karl Reichert va escriure:
[...]

Quoted 5 lines
Quoted 2 lines

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

Quoted 7 lines

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

Quoted 4 lines

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
[email protected]
https://mail.gna.org/listinfo/xenomai-help

#10 lore raw

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:

Quoted 77 lines
Quoted 7 lines

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.

Quoted 2 lines

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

Quoted 58 lines
Quoted 3 lines

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

Quoted 46 lines
Quoted 46 lines

A Dimecres 07 Novembre 2007, Jan Kiszka va escriure:

Quoted 36 lines
Quoted 10 lines · Leopold Palomo-Avellaneda

A Dimecres 07 Novembre 2007, Karl Reichert va escriure:
[...]

Quoted 6 lines
Quoted 2 lines

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

Quoted 7 lines

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

Quoted 4 lines

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
[email protected]
https://mail.gna.org/listinfo/xenomai-help