Vinod Kashyap
2005-Jan-19 19:48 UTC
twa breakage on AMD64with9.1.5.23wareversionand2005-01-1103:00:49 UTC RELENG_5 commit
Strange... CAM doesn't seem to be sending down inquiries to the twa driver, although it was requested to do so (twa_request_bus_scan). I have seen this kind of behavior on 5.x, when doing kldload of the driver, and when logical units are created/deleted on the fly. Although the SIM (twa) requests for a bus scan, CAM never sends down inquiries, and the logical units underneath don't get detected. This behavior is not consistent, and happens some times only. However, I have never seen a case where CAM fails to send inquiries when twa is integrated into the kernel. Do any CAM experts know what might be happening? Also strange is the fact that twa of 5.3-RELEASE works fine. In the attached patch, I have tried to revert back to the way XPT_PATH_INQ is handled by twa of 5.3-RELEASE. Could you apply it to RELENG_5 and let me know the results?> -----Original Message----- > From: owner-freebsd-stable@freebsd.org > [mailto:owner-freebsd-stable@freebsd.org]On Behalf Of Michael Meltzer > Sent: Tuesday, January 18, 2005 9:47 PM > To: Vinod Kashyap > Cc: Jean-Yves Avenard > Subject: Re: twa breakage on AMD64 > with9.1.5.23wareversionand2005-01-1103:00:49 UTC RELENG_5 commit > > > twa_patch2.diff, had to add the "int error; in twa_alloc_req_pkts > > -mjm > > > > 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 #17: Wed Jan 19 00:44:33 EST 2005 > root@web7.thecenturiongroup.com:/usr/src/sys/amd64/compile/web7 > Timecounter "i8254" frequency 1193182 Hz quality 0 > CPU: AMD Opteron(tm) Processor 240 (1403.19-MHz K8-class CPU) > Origin = "AuthenticAMD" Id = 0xf51 Stepping = 1 > > Features=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP > ,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2> > AMD Features=0xe0500800<SYSCALL,NX,MMX+,LM,3DNow+,3DNow> > real memory = 6442450944 (6144 MB) > avail memory = 5963784192 (5687 MB) > ACPI APIC Table: <PTLTD APIC > > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > cpu0 (BSP): APIC ID: 0 > cpu1 (AP): APIC ID: 1 > MADT: Forcing active-low polarity and level trigger for SCI > ioapic0 <Version 1.1> irqs 0-23 on motherboard > ioapic1 <Version 1.1> irqs 24-27 on motherboard > ioapic2 <Version 1.1> irqs 28-31 on motherboard > acpi0: <PTLTD XSDT> on motherboard > acpi0: Power Button (fixed) > acpi0: Sleep Button (fixed) > unknown: I/O range not supported > unknown: I/O range not supported > Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 > acpi_timer0: <24-bit timer at 3.579545MHz> port 0x8008-0x800b 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 > twa_probe: entered > pcib1: <ACPI PCI-PCI bridge> at device 6.0 on pci0 > pci1: <ACPI PCI bus> on pcib1 > twa_probe: entered > pci1: <display, VGA> at device 6.0 (no driver attached) > twa_probe: entered > isab0: <PCI-ISA bridge> at device 7.0 on pci0 > isa0: <ISA bus> on isab0 > twa_probe: entered > atapci0: <AMD 8111 UDMA133 controller> port > 0x1020-0x102f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device > 7.1 on pci0 > ata0: channel #0 on atapci0 > ata1: channel #1 on atapci0 > twa_probe: entered > pci0: <serial bus, SMBus> at device 7.2 (no driver attached) > twa_probe: entered > pci0: <bridge, PCI-unknown> at device 7.3 (no driver attached) > twa_probe: entered > pcib2: <ACPI PCI-PCI bridge> at device 10.0 on pci0 > pci2: <ACPI PCI bus> on pcib2 > twa_probe: entered > bge0: <Broadcom BCM5702 Gigabit Ethernet, ASIC rev. 0x1002> mem > 0xfd000000-0xfd00ffff irq 27 at device 3.0 on pci2 > miibus0: <MII bus> on bge0 > brgphy0: <BCM5703 10/100/1000baseTX PHY> on miibus0 > brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, > 1000baseTX-FDX, auto > bge0: Ethernet address: 00:50:45:5b:8e:76 > twa_probe: entered > bge1: <Broadcom BCM5702 Gigabit Ethernet, ASIC rev. 0x1002> mem > 0xfd010000-0xfd01ffff irq 27 at device 4.0 on pci2 > miibus1: <MII bus> on bge1 > brgphy1: <BCM5703 10/100/1000baseTX PHY> on miibus1 > brgphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, > 1000baseTX-FDX, auto > bge1: Ethernet address: 00:50:45:5b:8e:77 > twa_probe: entered > atapci1: <Promise PDC20319 SATA150 controller> port > 0x3000-0x307f,0x30c0-0x30cf,0x3080-0x30bf mem > 0xfd020000-0xfd03ffff,0xfd040000-0xfd040fff irq 25 at device > 5.0 on pci2 > atapci1: failed: rid 0x20 is memory, requested 4 > ata2: channel #0 on atapci1 > ata3: channel #1 on atapci1 > ata4: channel #2 on atapci1 > ata5: channel #3 on atapci1 > twa_probe: entered > pci0: <base peripheral, interrupt controller> at device 10.1 > (no driver > attached) > twa_probe: entered > pcib3: <ACPI PCI-PCI bridge> at device 11.0 on pci0 > pci3: <ACPI PCI bus> on pcib3 > twa_probe: entered > 3ware device driver for 9000 series storage controllers, version: > 2.50.02.011 > twa0: <3ware 9000 series Storage Controller> port 0x4000-0x40ff mem > 0xfd800000-0xfdffffff,0xfd100000-0xfd1000ff irq 30 at device > 2.0 on pci3 > unknown: twa_attach: entered. > twa0: [GIANT-LOCKED] > twa0: twa_setup: entered. > twa0: twa_setup_request_dmamap: entered. > twa0: twa_setup_request_dmamap: error = 0, segs[0].addr = > 17f2da000, len > = 40000 > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_release_request: entered. > twa0: twa_init_ctlr: entered. > twa0: twa_wait_status: entered. > twa0: twa_drain_response_queue: entered. > twa0: twa_init_connection: entered. > twa0: twa_get_request: entered. > twa0: twa_immediate_request: entered. > twa0: twa_map_request: entered. > twa0: twa_start: entered. > twa0: twa_done: entered. > twa0: twa_drain_complete_queue: entered. > twa0: twa_done: entered. > twa0: twa_drain_complete_queue: entered. > twa0: twa_done: entered. > twa0: twa_drain_complete_queue: entered. > twa0: twa_done: entered. > twa0: twa_drain_complete_queue: entered. > twa0: twa_done: entered. > twa0: twa_drain_complete_queue: entered. > twa0: twa_done: entered. > twa0: twa_drain_complete_queue: entered. > twa0: twa_done: entered. > twa0: twa_drain_complete_queue: entered. > twa0: twa_done: entered. > twa0: twa_drain_complete_queue: entered. > twa0: twa_done: entered. > twa0: twa_drain_complete_queue: entered. > twa0: twa_done: entered. > twa0: twa_drain_complete_queue: entered. > twa0: twa_unmap_request: entered. > twa0: twa_unmap_request: entered. > twa0: twa_release_request: entered. > twa0: twa_get_request: entered. > twa0: twa_execute_scsi: SCSI I/O request 0x3 > twa0: twa_execute_scsi: XPT_SCSI_IO: Single virtual address! > twa0: twa_map_request: entered. > twa0: twa_setup_data_dmamap: entered. > twa0: twa_start: entered. > twa0: twa_done: entered. > twa0: twa_drain_complete_queue: entered. > twa0: twa_unmap_request: entered. > twa0: twa_enqueue_aen: entered. > twa0: twa_enqueue_aen: AEN queue empty > twa0: twa_release_request: entered. > twa0: twa_init_ctlr: exiting. > twa0: twa_describe_controller: entered. > twa0: twa_get_param: entered. > twa0: twa_get_request: entered. > twa0: twa_immediate_request: entered. > twa0: twa_map_request: entered. > twa0: twa_setup_data_dmamap: entered. > twa0: twa_start: entered. > twa0: twa_done: entered. > twa0: twa_drain_complete_queue: entered. > twa0: twa_unmap_request: entered. > twa0: twa_unmap_request: entered. > twa0: twa_release_request: entered. > twa0: twa_get_param: entered. > twa0: twa_get_request: entered. > twa0: twa_immediate_request: entered. > twa0: twa_map_request: entered. > twa0: twa_setup_data_dmamap: entered. > twa0: twa_start: entered. > twa0: twa_done: entered. > twa0: twa_drain_complete_queue: entered. > twa0: twa_unmap_request: entered. > twa0: twa_unmap_request: entered. > twa0: twa_release_request: entered. > twa0: twa_get_param: entered. > twa0: twa_get_request: entered. > twa0: twa_immediate_request: entered. > twa0: twa_map_request: entered. > twa0: twa_setup_data_dmamap: entered. > twa0: twa_start: entered. > twa0: twa_done: entered. > twa0: twa_drain_complete_queue: entered. > twa0: twa_unmap_request: entered. > twa0: twa_unmap_request: entered. > twa0: twa_release_request: entered. > twa0: 4 ports, Firmware FE9X 2.04.00.005, BIOS BE9X 2.03.01.047 > twa0: twa_cam_setup: sc = 0xffffffff8082f000 > twa0: twa_cam_setup: Calling cam_sim_alloc > twa0: twa_cam_setup: Calling xpt_bus_register > twa0: twa_action: XPT_PATH_INQ request > twa0: twa_cam_setup: Calling xpt_create_path > twa0: twa_cam_setup: Calling xpt_setup_ccb > twa0: twa_cam_setup: Calling twa_request_bus_scan > twa0: twa_action: XPT_PATH_INQ request > twa0: twa_action: XPT_PATH_INQ request > twa0: twa_action: XPT_PATH_INQ request > twa0: twa_action: XPT_PATH_INQ request > twa0: twa_action: XPT_PATH_INQ request > twa0: twa_action: XPT_PATH_INQ request > twa0: twa_action: XPT_PATH_INQ request > twa0: twa_action: XPT_PATH_INQ request > twa0: twa_action: XPT_PATH_INQ request > twa0: twa_action: XPT_PATH_INQ request > twa0: twa_action: XPT_PATH_INQ request > twa0: twa_action: XPT_PATH_INQ request > twa0: twa_action: XPT_PATH_INQ request > twa0: twa_action: XPT_PATH_INQ request > twa0: twa_action: XPT_PATH_INQ request > twa0: twa_action: XPT_PATH_INQ request > twa0: twa_action: XPT_PATH_INQ request > twa0: twa_cam_setup: Exiting > twa_probe: entered > pci0: <base peripheral, interrupt controller> at device 11.1 > (no driver > attached) > twa_probe: entered > twa_probe: entered > twa_probe: entered > twa_probe: entered > twa_probe: entered > twa_probe: entered > twa_probe: entered > twa_probe: entered > atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0 > atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0 > kbd0 at atkbd0 > atkbd0: [GIANT-LOCKED] > psm0: <PS/2 Mouse> irq 12 on atkbdc0 > psm0: [GIANT-LOCKED] > psm0: model IntelliMouse, device ID 3 > 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, console > sio1: configured irq 3 not in bitmap of probed irqs 0 > sio1: port may not be enabled > ppc0: <ECP parallel printer port> port > 0x778-0x77f,0x378-0x37f irq 7 drq > 4 on acpi0 > ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode > ppc0: FIFO with 16/16/8 bytes threshold > ppbus0: <Parallel port bus> on ppc0 > lpt0: <Printer> on ppbus0 > lpt0: Interrupt-driven port > ppi0: <Parallel I/O> on ppbus0 > sio1: configured irq 3 not in bitmap of probed irqs 0 > sio1: port may not be enabled > orm0: <ISA Option ROMs> at iomem > 0xcb000-0xcc7ff,0xc9800-0xcafff,0xc8000-0xc97ff,0xc0000-0xc7ff > f on isa0 > sc0: <System console> at flags 0x100 on isa0 > sc0: VGA <16 virtual consoles, flags=0x100> > sio1: configured irq 3 not in bitmap of probed irqs 0 > sio1: port may not be enabled > vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem > 0xa0000-0xbffff on isa0 > Timecounters tick every 1.000 msec > IP Filter: v3.4.35 initialized. Default = pass all, Logging > = disabled > twa0: twa_interrupt: entered. > twa_bus_scan_cb: ccb = 0xffffff017f236800 > > twa_bus_scan_cb: success > acd0: DVDROM <IDE DVD-ROM 16X/VER 2.50> at ata0-master UDMA33 > twa0: twa_action: XPT_PATH_INQ request > twa0: twa_action: XPT_PATH_INQ request > twa0: twa_action: XPT_PATH_INQ request > twa0: twa_action: XPT_PATH_INQ request > twa0: twa_action: XPT_PATH_INQ request > twa0: twa_action: XPT_PATH_INQ request > twa0: twa_action: XPT_PATH_INQ request > twa0: twa_action: XPT_PATH_INQ request > twa0: twa_action: XPT_PATH_INQ request > twa0: twa_action: XPT_PATH_INQ request > twa0: twa_action: XPT_PATH_INQ request > twa0: twa_action: XPT_PATH_INQ request > twa0: twa_action: XPT_PATH_INQ request > twa0: twa_action: XPT_PATH_INQ request > twa0: twa_action: XPT_PATH_INQ request > twa0: twa_action: XPT_PATH_INQ request > twa0: twa_action: XPT_PATH_INQ request > twa0: twa_action: XPT_PATH_INQ request > twa0: twa_action: XPT_PATH_INQ request > SMP: AP CPU #1 Launched! > Mounting root from ufs:/dev/da0s1a > setrootbyname failed > ffs_mountroot: can't find rootvp > Root mount failed: 6 > > Manual root filesystem specification: > <fstype>:<device> Mount <device> using filesystem <fstype> > eg. ufs:/dev/da0a > ? List valid disk boot devices > <empty line> Abort manual input > > mountroo > > _______________________________________________ > 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" >-------------- next part -------------- A non-text attachment was scrubbed... Name: twa_patch3.diff Type: application/octet-stream Size: 2876 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20050119/937fed2e/twa_patch3.obj
Michael Meltzer
2005-Jan-20 05:28 UTC
twa breakage on AMD64with9.1.5.23wareversionand2005-01-1103:00:49 UTC RELENG_5 commit
looks like patch3 worked, good job! I had to turn off TWA_DEBUG to get the boot going, the debug was starving the boot on a 9600 baud terminal. I can increase the speed and caputer the output on monday if it will help(it on the large side, bigger than the 10,000 line capture buffer in am using). I incude 2 iozone reports, the first one the new driver the second one the old driver, Is thier a way to increase the "read ahead" in freebsd?? -mjm iozone -s 20480m -r 60 -i 0 -i 1 -t 1 Iozone: Performance Test of File I/O Version $Revision: 3.196 $ Compiled for 64 bit mode. Build: freebsd Contributors:William Norcott, Don Capps, Isom Crawford, Kirby Collins Al Slater, Scott Rhine, Mike Wisner, Ken Goss Steve Landherr, Brad Smith, Mark Kelly, Dr. Alain CYR, Randy Dunlap, Mark Montague, Dan Million, Jean-Marc Zucconi, Jeff Blomberg. Run began: Thu Jan 20 07:45:52 2005 File size set to 20971520 KB Record Size 60 KB Command line used: iozone -s 20480m -r 60 -i 0 -i 1 -t 1 Output is in Kbytes/sec Time Resolution = 0.000001 seconds. Processor cache size set to 1024 Kbytes. Processor cache line size set to 32 bytes. File stride size set to 17 * record size. Throughput test with 1 process Each process writes a 20971520 Kbyte file in 60 Kbyte records Children see throughput for 1 initial writers = 78219.47 KB/sec Parent sees throughput for 1 initial writers = 78060.45 KB/sec Min throughput per process = 78219.47 KB/sec Max throughput per process = 78219.47 KB/sec Avg throughput per process = 78219.47 KB/sec Min xfer = 20971500.00 KB Children see throughput for 1 rewriters = 19394.53 KB/sec Parent sees throughput for 1 rewriters = 19394.32 KB/sec Min throughput per process = 19394.53 KB/sec Max throughput per process = 19394.53 KB/sec Avg throughput per process = 19394.53 KB/sec Min xfer = 20971500.00 KB Children see throughput for 1 readers = 55960.09 KB/sec Parent sees throughput for 1 readers = 55954.25 KB/sec Min throughput per process = 55960.09 KB/sec Max throughput per process = 55960.09 KB/sec Avg throughput per process = 55960.09 KB/sec Min xfer = 20971500.00 KB Children see throughput for 1 re-readers = 55948.26 KB/sec Parent sees throughput for 1 re-readers = 55946.60 KB/sec Min throughput per process = 55948.26 KB/sec Max throughput per process = 55948.26 KB/sec Avg throughput per process = 55948.26 KB/sec Min xfer = 20971500.00 KB iozone test complete. iozone -s 20480m -r 60 -i 0 -i 1 -t 1 Iozone: Performance Test of File I/O Version $Revision: 3.196 $ Compiled for 64 bit mode. Build: freebsd Contributors:William Norcott, Don Capps, Isom Crawford, Kirby Collins Al Slater, Scott Rhine, Mike Wisner, Ken Goss Steve Landherr, Brad Smith, Mark Kelly, Dr. Alain CYR, Randy Dunlap, Mark Montague, Dan Million, Jean-Marc Zucconi, Jeff Blomberg. Run began: Mon Dec 20 21:03:36 2004 File size set to 20971520 KB Record Size 60 KB Command line used: iozone -s 20480m -r 60 -i 0 -i 1 -t 1 Output is in Kbytes/sec Time Resolution = 0.000001 seconds. Processor cache size set to 1024 Kbytes. Processor cache line size set to 32 bytes. File stride size set to 17 * record size. Throughput test with 1 process Each process writes a 20971520 Kbyte file in 60 Kbyte records Children see throughput for 1 initial writers = 78738.67 KB/sec Parent sees throughput for 1 initial writers = 78716.55 KB/sec Min throughput per process = 78738.67 KB/sec Max throughput per process = 78738.67 KB/sec Avg throughput per process = 78738.67 KB/sec Min xfer = 20971500.00 KB Children see throughput for 1 rewriters = 32126.46 KB/sec Parent sees throughput for 1 rewriters = 32125.77 KB/sec Min throughput per process = 32126.46 KB/sec Max throughput per process = 32126.46 KB/sec Avg throughput per process = 32126.46 KB/sec Min xfer = 20971500.00 KB Children see throughput for 1 readers = 58563.70 KB/sec Parent sees throughput for 1 readers = 58557.14 KB/sec Min throughput per process = 58563.70 KB/sec Max throughput per process = 58563.70 KB/sec Avg throughput per process = 58563.70 KB/sec Min xfer = 20971500.00 KB Children see throughput for 1 re-readers = 58583.77 KB/sec Parent sees throughput for 1 re-readers = 58581.98 KB/sec Min throughput per process = 58583.77 KB/sec Max throughput per process = 58583.77 KB/sec Avg throughput per process = 58583.77 KB/sec Min xfer = 20971500.00 KB iozone test complete. 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 #21: Thu Jan 20 01:21:10 EST 2005 root@web7.thecenturiongroup.com:/usr/src/sys/amd64/compile/web7 Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Opteron(tm) Processor 240 (1403.19-MHz K8-class CPU) Origin = "AuthenticAMD" Id = 0xf51 Stepping = 1 Features=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2> AMD Features=0xe0500800<SYSCALL,NX,MMX+,LM,3DNow+,3DNow> real memory = 6442450944 (6144 MB) avail memory = 5964316672 (5688 MB) ACPI APIC Table: <PTLTD APIC > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 MADT: Forcing active-low polarity and level trigger for SCI ioapic0 <Version 1.1> irqs 0-23 on motherboard ioapic1 <Version 1.1> irqs 24-27 on motherboard ioapic2 <Version 1.1> irqs 28-31 on motherboard acpi0: <PTLTD XSDT> on motherboard acpi0: Power Button (fixed) acpi0: Sleep Button (fixed) unknown: I/O range not supported unknown: I/O range not supported Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x8008-0x800b 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 6.0 on pci0 pci1: <ACPI PCI bus> on pcib1 pci1: <display, VGA> at device 6.0 (no driver attached) isab0: <PCI-ISA bridge> at device 7.0 on pci0 isa0: <ISA bus> on isab0 atapci0: <AMD 8111 UDMA133 controller> port 0x1020-0x102f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 7.1 on pci0 ata0: channel #0 on atapci0 ata1: channel #1 on atapci0 pci0: <serial bus, SMBus> at device 7.2 (no driver attached) pci0: <bridge, PCI-unknown> at device 7.3 (no driver attached) pcib2: <ACPI PCI-PCI bridge> at device 10.0 on pci0 pci2: <ACPI PCI bus> on pcib2 bge0: <Broadcom BCM5702 Gigabit Ethernet, ASIC rev. 0x1002> mem 0xfd000000-0xfd00ffff irq 27 at device 3.0 on pci2 miibus0: <MII bus> on bge0 brgphy0: <BCM5703 10/100/1000baseTX PHY> on miibus0 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto bge0: Ethernet address: 00:50:45:5b:8e:76 bge1: <Broadcom BCM5702 Gigabit Ethernet, ASIC rev. 0x1002> mem 0xfd010000-0xfd01ffff irq 27 at device 4.0 on pci2 miibus1: <MII bus> on bge1 brgphy1: <BCM5703 10/100/1000baseTX PHY> on miibus1 brgphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto bge1: Ethernet address: 00:50:45:5b:8e:77 atapci1: <Promise PDC20319 SATA150 controller> port 0x3000-0x307f,0x30c0-0x30cf,0x3080-0x30bf mem 0xfd020000-0xfd03ffff,0xfd040000-0xfd040fff irq 25 at device 5.0 on pci2 atapci1: failed: rid 0x20 is memory, requested 4 ata2: channel #0 on atapci1 ata3: channel #1 on atapci1 ata4: channel #2 on atapci1 ata5: channel #3 on atapci1 pci0: <base peripheral, interrupt controller> at device 10.1 (no driver attached) pcib3: <ACPI PCI-PCI bridge> at device 11.0 on pci0 pci3: <ACPI PCI bus> on pcib3 3ware device driver for 9000 series storage controllers, version: 2.50.02.011 twa0: <3ware 9000 series Storage Controller> port 0x4000-0x40ff mem 0xfd800000-0xfdffffff,0xfd100000-0xfd1000ff irq 30 at device 2.0 on pci3 twa0: [GIANT-LOCKED] twa0: 4 ports, Firmware FE9X 2.04.00.005, BIOS BE9X 2.03.01.047 pci0: <base peripheral, interrupt controller> at device 11.1 (no driver attached) atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0 atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: <PS/2 Mouse> irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model IntelliMouse, device ID 3 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, console sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled ppc0: <ECP parallel printer port> port 0x778-0x77f,0x378-0x37f irq 7 drq 4 on acpi0 ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/8 bytes threshold ppbus0: <Parallel port bus> on ppc0 lpt0: <Printer> on ppbus0 lpt0: Interrupt-driven port ppi0: <Parallel I/O> on ppbus0 sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled orm0: <ISA Option ROMs> at iomem 0xcb000-0xcc7ff,0xc9800-0xcafff,0xc8000-0xc97ff,0xc0000-0xc7fff on isa0 sc0: <System console> at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x100> sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounters tick every 1.000 msec IP Filter: v3.4.35 initialized. Default = block all, Logging = enabled acd0: DVDROM <IDE DVD-ROM 16X/VER 2.50> 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: 70550MB (144486400 512 byte sectors: 255H 63S/T 8993C) SMP: AP CPU #1 Launched! Mounting root from ufs:/dev/da0s1a Pre-seeding PRNG: kickstart. Loading configuration files. Entropy harvesting: interrupts ethernet point_to_point kickstart. swapon: adding /dev/da0s1b as swap device Starting file system checks: /dev/da0s1a: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/da0s1a: clean, 3005287 free (1559 frags, 375466 blocks, 0.1% fragmentation) /dev/da0s1h: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/da0s1h: clean, 15168492 free (20 frags, 1896059 blocks, 0.0% fragmentation) /dev/da0s1g: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/da0s1g: clean, 5010318 free (56766 frags, 619194 blocks, 0.9% fragmentation) /dev/da0s1f: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/da0s1f: clean, 6078377 free (553 frags, 759728 blocks, 0.0% fragmentation) Enabling ipfilter. ioctl(SIOCIPFL6): Invalid argument Setting hostname: web7.thecenturiongroup.com. Installing NAT rules. 0 entries flushed from NAT table 0 entries flushed from NAT list bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1a<TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.32.248.84 netmask 0xffffff00 broadcast 192.32.248.255 ether 00:50:45:5b:8e:76 media: Ethernet autoselect (none) status: no carrier bge1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1a<TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 10.200.0.7 netmask 0xffffff00 broadcast 10.200.0.255 ether 00:50:45:5b:8e:77 media: Ethernet autoselect (none) status: no carrier lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet 127.0.0.1 netmask 0xff000000 filter sync'd add net default: gateway 10.200.0.1 Additional routing options: IP gateway=YES. Starting devd. Mounting NFS file systems:. Starting syslogd. Jan 20 01:24:35 web7 syslogd: kernel boot file is /boot/kernel/kernel ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/X11R6/lib /usr/local/lib Starting usbd. No USB host controllers found Starting local daemons:. Updating motd. Starting ntpd. Jan 20 01:24:35 web7 ntpd[393]: no IPv6 interfaces found Configuring syscons: blanktime screensaver. Starting sshd. Initial amd64 initialization:. Additional ABI support:. Starting cron. Local package initialization:. Additional TCP options:. Starting moused:. Starting inetd. Starting background file system checks in 60 seconds. Thu Jan 20 01:24:36 EST 2005 FreeBSD/amd64 (web7.thecenturiongroup.com) (ttyd0) login: Jan 20 01:24:43 web7 ntpd[393]: sendto(139.88.35.33): No route to host Jan 20 01:24:44 web7 ntpd[393]: sendto(208.184.49.9): No route to host Jan 20 01:24:45 web7 ntpd[393]: sendto(216.200.93.8): No route to host FreeBSD/amd64 (web7.thecenturiongroup.com) (ttyd0) login:
Jean-Yves Avenard
2005-Jan-20 14:30 UTC
twa breakage on AMD64 with9.1.5.23wareversionand2005-01-1103:00:49 UTC RELENG_5 commit
Well, it may work for you, but not for me. Still hangs exactly in the same spot. Jean-Yves On 21/01/2005, at 12:24 AM, Michael Meltzer wrote:> looks like patch3 worked, good job! I had to turn off TWA_DEBUG to > get the boot going, the debug was starving the boot on a 9600 baud > terminal. I can increase the speed and caputer the output on monday if > it will help(it on the large side, bigger than the 10,000 line capture > buffer in am using).? I incude 2 iozone reports, the first one the new > driver the second one the old driver, Is thier a way to increase the > "read ahead" in freebsd?? -mjm > >--- Jean-Yves Avenard Hydrix Pty Ltd - Embedding the net www.hydrix.com | fax +61 3 9572 2686 | phone +61 3 9572 0686 ext 100 VoIP: direct: 100@voip.hydrix.com, general: info@voip.hydrix.com
ksatechnologies@comcast.net
2005-Jan-21 08:36 UTC
twa breakage on AMD64with9.1.5.23wareversionand2005-01-1103:00:49 UTC 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,SEP,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,SEP,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, KevFrom ertr1013 at student.uu.se Fri Jan 21 08:49:31 2005 From: ertr1013 at student.uu.se (Erik Trulsson) Date: Fri Jan 21 08:49:34 2005 Subject: Disabling write-behind on IDE drives, and SMART In-Reply-To: <20050121163106.B01855D08@ptavv.es.net> References: <41F0B4E8.9090507@paradise.net.nz> <20050121163106.B01855D08@ptavv.es.net> Message-ID: <20050121164928.GA50279@falcon.midgard.homeip.net> On Fri, Jan 21, 2005 at 08:31:06AM -0800, Kevin Oberman wrote:> > Date: Fri, 21 Jan 2005 20:53:12 +1300 > > From: Mark Kirkwood <markir@paradise.net.nz> > > Sender: owner-freebsd-stable@freebsd.org > > > > Jim C. Nasby wrote: > > > Question one: how do I disable write caching on IDE drives? I know the > > > setting is hw.ata.wc=0, but where do I put that? In loader.conf? This is > > > FreeBSD 4.10, btw. > > > > > In /boot/loader.conf will do it. > > > > > Also, has any thought been given to making the default 0, like it is for > > > SCSI devices? I'm honestly surprised and disappointed that the default > > > is speed over data integrity. > > I think it was trialled in 4.3 then changed for 4.4 (according to the > > handbook, the performance hit was considered to be too high) > > Having been involved in the 4.x flip-flop, the performance cost on some > systems can be HUGE! Backing up my laptop (40 GB) went from 40 minutes > to five hours when the write cache was turned off. > > On the other hand, it is a real risk, especially when combined with > softupdates.I don't see how softupdates can increase the risk. As I understand it the risks with IDE-write chaching is just as large with softupdates as without. It is just that all the safety and consistency guarantees that softupdates normally make go out of the window when write-caching is turned on.> For servers that lack solid backup power (not a 10 minute > UPS), I would probably turn it off. But for most systems it is probably > worth the risks.A 10 minute UPS should be plenty for that purpose. All that is needed to protect against the risks of write-caching is for the server to be able to make an orderly shutdown, which should not take more than a couple of minutes. (If you need constant uptime, you need better power backup, but that is a different issue.) -- <Insert your favourite quote here.> Erik Trulsson ertr1013@student.uu.se