All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andreas Besse <besse@motama.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: Order of DVB devices
Date: Wed, 27 Jan 2010 13:38:38 +0000	[thread overview]
Message-ID: <4B6041DE.4090906@motama.com> (raw)
In-Reply-To: <4B5EFDF7.8090709@motama.com>

Kay Sievers wrote:
> On Tue, Jan 26, 2010 at 16:22, Greg KH <greg@kroah.com> wrote:
>   
>> On Tue, Jan 26, 2010 at 03:36:39PM +0100, Andreas Besse wrote:
>>     
>>> i have a system with multiple DVB cards of the same type and want to
>>> specify the order of the devices /dev/dvb/adapterX. The device plugged
>>> into the physical PCI slot 1 on the mainboard should be assigned to
>>> /dev/dvb/adapter0 and the card in PCI slot 2 should be assigned to
>>> /dev/dvb/adapter1.
>>>       
>
> We usually do not change kernel names, but create meaningful named
> symlinks to them. Stuff gets confused when /sys and /dev get
> out-of-sync.
>
>   
>>> In the following post
>>> http://thread.gmane.org/gmane.linux.kernel.pci/7446/focust67 there
>>> is mentioned that the order of the devices can be specified by using
>>> udev rules.
>>>       
>
> The order can usually only specified by unconditionally loading kernel
> driver modules in a defined order. This usually works fine for PCI
> devices, but can obviously not work if there are USB devices involved.
>
>   
>>> But how this can be done? Which information in /sys can be used to
>>> determine which DVB device is connected to which specific slot?
>>>       
>> Did you try the latest version of udev that has the persistant rules for
>> the v4l devices in it and look at the symlinks that are created to see
>> if they solve the problem for you?
>>     
>
> Looking at it now, I think we only do video4linux, not the DVB stuff,
> which has its own class. But it should be possible to implement a
> similar model for /dev/dvb/by-id, /dev/dvb/by-path without much
> problems. It's just, that nobody really cared so far.
>
> Thanks,
> Kay
>   

but how can these persistent rules solve the issue that the order of PCI Slots (PCI Bus IDs) is not deterministic and totally random determined at boot?

I think the udev rules only can use informations which are already available in /sys/ ?


regards,
Andreas Besse

  parent reply	other threads:[~2010-01-27 13:38 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-26 14:36 Order of DVB devices Andreas Besse
2010-01-26 15:22 ` Greg KH
2010-01-27  4:18 ` Kay Sievers
2010-01-27 13:38 ` Andreas Besse [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-01-16  8:36 Order of dvb devices Dan Taylor
2010-01-14 15:35 Andreas Besse
2010-01-14 15:46 ` Devin Heitmueller
2010-01-14 16:01   ` Andreas Besse
2010-01-14 16:09     ` Devin Heitmueller
2010-01-14 17:19       ` Michael Krufky
2010-01-15 23:00       ` Oliver Endriss
2010-01-15 23:05         ` Devin Heitmueller
2010-01-15 23:08         ` Manu Abraham
2010-01-16  6:50           ` Mika Laitio
2010-01-18  8:58           ` Andreas Besse
2010-01-18 10:32             ` Manu Abraham
2010-01-18 13:16               ` Andreas Besse
2010-01-15 23:12         ` hermann pitton

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=4B6041DE.4090906@motama.com \
    --to=besse@motama.com \
    --cc=linux-hotplug@vger.kernel.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.