Subject: panic with NetBSD 4.0_BETA2 INSTALL kernel from 2007-07-03
To: None <current-users@NetBSD.org>
From: Klaus Heinz <k.heinz.jul.sieben@kh-22.de>
List: current-users
Date: 07/10/2007 22:41:31
Hi,

as the subject says, the 4.0BETA2 INSTALL kernel on a CD made from 
an iso image from releng.NetBSD.org produced a panic:

  >> NetBSD/amd64 BIOS Boot, Revision 3.3
  >> (builds@wb28, Tue Jul  3 07:57:49 PDT 2007)
  >> Memory: 635/2089984 k
  > boot
  booting cd0a:netbsd
  3869144+5361688+240432=0xa09008
  Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
      The NetBSD Foundation, Inc.  All rights reserved.
  Copyright (c) 1982, 1986, 1989, 1991, 1993
      The Regents of the University of California.  All rights reserved.
  
  NetBSD 4.0_BETA2 (INSTALL) #0: Tue Jul  3 09:12:54 PDT 2007
        builds@wb28:/home/builds/ab/netbsd-4/amd64/200707030002Z-obj/home/builds
  /ab/netbsd-4/src/sys/arch/amd64/compile/INSTALL
  total memory = 2042 MB
  avail memory = 1958 MB
  timecounter: Timecounters tick every 10.000 msec
  RTC BIOS diagnostic error 9<fixed_disk>
  timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
  mainbus0 (root)
  cpu0 at mainbus0: apid 0 (boot processor)
  cpu0: Intel(R) Xeon(R) CPU           L5320  @ 1.86GHz, 1861.99 MHz
  cpu0: calibrating local timer
  cpu0: apic clock running at 265 MHz
  cpu0: 64 page colors
  cpu1 at mainbus0: apid 2 (application processor)
  cpu1: not started
  cpu2 at mainbus0: apid 1 (application processor)
  cpu2: not started
  cpu3 at mainbus0: apid 3 (application processor)
  cpu3: not started
  ioapic0 at mainbus0 apid 8 (I/O APIC)
  ioapic0: pa 0xfec00000, version 20, 24 pins
  ioapic1 at mainbus0 apid 9 (I/O APIC)
  ioapic1: pa 0xfec80000, version 20, 24 pins
  acpi0 at mainbus0: Advanced Configuration and Power Interface
  acpi0: fixed-feature power button present
  timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
  ACPI-Fast 24-bit timer
  panic: pci_make_tag: bad request

  The operating system has halted.
  Please press any key to reboot.


As the last few lines referred to ACPI, I restarted the machine and
disabled ACPI:

  >> NetBSD/amd64 BIOS Boot, Revision 3.3
  >> (builds@wb28, Tue Jul  3 07:57:49 PDT 2007)
  >> Memory: 635/2089984 k
  > boot -c
  booting cd0a:netbsd (howto 0x1000)
  3869144+5361688+240432=0xa09008
  Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
      The NetBSD Foundation, Inc.  All rights reserved.
  Copyright (c) 1982, 1986, 1989, 1991, 1993
      The Regents of the University of California.  All rights reserved.
  
  NetBSD 4.0_BETA2 (INSTALL) #0: Tue Jul  3 09:12:54 PDT 2007
        builds@wb28:/home/builds/ab/netbsd-4/amd64/200707030002Z-obj/home/builds
  /ab/netbsd-4/src/sys/arch/amd64/compile/INSTALL
  total memory = 2042 MB
  avail memory = 1958 MB
  timecounter: Timecounters tick every 10.000 msec
  userconf: configure system autoconfiguration:
  uc> disable acpi
  [162] acpi0 disabled
  uc> quit
  Continuing...
  RTC BIOS diagnostic error 9<fixed_disk>
  timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
  mainbus0 (root)
  mainbus0: Intel MP Specification (Version 1.4) (INTEL    S5000PAL    )
  cpu0 at mainbus0: apid 0 (boot processor)
  cpu0: Intel(R) Xeon(R) CPU           L5320  @ 1.86GHz, 1862.00 MHz
  cpu0: calibrating local timer
  cpu0: apic clock running at 265 MHz
  cpu0: 64 page colors
  cpu1 at mainbus0: apid 1 (application processor)
  cpu1: not started
  cpu2 at mainbus0: apid 2 (application processor)
  cpu2: not started
  cpu3 at mainbus0: apid 3 (application processor)
  cpu3: not started
  mpbios: bus 0 is type PCI
  mpbios: bus 1 is type PCI
  mpbios: bus 2 is type PCI
  mpbios: bus 3 is type PCI
  mpbios: bus 4 is type PCI
  mpbios: bus 5 is type PCI
  mpbios: bus 6 is type PCI
  mpbios: bus 7 is type PCI
  mpbios: bus 8 is type PCI
  mpbios: bus 9 is type PCI
  mpbios: bus 10 is type PCI
  mpbios: bus 11 is type PCI
  mpbios: bus 12 is type PCI
  mpbios: bus 13 is type PCI
  mpbios: bus 14 is type PCI
  mpbios: bus 15 is type ISA
  ioapic0 at mainbus0 apid 8 (I/O APIC)
  ioapic0: pa 0xfec00000, version 20, 24 pins
  ioapic1 at mainbus0 apid 9 (I/O APIC)
  ioapic1: pa 0xfec80000, version 20, 24 pins
  pci0 at mainbus0 bus 0: configuration mode 1
  pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
  pchb0 at pci0 dev 0 function 0
  pchb0: vendor 0x8086 product 0x25d8 (rev. 0xb1)
  ppb0 at pci0 dev 2 function 0: vendor 0x8086 product 0x25f7 (rev. 0xb1)
  pci1 at ppb0 bus 1
  pci1: i/o space, memory space enabled, rd/line, wr/inv ok
  ppb1 at pci1 dev 0 function 0: vendor 0x8086 product 0x3500 (rev. 0x01)
  pci2 at ppb1 bus 2
  pci2: i/o space, memory space enabled, rd/line, wr/inv ok
  ppb2 at pci2 dev 0 function 0: vendor 0x8086 product 0x3510 (rev. 0x01)
  pci3 at ppb2 bus 3
  pci3: i/o space, memory space enabled, rd/line, wr/inv ok
  ppb3 at pci3 dev 0 function 0: vendor 0x8086 product 0x0370 (rev. 0x00)
  pci4 at ppb3 bus 4
  pci4: i/o space, memory space enabled, rd/line, wr/inv ok
  vendor 0x1000 product 0x0054 (SCSI mass storage, revision 0x01) at pci4 dev 8 fu
  nction 0 not configured
  ppb4 at pci3 dev 0 function 2: vendor 0x8086 product 0x0372 (rev. 0x00)
  pci5 at ppb4 bus 5
  pci5: i/o space, memory space enabled, rd/line, wr/inv ok
  ppb5 at pci2 dev 1 function 0: vendor 0x8086 product 0x3514 (rev. 0x01)
  pci6 at ppb5 bus 6
  pci6: i/o space, memory space enabled, rd/line, wr/inv ok
  ppb6 at pci2 dev 2 function 0: vendor 0x8086 product 0x3518 (rev. 0x01)
  pci7 at ppb6 bus 7
  pci7: i/o space, memory space enabled, rd/line, wr/inv ok
  wm0 at pci7 dev 0 function 0: i80003 dual 1000baseT Ethernet, rev. 1
  wm0: interrupting at ioapic0 pin 18 (irq 5)
  wm0: Ethernet address 00:04:23:dd:5c:3e
  ikphy0 at wm0 phy 1: i82563 10/100/1000 media interface, rev. 2
  ikphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX
  , auto
  wm1 at pci7 dev 0 function 1: i80003 dual 1000baseT Ethernet, rev. 1
  wm1: interrupting at ioapic0 pin 19 (irq 11)
  wm1: Ethernet address 00:04:23:dd:5c:3f
  ikphy1 at wm1 phy 1: i82563 10/100/1000 media interface, rev. 2
  ikphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX
  , auto
  ppb7 at pci1 dev 0 function 3: vendor 0x8086 product 0x350c (rev. 0x01)
  pci8 at ppb7 bus 8
  pci8: i/o space, memory space enabled, rd/line, wr/inv ok
  ppb8 at pci0 dev 3 function 0: vendor 0x8086 product 0x25e3 (rev. 0xb1)
  pci9 at ppb8 bus 9
  pci9: i/o space, memory space enabled, rd/line, wr/inv ok
  ppb9 at pci0 dev 4 function 0: vendor 0x8086 product 0x25f8 (rev. 0xb1)
  pci10 at ppb9 bus 10
  pci10: i/o space, memory space enabled, rd/line, wr/inv ok
  ppb10 at pci0 dev 5 function 0: vendor 0x8086 product 0x25e5 (rev. 0xb1)
  pci11 at ppb10 bus 11
  pci11: i/o space, memory space enabled, rd/line, wr/inv ok
  ppb11 at pci0 dev 6 function 0: vendor 0x8086 product 0x25f9 (rev. 0xb1)
  pci12 at ppb11 bus 12
  pci12: i/o space, memory space enabled, rd/line, wr/inv ok
  ppb12 at pci0 dev 7 function 0: vendor 0x8086 product 0x25e7 (rev. 0xb1)
  pci13 at ppb12 bus 13
  pci13: i/o space, memory space enabled, rd/line, wr/inv ok
  vendor 0x8086 product 0x1a38 (miscellaneous system, revision 0xb1) at pci0 dev 8
   function 0 not configured
  pchb1 at pci0 dev 16 function 0
  pchb1: vendor 0x8086 product 0x25f0 (rev. 0xb1)
  pchb2 at pci0 dev 16 function 1
  pchb2: vendor 0x8086 product 0x25f0 (rev. 0xb1)
  pchb3 at pci0 dev 16 function 2
  pchb3: vendor 0x8086 product 0x25f0 (rev. 0xb1)
  pchb4 at pci0 dev 17 function 0
  pchb4: vendor 0x8086 product 0x25f1 (rev. 0xb1)
  pchb5 at pci0 dev 19 function 0
  pchb5: vendor 0x8086 product 0x25f3 (rev. 0xb1)
  pchb6 at pci0 dev 21 function 0
  pchb6: vendor 0x8086 product 0x25f5 (rev. 0xb1)
  pchb7 at pci0 dev 22 function 0
  pchb7: vendor 0x8086 product 0x25f6 (rev. 0xb1)
  uhci0 at pci0 dev 29 function 0: vendor 0x8086 product 0x2688 (rev. 0x09)
  uhci0: interrupting at ioapic0 pin 23 (irq 11)
  usb0 at uhci0: USB revision 1.0
  uhub0 at usb0
  uhub0: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
  uhub0: 2 ports with 2 removable, self powered
  uhci1 at pci0 dev 29 function 1: vendor 0x8086 product 0x2689 (rev. 0x09)
  uhci1: interrupting at ioapic0 pin 22 (irq 5)
  usb1 at uhci1: USB revision 1.0
  uhub1 at usb1
  uhub1: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
  uhub1: 2 ports with 2 removable, self powered
  uhci2 at pci0 dev 29 function 2: vendor 0x8086 product 0x268a (rev. 0x09)
  uhci2: interrupting at ioapic0 pin 23 (irq 11)
  usb2 at uhci2: USB revision 1.0
  uhub2 at usb2
  uhub2: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
  uhub2: 2 ports with 2 removable, self powered
  uhci3 at pci0 dev 29 function 3: vendor 0x8086 product 0x268b (rev. 0x09)
  uhci3: interrupting at ioapic0 pin 22 (irq 5)
  usb3 at uhci3: USB revision 1.0
  uhub3 at usb3
  uhub3: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
  uhub3: 2 ports with 2 removable, self powered
  vendor 0x8086 product 0x268c (USB serial bus, interface 0x20, revision 0x09) at
  pci0 dev 29 function 7 not configured
  ppb13 at pci0 dev 30 function 0: vendor 0x8086 product 0x244e (rev. 0xd9)
  pci14 at ppb13 bus 14
  pci14: i/o space, memory space enabled
  vga0 at pci14 dev 12 function 0: vendor 0x1002 product 0x515e (rev. 0x02)
  wsdisplay0 at vga0 kbdmux 1
  wsmux1: connecting to wsdisplay0
  pcib0 at pci0 dev 31 function 0
  pcib0: vendor 0x8086 product 0x2670 (rev. 0x09)
  piixide0 at pci0 dev 31 function 1
  piixide0: Intel 631xESB/632xESB IDE Controller (rev. 0x09)
  piixide0: bus-master DMA support present
  piixide0: primary channel configured to compatibility mode
  piixide0: primary channel interrupting at ioapic0 pin 14 (irq 14)
  atabus0 at piixide0 channel 0
  piixide0: secondary channel configured to compatibility mode
  piixide0: secondary channel interrupting at ioapic0 pin 15 (irq 15)
  atabus1 at piixide0 channel 1
  piixide1 at pci0 dev 31 function 2
  piixide1: Intel 631xESB/632xESB Serial ATA Controller (rev. 0x09)
  piixide1: bus-master DMA support present
  piixide1: primary channel configured to native-PCI mode
  piixide1: using ioapic0 pin 20 (irq 10) for native-PCI interrupt
  atabus2 at piixide1 channel 0
  piixide1: secondary channel configured to native-PCI mode
  atabus3 at piixide1 channel 1
  vendor 0x8086 product 0x269b (SMBus serial bus, revision 0x09) at pci0 dev 31 fu
  nction 3 not configured
  isa0 at pcib0
  com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
  com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
  com1: console
  pckbc0 at isa0 port 0x60-0x64
  attimer0 at isa0 port 0x40-0x43: AT Timer
  pcppi0 at isa0 port 0x61
  sysbeep0 at pcppi0
  pcppi0: attached to attimer0
  ioapic0: enabling
  ioapic1: enabling
  timecounter: Timecounter "TSC" frequency 1862019110 Hz quality 800
  timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
  Kernelized RAIDframe activated
  md0: internal 5000 KB image area
  atapibus0 at atabus0: 2 targets
  cd0 at atapibus0 drive 1: <Slimtype COMBO SSC-2485K, , 5K06> cdrom removable
  cd0: 32-bit data port
  cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
  cd0(piixide0:0:1): using PIO mode 4, DMA mode 2 (using DMA)
  uhidev0 at uhub3 port 1 configuration 1 interface 0
  uhidev0: vendor 0x0430 product 0x0100, rev 1.10/1.05, addr 2, iclass 3/1
  uhidev1 at uhub2 port 2 configuration 1 interface 0
  uhidev1: vendor 0x0430 product 0x0005, rev 1.10/2.00, addr 2, iclass 3/1
  uhid at uhidev0 not configured
  ukbd0 at uhidev1
  wskbd0 at ukbd0 mux 1
  wskbd0: connecting to wsdisplay0
  boot device: <unknown>
  root on md0a dumps on md0b
  root file system type: ffs
  WARNING: clock gained 6 days
  WARNING: CHECK AND RESET THE DATE!
  warning: no /dev/console
  init: Creating mfs /dev (487 blocks, 1280 inodes)
  erase ^?, werase ^W, kill ^U, intr ^C

It was a surprise for me that this brand new machine does not start if
ACPI is _enabled_. From what I read on the mailing lists, modern machines
do not work _without_ ACPI.

The hardware page [1] does not list LSI SAS 1068 adapters (vendor 0x1000
product 0x0054) as supported, is this still true?

Further research[2] shows that OpenBSD's mpi driver might be what's needed
here.

ciao
     Klaus
[1]
  http://www.NetBSD.org/support/hardware/pci.html
[2]
  http://www.openbsd.org/cgi-bin/man.cgi?query=mpi&arch=i386&format=html