The following reply was made to PR kernel/6631; it has been noted by GNATS.

From: Andrew Fresh <[email protected]>
To: Mark Kettenis <[email protected]>
Cc: [email protected]
Subject: Re: kernel/6631: DDB during boot on Dell Dimension E521
Date: Thu, 9 Jun 2011 16:33:30 -0700

 On Thu, Jun 09, 2011 at 03:25:01PM -0600, Mark Kettenis wrote:
 >  > From: Andrew Fresh <[email protected]>
 >  >  0:0:5: NVIDIA C51 Memory
 >  >   0x0000: Vendor ID: 10de Product ID: 02ff
 >  >   0x0004: Command: 0006 Status ID: 00b0
 >  >   0x0008: Class: 05 Subclass: 00 Interface: 00 Revision: a2
 >  >   0x000c: BIST: 00 Header Type: 80 Latency Timer: 00 Cache Line Size: 00
 >  >   0x0010: BAR empty (00000000)
 >  >   0x0014: BAR empty (00000000)
 >  >   0x0018: BAR empty (00000000)
 >  >   0x001c: BAR empty (00000000)
 >  >   0x0020: BAR empty (00000000)
 >  >   0x0024: BAR empty (00000000)
 >  >   0x0028: Cardbus CIS: 00000000
 >  >   0x002c: Subsystem Vendor ID: 10de Product ID: 02ff
 >  >   0x0030: Expansion ROM Base Address: 00000000
 >  >   0x0038: 00000000
 >  >   0x003c: Interrupt Pin: 00 Line: ff Min Gnt: 00 Max Lat: 00
 >  >   0x0044: Capability 0x00: Reserved
 >  >   0x0000: 02ff10de 00b00006 050000a2 00800000
 >  >   0x0010: 00000000 00000000 00000000 00000000
 >  >   0x0020: 00000000 00000000 00000000 02ff10de
 >  >   0x0030: 00000000 00000044 00000000 000000ff
 >  >   0x0040: 00000017 00fefe00 00fefe00 00fefe00
 >  
 >  That PCI device has a broken Capabilities List.  Can you try the diff
 >  below?
 >  
 >  Index: pci.c
 >  ===================================================================
 >  RCS file: /cvs/src/sys/dev/pci/pci.c,v
 >  retrieving revision 1.92
 >  diff -u -p -r1.92 pci.c
 >  --- pci.c   30 May 2011 19:09:46 -0000      1.92
 >  +++ pci.c   9 Jun 2011 21:10:22 -0000
 >  @@ -564,10 +564,13 @@ pci_get_capability(pci_chipset_tag_t pc,
 >   
 >      ofs = PCI_CAPLIST_PTR(pci_conf_read(pc, tag, ofs));
 >      while (ofs != 0) {
 >  -#ifdef DIAGNOSTIC
 >  +           /*
 >  +            * Some devices, like parts of the NVIDIA C51 chipset,
 >  +            * have a broken Capabilities List.  So we need to do
 >  +            * a sanity check here.
 >  +            */
 >              if ((ofs & 3) || (ofs < 0x40))
 >  -                   panic("pci_get_capability");
 >  -#endif
 >  +                   return (0);
 >              reg = pci_conf_read(pc, tag, ofs);
 >              if (PCI_CAPLIST_CAP(reg) == capid) {
 >                      if (offset)
 
 I did and the machine now boots! Hurray and thank you! 
 
 Anything else to try?
 
 (now to figure out why I can no longer type into X apps)
 
 l8rZ,
 -- 
 andrew - http://afresh1.com
 
 Real programmers don't document.
           If it was hard to write, it should be hard to understand.
 OpenBSD 4.9-current (GENERIC.MP) #0: Thu Jun  9 16:07:21 MST 2011
     
[email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
 real mem = 1071513600 (1021MB)
 avail mem = 1028919296 (981MB)
 mainbus0 at root
 bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf0000 (63 entries)
 bios0: vendor Dell Inc version "1.1.11" date 08/02/2007
 bios0: Dell Inc Dimension E521
 acpi0 at bios0: rev 0
 acpi0: sleep states S0 S1 S3 S4 S5
 acpi0: tables DSDT FACP BOOT SSDT HPET MCFG SLIC APIC
 acpi0: wakeup devices HUB0(S5) XVRA(S5) XVRB(S5) XVRC(S5) USB0(S3) USB2(S3) 
AZAD(S5) MMAC(S5) MMCI(S5)
 acpitimer0 at acpi0: 3579545 Hz, 24 bits
 acpihpet0 at acpi0: 25000000 Hz
 acpimcfg0 at acpi0 addr 0xf0000000, bus 0-63
 acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
 cpu0 at mainbus0: apid 0 (boot processor)
 cpu0: AMD Athlon(tm) 64 X2 Dual Core Processor 3800+, 2004.48 MHz
 cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
 cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 
16-way L2 cache
 cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
 cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
 cpu0: apic clock running at 200MHz
 cpu1 at mainbus0: apid 1 (application processor)
 cpu1: AMD Athlon(tm) 64 X2 Dual Core Processor 3800+, 2004.18 MHz
 cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
 cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 
16-way L2 cache
 cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
 cpu1: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
 ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 11, 24 pins
 ioapic0: misconfigured as apic 0, remapped to apid 2
 acpiprt0 at acpi0: bus 0 (PCI0)
 acpiprt1 at acpi0: bus 4 (HUB0)
 acpicpu0 at acpi0: PSS
 acpicpu1 at acpi0: PSS
 acpibtn0 at acpi0: PWRB
 cpu0: PowerNow! K8 2004 MHz: speeds: 2000 1800 1000 MHz
 pci0 at mainbus0 bus 0
 "NVIDIA C51 Host" rev 0xa2 at pci0 dev 0 function 0 not configured
 "NVIDIA C51 Memory" rev 0xa2 at pci0 dev 0 function 1 not configured
 "NVIDIA C51 Memory" rev 0xa2 at pci0 dev 0 function 2 not configured
 "NVIDIA C51 Memory" rev 0xa2 at pci0 dev 0 function 3 not configured
 "NVIDIA C51 Memory" rev 0xa2 at pci0 dev 0 function 4 not configured
 "NVIDIA C51 Memory" rev 0xa2 at pci0 dev 0 function 5 not configured
 "NVIDIA C51 Memory" rev 0xa2 at pci0 dev 0 function 6 not configured
 "NVIDIA C51 Memory" rev 0xa2 at pci0 dev 0 function 7 not configured
 ppb0 at pci0 dev 2 function 0 "NVIDIA C51 PCIE" rev 0xa1
 pci1 at ppb0 bus 1
 ppb1 at pci0 dev 3 function 0 "NVIDIA C51 PCIE" rev 0xa1
 pci2 at ppb1 bus 2
 ppb2 at pci0 dev 4 function 0 "NVIDIA C51 PCIE" rev 0xa1
 pci3 at ppb2 bus 3
 vga1 at pci3 dev 0 function 0 "ATI FireMV 2200 5B65" rev 0x80
 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
 wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
 radeondrm0 at vga1: apic 2 int 10
 drm0 at radeondrm0
 "ATI FireMV 2200 Sec" rev 0x80 at pci3 dev 0 function 1 not configured
 "NVIDIA MCP51 Host" rev 0xa2 at pci0 dev 9 function 0 not configured
 pcib0 at pci0 dev 10 function 0 "NVIDIA MCP51 ISA" rev 0xa3
 nviic0 at pci0 dev 10 function 1 "NVIDIA MCP51 SMBus" rev 0xa3
 iic0 at nviic0
 spdmem0 at iic0 addr 0x52: 512MB DDR2 SDRAM non-parity PC2-4200CL5
 spdmem1 at iic0 addr 0x53: 512MB DDR2 SDRAM non-parity PC2-4200CL5
 iic1 at nviic0
 "NVIDIA MCP51 Memory" rev 0xa3 at pci0 dev 10 function 2 not configured
 ohci0 at pci0 dev 11 function 0 "NVIDIA MCP51 USB" rev 0xa3: apic 2 int 15, 
version 1.0, legacy support
 ehci0 at pci0 dev 11 function 1 "NVIDIA MCP51 USB" rev 0xa3: apic 2 int 5
 usb0 at ehci0: USB revision 2.0
 uhub0 at usb0 "NVIDIA EHCI root hub" rev 2.00/1.00 addr 1
 pciide0 at pci0 dev 14 function 0 "NVIDIA MCP51 SATA" rev 0xa1: DMA
 pciide0: using apic 2 int 10 for native-PCI interrupt
 wd0 at pciide0 channel 0 drive 0: <SAMSUNG HD160JJ/P>
 wd0: 16-sector PIO, LBA48, 152587MB, 312500000 sectors
 wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 6
 atapiscsi0 at pciide0 channel 1 drive 0
 scsibus0 at atapiscsi0: 2 targets
 cd0 at scsibus0 targ 0 lun 0: <SONY, DVD-ROM DDU1615S, EDS3> ATAPI 5/cdrom 
removable
 cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 5
 pciide1 at pci0 dev 15 function 0 "NVIDIA MCP51 SATA" rev 0xa1: DMA
 pciide1: using apic 2 int 11 for native-PCI interrupt
 ppb3 at pci0 dev 16 function 0 "NVIDIA MCP51 PCI-PCI" rev 0xa2
 pci4 at ppb3 bus 4
 bce0 at pci4 dev 7 function 0 "Broadcom BCM4401B1" rev 0x02: apic 2 int 7, 
address 00:18:8b:87:11:74
 bmtphy0 at bce0 phy 1: BCM4401 10/100baseTX PHY, rev. 0
 fxp0 at pci4 dev 8 function 0 "Intel 8255x" rev 0x08, i82559: apic 2 int 5, 
address 00:02:b3:65:55:d0
 inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
 azalia0 at pci0 dev 16 function 1 "NVIDIA MCP51 HD Audio" rev 0xa2: apic 2 int 
5
 azalia0: codecs: Sigmatel STAC9227X
 audio0 at azalia0
 pchb0 at pci0 dev 24 function 0 "AMD AMD64 0Fh HyperTransport" rev 0x00
 pchb1 at pci0 dev 24 function 1 "AMD AMD64 0Fh Address Map" rev 0x00
 pchb2 at pci0 dev 24 function 2 "AMD AMD64 0Fh DRAM Cfg" rev 0x00
 kate0 at pci0 dev 24 function 3 "AMD AMD64 0Fh Misc Cfg" rev 0x00: core rev 
BH-F2
 isa0 at pcib0
 isadma0 at isa0
 pckbc0 at isa0 port 0x60/5
 pckbd0 at pckbc0 (kbd slot)
 pckbc0: using irq 1 for kbd slot
 wskbd0 at pckbd0: console keyboard, using wsdisplay0
 pcppi0 at isa0 port 0x61
 spkr0 at pcppi0
 usb1 at ohci0: USB revision 1.0
 uhub1 at usb1 "NVIDIA OHCI root hub" rev 1.00/1.00 addr 1
 mtrr: Pentium Pro MTRR support
 uhub2 at uhub0 port 4 "NEC Corporation USB2.0 Hub Controller" rev 2.00/1.00 
addr 2
 uhub3 at uhub1 port 3 "Texas Instruments UT-USB41 hub" rev 1.00/1.00 addr 2
 ugen0 at uhub3 port 2 "Cambridge Silicon Radio Bluetooth" rev 1.10/5.25 addr 3
 uhidev0 at uhub1 port 5 configuration 1 interface 0 "Sun Microsystems Type 6 
Keyboard" rev 1.10/2.00 addr 4
 uhidev0: iclass 3/1
 ukbd0 at uhidev0: 8 modifier keys, 6 key codes, country code 33
 wskbd1 at ukbd0 mux 1
 wskbd1: connecting to wsdisplay0
 uhidev1 at uhub1 port 6 configuration 1 interface 0 "Logitech Trackball" rev 
1.10/2.20 addr 5
 uhidev1: iclass 3/1
 ums0 at uhidev1: 3 buttons, Z dir
 wsmouse0 at ums0 mux 0
 vscsi0 at root
 scsibus1 at vscsi0: 256 targets
 softraid0 at root
 root on wd0a swap on wd0b dump on wd0b

Reply via email to