Re: No root filesystem

From: Mark Atkinson <atkin901_at_yahoo.com>
Date: Thu, 11 Sep 2008 09:20:47 -0700
Peter Wemm wrote:

> On Tue, Sep 9, 2008 at 1:36 PM, clemens fischer
> <ino-news_at_spotteswoode.dnsalias.org> wrote:
>> On Tue, 9 Sep 2008 08:49:00 +0200 Pascal Hofstee wrote:
>>
>>> Seems that the actual file is
>>> http://people.freebsd.org/~jhb/patches/pci_mcfg_k8.patch
>>
>> I tried the patch, but it doesn't give me back device="Athlon
>> 64/Opteron Miscellaneous Control", which is the basis for using the
>> ports k8temp.  otherwise, the patch didn't broke anything else.
> 
> Try the patch again, but change both instances of this line:
> 
> if (cfgmech == CFGMECH_PCIE && (bus != 0 || !(slot & pcie_badslots)))
> to:
> if (cfgmech == CFGMECH_PCIE && (bus != 0 || !((1u << slot) &
> pcie_badslots)))
> 
> ie:  "slot" -> "(1u << slot)"
> 
> This made the missing devices come back for me *and* fixed my Xserver.
> 

I cvsup'd this morning when I saw John check-in this patch + fixup and
rebuilt, unfortunately on the Tyan 2895, it still fails to enumerate some
of the devices on the pci/pci-x bus.

Specifically it fails to find the secondary nfe device and two 64bit em
devices in the pci-x slots.   What follows are the differences from a
kernel built from 'csup date=2008.08.22.01.00.00' and todays checkins.  I
manually verified the new source was in the tree before building.

summary:

- PCIe callout, no pcib1 notification
- no pcib1 memory decode callout
- pci16 not probed - as a result no pcib4/pcib6 and thus
- pci17/19 not found/probed - as a result no pcib5, etc..
- various vector differences

--- /var/tmp/08222008-dmesg.txt 2008-09-11 01:49:31.000000000 -0700
+++ /var/tmp/09112008-dmesg.txt 2008-09-11 02:01:10.000000000 -0700
_at__at_ -2,13 +2,13 _at__at_
 Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
 FreeBSD is a registered trademark of The FreeBSD Foundation.
-FreeBSD 8.0-CURRENT #18: Mon Sep  8 08:47:05 PDT 2008
+FreeBSD 8.0-CURRENT #19: Thu Sep 11 08:04:50 PDT 2008
     root_at_marka-k8we.pdsea.f5net.com:/usr/obj/usr/src/sys/K8WE
 WARNING: WITNESS option enabled, expect reduced performance.
-Preloaded elf kernel "/boot/kernel/kernel" at 0xc1050000.
-Preloaded elf module "/boot/kernel/acpi.ko" at 0xc10501c0.
+Preloaded elf kernel "/boot/kernel.broken/kernel" at 0xc106d000.
+Preloaded elf module "/boot/kernel.broken/acpi.ko" at 0xc106d1c8.
 Timecounter "i8254" frequency 1193182 Hz quality 0
-Calibrating TSC clock ... TSC clock: 2612051715 Hz
+Calibrating TSC clock ... TSC clock: 2612051783 Hz
 CPU: AMD Opteron(tm) Processor 252 (2612.05-MHz 686-class CPU)
   Origin = "AuthenticAMD"  Id = 0x20f51  Stepping = 1
  
Features=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2>
_at__at_ -94,8 +94,8 _at__at_
 Pentium Pro MTRR support enabled
 io: <I/O>
 null: <null device, zero device>
-ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
-hptrr: RocketRAID 17xx/2xxx SATA controller driver v1.2 (Sep  8 2008
08:46:12)
+ath_hal: 0.10.5.10 (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413,
RF5413, RF2133, RF2425, RF2417)
+hptrr: RocketRAID 17xx/2xxx SATA controller driver v1.2 (Sep 11 2008
08:03:53)
 npx0: INT 16 interface
 cryptosoft0: <software crypto> on motherboard
 crypto: assign cryptosoft0 driver id 0, flags 100663296
_at__at_ -120,15 +120,13 _at__at_
 crypto: cryptosoft0 registers alg 21 flags 0 maxoplen 0
 crypto: cryptosoft0 registers alg 17 flags 0 maxoplen 0
 acpi0: <PTLTD   RSDT> on motherboard
+PCIe: Memory Mapped configuration base _at_ 0xe0000000
+pcibios: BIOS version 2.10
 ioapic0: routing intpin 9 (ISA IRQ 9) to vector 48
 acpi0: [MPSAFE]
 acpi0: [ITHREAD]
 acpi0: Power Button (fixed)
 acpi0: wakeup code va 0xc529c000 pa 0x1000
-pci_open(1):   mode 1 addr port (0x0cf8) is 0x00000000
-pci_open(1a):  mode1res=0x80000000 (0x80000000)
-pci_cfgcheck:  device 0 [class=058000] [hdr=00] is there (id=005e10de)
-pcibios: BIOS version 2.10
 acpi_bus_number: root bus has no _BBN, assuming 0
 AcpiOsDerivePciId: \\_SB_.PCI0.LPC0.P44_ -> bus 0 dev 1 func 0
 acpi_bus_number: root bus has no _BBN, assuming 0
_at__at_ -466,8 +464,8 _at__at_
 atapci0: Reserved 0x1 bytes for rid 0x14 type 4 at 0x3f6
 ata0: reset tp1 mask=03 ostat0=50 ostat1=50
 ata0: stat0=0x00 err=0x01 lsb=0x14 msb=0xeb
-ata0: stat1=0x52 err=0x01 lsb=0x00 msb=0x00
-ata0: reset tp2 stat0=00 stat1=52 devices=0x10002
+ata0: stat1=0x50 err=0x01 lsb=0x00 msb=0x00
+ata0: reset tp2 stat0=00 stat1=50 devices=0x10002
 ioapic0: routing intpin 14 (ISA IRQ 14) to vector 51
 ata0: [MPSAFE]
 ata0: [ITHREAD]
_at__at_ -527,7 +525,6 _at__at_
 pcib1:   secondary bus     1
 pcib1:   subordinate bus   1
 pcib1:   I/O decode        0xf000-0xfff
-pcib1:   memory decode     0xda100000-0xda1fffff
 pcib1:   no prefetched decode
 pcib1:   Subtractively decoded bridge.
 pci1: <ACPI PCI bus> on pcib1
_at__at_ -553,177 +550,16 _at__at_
 pcib3: could not get PCI interrupt routing table for \\_SB_.PCI2 -
AE_NOT_FOUND
 pci16: <ACPI PCI bus> on pcib3
 pci16: domain=0, physical bus=16
-found->        vendor=0x1022, dev=0x7450, revid=0x12
-       domain=0, bus=16, slot=10, func=0
-       class=06-04-00, hdrtype=0x01, mfdev=1
-       cmdreg=0x0117, statreg=0x0230, cachelnsz=0 (dwords)
-       lattimer=0x63 (2970 ns), mingnt=0x0c (3000 ns), maxlat=0x00 (0 ns)
-found->        vendor=0x1022, dev=0x7451, revid=0x01
-       domain=0, bus=16, slot=10, func=1
-       class=08-00-10, hdrtype=0x00, mfdev=0
-       cmdreg=0x0006, statreg=0x0200, cachelnsz=0 (dwords)
-       lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
-       map[10]: type Memory, range 64, base 0xda400000, size 12, enabled
-found->        vendor=0x1022, dev=0x7450, revid=0x12
-       domain=0, bus=16, slot=11, func=0
-       class=06-04-00, hdrtype=0x01, mfdev=1
-       cmdreg=0x0117, statreg=0x0230, cachelnsz=0 (dwords)
-       lattimer=0x40 (1920 ns), mingnt=0x04 (1000 ns), maxlat=0x00 (0 ns)
-found->        vendor=0x1022, dev=0x7451, revid=0x01
-       domain=0, bus=16, slot=11, func=1
-       class=08-00-10, hdrtype=0x00, mfdev=0
-       cmdreg=0x0006, statreg=0x0200, cachelnsz=0 (dwords)
-       lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
-       map[10]: type Memory, range 64, base 0xda401000, size 12, enabled
-pcib4: <ACPI PCI-PCI bridge> at device 10.0 on pci16
-pcib4:   domain            0
-pcib4:   secondary bus     17
-pcib4:   subordinate bus   18
-pcib4:   I/O decode        0xf000-0xfff
-pcib4:   memory decode     0xda500000-0xdaffffff
-pcib4:   prefetched decode 0xdc000000-0xddffffff
-pci17: <ACPI PCI bus> on pcib4
-pci17: domain=0, physical bus=17
-found->        vendor=0x3388, dev=0x0021, revid=0x15
-       domain=0, bus=17, slot=4, func=0
-       class=06-04-00, hdrtype=0x01, mfdev=0
-       cmdreg=0x0107, statreg=0x0290, cachelnsz=16 (dwords)
-       lattimer=0x63 (2970 ns), mingnt=0x0c (3000 ns), maxlat=0x00 (0 ns)
-       powerspec 2  supports D0 D1 D2 D3  current D0
-pcib5: <PCI-PCI bridge> at device 4.0 on pci17
-pcib5:   domain            0
-pcib5:   secondary bus     18
-pcib5:   subordinate bus   18
-pcib5:   I/O decode        0xf000-0xfff
-pcib5:   memory decode     0xda500000-0xdaffffff
-pcib5:   prefetched decode 0xdc000000-0xddffffff
-pci18: <PCI bus> on pcib5
-pci18: domain=0, physical bus=18
-found->        vendor=0x102b, dev=0x0525, revid=0x85
-       domain=0, bus=18, slot=0, func=0
-       class=03-00-00, hdrtype=0x00, mfdev=0
-       cmdreg=0x0007, statreg=0x0290, cachelnsz=16 (dwords)
-       lattimer=0x80 (3840 ns), mingnt=0x10 (4000 ns), maxlat=0x20 (8000
ns)
-       intpin=a, irq=5
-       powerspec 2  supports D0 D3  current D0
-       map[10]: type Prefetchable Memory, range 32, base 0xdc000000, size
25, enabled
-pcib5: requested memory range 0xdc000000-0xddffffff: good
-pcib4: requested memory range 0xdc000000-0xddffffff: good
-       map[14]: type Memory, range 32, base 0xda500000, size 14, enabled
-pcib5: requested memory range 0xda500000-0xda503fff: good
-pcib4: requested memory range 0xda500000-0xda503fff: good
-       map[18]: type Memory, range 32, base 0xda800000, size 23, enabled
-pcib5: requested memory range 0xda800000-0xdaffffff: good
-pcib4: requested memory range 0xda800000-0xdaffffff: good
-pcib4: matched entry for 17.4.INTA
-pcib4: slot 4 INTA hardwired to IRQ 24
-pcib5: slot 0 INTA is routed to irq 24
-vgapci0: <VGA-compatible display> mem
0xdc000000-0xddffffff,0xda500000-0xda503fff,0xda800000-0xdaffffff irq 24 at
device 0.0 on pci18
-pcib6: <ACPI PCI-PCI bridge> at device 11.0 on pci16
-pcib6:   domain            0
-pcib6:   secondary bus     19
-pcib6:   subordinate bus   19
-pcib6:   I/O decode        0xf000-0xfff
-pcib6:   memory decode     0xdb000000-0xdb0fffff
-pcib6:   no prefetched decode
-pci19: <ACPI PCI bus> on pcib6
-pci19: domain=0, physical bus=19
-found->        vendor=0x8086, dev=0x1000, revid=0x03
-       domain=0, bus=19, slot=4, func=0
-       class=02-00-00, hdrtype=0x00, mfdev=0
-       cmdreg=0x0116, statreg=0x0210, cachelnsz=16 (dwords)
-       lattimer=0x40 (1920 ns), mingnt=0xff (63750 ns), maxlat=0x00 (0 ns)
-       intpin=a, irq=5
-       powerspec 1  supports D0 D3  current D0
-       map[10]: type Memory, range 32, base 0xdb000000, size 17, enabled
-pcib6: requested memory range 0xdb000000-0xdb01ffff: good
-pcib6: matched entry for 19.4.INTA
-pcib6: slot 4 INTA hardwired to IRQ 28
-found->        vendor=0x8086, dev=0x1000, revid=0x03
-       domain=0, bus=19, slot=9, func=0
-       class=02-00-00, hdrtype=0x00, mfdev=0
-       cmdreg=0x0116, statreg=0x0210, cachelnsz=16 (dwords)
-       lattimer=0x40 (1920 ns), mingnt=0xff (63750 ns), maxlat=0x00 (0 ns)
-       intpin=a, irq=11
-       powerspec 1  supports D0 D3  current D0
-       map[10]: type Memory, range 32, base 0xdb020000, size 17, enabled
-pcib6: requested memory range 0xdb020000-0xdb03ffff: good
-pcib6: matched entry for 19.9.INTA
-pcib6: slot 9 INTA hardwired to IRQ 29
-em0: <Intel(R) PRO/1000 Network Connection 6.9.5> mem 0xdb000000-0xdb01ffff
irq 28 at device 4.0 on pci19
-em0: Reserved 0x20000 bytes for rid 0x10 type 3 at 0xdb000000
-ioapic2: routing intpin 0 (PCI IRQ 28) to vector 54
-em0: [FILTER]
-em0: bpf attached
-em0: Ethernet address: 00:d0:b7:82:75:20
-em1: <Intel(R) PRO/1000 Network Connection 6.9.5> mem 0xdb020000-0xdb03ffff
irq 29 at device 9.0 on pci19
-em1: Reserved 0x20000 bytes for rid 0x10 type 3 at 0xdb020000
-ioapic2: routing intpin 1 (PCI IRQ 29) to vector 55
-em1: [FILTER]
-em1: bpf attached
-em1: Ethernet address: 00:d0:b7:b9:5a:a4
-pcib7: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
-pci128: <ACPI PCI bus> on pcib7
+pcib4: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
+pci128: <ACPI PCI bus> on pcib4
 pci128: domain=0, physical bus=128
-found->        vendor=0x10de, dev=0x005e, revid=0xa3
-       domain=0, bus=128, slot=0, func=0
-       class=05-80-00, hdrtype=0x00, mfdev=0
-       cmdreg=0x0006, statreg=0x00b0, cachelnsz=0 (dwords)
-       lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
-found->        vendor=0x10de, dev=0x00d3, revid=0xa3
-       domain=0, bus=128, slot=1, func=0
-       class=05-80-00, hdrtype=0x00, mfdev=1
-       cmdreg=0x000f, statreg=0x00a0, cachelnsz=0 (dwords)
-       lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
-       map[14]: type Memory, range 32, base 0xde000000, size 12, enabled
-found->        vendor=0x10de, dev=0x0057, revid=0xa3
-       domain=0, bus=128, slot=10, func=0
-       class=06-80-00, hdrtype=0x00, mfdev=0
-       cmdreg=0x0007, statreg=0x00b0, cachelnsz=0 (dwords)
-       lattimer=0x00 (0 ns), mingnt=0x01 (250 ns), maxlat=0x14 (5000 ns)
-       intpin=a, irq=5
-       powerspec 2  supports D0 D1 D2 D3  current D0
-       MSI supports 4 messages, 64 bit
-       map[10]: type Memory, range 32, base 0xde001000, size 12, enabled
-       map[14]: type I/O Port, range 32, base 0x2000, size  3, enabled
-pcib7: matched entry for 128.10.INTA (src \\_SB_.PCI1.LMAC:0)
-pci_link22: Picked IRQ 52 with weight 0
-ioapic3: Changing polarity for pin 20 to high
-pcib7: slot 10 INTA routed to irq 52 via \\_SB_.PCI1.LMAC
-found->        vendor=0x10de, dev=0x005d, revid=0xa3
-       domain=0, bus=128, slot=14, func=0
-       class=06-04-00, hdrtype=0x01, mfdev=0
-       cmdreg=0x0107, statreg=0x0010, cachelnsz=16 (dwords)
-       lattimer=0x00 (0 ns), mingnt=0x04 (1000 ns), maxlat=0x00 (0 ns)
-       powerspec 2  supports D0 D3  current D0
-       MSI supports 2 messages, 64 bit
-pci128: <memory> at device 0.0 (no driver attached)
-pci128: <memory> at device 1.0 (no driver attached)
-nfe1: <NVIDIA nForce4 CK804 MCP9 Networking Adapter> port 0x2000-0x2007 mem
0xde001000-0xde001fff irq 52 at device 10.0 on pci128
-nfe1: Reserved 0x1000 bytes for rid 0x10 type 3 at 0xde001000
-miibus1: <MII bus> on nfe1
-e1000phy1: <Marvell 88E1111 Gigabit PHY> PHY 1 on miibus1
-e1000phy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX,
auto
-nfe1: bpf attached
-nfe1: Ethernet address: 00:e0:81:57:d9:af
-ioapic3: routing intpin 20 (PCI IRQ 52) to vector 56
-nfe1: [MPSAFE]
-nfe1: [FILTER]
-pcib8: <ACPI PCI-PCI bridge> at device 14.0 on pci128
-pcib8:   domain            0
-pcib8:   secondary bus     129
-pcib8:   subordinate bus   129
-pcib8:   I/O decode        0xf000-0xfff
-pcib8:   no prefetched decode
-pci129: <ACPI PCI bus> on pcib8
-pci129: domain=0, physical bus=129
 atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0
 atrtc0: registered as a time-of-day clock (resolution 1000000us)
 atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
 atkbd0: <AT Keyboard> irq 1 on atkbdc0
 kbd0 at atkbd0
 kbd0: atkbd0, generic (0), config:0x0, flags:0x1f0000
-ioapic0: routing intpin 1 (ISA IRQ 1) to vector 57
+ioapic0: routing intpin 1 (ISA IRQ 1) to vector 54
 atkbd0: [GIANT-LOCKED]
 atkbd0: [ITHREAD]
 psm0: unable to allocate IRQ
_at__at_ -732,7 +568,7 _at__at_
 psm0: failed to reset the aux device.
 fdc0: <floppy drive controller> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
 fdc0: ic_type 90 part_id 80
-ioapic0: routing intpin 6 (ISA IRQ 6) to vector 58
+ioapic0: routing intpin 6 (ISA IRQ 6) to vector 55
 fdc0: [FILTER]
 fd0: <1440-KB 3.5" drive> on fdc0 drive 0
 cpu0: <ACPI CPU> on acpi0
_at__at_ -792,7 +628,7 _at__at_
 sc0: fb0, kbd1, terminal emulator: sc (syscons terminal)
 sn0: not probed (disabled)
 uart0: <16550 or compatible> at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
-ioapic0: routing intpin 4 (ISA IRQ 4) to vector 59
+ioapic0: routing intpin 4 (ISA IRQ 4) to vector 56
 uart0: [FILTER]
 uart0: fast interrupt
 uart0: console (115200,n,8,1)
_at__at_ -804,14 +640,14 _at__at_
 Device configuration finished.
 Reducing kern.maxvnodes 133917 -> 100000
 procfs registered
-lapic: Divisor 2, Frequency 100463528 hz
-Timecounter "TSC" frequency 2612051715 Hz quality -100
+lapic: Divisor 2, Frequency 100463535 hz
+Timecounter "TSC" frequency 2612051783 Hz quality -100
 Timecounters tick every 1.000 msec
-crypto: <crypto device>
 vlan: initialized, using hash tables with chaining
+crypto: <crypto device>
 IPsec: Initialized Security Association Processing.
-lo0: bpf attached
 pflog0: bpf attached
+lo0: bpf attached
 hptrr: no controller detected.
 ata0: identify ch->devices=00010002
 ata0-master: pio=PIO4 wdma=WDMA2 udma=UDMA66 cable=40 wire
_at__at_ -950,154 +786,106 _at__at_
 ioapic0: Assigning PCI IRQ 20 to local APIC 0
 ioapic0: Assigning PCI IRQ 21 to local APIC 1
 ioapic0: Assigning PCI IRQ 23 to local APIC 0
-ioapic2: Assigning PCI IRQ 28 to local APIC 1
-ioapic2: Assigning PCI IRQ 29 to local APIC 0
-ioapic3: Assigning PCI IRQ 52 to local APIC 1
 WARNING: WITNESS option enabled, expect reduced performance.
 GEOM: new disk ad1
 GEOM: new disk ad4
 GEOM: new disk ad6
 GEOM: new disk ar0

-- 
Mark Atkinson
atkin901_at_yahoo.com
(!wired)?(coffee++):(wired);
Received on Thu Sep 11 2008 - 14:21:07 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:35 UTC