Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 10-16-2008, 01:48 PM   #1
Registered: Mar 2003
Distribution: CentOS 5.2
Posts: 43

Rep: Reputation: 15
Changing device loading order and driver loading before X

I have a couple questions in this thread. I have a sneaking suspicion that "udev" may be involved in this somehow. A little bit of background. I'm trying to set up a system with NVIDIA devices. There is on board video and multiple Tesla devices. The system loads and operates properly. Now I'm just trying to fine tune the system to work exactly the way I want. The issues I am trying to resolve are:

1) The onboard video is enumerated first making it addressed at 2:0:0, where as the other devices that get loaded under the same driver are addressed to 5:0:0, 6:0:0, etc. Naturally, this makes logical sense in most configurations, but not in what I'm trying to do.

Because of this, the onboard video gets loaded into /dev/nvidia0, and therefore, becomes the first CUDA device that CUDA applications see. I would like to try and reassign the onboard device to a different /dev/nvidia* node so that CUDA queries the device last, and all other CUDA devices first.

2) I want to get all NVIDIA device drivers loaded and /dev/nvidia* populated BEFORE the X window interface tries to load up. Currently, this isn't the case, and when X does load up, it halts with no video response for a couple minutes as it tries to load in driver modules for all devices.

I have a feeling that if the drivers get loaded before hand, then loading X shouldn't have any issues since currently, when I get into the GUI (after X has queried all devices), I can init 3 out of X, and init 5 back in, and X loads instantly.

This issue is primarily a boot issue since at the moment, it adds about 2 minutes to the overall boot sequence, unless I boot in runlevel 3, in which case, there are no issues at all in boot times.

Any thoughts and pointers?
Old 10-17-2008, 11:36 PM   #2
Senior Member
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
Look in /sys and see if there is information which allows you to uniquely identify each NVidia device. For example:

udevinfo -a -p /sys/module/nvidia

Or something like that. If there is no information to uniquely identify the various devices then you're in trouble. Looking at my own system (NVidia 6800) sysfs has no unique info. I guess you'll have to use the PCI Bus ID somehow to instruct udev to name the devices.
Old 10-18-2008, 12:38 AM   #3
Registered: Mar 2003
Distribution: CentOS 5.2
Posts: 43

Original Poster
Rep: Reputation: 15
Thanks. I just tried that command and it is just spitting out some udev rules (I'm still very green with udev, so I don't fully understand the protocol). Nothing device unique.

Using 'lspci', the NVIDIA devices are listed as (assigned to):

02:00.0 (/dev/nvidia0)
05:00.0 (/dev/nvidia1)
06:00.0 (/dev/nvidia2)
07:00.0 (/dev/nvidia3)
08:00.0 (/dev/nvidia4)

While I actually want it to look more like:

05:00.0 (/dev/nvidia0)
06:00.0 (/dev/nvidia1)
07:00.0 (/dev/nvidia2)
08:00.0 (/dev/nvidia3)
02:00.0 (/dev/nvidia4)

Somehow though, I want to make sure that all of this gets done before X actually loads. I just don't know where to begin on either of these things.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
uclinux custom device driver not loading, possibly multiple problems godzilla Linux - Kernel 12 09-10-2007 06:39 PM
Controlling kernel device loading order? katayamma Linux - General 1 06-20-2006 09:57 PM
Loading Sticks on Loading Sound Driver nis_hurock Linux - General 8 06-03-2006 05:57 PM
loading device driver during install from cd-rom ARCHIGAMER Fedora - Installation 1 04-07-2005 08:40 AM
Finding Module Dependencies...(Still loading...still loading..still loading..HANG!!!) Aeudian Linux - General 3 08-11-2003 03:31 PM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 06:59 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration