From nobody@FreeBSD.org  Mon Jan 21 08:55:00 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 21F4216A420
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 21 Jan 2008 08:55:00 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 0791413C4CC
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 21 Jan 2008 08:55:00 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m0L8rUcd073484
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 21 Jan 2008 08:53:30 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m0L8rU9w073483;
	Mon, 21 Jan 2008 08:53:30 GMT
	(envelope-from nobody)
Message-Id: <200801210853.m0L8rU9w073483@www.freebsd.org>
Date: Mon, 21 Jan 2008 08:53:30 GMT
From: Andrey Lykhin <lian@kras.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: panic: ffs_dirbad: bad dir or panic: ffs_valloc: dup_alloc
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         119851
>Category:       kern
>Synopsis:       [ata] Data corruption with ServerWorks HT1000
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    delphij
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 21 09:00:06 UTC 2008
>Closed-Date:    Fri Nov 21 06:26:17 UTC 2008
>Last-Modified:  Fri Nov 21 06:26:17 UTC 2008
>Originator:     Andrey Lykhin
>Release:        FreeBSD 6.3-RELEASE
>Organization:
>Environment:
FreeBSD test 6.3-RELEASE FreeBSD 6.3-RELEASE #0: Wed Jan 16 04:18:52 UTC 2008     root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
Do not install FreeBSD 6.3-RELEASE (or FreeBSD 6.2-RELEASE or FreeBSD
7.0-RC1) on HP ProLiant DL145G3 with SATA HDD SAMSUNG HD501LJ.

With SATA HDD HP 80GB installation is OK.

In an installation time:
panic: ffs_dirbad: bad dir
or
mode=020141, inum=32896, fs=/tmp
panic: ffs_valloc: dup alloc


Copyright (c) 1992-2008 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 is a registered trademark of The FreeBSD Foundation.
FreeBSD 6.3-RELEASE #0: Wed Jan 16 04:18:52 UTC 2008
    root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
ACPI APIC Table: <PTLTD    APIC  >
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Dual-Core AMD Opteron(tm) Processor 2210 HE (1795.51-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x40f12  Stepping = 2
  Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0x2001<SSE3,CX16>
  AMD Features=0xea500800<SYSCALL,NX,MMX+,FFXSR,RDTSCP,LM,3DNow!+,3DNow!>
  AMD Features2=0x1f<LAHF,CMP,SVM,ExtAPIC,CR8>
  Cores per package: 2
real memory  = 1064697856 (1015 MB)
avail memory = 1032851456 (985 MB)
MADT: Forcing active-low polarity and level trigger for SCI
ioapic0 <Version 1.1> irqs 0-15 on motherboard
ioapic1 <Version 1.1> irqs 16-31 on motherboard
ioapic2 <Version 1.1> irqs 32-47 on motherboard
kbd1 at kbdmux0
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
hptrr: HPT RocketRAID controller driver v1.1 (Jan 16 2008 04:16:19)
acpi0: <PTLTD    XSDT> on motherboard
acpi0: Power Button (fixed)
unknown: I/O range not supported
Timecounter "ACPI-safe" frequency 3579545 Hz quality 850
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x508-0x50b on acpi0
acpi_hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 900
cpu0: <ACPI CPU> on acpi0
pcib0: <ACPI Host-PCI bridge> on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pcib2: <ACPI PCI-PCI bridge> at device 13.0 on pci1
pci2: <ACPI PCI bus> on pcib2
atapci0: <ServerWorks HT1000 SATA150 controller> port 0x2040-0x2047,0x2034-0x2037,0x2038-0x203f,0x2030-0x2033,0x2000-0x201f mem 0xdf900000-0xdf901fff irq 7 at device 14.0 on pci1
ata2: <ATA channel 0> on atapci0
ata3: <ATA channel 1> on atapci0
ata4: <ATA channel 2> on atapci0
ata5: <ATA channel 3> on atapci0
atapci1: <ServerWorks HT1000 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1c00-0x1c0f at device 2.1 on pci0
ata0: <ATA channel 0> on atapci1
ata1: <ATA channel 1> on atapci1
isab0: <PCI-ISA bridge> at device 2.2 on pci0
isa0: <ISA bus> on isab0
ohci0: <OHCI (generic) USB controller> port 0x1000-0x10ff mem 0xdfc05000-0xdfc05fff irq 10 at device 3.0 on pci0
ohci0: [GIANT-LOCKED]
usb0: OHCI version 1.0, legacy support
usb0: <OHCI (generic) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: (0x1166) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ohci1: <OHCI (generic) USB controller> port 0x1400-0x14ff mem 0xdfc06000-0xdfc06fff irq 10 at device 3.1 on pci0
ohci1: [GIANT-LOCKED]
usb1: OHCI version 1.0, legacy support
usb1: <OHCI (generic) USB controller> on ohci1
usb1: USB revision 1.0
uhub1: (0x1166) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
ehci0: <EHCI (generic) USB 2.0 controller> port 0x1800-0x18ff mem 0xdfc07000-0xdfc07fff irq 10 at device 3.2 on pci0
ehci0: [GIANT-LOCKED]
usb2: EHCI version 1.0
usb2: companion controllers, 2 ports each: usb0 usb1
usb2: <EHCI (generic) USB 2.0 controller> on ehci0
usb2: USB revision 2.0
uhub2: (0x1166) EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub2: 4 ports with 4 removable, self powered
uhub3: vendor 0x04cc product 0x1520, class 9/0, rev 2.00/2.00, addr 2
uhub3: single transaction translator
uhub3: 3 ports with 3 removable, self powered
pci0: <display, VGA> at device 4.0 (no driver attached)
pcib3: <ACPI PCI-PCI bridge> irq 32 at device 6.0 on pci0
pci3: <ACPI PCI bus> on pcib3
pcib4: <ACPI PCI-PCI bridge> irq 32 at device 7.0 on pci0
pci4: <ACPI PCI bus> on pcib4
pcib5: <ACPI PCI-PCI bridge> irq 32 at device 8.0 on pci0
pci5: <ACPI PCI bus> on pcib5
pcib6: <ACPI PCI-PCI bridge> irq 32 at device 9.0 on pci0
pci6: <ACPI PCI bus> on pcib6
pcib7: <ACPI PCI-PCI bridge> irq 32 at device 10.0 on pci0
pci7: <ACPI PCI bus> on pcib7
pcib8: <ACPI PCI-PCI bridge> at device 0.0 on pci7
pci8: <ACPI PCI bus> on pcib8
bge0: <Broadcom BCM5715 A3, ASIC rev. 0x9003> mem 0xdf810000-0xdf81ffff,0xdf800000-0xdf80ffff irq 36 at device 4.0 on pci8
miibus0: <MII bus> on bge0
brgphy0: <BCM5714 10/100/1000baseTX PHY> on miibus0
brgphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
bge0: Ethernet address: 00:18:71:86:db:fc
bge1: <Broadcom BCM5715 A3, ASIC rev. 0x9003> mem 0xdf830000-0xdf83ffff,0xdf820000-0xdf82ffff irq 36 at device 4.1 on pci8
miibus1: <MII bus> on bge1
brgphy1: <BCM5714 10/100/1000baseTX PHY> on miibus1
brgphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
bge1: Ethernet address: 00:18:71:87:30:fe
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xc0000-0xc7fff on isa0
ppc0: parallel port not found.
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
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
ukbd0: ServerEngines SE USB Device, rev 1.10/0.01, addr 2, iclass 3/1
kbd2 at ukbd0
ums0: ServerEngines SE USB Device, rev 1.10/0.01, addr 2, iclass 3/1
ums0: 8 buttons and Z dir.
Timecounter "TSC" frequency 1795509657 Hz quality 800
Timecounters tick every 1.000 msec
hptrr: no controller detected.
ad4: 476940MB <SAMSUNG HD501LJ CR100-12> at ata2-master SATA150
ad6: 476940MB <SAMSUNG HD501LJ CR100-12> at ata3-master SATA150
Trying to mount root from ufs:/dev/ad4s1a
bge0: link state changed to UP

>How-To-Repeat:
Install FreeBSD 6.3-RELEASE (or FreeBSD 6.2-RELEASE or FreeBSD 7.0-RC1)
on HP ProLiant DL145G3 with HDD SAMSUNG HD501LJ.

>Fix:


>Release-Note:
>Audit-Trail:

From: Kris Kennaway <kris@FreeBSD.org>
To: Andrey Lykhin <lian@kras.ru>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: misc/119851
Date: Mon, 21 Jan 2008 13:10:25 +0100

 Andrey Lykhin wrote:
 
 > atapci0: <ServerWorks HT1000 SATA150 controller> port 0x2040-0x2047,0x2034-0x2037,0x2038-0x203f,0x2030-0x2033,0x2000-0x201f mem 0xdf900000-0xdf901fff irq 7 at device 14.0 on pci1
 > ata2: <ATA channel 0> on atapci0
 > ata3: <ATA channel 1> on atapci0
 > ata4: <ATA channel 2> on atapci0
 > ata5: <ATA channel 3> on atapci0
 > atapci1: <ServerWorks HT1000 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1c00-0x1c0f at device 2.1 on pci0
 > ata0: <ATA channel 0> on atapci1
 > ata1: <ATA channel 1> on atapci1
 > ad4: 476940MB <SAMSUNG HD501LJ CR100-12> at ata2-master SATA150
 > ad6: 476940MB <SAMSUNG HD501LJ CR100-12> at ata3-master SATA150
 > Trying to mount root from ufs:/dev/ad4s1a
 > bge0: link state changed to UP
 > 
 >> How-To-Repeat:
 > Install FreeBSD 6.3-RELEASE (or FreeBSD 6.2-RELEASE or FreeBSD 7.0-RC1) on HP ProLiant DL145G3 with HDD SAMSUNG HD501LJ.
 
 It is unlikely to be your disks, rather your ATA controller.  I believe 
 there are known issues with ServerWorks HT1000 controllers.
 
 Kris
State-Changed-From-To: open->feedback 
State-Changed-By: delphij 
State-Changed-When: Mon Nov 3 07:30:01 UTC 2008 
State-Changed-Why:  
Dear submitter, 

Could you please give latest 7-STABLE snapshot a try?  jhb@ 
has recently committed a fix and MFC'ed and it's very much 
likely that this issue has been fixed. 

Thanks in advance! 


Responsible-Changed-From-To: freebsd-bugs->delphij 
Responsible-Changed-By: delphij 
Responsible-Changed-When: Mon Nov 3 07:30:01 UTC 2008 
Responsible-Changed-Why:  
Take. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=119851 
State-Changed-From-To: feedback->closed 
State-Changed-By: delphij 
State-Changed-When: Fri Nov 21 06:26:00 UTC 2008 
State-Changed-Why:  
Feedback timeout. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=119851 
>Unformatted:
