Skip to contentSkip to conversation

rtnet issue with xenomai-3.git next branch

Xenomai Jeff Webb 2 participants 7 messages Dec 16, 2014 – Sep 29, 2015

lore
Share & tools
lore

Jeff Webb

author
#0 lore raw

I am testing the rtnet functionality in the 'next' branch of xenomai-3.git. (I now also have Xenomai-2.6.4/rtnet.git running on the same machine for comparison.) I am able to bring up the real-time interface (rt_e1000e) and use rtping as expected. As mentioned before, I have a primary non-rt ethernet interface running simultaneously (using the e1000e driver). When I try to remove all the rtnet modules, I am unable to remove rtnet and rtipv4:

$ rmmod rtipv4 rtnet
rmmod: ERROR: Module rtipv4 is in use
rmmod: ERROR: Module rtnet is in use by: rtipv4

The messages are the same if I try to remove them individually. This behavior does not occur with Xenomai-2.6.4/rtnet.git.

I also have issues when I try to load the rtudp and/or rtpacket modules:

$ sudo modprobe rtnet
$  sudo modprobe rtipv4
$ sudo modprobe rtpacket
modprobe: ERROR: could not insert 'rtpacket': Invalid argument
$ sudo modprobe rtudp
modprobe: ERROR: could not insert 'rtudp': Invalid argument

I thought that this triggered an I-pipe trace in the past, but I can't reproduce that at the moment. The 'Invalid argument' error code is coming from rtdm_dev_register, right?

A superficial test of the "latency" program seems to run fine on this hardware/software configuration.

Here are some more details:

Hardware: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
Linux: release 3.14.17

  $ cat /proc/cmdline
  BOOT_IMAGE=/boot/vmlinuz-3.14.17-xenomai-3.git.2014.11.27 root=UUID=3ec85b09-cb5d-42fe-bec7-106935ecf29d ro biosdevname=0

Xenomai: from git://git.xenomai.org/xenomai-3.git next

  $ version
  Xenomai/cobalt v3.0-rc2 -- #7a81ea8 (2014-11-27 22:02:32 +0100)
  $ xeno-config --info|grep -i build
  Build args: --prefix=/usr --includedir=/usr/include/xenomai --mandir=/usr/share/man --with-testdir=/usr/lib/xenomai/testsuite --build x86_64-linux-gnu build_alias=x86_64-linux-gnu

OS: Ubuntu 14.04

Any help resolving these issues would be appreciated.

Thanks,

-Jeff

#1 lore raw
Quoted 7 lines · Jeff Webb

I am testing the rtnet functionality in the 'next' branch of xenomai-3.git. (I now also have Xenomai-2.6.4/rtnet.git running on the same machine for comparison.) I am able to bring up the real-time interface (rt_e1000e) and use rtping as expected. As mentioned before, I have a primary non-rt ethernet interface running simultaneously (using the e1000e driver). When I try to remove all the rtnet modules, I am unable to remove rtnet and rtipv4:

$ rmmod rtipv4 rtnet
rmmod: ERROR: Module rtipv4 is in use
rmmod: ERROR: Module rtnet is in use by: rtipv4

The messages are the same if I try to remove them individually. This behavior does not occur with Xenomai-2.6.4/rtnet.git.

To avoid nasty side effects, every module which registers an interface (whether rtnet or linux interface) now requires the interface to be down before the module can be removed. The handling of rtnet module counts was significantly reworked when importing into 3.x, it is possible that some bug remains.

Quoted 10 lines

I also have issues when I try to load the rtudp and/or rtpacket modules:

$ sudo modprobe rtnet
$  sudo modprobe rtipv4
$ sudo modprobe rtpacket
modprobe: ERROR: could not insert 'rtpacket': Invalid argument
$ sudo modprobe rtudp
modprobe: ERROR: could not insert 'rtudp': Invalid argument
Quoted 3 lines

I thought that this triggered an I-pipe trace in the past, but I can't reproduce that at the moment. The 'Invalid argument' error code is coming from rtdm_dev_register, right?

It comes from the module insertion function. I thought I had tried inserting these modules, but maybe I did not, I will try on my side.

Signature · 1 line
					    Gilles.
#2 lore raw
Quoted 7 lines · Gilles Chanteperdrix
Quoted 6 lines · Jeff Webb

I am testing the rtnet functionality in the 'next' branch of xenomai-3.git. (I now also have Xenomai-2.6.4/rtnet.git running on the same machine for comparison.) I am able to bring up the real-time interface (rt_e1000e) and use rtping as expected. As mentioned before, I have a primary non-rt ethernet interface running simultaneously (using the e1000e driver). When I try to remove all the rtnet modules, I am unable to remove rtnet and rtipv4:

$ rmmod rtipv4 rtnet
rmmod: ERROR: Module rtipv4 is in use
rmmod: ERROR: Module rtnet is in use by: rtipv4
Quoted 7 lines
Quoted 1 line

The messages are the same if I try to remove them individually. This behavior does not occur with Xenomai-2.6.4/rtnet.git.

To avoid nasty side effects, every module which registers an interface (whether rtnet or linux interface) now requires the interface to be down before the module can be removed. The handling of rtnet module counts was significantly reworked when importing into 3.x, it is possible that some bug remains.

Also note that you need this commits in the I-pipe kernel for 3.14 for module count to work correctly from xenomai domain:

https://git.xenomai.org/ipipe-gch.git/commit/?h=for-ipipe-3.14.17&id=f009149cf8ca8f956194e4fd852b0d97b7c76886

Signature · 1 line
					    Gilles.
author
#3 lore raw
Quoted 16 lines · Gilles Chanteperdrix
Quoted 7 lines · Gilles Chanteperdrix
Quoted 6 lines · Jeff Webb

I am testing the rtnet functionality in the 'next' branch of xenomai-3.git. (I now also have Xenomai-2.6.4/rtnet.git running on the same machine for comparison.) I am able to bring up the real-time interface (rt_e1000e) and use rtping as expected. As mentioned before, I have a primary non-rt ethernet interface running simultaneously (using the e1000e driver). When I try to remove all the rtnet modules, I am unable to remove rtnet and rtipv4:

$ rmmod rtipv4 rtnet
rmmod: ERROR: Module rtipv4 is in use
rmmod: ERROR: Module rtnet is in use by: rtipv4
Quoted 7 lines
Quoted 1 line

The messages are the same if I try to remove them individually. This behavior does not occur with Xenomai-2.6.4/rtnet.git.

To avoid nasty side effects, every module which registers an interface (whether rtnet or linux interface) now requires the interface to be down before the module can be removed. The handling of rtnet module counts was significantly reworked when importing into 3.x, it is possible that some bug remains.

Quoted 5 lines

Also note that you need this commits in the I-pipe kernel for 3.14 for module count to work correctly from xenomai domain:

https://git.xenomai.org/ipipe-gch.git/commit/?h=for-ipipe-3.14.17&id=f009149cf8ca8f956194e4fd852b0d97b7c76886

For what its worth, I rebuilt everything using your "for-ipipe-3.14.17" branch that has that commit. That branch has the same issue, and I think your assessment of the problem is correct. For instance, this works:

ifconfig eth0 down
ifconfig eth1 down
rmmod e1000e
modprobe rtnet
modprobe rtipv4
modprobe rt_e1000e
rtifconfig rteth1 up 172.18.14.209
rtifconfig
rtifconfig rteth1 down
rmmod rt_e1000e
rmmod rtipv4

But, if I actually use the interface, I can no longer remove the rtipv4 module:

modprobe rtipv4
modprobe rt_e1000e
rtifconfig rteth1 up 172.18.14.209
rtifconfig
rtroute solicit 172.18.14.210 dev rteth1
rtroute
rtifconfig rteth1 down
rmmod rt_e1000e
rmmod rtipv4

-Jeff

#4 lore raw
Quoted 39 lines · Jeff Webb
Quoted 16 lines · Gilles Chanteperdrix
Quoted 7 lines · Gilles Chanteperdrix
Quoted 6 lines · Jeff Webb

I am testing the rtnet functionality in the 'next' branch of xenomai-3.git. (I now also have Xenomai-2.6.4/rtnet.git running on the same machine for comparison.) I am able to bring up the real-time interface (rt_e1000e) and use rtping as expected. As mentioned before, I have a primary non-rt ethernet interface running simultaneously (using the e1000e driver). When I try to remove all the rtnet modules, I am unable to remove rtnet and rtipv4:

$ rmmod rtipv4 rtnet
rmmod: ERROR: Module rtipv4 is in use
rmmod: ERROR: Module rtnet is in use by: rtipv4
Quoted 7 lines
Quoted 1 line

The messages are the same if I try to remove them individually. This behavior does not occur with Xenomai-2.6.4/rtnet.git.

To avoid nasty side effects, every module which registers an interface (whether rtnet or linux interface) now requires the interface to be down before the module can be removed. The handling of rtnet module counts was significantly reworked when importing into 3.x, it is possible that some bug remains.

Quoted 5 lines

Also note that you need this commits in the I-pipe kernel for 3.14 for module count to work correctly from xenomai domain:

https://git.xenomai.org/ipipe-gch.git/commit/?h=for-ipipe-3.14.17&id=f009149cf8ca8f956194e4fd852b0d97b7c76886

For what its worth, I rebuilt everything using your "for-ipipe-3.14.17" branch that has that commit. That branch has the same issue, and I think your assessment of the problem is correct. For instance, this works:

ifconfig eth0 down
ifconfig eth1 down
rmmod e1000e
modprobe rtnet
modprobe rtipv4
modprobe rt_e1000e
rtifconfig rteth1 up 172.18.14.209
rtifconfig
rtifconfig rteth1 down
rmmod rt_e1000e
rmmod rtipv4

But, if I actually use the interface, I can no longer remove the rtipv4 module:

Quoted 9 lines

modprobe rtipv4
modprobe rt_e1000e
rtifconfig rteth1 up 172.18.14.209
rtifconfig
rtroute solicit 172.18.14.210 dev rteth1
rtroute
rtifconfig rteth1 down
rmmod rt_e1000e
rmmod rtipv4

Ok, I clearly did not have this with the drivers I tested, so, this must come from something specific to the rt_e1000e driver, I will have a look.

Signature · 1 line
					    Gilles.
#5 lore raw
In reply to Jeff Webb
Quoted 39 lines · Jeff Webb
Quoted 16 lines · Gilles Chanteperdrix
Quoted 7 lines · Gilles Chanteperdrix
Quoted 6 lines · Jeff Webb

I am testing the rtnet functionality in the 'next' branch of xenomai-3.git. (I now also have Xenomai-2.6.4/rtnet.git running on the same machine for comparison.) I am able to bring up the real-time interface (rt_e1000e) and use rtping as expected. As mentioned before, I have a primary non-rt ethernet interface running simultaneously (using the e1000e driver). When I try to remove all the rtnet modules, I am unable to remove rtnet and rtipv4:

$ rmmod rtipv4 rtnet
rmmod: ERROR: Module rtipv4 is in use
rmmod: ERROR: Module rtnet is in use by: rtipv4
Quoted 7 lines
Quoted 1 line

The messages are the same if I try to remove them individually. This behavior does not occur with Xenomai-2.6.4/rtnet.git.

To avoid nasty side effects, every module which registers an interface (whether rtnet or linux interface) now requires the interface to be down before the module can be removed. The handling of rtnet module counts was significantly reworked when importing into 3.x, it is possible that some bug remains.

Quoted 5 lines

Also note that you need this commits in the I-pipe kernel for 3.14 for module count to work correctly from xenomai domain:

https://git.xenomai.org/ipipe-gch.git/commit/?h=for-ipipe-3.14.17&id=f009149cf8ca8f956194e4fd852b0d97b7c76886

For what its worth, I rebuilt everything using your "for-ipipe-3.14.17" branch that has that commit. That branch has the same issue, and I think your assessment of the problem is correct. For instance, this works:

ifconfig eth0 down
ifconfig eth1 down
rmmod e1000e
modprobe rtnet
modprobe rtipv4
modprobe rt_e1000e
rtifconfig rteth1 up 172.18.14.209
rtifconfig
rtifconfig rteth1 down
rmmod rt_e1000e
rmmod rtipv4

But, if I actually use the interface, I can no longer remove the rtipv4 module:

Quoted 9 lines

modprobe rtipv4
modprobe rt_e1000e
rtifconfig rteth1 up 172.18.14.209
rtifconfig
rtroute solicit 172.18.14.210 dev rteth1
rtroute
rtifconfig rteth1 down
rmmod rt_e1000e
rmmod rtipv4

Indeed, I can reproduce this. The driver can be unloaded, but not rtipv4.

Signature · 1 line
					    Gilles.
#6 lore raw
In reply to Jeff Webb
Quoted 39 lines · Jeff Webb
Quoted 16 lines · Gilles Chanteperdrix
Quoted 7 lines · Gilles Chanteperdrix
Quoted 6 lines · Jeff Webb

I am testing the rtnet functionality in the 'next' branch of xenomai-3.git. (I now also have Xenomai-2.6.4/rtnet.git running on the same machine for comparison.) I am able to bring up the real-time interface (rt_e1000e) and use rtping as expected. As mentioned before, I have a primary non-rt ethernet interface running simultaneously (using the e1000e driver). When I try to remove all the rtnet modules, I am unable to remove rtnet and rtipv4:

$ rmmod rtipv4 rtnet
rmmod: ERROR: Module rtipv4 is in use
rmmod: ERROR: Module rtnet is in use by: rtipv4
Quoted 7 lines
Quoted 1 line

The messages are the same if I try to remove them individually. This behavior does not occur with Xenomai-2.6.4/rtnet.git.

To avoid nasty side effects, every module which registers an interface (whether rtnet or linux interface) now requires the interface to be down before the module can be removed. The handling of rtnet module counts was significantly reworked when importing into 3.x, it is possible that some bug remains.

Quoted 5 lines

Also note that you need this commits in the I-pipe kernel for 3.14 for module count to work correctly from xenomai domain:

https://git.xenomai.org/ipipe-gch.git/commit/?h=for-ipipe-3.14.17&id=f009149cf8ca8f956194e4fd852b0d97b7c76886

For what its worth, I rebuilt everything using your "for-ipipe-3.14.17" branch that has that commit. That branch has the same issue, and I think your assessment of the problem is correct. For instance, this works:

ifconfig eth0 down
ifconfig eth1 down
rmmod e1000e
modprobe rtnet
modprobe rtipv4
modprobe rt_e1000e
rtifconfig rteth1 up 172.18.14.209
rtifconfig
rtifconfig rteth1 down
rmmod rt_e1000e
rmmod rtipv4

But, if I actually use the interface, I can no longer remove the rtipv4 module:

Quoted 9 lines

modprobe rtipv4
modprobe rt_e1000e
rtifconfig rteth1 up 172.18.14.209
rtifconfig
rtroute solicit 172.18.14.210 dev rteth1
rtroute
rtifconfig rteth1 down
rmmod rt_e1000e
rmmod rtipv4

Hi Jeff,

sorry for the long delay. This issue should be fixed in the "for-forge" branch in xenomai-gch.git repository.

Regards.

Signature · 2 lines
					    Gilles.
https://click-hack.org