Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Aug 2012 15:54:10 +0200
From:      =?ISO-8859-15?Q?Gustau_P=E9rez_i_Querol?= <gperez@entel.upc.edu>
To:        Andriy Gapon <avg@freebsd.org>
Cc:        freebsd-stable@freebsd.org, John Baldwin <jhb@freebsd.org>
Subject:   Re: Problem adding more than 8 network adapters
Message-ID:  <503E1F02.6050505@entel.upc.edu>
In-Reply-To: <503E1961.80402@FreeBSD.org>
References:  <503C930C.3010405@entel.upc.edu> <503DE1BC.4050907@entel.upc.edu> <20120829101202.GA74970@server.rulingia.com> <201208290813.55855.jhb@freebsd.org> <503E1961.80402@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------070808000009070404080705
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

Al 29/08/2012 15:30, En/na Andriy Gapon ha escrit:
> on 29/08/2012 15:13 John Baldwin said the following:
>> On Wednesday, August 29, 2012 6:12:02 am Peter Jeremy wrote:
>>> [Moving to -stable and adding jhb@ for his input]
>>>
>>> On 2012-Aug-29 11:32:44 +0200, Gustau Pérez i Querol <gperez@entel.upc.edu> wrote:
> [snip]
>>> Ah..  lspci shows the 9th LANCE at 02:00.0.  The verbose boot shows
>>> FreeBSD finds pcib2 (at pci0 device 25.0) but doesn't see anything
>>> on that bus.  ISTR jhb@ will recognize that problem.
>> Silly firmware, VM, whatever it is. :)  It's buggy.
>>
>>>> pcib1: <PCI-PCI bridge> at device 24.0 on pci0
>>>> pcib1:   domain            0
>>>> pcib1:   secondary bus     1
>>>> pcib1:   subordinate bus   2
>>>> pcib1:   no prefetched decode
>>>> pcib1:   Subtractively decoded bridge.
>>>> pci1: <PCI bus> on pcib1
>>>> pci1: domain=0, physical bus=1
>>>> pcib2: <PCI-PCI bridge> at device 25.0 on pci0
>>>> pcib2:   domain            0
>>>> pcib2:   secondary bus     2
>>>> pcib2:   subordinate bus   3
>>>> pcib2:   no prefetched decode
>>>> pcib2:   Subtractively decoded bridge.
>>>> pci2: <PCI bus> on pcib2
>>>> pci2: domain=0, physical bus=2
>> This is indeed the problem.  PCI bus 2 is "claimed" by both pcib1 and pcib2
>> since the VM author programmed the bridges incorrectly.  In this case, the
>> subordinate bus should be "1" and "2", not "2" and "3".  You could add a hack
>> to pci_pci.c to fix the subordinate bus on these bridges which should probably
>> fix this.
>>
>>>> 00:18.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f2) (prog-if 01 [Subtractive decode])
>>>> 	Flags: bus master, 66MHz, fast devsel, latency 64
>>>> 	Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
>>>>
>>>> 00:19.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f2) (prog-if 01 [Subtractive decode])
>>>> 	Flags: bus master, 66MHz, fast devsel, latency 64
>>>> 	Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
>>>> 	I/O behind bridge: 00001000-00001fff
>>>> 	Memory behind bridge: 40000000-400fffff
>> Note here in this output (presumably from lspci under Linux?), the
>> subordinate bus register == secondary bus register for each bridge.
>>
> I wonder where the discrepancy could come from.
> Why would VirtualBox emulate the bridge differently for different OSes?
> And I do not see any quirks related to bus numbers for this PCI ID in either
> Linux, FreeBSD or lspci code...
>
> I think that output of lspci on FreeBSD could be interesting too (it's available
> via sysutils/pciutils port).
>

    The output of lspci gives the same info as pciconf. I'm attaching it 
however.

-- 
---------------------------------------------------------------------------
Prou top-posting :	http://ca.wikipedia.org/wiki/Top-posting
Stop top-posting :	http://en.wikipedia.org/wiki/Posting_style	

O O O Gustau Pérez i Querol
O O O Departament d'Enginyeria Telemàtica
O O O Universitat Politècnica de Catalunya
       Edifici C3 - Despatx S101-B
  UPC  Campus Nord UPC
       C/ Jordi Girona, 1-3
       08034 - Barcelona


--------------070808000009070404080705
Content-Type: text/plain; charset=UTF-8;
 name="lspci.freebsd"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="lspci.freebsd"

00:02.0 VGA compatible controller: InnoTek Systemberatung GmbH VirtualBox Graphics Adapter (prog-if 00 [VGA controller])
	Flags: bus master, fast devsel, latency 0, IRQ 18
	Memory at e0000000 (32-bit, prefetchable)

00:03.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev 10)
	Subsystem: Advanced Micro Devices [AMD] PCnet - Fast 79C971
	Flags: bus master, medium devsel, latency 0, IRQ 19
	I/O ports at d000
	Memory at f0000000 (32-bit, non-prefetchable)
	Memory at f0080000 (32-bit, non-prefetchable)

00:04.0 System peripheral: InnoTek Systemberatung GmbH VirtualBox Guest Service
	Flags: bus master, fast devsel, latency 0, IRQ 20
	I/O ports at d020
	Memory at f0400000 (32-bit, non-prefetchable)
	Memory at f0800000 (32-bit, prefetchable)

00:07.0 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08)
	Flags: bus master, medium devsel, latency 0, IRQ 9

00:08.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev 10)
	Subsystem: Advanced Micro Devices [AMD] PCnet - Fast 79C971
	Flags: bus master, medium devsel, latency 0, IRQ 16
	I/O ports at d040
	Memory at f0804000 (32-bit, non-prefetchable)
	Memory at f0880000 (32-bit, non-prefetchable)

00:09.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev 10)
	Subsystem: Advanced Micro Devices [AMD] PCnet - Fast 79C971
	Flags: bus master, medium devsel, latency 0, IRQ 17
	I/O ports at d060
	Memory at f0900000 (32-bit, non-prefetchable)
	Memory at f0980000 (32-bit, non-prefetchable)

00:0a.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev 10)
	Subsystem: Advanced Micro Devices [AMD] PCnet - Fast 79C971
	Flags: bus master, medium devsel, latency 0, IRQ 18
	I/O ports at d080
	Memory at f0a00000 (32-bit, non-prefetchable)
	Memory at f0a80000 (32-bit, non-prefetchable)

00:10.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev 10)
	Subsystem: Advanced Micro Devices [AMD] PCnet - Fast 79C971
	Flags: bus master, medium devsel, latency 0, IRQ 16
	I/O ports at d0a0
	Memory at f0b00000 (32-bit, non-prefetchable)
	Memory at f0b80000 (32-bit, non-prefetchable)

00:11.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev 10)
	Subsystem: Advanced Micro Devices [AMD] PCnet - Fast 79C971
	Flags: bus master, medium devsel, latency 0, IRQ 17
	I/O ports at d0c0
	Memory at f0c00000 (32-bit, non-prefetchable)
	Memory at f0c80000 (32-bit, non-prefetchable)

00:12.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev 10)
	Subsystem: Advanced Micro Devices [AMD] PCnet - Fast 79C971
	Flags: bus master, medium devsel, latency 0, IRQ 18
	I/O ports at d0e0
	Memory at f0d00000 (32-bit, non-prefetchable)
	Memory at f0d80000 (32-bit, non-prefetchable)

00:13.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev 10)
	Subsystem: Advanced Micro Devices [AMD] PCnet - Fast 79C971
	Flags: bus master, medium devsel, latency 0, IRQ 19
	I/O ports at d100
	Memory at f0e00000 (32-bit, non-prefetchable)
	Memory at f0e80000 (32-bit, non-prefetchable)

00:16.0 SCSI storage controller: LSI Logic / Symbios Logic SAS1068 PCI-X Fusion-MPT SAS
	Subsystem: LSI Logic / Symbios Logic Device 8000
	Flags: bus master, fast devsel, latency 0, IRQ 22
	I/O ports at d200 [disabled]
	Memory at f0f00000 (32-bit, non-prefetchable)
	Memory at f0f20000 (32-bit, non-prefetchable)
	Capabilities: [80] MSI: Enable- Count=1/1 Maskable+ 64bit-

00:18.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f2) (prog-if 01 [Subtractive decode])
	Flags: bus master, 66MHz, fast devsel, latency 0
	Bus: primary=01, secondary=01, subordinate=02, sec-latency=0
	!!! Unknown I/O range types e0/df
	!!! Unknown memory range types f100/f0ff

00:19.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f2) (prog-if 01 [Subtractive decode])
	Flags: bus master, 66MHz, fast devsel, latency 0
	Bus: primary=02, secondary=02, subordinate=03, sec-latency=0
	!!! Unknown I/O range types e0/df
	!!! Unknown memory range types f100/f0ff

00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
	Subsystem: Intel Corporation Device 7270
	Flags: bus master, medium devsel, latency 0, IRQ 255

00:1f.2 SATA controller: Intel Corporation 82801HM/HEM (ICH8M/ICH8M-E) SATA Controller [AHCI mode] (rev 02) (prog-if 01 [AHCI 1.0])
	Flags: bus master, fast devsel, latency 0, IRQ 23
	I/O ports at e000
	I/O ports at e008
	I/O ports at e010
	I/O ports at e018
	I/O ports at e020
	Memory at f1000000 (32-bit, non-prefetchable)
	Capabilities: [80] MSI: Enable- Count=1/1 Maskable+ 64bit-
	Capabilities: [70] Power Management version 3
	Capabilities: [a8] SATA HBA v1.0

00:1f.4 USB controller: Apple Computer Inc. KeyLargo/Intrepid USB (prog-if 10 [OHCI])
	Flags: bus master, fast devsel, latency 0, IRQ 23
	Memory at f1002000 (32-bit, non-prefetchable)
	Capabilities: [80] MSI: Enable- Count=1/1 Maskable+ 64bit-


--------------070808000009070404080705--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?503E1F02.6050505>