From owner-freebsd-smp Tue Nov 26 5:27:19 2002 Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AF01637B401 for ; Tue, 26 Nov 2002 05:27:05 -0800 (PST) Received: from smtp.completel.fr (smtp.completel.fr [213.244.0.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id B9A6A43EA9 for ; Tue, 26 Nov 2002 05:27:04 -0800 (PST) (envelope-from fabien.thomas@netasq.com) Received: from netasq.com (unknown [213.30.137.178]) by smtp.completel.fr (Postfix) with ESMTP id A3D92179D72 for ; Tue, 26 Nov 2002 14:27:00 +0100 (CET) Received: from netasq.com by completel.fr (8.10.1/8.10.1) with ESMTP id gAQDRDn00286 for ; Tue, 26 Nov 2002 14:27:13 +0100 (CET) Date: Tue, 26 Nov 2002 14:26:53 +0100 From: Fabien THOMAS X-Mailer: The Bat! (v1.61) Business Organization: NETASQ X-Priority: 3 (Normal) Message-ID: <142339311406.20021126142653@netasq.com> To: freebsd-smp@freebsd.org Subject: Adaptec ultra320, FreeBSD 4.7, SMP hang at boot MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha1; boundary="----------AB175B714F14B65" Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org This is a cryptographically signed message in MIME format. ------------AB175B714F14B65 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Actually i'm trying to run an embedded controller (7901A Ultra320) on a Supermicro motherboard (PDDP8-G2) under FreeBSD 4.7 using the ahd driver. With the GENERIC kernel the card seem to work fine but each time i run an SMP kernel the system lock up before init and after one or two minute the system dump the card state. the funny things is that under FreeBSD 5.0 DP2 the system is working fine. can you help me ? fabien here the associated dmesg (with AHD_DEBUG and AHD_DEBUG_FLAGS=0xFFFF for the SMP dump) BAD (SMP): >> >> Copyright (c) 1992-2002 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 4.7-RELEASE #4: Wed Jan 2 02:38:30 GMT 2002 >> root@:/usr/src/sys/compile/SMP >> Timecounter "i8254" frequency 1193182 Hz >> CPU: Pentium 4 (1999.79-MHz 686-class CPU) >> Origin = "GenuineIntel" Id = 0xf24 Stepping = 4 >> >> Features=0x3febfbff> P,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SS >> E2,SS,,ACC> >> real memory = 536346624 (523776K bytes) >> avail memory = 517337088 (505212K bytes) >> Programming 24 pins in IOAPIC #0 >> IOAPIC #0 intpin 2 -> irq 0 >> Programming 24 pins in IOAPIC #1 >> Programming 24 pins in IOAPIC #2 >> Programming 24 pins in IOAPIC #3 >> Programming 24 pins in IOAPIC #4 >> FreeBSD/SMP: Multiprocessor motherboard >> cpu0 (BSP): apic id: 0, version: 0x00050014, at 0xfee00000 >> cpu1 (AP): apic id: 6, version: 0x00050014, at 0xfee00000 >> io0 (APIC): apic id: 2, version: 0x00178020, at 0xfec00000 >> io1 (APIC): apic id: 3, version: 0x00178020, at 0xfec80000 >> io2 (APIC): apic id: 4, version: 0x00178020, at 0xfec80400 >> io3 (APIC): apic id: 5, version: 0x00178020, at 0xfec81000 >> io4 (APIC): apic id: 8, version: 0x00178020, at 0xfec81400 >> Preloaded elf kernel "kernel" at 0xc0466000. >> Pentium Pro MTRR support enabled >> md0: Malloc disk >> Using $PIR table, 29 entries at 0xc00fddf0 >> npx0: on motherboard >> npx0: INT 16 interface >> pcib0: on motherboard >> IOAPIC #0 intpin 16 -> irq 2 >> IOAPIC #0 intpin 19 -> irq 10 >> IOAPIC #0 intpin 18 -> irq 11 >> pci0: on pcib0 >> pci0: (vendor=0x8086, dev=0x2541) at 0.1 >> pcib1: at >> device 2.0 on pci0 >> pci1: on pcib1 >> pci1: (vendor=0x8086, dev=0x1461) at 28.0 >> pcib2: at >> device 29.0 on pci1 >> IOAPIC #2 intpin 0 -> irq 16 >> IOAPIC #2 intpin 1 -> irq 17 >> pci2: on pcib2 >> em0: >> port 0x3000-0x303f mem 0xfc200000-0xfc21ffff irq 16 at device >> 1.0 on pci2 >> em0: Speed:1000 Mbps Duplex:Full >> em1: >> port 0x3040-0x307f mem 0xfc220000-0xfc23ffff irq 17 at device >> 1.1 on pci2 >> em1: Speed:N/A Duplex:N/A >> pci1: (vendor=0x8086, dev=0x1461) at 30.0 >> pcib3: at >> device 31.0 on pci1 >> IOAPIC #1 intpin 0 -> irq 18 >> IOAPIC #1 intpin 1 -> irq 19 >> IOAPIC #1 intpin 4 -> irq 20 >> IOAPIC #1 intpin 5 -> irq 21 >> pci3: on pcib3 >> em2: >> port 0x4000-0x403f mem 0xfc300000-0xfc31ffff irq 18 at device >> 1.0 on pci3 >> em2: Speed:N/A Duplex:N/A >> em3: >> port 0x4040-0x407f mem 0xfc320000-0xfc33ffff irq 19 at device >> 1.1 on pci3 >> em3: Speed:N/A Duplex:N/A >> em4: >> port 0x4080-0x40bf mem 0xfc340000-0xfc35ffff irq 20 at device >> 2.0 on pci3 >> em4: Speed:N/A Duplex:N/A >> em5: >> port 0x40c0-0x40ff mem 0xfc360000-0xfc37ffff irq 21 at device >> 2.1 on pci3 >> em5: Speed:N/A Duplex:N/A >> pcib4: at >> device 3.0 on pci0 >> pci4: on pcib4 >> pci4: (vendor=0x8086, dev=0x1461) at 28.0 >> pcib5: at >> device 29.0 on pci4 >> IOAPIC #4 intpin 0 -> irq 22 >> IOAPIC #4 intpin 1 -> irq 23 >> pci5: on pcib5 >> em6: >> port 0x5000-0x503f mem 0xfc500000-0xfc51ffff irq 22 at device >> 1.0 on pci5 >> em6: Speed:N/A Duplex:N/A >> em7: >> port 0x5040-0x507f mem 0xfc520000-0xfc53ffff irq 23 at device >> 1.1 on pci5 >> em7: Speed:N/A Duplex:N/A >> em8: >> port 0x5080-0x50bf mem 0xfc540000-0xfc55ffff irq 11 at device >> 2.0 on pci5 >> em8: Speed:N/A Duplex:N/A >> em9: >> port 0x50c0-0x50ff mem 0xfc560000-0xfc57ffff irq 11 at device >> 2.1 on pci5 >> em9: Speed:N/A Duplex:N/A >> em10: > 1.3.14> port 0x5400-0x543f mem 0xfc580000-0xfc59ffff irq 11 >> at device 3.0 on pci5 >> em10: Speed:N/A Duplex:N/A >> em11: > 1.3.14> port 0x5440-0x547f mem 0xfc5a0000-0xfc5bffff irq 11 >> at device 3.1 on pci5 >> em11: Speed:N/A Duplex:N/A >> pci4: (vendor=0x8086, dev=0x1461) at 30.0 >> pcib6: at >> device 31.0 on pci4 >> pci6: on pcib6 >> ahd0: port >> 0x6000-0x60ff,0x6400-0x64ff mem 0xfc600000-0xfc601fff irq 11 >> at device 2.0 on pci6 >> ahd0: scb size = 0x4c, hscb size - 0x40 >> ahd0: Seeprom Contents: >> 0x17c8 >> 0x17c8 >> 0x17c8 >> 0x17c8 >> 0x17c8 >> 0x17c8 >> 0x17c8 >> 0x17c8 >> 0x17c8 >> 0x17c8 >> 0x17c8 >> 0x17c8 >> 0x17c8 >> 0x17c8 >> 0x17c8 >> 0x17c8 >> 0x9f4 >> 0x146 >> 0x2807 >> 0x10 >> 0xffff >> 0xffff >> 0xffff >> 0xffff >> 0xffff >> 0xffff >> 0xffff >> 0xffff >> 0xffff >> 0xffff >> 0x400 >> 0xb3c7 >> (0): 1:8:fe:3f >> (1): 1:8:fe:3f >> (2): 1:8:fe:3f >> (3): 1:8:fe:3f >> (4): 1:8:fe:3f >> (5): 1:8:fe:3f >> (6): 1:8:fe:3f >> (7): 1:8:fe:3f >> (8): 1:8:fe:3f >> (9): 1:8:fe:3f >> (10): 1:8:fe:3f >> (11): 1:8:fe:3f >> (12): 1:8:fe:3f >> (13): 1:8:fe:3f >> (14): 1:8:fe:3f >> (15): 1:8:fe:3f >> ahd0: ahd_sglist_allocsize = 0x3000 >> Mapped SG data >> Mapped sense data >> Setting mode 0x0 >> Setting mode 0x11 >> Setting mode 0x44 >> ahd0: Setting up iocell workaround >> Setting mode 0x33 >> Setting mode 0x22 >> Setting mode 0x33 >> Setting mode 0x22 >> Setting mode 0x33 >> aic7901A: Ultra320 Wide Channel A, SCSI Id=7, PCI 33 or >> 66Mhz, 512 SCBs >> ahd1: port >> 0x6800-0x68ff,0x6c00-0x6cff mem 0xfc602000-0xfc603fff irq 11 >> at device 2.1 on pci6 >> ahd1: scb size = 0x4c, hscb size - 0x40 >> ahd1: Seeprom Contents: >> 0x17c8 >> 0x17c8 >> 0x17c8 >> 0x17c8 >> 0x17c8 >> 0x17c8 >> 0x17c8 >> 0x17c8 >> 0x17c8 >> 0x17c8 >> 0x17c8 >> 0x17c8 >> 0x17c8 >> 0x17c8 >> 0x17c8 >> 0x17c8 >> 0x9f4 >> 0x146 >> 0x2807 >> 0x10 >> 0xffff >> 0xffff >> 0xffff >> 0xffff >> 0xffff >> 0xffff >> 0xffff >> 0xffff >> 0xffff >> 0xffff >> 0x400 >> 0xb3c7 >> (0): 1:8:fe:3f >> (1): 1:8:fe:3f >> (2): 1:8:fe:3f >> (3): 1:8:fe:3f >> (4): 1:8:fe:3f >> (5): 1:8:fe:3f >> (6): 1:8:fe:3f >> (7): 1:8:fe:3f >> (8): 1:8:fe:3f >> (9): 1:8:fe:3f >> (10): 1:8:fe:3f >> (11): 1:8:fe:3f >> (12): 1:8:fe:3f >> (13): 1:8:fe:3f >> (14): 1:8:fe:3f >> (15): 1:8:fe:3f >> ahd1: ahd_sglist_allocsize = 0x3000 >> Mapped SG data >> Mapped sense data >> Setting mode 0x0 >> Setting mode 0x11 >> Setting mode 0x44 >> ahd1: Setting up iocell workaround >> Setting mode 0x33 >> Setting mode 0x22 >> Setting mode 0x33 >> Setting mode 0x22 >> Setting mode 0x33 >> aic7901A: Ultra320 Wide Channel B, SCSI Id=7, PCI 33 or >> 66Mhz, 512 SCBs >> uhci0: port >> 0x2000-0x201f irq 2 at device 29.0 on pci0 >> usb0: on uhci0 >> usb0: USB revision 1.0 >> uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 >> uhub0: 2 ports with 2 removable, self powered >> uhci1: port >> 0x2020-0x203f irq 10 at device 29.1 on pci0 >> usb1: on uhci1 >> usb1: USB revision 1.0 >> uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 >> uhub1: 2 ports with 2 removable, self powered >> uhci2: port >> 0x2040-0x205f irq 11 at device 29.2 on pci0 >> usb2: on uhci2 >> usb2: USB revision 1.0 >> uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 >> uhub2: 2 ports with 2 removable, self powered >> pcib7: at device >> 30.0 on pci0 >> pci7: on pcib7 >> pci7: at 1.0 irq 2 >> isab0: at >> device 31.0 on pci0 >> isa0: on isab0 >> atapci0: port >> 0x2060-0x206f,0x374-0x377,0x170-0x177,0x3f4-0x3f7,0x1f0-0x1f7 >> mem 0xfc000000-0xfc0003ff irq 0 at device 31.1 on pci0 >> ata0: at 0x1f0 irq 14 on atapci0 >> ata1: at 0x170 irq 15 on atapci0 >> pci0: (vendor=0x8086, dev=0x2483) at 31.3 irq 0 >> orm0: