muhammad panji wrote:
2009/6/5 achmad mardiansyah <a.mardians...@gmail.com>:
gini ya pak...
dari hasil "lspci -vvv":
kan dapet tuh, kode card yang lagi nancep:
01:00.0 & 01:01.0

Saya rasa tidak perlu di konfirmasi lagi. nanti yang ada hanya dump
hasil test semua. toh sudah bisa menentukan interface apa di slot
mana.
rgds

tapi gpp pak, biar lebih clear lagi. dan mungkin berguna untuk yg lain bila menemui kasus yg sama.

ini methode saya buat ngeliat mapping device eth ke slot pci.

dari dump_pirq saya dapet info bus:slot.function  nya (plus slot fisiknya).

./dump_pirq | grep Ethernet
Device 00:0e.0 (slot 2): Ethernet controller
Device 00:0f.0 (slot 3): Ethernet controller

00:0e.0  di slot fisik 2
00:0f.0 di slot fisik 3

sekarang gimana mencari tahu 00:0e.0 dan 00:0f.0 ada di eth brp?
methode yg saya gunakan adalah menyamakan irq number nya.

pertama saya execute ifconfig hasilnya:

eth0 Link encap:Ethernet HWaddr 00:10:5A:6F:90:A2 inet addr:202.x.x.x Bcast:202.x.x.x Mask:255.x.x.x
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:0 errors:0 dropped:0 overruns:0 frame:0
         TX packets:4 errors:0 dropped:0 overruns:0 carrier:4
         collisions:0 txqueuelen:100
         RX bytes:0 (0.0 b)  TX bytes:240 (240.0 b)
         Interrupt:10 Base address:0x1080

eth1 Link encap:Ethernet HWaddr 00:10:5A:6D:65:2B inet addr:202.x.x.x Bcast:x.x.x.x Mask:255.x.x.x
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:34631374 errors:19158 dropped:0 overruns:8 frame:20407
         TX packets:19921741 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:100
         RX bytes:3459249122 (3298.9 Mb)  TX bytes:1584689092 (1511.2 Mb)
         Interrupt:5 Base address:0x1400

kita lihat eth0 memakai Interrupt 10 eth1 memakai interrupt 5

kita execute lspci -vvv | grep -A6 Ethernet

00:0e.0 Ethernet controller: 3Com Corporation 3c905B 100BaseTX [Cyclone] (rev 30)
       Subsystem: 3Com Corporation 3C905B Fast Etherlink XL 10/100
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
       Latency: 80 (2500ns min, 2500ns max), cache line size 08
       Interrupt: pin A routed to IRQ 10
       Region 0: I/O ports at 1080 [size=128]
--
00:0f.0 Ethernet controller: 3Com Corporation 3c905B 100BaseTX [Cyclone] (rev 30)
       Subsystem: 3Com Corporation 3C905B Fast Etherlink XL 10/100
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
       Latency: 80 (2500ns min, 2500ns max), cache line size 08
       Interrupt: pin A routed to IRQ 5
       Region 0: I/O ports at 1400 [size=128]

kita lihat id 00:0e.0 memakai Interrupt/IRQ 10 dan 00:0f.0 memakai Interrupt/IRQ 5

kesimpulannya:

eth0 -> IRQ 10 ->device 00:0e.0 -> mapped to slot fisik PCI nomer 2 (hasil dump_pirq) eth1 -> IRQ 5 -> device 00:0f.0 --> mapped to slot fisik PCI nomer 3 (hasil dump_pirq)

mudah2ab uraian saya nggak terlalu mbulet.

cmiiw


PT.CITRA SARI MAKMUR
SATELLITE & TERRESTRIAL NETWORK

Connecting the distance - anytime, anywhere, any content
http://www.csmcom.com
http://mail.csmcom.com



--
FAQ milis di http://wiki.linux.or.id/FAQ_milis_tanya-jawab
Unsubscribe: kirim email ke tanya-jawab-unsubscr...@linux.or.id
Arsip dan info milis selengkapnya di http://linux.or.id/milis

Kirim email ke