Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Nov 2000 13:55:37 +0100
From:      "Niels Chr. Bank-Pedersen" <ncbp@bank-pedersen.dk>
To:        current@freebsd.org
Subject:   panic - probably aic7810/398X related
Message-ID:  <20001112135536.B11660@bank-pedersen.dk>

next in thread | raw e-mail | index | archive | help
Yesterday I decided to upgrade my home server from it's PRE_SMPNG
state to -current, but now it panics just after detecting the
aic7810 RAID controller (though unsupported, the box booted happily
on an PRE_SMPNG kernel).  The 398X adapter is one of the cards that
doesn't work with AHC_ALLOW_MEMIO (as I understand it because of the
PCI-PCI bridge) so I don't know if the recent changes here has
something to do with it.

-current:

  Copyright (c) 1992-2000 The FreeBSD Project.
  Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993,
  1994
          The Regents of the University of California. All rights
  reserved.
  FreeBSD 5.0-CURRENT #0: Sun Nov 12 12:39:35 CET 2000
      root@home.somewhere.dk:/usr/obj/usr/src/sys/MAIL
  Timecounter "i8254"  frequency 1193182 Hz
  Timecounter "TSC"  frequency 166193999 Hz
  CPU: Pentium/P54C (166.19-MHz 586-class CPU)
    Origin = "GenuineIntel"  Id = 0x52c  Stepping = 12
    Features=0x1bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
  real memory  = 134217728 (131072K bytes)
  avail memory = 126603264 (123636K bytes)
  Preloaded elf kernel "kernel" at 0xc03d4000.
  Preloaded elf module "vinum.ko" at 0xc03d40a8.
  npx0: <math processor> on motherboard
  npx0: INT 16 interface
  pcib0: <Host to PCI bridge> at pcibus 0 on motherboard
  pci0: <PCI bus> on pcib0
  isab0: <Intel 82371SB PCI to ISA bridge> at device 7.0 on pci0
  isa0: <ISA bus> on isab0
  pci0: <Intel PIIX3 ATA controller> at 7.1
  pcib1: <DEC 21050 PCI-PCI bridge> at device 9.0 on pci0
  pci1: <PCI bus> on pcib1
  ahc0: <Adaptec 398X SCSI RAID adapter> port 0xd800-0xd8ff mem
  0xf9000000-0xf9000fff irq 9 at device 4.0 on pci1
  aic7870: Wide Channel A, SCSI Id=7, 16/255 SCBs
  ahc1: <Adaptec aic7810 RAID memory controller> port 0xd400-0xd4ff
  mem 0xfb000000-0xfb1fffff,0xf8800000-0xf8800fff irq 11 at device 5.0
  on pci1
  RAID functionality unsupported


  Fatal trap 12: page fault while in kernel mode
  fault virtual address   = 0x432
  fault code              = supervisor read, page not present
  instruction pointer     = 0x8:0xc013656b
  stack pointer           = 0x10:0xc03e8e30
  frame pointer           = 0x10:0xc03e8e38
  code segment            = base 0x0, limit 0xfffff, type 0x1b
                          = DPL 0, pres 1, def32 1, gran 1
  processor eflags        = interrupt enabled, resume, IOPL = 0
  current process         = 0 (swapper)
  kernel: type 12 trap, code=0
  Stopped at      ahc_fini_scbdata+0xb:   movzbl  0x432(%esi),%eax
  db> trace
  ahc_fini_scbdata(c0737000) at ahc_fini_scbdata+0xb
  ahc_free(c0737000,c0ec8080,c0efa380,c0efa180,c0283888) at
  ahc_free+0xd
  ahc_pci_attach(c0efa180,c0efa180,c0efa800,c0efa380,0) at
  ahc_pci_attach+0xea
  device_probe_and_attach(c0efa180) at device_probe_and_attach+0x8e
  bus_generic_attach(c0efa380,c0efa380,c0efac00,c0efa800,0) at
  bus_generic_attach+0x16
  device_probe_and_attach(c0efa380) at device_probe_and_attach+0x8e
  bus_generic_attach(c0efa800,c0efa800,c0efa800,c026a65f,ffffffff) at
  bus_generic_attach+0x16
  pcib_attach(c0efa800,c0efa800,c0efac80,c0efac00,0) at
  pcib_attach+0x9c
  device_probe_and_attach(c0efa800) at device_probe_and_attach+0x8e
  bus_generic_attach(c0efac00,c0efac00,c0efad80,c0efac80,0) at
  bus_generic_attach+0x16
  device_probe_and_attach(c0efac00) at device_probe_and_attach+0x8e
  bus_generic_attach(c0efac80,c0efac80,c027a1b8,0,c0efac80) at
  bus_generic_attach+0x16
  nexus_pcib_attach(c0efac80,c0efac80,c0efad80,c0efad80,0) at
  nexus_pcib_attach+0x1f
  device_probe_and_attach(c0efac80) at device_probe_and_attach+0x8e
  bus_generic_attach(c0efad80,c0ee4080,c0738e00,c03e8fc0,c016a6ca) at
  bus_generic_attach+0x16
  nexus_attach(c0efad80,c0efad80,c02942d0,3ed000,0) at
  nexus_attach+0xe
  device_probe_and_attach(c0efad80) at device_probe_and_attach+0x8e
  root_bus_configure(c0738e00,c02737ac,0) at root_bus_configure+0x16
  configure(0,3e6c00,3e6000,0,c011d232) at configure+0x33
  mi_startup() at mi_startup+0x68
  begin() at begin+0x29
  db> 


From a working PRE_SMPNG kernel:

  Copyright (c) 1992-2000 The FreeBSD Project.
  Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
          The Regents of the University of California. All rights reserved.
  FreeBSD 5.0-CURRENT #0: Thu Nov  9 02:18:13 CET 2000
      root@home.somewhere.dk:/usr/obj/usr/src/sys/MAIL
  Timecounter "i8254"  frequency 1193182 Hz
  Timecounter "TSC"  frequency 166193968 Hz
  CPU: Pentium/P54C (166.19-MHz 586-class CPU)
    Origin = "GenuineIntel"  Id = 0x52c  Stepping = 12
    Features=0x1bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
  real memory  = 134217728 (131072K bytes)
  avail memory = 127541248 (124552K bytes)
  Preloaded elf kernel "kernel.ko" at 0xc02f0000.
  Preloaded elf module "randomdev.ko" at 0xc02f00a0.
  npx0: <math processor> on motherboard
  npx0: INT 16 interface
  pcib0: <Host to PCI bridge> on motherboard
  pci0: <PCI bus> on pcib0
  isab0: <Intel 82371SB PCI to ISA bridge> at device 7.0 on pci0
  isa0: <ISA bus> on isab0
  pci0: <Intel PIIX3 ATA controller> at 7.1
  pcib1: <DEC 21050 PCI-PCI bridge> at device 9.0 on pci0
  pci1: <PCI bus> on pcib1
  ahc0: <Adaptec 398X SCSI RAID adapter> port 0xd800-0xd8ff mem 0xf9000000-0xf9000fff irq 9 at device 4.0 on pci1
  ahc0: aic7870 Wide Channel A, SCSI Id=7, 16/255 SCBs
  ahc1: <Adaptec aic7810 RAID memory controller> port 0xd400-0xd4ff mem 0xfb000000-0xfb1fffff,0xf8800000-0xf8800fff irq 11 at device 5.0 on pci1
  RAID functionality unsupported
  device_probe_and_attach: ahc1 attach returned 6
  ahc2: <Adaptec 398X SCSI RAID adapter> port 0xd000-0xd0ff mem 0xf8000000-0xf8000fff irq 9 at device 8.0 on pci1
  ahc2: aic7870 Wide Channel B, SCSI Id=7, 16/255 SCBs
  ahc3: <Adaptec 398X SCSI RAID adapter> port 0xc800-0xc8ff mem 0xf7800000-0xf7800fff irq 9 at device 12.0 on pci1
  ahc3: aic7870 Wide Channel C, SCSI Id=7, 16/255 SCBs
  pci0: <Matrox MGA Millennium 2064W graphics accelerator> at 10.0 irq 12
  ahc4: <Adaptec 2940 Ultra SCSI adapter> port 0xb800-0xb8ff mem 0xf6800000-0xf6800fff irq 10 at device 11.0 on pci0
  ahc4: aic7880 Single Channel A, SCSI Id=7, 16/255 SCBs
  xl0: <3Com 3c905B-TX Fast Etherlink XL> port 0xb400-0xb47f mem 0xf6000000-0xf600007f irq 11 at device 12.0 on pci0
  xl0: Ethernet address: 00:50:04:65:c5:3e
  miibus0: <MII bus> on xl0
  ukphy0: <Generic IEEE 802.3u media interface> on miibus0
  ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
  atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
  atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
  fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
  fdc0: FIFO enabled, 8 bytes threshold
  fd0: <1440-KB 3.5" drive> on fdc0 drive 0
  ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
  ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
  ppc0: FIFO with 16/16/15 bytes threshold
  lpt0: <Printer> on ppbus0
  lpt0: Interrupt-driven port
  sc0: <System console> at flags 0x100 on isa0
  sc0: VGA <16 virtual consoles, flags=0x100>
  sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
  sio0: type 16550A, console
  sio1 at port 0x2f8-0x2ff irq 3 on isa0
  sio1: type 16550A
  vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
  unknown: <PNP0401> can't assign resources
  unknown: <PNP0501> can't assign resources
  unknown: <PNP0501> can't assign resources
  unknown: <PNP0700> can't assign resources
  unknown: <PNP0303> can't assign resources
  Waiting 5 seconds for SCSI devices to settle
  ahc4:A:6: refuses synchronous negotiation. Using asynchronous transfers
  ahc4:A:6: refuses synchronous negotiation. Using asynchronous transfers
  sa0 at ahc4 bus 0 target 6 lun 0
  sa0: <ARCHIVE Python 25588-XXX 2.96> Removable Sequential Access SCSI-2 device 
  sa0: 3.300MB/s transfers
  da7 at ahc4 bus 0 target 4 lun 0
  da7: <IBM DCAS-34330 S65A> Fixed Direct Access SCSI-2 device 
  da7: 10.000MB/s transfers (10.000MHz, offset 15)
  da7: 4134MB (8467200 512 byte sectors: 255H 63S/T 527C)
  [...]
  da1 at ahc0 bus 0 target 1 lun 0
  da1: <IBM OEM DFHSS4F 4141> Fixed Direct Access SCSI-2 device 
  da1: 10.000MB/s transfers (10.000MHz, offset 15)
  da1: 4303MB (8813870 512 byte sectors: 255H 63S/T 548C)


Config:

  machine         i386
  cpu             I586_CPU
  ident           MAIL
  maxusers        128
  
  #hints          "MAIL.hints"
  
  options         INET
  options         FFS
  options         FFS_ROOT
  options         NFS
  options         PROCFS
  options         COMPAT_43
  options         SCSI_DELAY=5000
  options         UCONSOLE
  options         SYSVSHM
  options         SYSVMSG
  options         SYSVSEM
  options         NO_F00F_HACK
  options         SOFTUPDATES
  options         P1003_1B
  options         _KPOSIX_PRIORITY_SCHEDULING
  options         _KPOSIX_VERSION=199309L
  options         SC_HISTORY_SIZE=1024
  options         DDB
  
  device          isa
  device          pci
  device          fdc
  device          ahc
  device          scbus
  device          da
  device          sa
  device          cd
  device          pass
  device          atkbdc  1
  device          atkbd
  device          vga
  device          splash
  device          sc      1
  device          npx
  device          sio
  device          ppc
  device          ppbus
  device          lpt
  device          miibus
  device          xl
  device          loop
  device          ether
  device          pty
  device          gzip
  device          bpf
  device          random


TIA,

/Niels Chr.

-- 
 Niels Christian Bank-Pedersen, NCB1-RIPE.
 Network Manager, Tele Danmark NET, IP-section.

 "Hey, are any of you guys out there actually *using* RFC 2549?"


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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