Date: Fri, 21 Jan 2005 11:22:48 -0800 From: "Vinod Kashyap" <vkashyap@amcc.com> To: ksatechnologies@comcast.net, freebsd-stable@freebsd.org Subject: RE: twa breakage onAMD64with9.1.5.23wareversionand2005-01-1103:00:49UTC RELENG_5 commit Message-ID: <IAOLUD02.LQF@hadar.amcc.com>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] Let me know if the attached patch works for you too. > -----Original Message----- > From: owner-freebsd-stable@freebsd.org > [mailto:owner-freebsd-stable@freebsd.org]On Behalf Of > ksatechnologies@comcast.net > Sent: Friday, January 21, 2005 8:36 AM > To: freebsd-stable@freebsd.org > Subject: twa breakage on > AMD64with9.1.5.23wareversionand2005-01-1103:00:49UTC RELENG_5 commit > > > I also have the same problem with the new 3ware drivers > 9.1.5.2 in -STABLE but I am using the i386 platform with a > Xeon 3.0Ghz processor. > I have one RAID-1 array and one RAID-5 array on the 9500s controller. > /var and /usr/local on the RAID-5 > > Following the FreeBSD instructions to build -STABLE > > make -j8 buildworld > make buildkernel KERNCONF="mykernelconf" > make installkernel KERNCONF="mykernelconf" > reboot > > And it worked. All was fine. Then.... > > mergemaster -p > make installworld > mergemaster > reboot > > Then I could not get to the server via SSH. Found that the > console had the exactly the same symptoms describe in the > thread. I rebooted and at the Daemon Logo I did a "boot > kernel.old" which worked with no problem. The dmesgs are > below. First, 3Ware 9.1.5.2 driver "kernel" and the second > is the "kernel.old" boot. > > --------------/etc/make.conf------------------------------------- > # -- use.perl generated deltas -- # > # Created: Thu Nov 25 08:12:18 2004 > # Setting to use base perl from ports: > PERL_VER=5.8.5 > PERL_VERSION=5.8.5 > PERL_ARCH=mach > NOPERL=yo > NO_PERL=yo > NO_PERL_WRAPPER=yo > CPUTYPE=p4 > CFLAGS= -O2 -pipe -funroll-loops -ffast-math > #CFLAGS= -pipe -funroll-loops -ffast-math > COPTFLAGS= -O2 -pipe -funroll-loops -ffast-math > > > ------------------Kernel With 3Ware 9.1.5.2-------------------- > 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 5.3-STABLE #0: Thu Jan 20 17:54:09 EST 2005 > root@mail.barsproducts.com:/usr/obj/usr/src/sys/BarsMail > ACPI APIC Table: <IntelR AWRDACPI> > Timecounter "i8254" frequency 1193182 Hz quality 0 > CPU: Intel(R) Xeon(TM) CPU 3.00GHz (3000.12-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0xf34 Stepping = 4 > > Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SE P,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> > Hyperthreading: 2 logical CPUs > real memory = 1072562176 (1022 MB) > avail memory = 1040035840 (991 MB) > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > cpu0 (BSP): APIC ID: 0 > cpu1 (AP): APIC ID: 1 > ioapic0: Changing APIC ID to 4 > ioapic0 <Version 2.0> irqs 0-23 on motherboard > ioapic1 <Version 2.0> irqs 24-47 on motherboard > npx0: [FAST] > npx0: <math processor> on motherboard > npx0: INT 16 interface > acpi0: <IntelR AWRDACPI> on motherboard > acpi0: Power Button (fixed) > Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 > acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 > cpu0: <ACPI CPU> on acpi0 > cpu1: <ACPI CPU> on acpi0 > acpi_button0: <Power Button> on acpi0 > pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0 > pci0: <ACPI PCI bus> on pcib0 > pcib1: <ACPI PCI-PCI bridge> at device 3.0 on pci0 > pci1: <ACPI PCI bus> on pcib1 > em0: <Intel(R) PRO/1000 Network Connection, Version - 1.7.35> > port 0xa000-0xa01f mem > 0xf1000000-0xf101ffff,0xf1020000-0xf103ffff irq 18 at device > 1.0 on pci1 > em0: Ethernet address: 00:11:2f:5a:7e:df > em0: Speed:N/A Duplex:N/A > pcib2: <ACPI PCI-PCI bridge> at device 28.0 on pci0 > pci2: <ACPI PCI bus> on pcib2 > 3ware device driver for 9000 series storage controllers, > version: 2.50.02.011 > twa0: <3ware 9000 series Storage Controller> port > 0xb000-0xb0ff mem 0xf3000000-0xf37fffff,0xf3800000-0xf38000ff > irq 27 at device 2.0 on pci2 > twa0: 8 ports, Firmware FE9X 2.04.00.005, BIOS BE9X 2.03.01.047 > twa0: [GIANT-LOCKED] > uhci0: <UHCI (generic) USB controller> port 0xd400-0xd41f irq > 16 at device 29.0 on pci0 > uhci0: [GIANT-LOCKED] > usb0: <UHCI (generic) USB controller> 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: <UHCI (generic) USB controller> port 0xd000-0xd01f irq > 19 at device 29.1 on pci0 > uhci1: [GIANT-LOCKED] > usb1: <UHCI (generic) USB controller> 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 > pci0: <base peripheral> at device 29.4 (no driver attached) > pci0: <base peripheral, interrupt controller> at device 29.5 > (no driver attached) > pci0: <serial bus, USB> at device 29.7 (no driver attached) > pcib3: <ACPI PCI-PCI bridge> at device 30.0 on pci0 > pci3: <ACPI PCI bus> on pcib3 > pci3: <display, VGA> at device 4.0 (no driver attached) > em1: <Intel(R) PRO/1000 Network Connection, Version - 1.7.35> > port 0xc400-0xc43f mem > 0xf6020000-0xf603ffff,0xf6000000-0xf601ffff irq 16 at device > 5.0 on pci3 > em1: Ethernet address: 00:11:2f:5a:7e:e0 > em1: Speed:N/A Duplex:N/A > isab0: <PCI-ISA bridge> at device 31.0 on pci0 > isa0: <ISA bus> on isab0 > atapci0: <Intel 6300ESB UDMA100 controller> port > 0xf000-0xf00f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device > 31.1 on pci0 > ata0: channel #0 on atapci0 > ata1: channel #1 on atapci0 > pci0: <serial bus, SMBus> at device 31.3 (no driver attached) > fdc0: <floppy drive controller> port 0x3f7,0x3f0-0x3f5 irq 6 > drq 2 on acpi0 > fdc0: [FAST] > fd0: <1440-KB 3.5" drive> on fdc0 drive 0 > sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 > flags 0x10 on acpi0 > sio0: type 16550A > sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0 > sio1: type 16550A > ppc0: <ECP parallel printer port> port > 0x778-0x77b,0x378-0x37f irq 7 drq 3 on acpi0 > ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode > ppc0: FIFO with 16/16/9 bytes threshold > ppbus0: <Parallel port bus> on ppc0 > lpt0: <Printer> on ppbus0 > lpt0: Interrupt-driven port > atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0 > atkbd0: <AT Keyboard> irq 1 on atkbdc0 > kbd0 at atkbd0 > atkbd0: [GIANT-LOCKED] > psm0: <PS/2 Mouse> irq 12 on atkbdc0 > psm0: [GIANT-LOCKED] > psm0: model IntelliMouse Explorer, device ID 4 > orm0: <ISA Option ROMs> at iomem > 0xc8000-0xc97ff,0xc0000-0xc7fff on isa0 > pmtimer0 on isa0 > sc0: <System console> at flags 0x100 on isa0 > sc0: VGA <16 virtual consoles, flags=0x300> > vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem > 0xa0000-0xbffff on isa0 > Timecounters tick every 1.000 msec > acd0: CDROM <CD-224E/1.9A> at ata0-master UDMA33 > SMP: AP CPU #1 Launched! > > -----------------Kernel.old pre 9.1.5.2 --------------------- > Copyright (c) 1992-2004 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.3-STABLE #1: Mon Dec 27 10:27:38 EST 2004 > root@:/usr/obj/usr/src/sys/BarsMail1 > ACPI APIC Table: <IntelR AWRDACPI> > Timecounter "i8254" frequency 1193182 Hz quality 0 > CPU: Intel(R) Xeon(TM) CPU 3.00GHz (3000.12-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0xf34 Stepping = 4 > > Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SE P,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> > Hyperthreading: 2 logical CPUs > real memory = 1072562176 (1022 MB) > avail memory = 1044226048 (995 MB) > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > cpu0 (BSP): APIC ID: 0 > cpu1 (AP): APIC ID: 1 > ioapic0: Changing APIC ID to 4 > ioapic0 <Version 2.0> irqs 0-23 on motherboard > ioapic1 <Version 2.0> irqs 24-47 on motherboard > npx0: [FAST] > npx0: <math processor> on motherboard > npx0: INT 16 interface > acpi0: <IntelR AWRDACPI> on motherboard > acpi0: Power Button (fixed) > Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 > acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 > cpu0: <ACPI CPU> on acpi0 > cpu1: <ACPI CPU> on acpi0 > acpi_button0: <Power Button> on acpi0 > pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0 > pci0: <ACPI PCI bus> on pcib0 > pcib1: <ACPI PCI-PCI bridge> at device 3.0 on pci0 > pci1: <ACPI PCI bus> on pcib1 > em0: <Intel(R) PRO/1000 Network Connection, Version - 1.7.35> > port 0xa000-0xa01f mem > 0xf1000000-0xf101ffff,0xf1020000-0xf103ffff irq 18 at device > 1.0 on pci1 > em0: Ethernet address: 00:11:2f:5a:7e:df > em0: Speed:N/A Duplex:N/A > pcib2: <ACPI PCI-PCI bridge> at device 28.0 on pci0 > pci2: <ACPI PCI bus> on pcib2 > 3ware device driver for 9000 series storage controllers, > version: 2.50.00.000 > twa0: <3ware 9000 series Storage Controller> port > 0xb000-0xb0ff mem 0xf3000000-0xf37fffff,0xf3800000-0xf38000ff > irq 27 at device 2.0 on pci2 > twa0: [GIANT-LOCKED] > twa0: 8 ports, Firmware FE9X 2.04.00.005, BIOS BE9X 2.03.01.047 > uhci0: <UHCI (generic) USB controller> port 0xd400-0xd41f irq > 16 at device 29.0 on pci0 > uhci0: [GIANT-LOCKED] > usb0: <UHCI (generic) USB controller> 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: <UHCI (generic) USB controller> port 0xd000-0xd01f irq > 19 at device 29.1 on pci0 > uhci1: [GIANT-LOCKED] > usb1: <UHCI (generic) USB controller> 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 > pci0: <base peripheral> at device 29.4 (no driver attached) > pci0: <base peripheral, interrupt controller> at device 29.5 > (no driver attached) > pci0: <serial bus, USB> at device 29.7 (no driver attached) > pcib3: <ACPI PCI-PCI bridge> at device 30.0 on pci0 > pci3: <ACPI PCI bus> on pcib3 > pci3: <display, VGA> at device 4.0 (no driver attached) > em1: <Intel(R) PRO/1000 Network Connection, Version - 1.7.35> > port 0xc400-0xc43f mem > 0xf6020000-0xf603ffff,0xf6000000-0xf601ffff irq 16 at device > 5.0 on pci3 > em1: Ethernet address: 00:11:2f:5a:7e:e0 > em1: Speed:N/A Duplex:N/A > isab0: <PCI-ISA bridge> at device 31.0 on pci0 > isa0: <ISA bus> on isab0 > atapci0: <Intel 6300ESB UDMA100 controller> port > 0xf000-0xf00f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device > 31.1 on pci0 > ata0: channel #0 on atapci0 > ata1: channel #1 on atapci0 > pci0: <serial bus, SMBus> at device 31.3 (no driver attached) > fdc0: <floppy drive controller> port 0x3f7,0x3f0-0x3f5 irq 6 > drq 2 on acpi0 > fdc0: [FAST] > fd0: <1440-KB 3.5" drive> on fdc0 drive 0 > sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 > flags 0x10 on acpi0 > sio0: type 16550A > sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0 > sio1: type 16550A > ppc0: <ECP parallel printer port> port > 0x778-0x77b,0x378-0x37f irq 7 drq 3 on acpi0 > ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode > ppc0: FIFO with 16/16/9 bytes threshold > ppbus0: <Parallel port bus> on ppc0 > lpt0: <Printer> on ppbus0 > lpt0: Interrupt-driven port > atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0 > atkbd0: <AT Keyboard> irq 1 on atkbdc0 > kbd0 at atkbd0 > atkbd0: [GIANT-LOCKED] > psm0: <PS/2 Mouse> irq 12 on atkbdc0 > psm0: [GIANT-LOCKED] > psm0: model IntelliMouse Explorer, device ID 4 > orm0: <ISA Option ROMs> at iomem > 0xc8000-0xc97ff,0xc0000-0xc7fff on isa0 > pmtimer0 on isa0 > sc0: <System console> at flags 0x100 on isa0 > sc0: VGA <16 virtual consoles, flags=0x300> > vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem > 0xa0000-0xbffff on isa0 > Timecounters tick every 1.000 msec > acd0: CDROM <CD-224E/1.9A> at ata0-master UDMA33 > da0 at twa0 bus 0 target 0 lun 0 > da0: <3ware Logical Disk 00 1.00> Fixed Direct Access SCSI-0 device > da0: 100.000MB/s transfers > da0: 238408MB (488259584 512 byte sectors: 255H 63S/T 30392C) > da1 at twa0 bus 0 target 1 lun 0 > da1: <3ware Logical Disk 01 1.00> Fixed Direct Access SCSI-0 device > da1: 100.000MB/s transfers > da1: 476816MB (976519168 512 byte sectors: 255H 63S/T 60785C) > SMP: AP CPU #1 Launched! > Mounting root from ufs:/dev/da0s1a > em0: Link is up 10 Mbps Full Duplex > em0: Link is Down > em0: Link is up 1000 Mbps Full Duplex > -------------------------------------------------------------- > ------------------------------- > > Hope this information might help. > > Thanks, > > Kev > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to > "freebsd-stable-unsubscribe@freebsd.org" > [-- Attachment #2 --] Index: twa_cam.c =================================================================== RCS file: /home/ncvs/src/sys/dev/twa/twa_cam.c,v retrieving revision 1.3.2.1 diff -u -r1.3.2.1 twa_cam.c --- twa_cam.c 11 Jan 2005 03:00:48 -0000 1.3.2.1 +++ twa_cam.c 20 Jan 2005 03:26:35 -0000 @@ -409,9 +409,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; Index: twa_freebsd.c =================================================================== RCS file: /home/ncvs/src/sys/dev/twa/twa_freebsd.c,v retrieving revision 1.7.2.2 diff -u -r1.7.2.2 twa_freebsd.c --- twa_freebsd.c 11 Jan 2005 03:00:48 -0000 1.7.2.2 +++ twa_freebsd.c 20 Jan 2005 03:26:35 -0000 @@ -261,15 +261,6 @@ sc->twa_bus_tag = rman_get_bustag(sc->twa_io_res); sc->twa_bus_handle = rman_get_bushandle(sc->twa_io_res); - /* Initialize the driver for this controller. */ - if ((error = twa_setup(sc))) { - twa_free(sc); - return(error); - } - - /* Print some information about the controller and configuration. */ - twa_describe_controller(sc); - /* Allocate and connect our interrupt. */ res_id = 0; if ((sc->twa_irq_res = bus_alloc_resource(sc->twa_bus_dev, SYS_RES_IRQ, @@ -286,6 +277,15 @@ return(ENXIO); } + /* Initialize the driver for this controller. */ + if ((error = twa_setup(sc))) { + twa_free(sc); + return(error); + } + + /* Print some information about the controller and configuration. */ + twa_describe_controller(sc); + /* Create the control device. */ sc->twa_ctrl_dev = make_dev(&twa_cdevsw, device_get_unit(sc->twa_bus_dev), UID_ROOT, GID_OPERATOR, S_IRUSR | S_IWUSR, @@ -543,6 +543,7 @@ { struct twa_request *tr; int i; + int error; if ((sc->twa_req_buf = malloc(num_reqs * sizeof(struct twa_request), TWA_MALLOC_CLASS, M_NOWAIT)) == NULL) @@ -595,10 +596,12 @@ return(ENOMEM); } - bus_dmamap_load(sc->twa_cmd_tag, sc->twa_cmd_map, + if ((error = bus_dmamap_load(sc->twa_cmd_tag, sc->twa_cmd_map, sc->twa_cmd_pkt_buf, num_reqs * sizeof(struct twa_command_packet), - twa_setup_request_dmamap, sc, 0); + twa_setup_request_dmamap, sc, BUS_DMA_NOWAIT))) { + twa_printf(sc, "bus_dmamap_load returned %d\n", error); + } bzero(sc->twa_req_buf, num_reqs * sizeof(struct twa_request)); bzero(sc->twa_cmd_pkt_buf, num_reqs * sizeof(struct twa_command_packet)); @@ -770,6 +773,8 @@ struct twa_softc *sc = (struct twa_softc *)arg; twa_dbg_dprint_enter(10, sc); + twa_dbg_dprint(3, sc, "error = %d, segs[0].addr = %lx, len = %lx", + error, segs[0].ds_addr, segs[0].ds_len); sc->twa_cmd_pkt_phys = segs[0].ds_addr; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?IAOLUD02.LQF>
