From owner-freebsd-stable@FreeBSD.ORG Thu Jan 27 09:52:38 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8069916A4CE for ; Thu, 27 Jan 2005 09:52:38 +0000 (GMT) Received: from rocky.mintel.co.uk (rocky2.mintel.com [217.206.187.69]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB74043D3F for ; Thu, 27 Jan 2005 09:52:37 +0000 (GMT) (envelope-from jason.thomson@mintel.com) Received: from [10.0.62.5] ([10.0.62.5]) by rocky.mintel.co.uk (8.12.8p1/8.12.8) with ESMTP id j0R9qSaj043444; Thu, 27 Jan 2005 09:52:30 GMT (envelope-from jason.thomson@mintel.com) Message-ID: <41F8B9DC.1080608@mintel.com> Date: Thu, 27 Jan 2005 09:52:28 +0000 From: Jason Thomson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040616 X-Accept-Language: en, en-us MIME-Version: 1.0 To: Vinod Kashyap References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.28 (www . roaringpenguin . com / mimedefang) cc: freebsd-stable@freebsd.org Subject: Re: 3ware 9500S problem in newly updated 4.x box. X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jan 2005 09:52:38 -0000 That worked. Thank you. Vinod Kashyap wrote: > See if this fixes your problem. > > Index: twa_cam.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/twa/twa_cam.c,v > retrieving revision 1.1.2.4 > diff -u -r1.1.2.4 twa_cam.c > --- twa_cam.c 7 Jan 2005 01:00:45 -0000 1.1.2.4 > +++ twa_cam.c 26 Jan 2005 18:53:54 -0000 > @@ -424,9 +424,9 @@ > twa_dbg_dprint(3, sc, "XPT_PATH_INQ request"); > > path_inq->version_num = 1; > - path_inq->hba_inquiry = PI_WIDE_16; > + path_inq->hba_inquiry = 0; > path_inq->target_sprt = 0; > - path_inq->hba_misc |= PIM_NOBUSRESET; > + path_inq->hba_misc = 0; > path_inq->hba_eng_cnt = 0; > path_inq->max_target = TWA_MAX_UNITS; > path_inq->max_lun = 0; > > > >>-----Original Message----- >>From: owner-freebsd-stable@freebsd.org >>[mailto:owner-freebsd-stable@freebsd.org]On Behalf Of Jason Thomson >>Sent: Wednesday, January 26, 2005 7:52 AM >>To: freebsd-stable@freebsd.org >>Cc: Vinod Kashyap >>Subject: 3ware 9500S problem in newly updated 4.x box. >> >> >>Recently CVSupped and rebuilt a releng4 box. >> >>This box has a 9500S in RAID10 configuration. >> >>On reboot, it failed to find da0, so it couldn't mount root. >> >>If you wait a few seconds, and then type to specify the root >>filesystem >>again, then the da0 device is found (the message is printed as you >>type), and on hitting return, the machine continues booting. >> >>(See dmesg below). >> >> >>The twa driver and firmware are up to date. >> >>This is a DELL 1600SC SMP. HyperThreading is enabled (but it's not a >>big deal to us one way or the other, so if it's a good idea >>to turn it >>off, we could). >> >>If you don't type on the keyboard, then the message doesn't >>appear. I >>haven't tried this without SMP. It's a production box I just >>upgraded, >>and can only mess around with it early in the morning. >> >>Before today, it was running FreeBSD 4-STABLE from September 24th. >> >>Has anyone else seen this? Does anyone have any ideas? Is there >>anything I can try to debug this? >> >> >> >> >> >> >> >>Copyright (c) 1992-2005 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.11-STABLE #3: Wed Jan 26 14:03:18 GMT 2005 >> jason@baldrick.mintel.co.uk:/usr/obj/usr/src/sys/BALDRICK >>Timecounter "i8254" frequency 1193182 Hz >>CPU: Intel(R) Xeon(TM) CPU 2.80GHz (2790.72-MHz 686-class CPU) >> Origin = "GenuineIntel" Id = 0xf29 Stepping = 9 >> >>Features=0xbfebfbff > P,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> > >> Hyperthreading: 2 logical CPUs >>real memory = 3757965312 (3669888K bytes) >>avail memory = 3659362304 (3573596K bytes) >>Changing APIC ID for IO APIC #0 from 0 to 8 on chip >>Changing APIC ID for IO APIC #1 from 0 to 9 on chip >>Changing APIC ID for IO APIC #2 from 0 to 10 on chip >>Programming 16 pins in IOAPIC #0 >>IOAPIC #0 intpin 2 -> irq 0 >>Programming 16 pins in IOAPIC #1 >>Programming 16 pins in IOAPIC #2 >>FreeBSD/SMP: Multiprocessor motherboard: 4 CPUs >> cpu0 (BSP): apic id: 0, version: 0x00050014, at 0xfee00000 >> cpu1 (AP): apic id: 1, version: 0x00050014, at 0xfee00000 >> cpu2 (AP): apic id: 6, version: 0x00050014, at 0xfee00000 >> cpu3 (AP): apic id: 7, version: 0x00050014, at 0xfee00000 >> io0 (APIC): apic id: 8, version: 0x000f0011, at 0xfec00000 >> io1 (APIC): apic id: 9, version: 0x000f0011, at 0xfec01000 >> io2 (APIC): apic id: 10, version: 0x000f0011, at 0xfec02000 >>pnpbios: Bad PnP BIOS data checksum >>Preloaded elf kernel "kernel" at 0xa03f0000. >>Warning: Pentium 4 CPU: PSE disabled >>Pentium Pro MTRR support enabled >>md0: Malloc disk >>Using $PIR table, 9 entries at 0xa00fc200 >>npx0: on motherboard >>npx0: INT 16 interface >>pcib0: on >>motherboard >>IOAPIC #1 intpin 0 -> irq 2 >>IOAPIC #1 intpin 9 -> irq 3 >>pci0: on pcib0 >>em0: port >>0xecc0-0xecff mem 0xfe100000-0xfe11ffff irq 2 at device 2.0 on pci0 >>em0: Speed:N/A Duplex:N/A >>sis0: port 0xe800-0xe8ff mem >>0xfe122000-0xfe122fff irq 3 at device 4.0 on pci0 >>sis0: Ethernet address: 00:02:e3:02:6e:10 >>miibus0: on sis0 >>ukphy0: on miibus0 >>ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto >>pci0: at 14.0 >>atapci0: port >>0x8b0-0x8bf,0x374-0x377,0x170-0x177,0x3f4-0x3f7,0x1f0-0x1f7 at device >>15.1 on pci0 >>ata0: at 0x1f0 irq 14 on atapci0 >>ata1: at 0x170 irq 15 on atapci0 >>pci0: at 15.2 irq 5 >>isab0: at >>device 15.3 on pci0 >>isa0: on isab0 >>pcib1: on >>motherboard >>IOAPIC #1 intpin 4 -> irq 10 >>pci1: on pcib1 >>3ware device driver for 9000 series storage controllers, version: >>2.40.02.011 >>twa0: <3ware 9000 series Storage Controller> port 0xdc00-0xdcff mem >>0xfc000000-0xfc7fffff,0xfcf00000-0xfcf000ff irq 10 at device >>6.0 on pci1 >>twa0: 4 ports, Firmware FE9X 2.04.00.005, BIOS BE9X 2.03.01.047 >>pcib2: on motherboard >>pci2: on pcib2 >>pcib3: on >>motherboard >>pci3: on pcib3 >>pcib4: on >>motherboard >>pci4: on pcib4 >>orm0: