From owner-freebsd-stable@FreeBSD.ORG Tue Jun 24 10:49:13 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DFB33FB for ; Tue, 24 Jun 2014 10:49:12 +0000 (UTC) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.116.12]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9214F2A3F for ; Tue, 24 Jun 2014 10:49:11 +0000 (UTC) Received: from th-04.cs.huji.ac.il ([132.65.80.125]) by kabab.cs.huji.ac.il with esmtp id 1WzOHe-000N8M-KO for freebsd-stable@freebsd.org; Tue, 24 Jun 2014 13:49:02 +0300 From: Daniel Braniss Subject: pci issues with SBC (AMD G-T40E) - PCEngines apu Message-Id: <0D577669-BF58-4B30-B29A-9A5B05C95112@cs.huji.ac.il> Date: Tue, 24 Jun 2014 13:48:56 +0300 To: FreeBSD stable Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) X-Mailer: Apple Mail (2.1878.2) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jun 2014 10:49:13 -0000 Hi all, the short story is that not always all the devices are discovered correctly, i.e. there are 3 RealTek and sometimes all 3 are discovered, sometimes 2,sometimes only one. My guts are telling me it=92s a timing issue, is there some delay I can = put in? I tried booting verbose but the problem is till there. example: =85 re1: port = 0x2000-0x20ff mem 0xf7b00000-0xf7b00fff,0xf7a00000-0xf7a03fff irq 17 at = device 0.0 on pci2 re1: MSI count : 1 re1: MSI-X count : 4 re1: attempting to allocate 1 MSI-X vectors (4 supported) msi: routing MSI-X IRQ 260 to local APIC 0 vector 55 re1: using IRQ 260 for MSI-X re1: Using 1 MSI-X message re1: ASPM disabled re1: Chip rev. 0x2c000000 re1: MAC rev. 0x00200000 miibus1: on re1 rgephy1: PHY 1 on = miibus1 rgephy1: OUI 0x00e04c, model 0x0011, rev. 4 rgephy1: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, = 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, = 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT- FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow re1: bpf attached re1: Ethernet address: 00:0d:b9:34:28:c5 pcib3: irq 18 at device 6.0 on pci0 pcib0: allocated type 4 (0x3000-0x3fff) for rid 1c of pcib3 pcib0: allocated type 3 (0xf7d00000-0xf7dfffff) for rid 20 of pcib3 pcib0: allocated type 3 (0xf7c00000-0xf7cfffff) for rid 24 of pcib3 pcib3: domain 0 pcib3: secondary bus 3 pcib3: subordinate bus 3 pcib3: I/O decode 0x3000-0x3fff pcib3: memory decode 0xf7d00000-0xf7dfffff pcib3: prefetched decode 0xf7c00000-0xf7cfffff pci3: on pcib3 pci3: domain=3D0, physical bus=3D3 found-> vendor=3D0x10ec, dev=3D0x8168, revid=3D0x06 domain=3D0, bus=3D3, slot=3D0, func=3D0 class=3D02-00-00, hdrtype=3D0x00, mfdev=3D0 cmdreg=3D0x0007, statreg=3D0x0010, cachelnsz=3D16 (dwords) lattimer=3D0x00 (0 ns), mingnt=3D0x00 (0 ns), maxlat=3D0x00 (0 = ns) intpin=3Da, irq=3D10 powerspec 3 supports D0 D1 D2 D3 current D0 MSI supports 1 message, 64 bit MSI-X supports 4 messages in map 0x20 map[10]: type I/O Port, range 32, base 0x3000, size 8, enabled pcib3: allocated I/O port range (0x3000-0x30ff) for rid 10 of pci0:3:0:0 map[18]: type Memory, range 64, base 0xf7d00000, size 12, = enabled pcib3: allocated memory range (0xf7d00000-0xf7d00fff) for rid 18 of = pci0:3:0:0 map[20]: type Prefetchable Memory, range 64, base 0xf7c00000, = size 14, enabled pcib3: allocated prefetch range (0xf7c00000-0xf7c03fff) for rid 20 of = pci0:3:0:0 pcib3: matched entry for 3.0.INTA pcib3: slot 0 INTA hardwired to IRQ 18 re2: port = 0x3000-0x30ff mem 0xf7d00000-0xf7d00fff,0xf7c00000-0xf7c03fff irq 18 at = device 0.0 on pci3 re2: MSI count : 1 re2: MSI-X count : 4 re2: attempting to allocate 1 MSI-X vectors (4 supported) msi: routing MSI-X IRQ 261 to local APIC 0 vector 56 re2: using IRQ 261 for MSI-X re2: Using 1 MSI-X message re2: ASPM disabled re2: Chip rev. 0x80000000 re2: MAC rev. 0x00000000 <=97=97=97=97=97=97=97=97=97------------ = notice this is now zero! re2: Unknown H/W revision: 0x80000000 device_attach: re2 attach returned 6 =85 thanks, danny