All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [Xenomai] Add cards parameter to rt_e1000e module?
@ 2014-12-15 20:04 Mariusz Janiak
  2014-12-16 21:43 ` Jeff Webb
  0 siblings, 1 reply; 11+ messages in thread
From: Mariusz Janiak @ 2014-12-15 20:04 UTC (permalink / raw)
  To: Xenomai

> >> Certainly a well behaved driver would not touch a device already handled
> >> by a linux driver.  It should be possible to just issue an unbind request
> >> to the linux driver for the desired device and then a bind request to
> >> the rtnet driver to take over that device.
> 
> Thanks for sharing this information.  It sounds like that might work.
> 
> > The problem with the
> > bind/unbind solution is that the driver that will get all the cards
> > first depends on the drivers initialization order. With the "cards"
> > parameter, you do not have this issue.
> 
> Maybe one could create a script that would attempt to unbind both the rt and non-rt drivers (or check to see which one is bound and then unbind it), and then make the desired "bind" calls.  It would be better if the incorrect binding were not made in the first place, however.  I think the ideal solution would be to have a file that contains device/driver pairs that would keep the kernel from passing the specified devices to any other drivers.  I wonder how hard that would be to implement.

The RTnet configuration file rtnet.conf has already instrumentation for binding/unbinding devices. The REBIND_RT_NICS variable has to be set up with the correct NIC PCI addresses. If you have more then one NIC, you can identity PCI address of respective eth's using ethtool

ethtool -i eth0
ethtool -i eth1

etc.

The bus-info field contains device pci addres that you can directly insert to REBIND_RT_NICS. If you don't know which eth menage with physical interface, you can blink LED port of the NIC using, eg.

ethtool -p eth0

Best,
Mariusz





^ permalink raw reply	[flat|nested] 11+ messages in thread
* [Xenomai] Add cards parameter to rt_e1000e module?
@ 2014-12-12 22:10 Jeff Webb
  2014-12-12 23:56 ` Gilles Chanteperdrix
  2014-12-13  1:03 ` Gilles Chanteperdrix
  0 siblings, 2 replies; 11+ messages in thread
From: Jeff Webb @ 2014-12-12 22:10 UTC (permalink / raw)
  To: Xenomai

The rtnet rt_e1000e module does not implement the 'cards' parameter.  I have attached a patch for the 'next' branch of xenomai-3.git that adds this parameter, and it seems to work fine on my hardware.  The code was ported straight from the rt_e1000 module.  My machine has two e1000e cards, so this is a useful feature for me.  (I actually applied the same fix to the standard e1000e driver, which is even more useful to me, but I know it would be a maintenance nightmare for Xenomai to start maintaining that sort of patching...)

I am trying to learn rtnet, but it seems that the code from the rtnet git repo won't compile with linux-3.14.17/xenomai-2.6.4.  I saw that Gilles has pulled the rtnet code into the Xenomai-3 git repo, so it seemed to me that beta testing the Xenomai-3 rtnet code would be a better use of my time than messing with the old code base.  So far, so good.  My machine's primary ethernet interface is using the standard linux e1000e driver, and the secondary ethernet interface is up and running under rtnet using the rt_e1000e driver.  I can use rtping to talk to another linux box that is connected via a switch, provided I ping in the reverse direction first to set up the route information.

-Jeff
  
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rt_e1000e.patch
Type: text/x-patch
Size: 1462 bytes
Desc: not available
URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20141212/ff3c0806/attachment.bin>

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-12-16 21:43 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-15 20:04 [Xenomai] Add cards parameter to rt_e1000e module? Mariusz Janiak
2014-12-16 21:43 ` Jeff Webb
  -- strict thread matches above, loose matches on Subject: below --
2014-12-12 22:10 Jeff Webb
2014-12-12 23:56 ` Gilles Chanteperdrix
2014-12-15 15:01   ` Jeff Webb
2014-12-15 15:29     ` Jeff Webb
2014-12-13  1:03 ` Gilles Chanteperdrix
2014-12-13  2:12   ` Lennart Sorensen
2014-12-13  5:11     ` Gilles Chanteperdrix
2014-12-13 17:14       ` Lennart Sorensen
2014-12-15 15:27       ` Jeff Webb

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.