LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-29-2009, 09:54 PM   #1
shturm
LQ Newbie
 
Registered: Jul 2006
Location: San Jose, CA
Distribution: Fedora 12
Posts: 6

Rep: Reputation: 0
How to enforce the order of detection of pci devices?


I have Fedora 12 installed on a machine which has two PCI cards.
The is the relevant part of the output of "lspci":
01:04.0 RAID bus controller: Silicon Image, Inc. SiI 3114 [SATALink/SATARaid] Serial ATA Controller (rev 02)
01:05.0 RAID bus controller: VIA Technologies, Inc. VT6421 IDE RAID Controller (rev 50)
The problem is that during boot sometimes sata_via is detected first and then sata_sil:
Dec 27 16:33:47 localhost kernel: sata_via 0000:01:05.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
Dec 27 16:33:47 localhost kernel: sata_via 0000:01:05.0: routed to hard irq line 3
Dec 27 16:33:47 localhost kernel: scsi2 : sata_via
Dec 27 16:33:47 localhost kernel: scsi3 : sata_via
Dec 27 16:33:47 localhost kernel: scsi4 : sata_via
Dec 27 16:33:47 localhost kernel: ata3: SATA max UDMA/133 port i16@0xdca0 bmdma 0xdce0 irq 17
Dec 27 16:33:47 localhost kernel: ata4: SATA max UDMA/133 port i16@0xdcb0 bmdma 0xdce8 irq 17
Dec 27 16:33:47 localhost kernel: ata5: PATA max UDMA/133 port i16@0xdcc0 bmdma 0xdcf0 irq 17
Dec 27 16:33:47 localhost kernel: sata_sil 0000:01:04.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
Dec 27 16:33:47 localhost kernel: sata_sil 0000:01:04.0: Applying R_ERR on DMA activate FIS errata fix
Dec 27 16:33:47 localhost kernel: scsi5 : sata_sil
Dec 27 16:33:47 localhost kernel: scsi6 : sata_sil
Dec 27 16:33:47 localhost kernel: scsi7 : sata_sil
Dec 27 16:33:47 localhost kernel: scsi8 : sata_sil
Dec 27 16:33:47 localhost kernel: ata6: SATA max UDMA/100 mmio m1024@0xfe9fdc00 tf 0xfe9fdc80 irq 16
Dec 27 16:33:47 localhost kernel: ata7: SATA max UDMA/100 mmio m1024@0xfe9fdc00 tf 0xfe9fdcc0 irq 16
Dec 27 16:33:47 localhost kernel: ata8: SATA max UDMA/100 mmio m1024@0xfe9fdc00 tf 0xfe9fde80 irq 16
Dec 27 16:33:47 localhost kernel: ata9: SATA max UDMA/100 mmio m1024@0xfe9fdc00 tf 0xfe9fdec0 irq 16
and sometimes its the other way around:
Dec 29 12:44:26 localhost kernel: sata_sil 0000:01:04.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
Dec 29 12:44:26 localhost kernel: sata_sil 0000:01:04.0: Applying R_ERR on DMA activate FIS errata fix
Dec 29 12:44:26 localhost kernel: scsi2 : sata_sil
Dec 29 12:44:26 localhost kernel: scsi3 : sata_sil
Dec 29 12:44:26 localhost kernel: scsi4 : sata_sil
Dec 29 12:44:26 localhost kernel: scsi5 : sata_sil
Dec 29 12:44:26 localhost kernel: ata3: SATA max UDMA/100 mmio m1024@0xfe9fdc00 tf 0xfe9fdc80 irq 16
Dec 29 12:44:26 localhost kernel: ata4: SATA max UDMA/100 mmio m1024@0xfe9fdc00 tf 0xfe9fdcc0 irq 16
Dec 29 12:44:26 localhost kernel: ata5: SATA max UDMA/100 mmio m1024@0xfe9fdc00 tf 0xfe9fde80 irq 16
Dec 29 12:44:26 localhost kernel: ata6: SATA max UDMA/100 mmio m1024@0xfe9fdc00 tf 0xfe9fdec0 irq 16
Dec 29 12:44:26 localhost kernel: sata_via 0000:01:05.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
Dec 29 12:44:26 localhost kernel: sata_via 0000:01:05.0: routed to hard irq line 3
Dec 29 12:44:26 localhost kernel: scsi6 : sata_via
Dec 29 12:44:26 localhost kernel: scsi7 : sata_via
Dec 29 12:44:26 localhost kernel: scsi8 : sata_via
Dec 29 12:44:26 localhost kernel: ata7: SATA max UDMA/133 port i16@0xdca0 bmdma 0xdce0 irq 17
Dec 29 12:44:26 localhost kernel: ata8: SATA max UDMA/133 port i16@0xdcb0 bmdma 0xdce8 irq 17
Dec 29 12:44:26 localhost kernel: ata9: PATA max UDMA/133 port i16@0xdcc0 bmdma 0xdcf0 irq 17
I want sata_sil to be detected first, and then sata_via, in order to have the same devices assigned to attached hard drives on every boot.

I goolged around and found suggestions to add this to my /etc/modprobe.d/local.conf file:

alias scsi_hostadapter sata_sil
alias scsi_hostadapter sata_via
I tried this but it did not help.

Any suggestions?

Last edited by shturm; 12-29-2009 at 09:57 PM.
 
Old 12-29-2009, 11:06 PM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
hi

try adding your second preferred modulename to a blacklist file...I don't use Fed but look under /etc or /etc/modprobe*
add this second module to /etc/rc.local

you will need to specify the full pathway to modprobe...in rc.local using root powers
/sbin/modprobe scsi_hostadapter sata_via

with luck your kernel now ignores the second device as its blacklisted and runs rc.local as the last step before switching to login manager which then gives you your second device......I hopw

Last edited by aus9; 12-29-2009 at 11:08 PM.
 
Old 12-29-2009, 11:09 PM   #3
shturm
LQ Newbie
 
Registered: Jul 2006
Location: San Jose, CA
Distribution: Fedora 12
Posts: 6

Original Poster
Rep: Reputation: 0
How exactly do you suggest I add it to /etc/rc.local ?
 
Old 12-30-2009, 02:12 AM   #4
shturm
LQ Newbie
 
Registered: Jul 2006
Location: San Jose, CA
Distribution: Fedora 12
Posts: 6

Original Poster
Rep: Reputation: 0
Solution is here:
http://forums.fedoraforum.org/showthread.php?t=237513
 
  


Reply



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
Hard drive detection order marv Linux - Software 2 06-14-2008 06:53 PM
Unable to allocate PCI Ethernet controller. Too many PCI devices already configured. tirtildim Linux - Software 2 04-17-2008 07:18 AM
Change hardware order of detection/discovery? Conjurer Linux - Hardware 2 10-26-2006 09:48 AM
Nic detection order twistedpair Linux - Hardware 2 01-05-2006 05:27 PM
Hardware Detection Order. rridler Linux - Newbie 4 04-27-2004 06:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:49 PM.

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