From Cy.Schubert@uumail.gov.bc.ca  Tue Jan 30 08:28:31 2001
Return-Path: <Cy.Schubert@uumail.gov.bc.ca>
Received: from point.osg.gov.bc.ca (point.osg.gov.bc.ca [142.32.102.44])
	by hub.freebsd.org (Postfix) with ESMTP id 15F8837B4EC
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 30 Jan 2001 08:28:31 -0800 (PST)
Received: (from daemon@localhost)
	by point.osg.gov.bc.ca (8.8.7/8.8.8) id IAA29055
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 30 Jan 2001 08:28:25 -0800
Received: from passer.osg.gov.bc.ca(142.32.110.29)
 via SMTP by point.osg.gov.bc.ca, id smtpda29053; Tue Jan 30 08:28:23 2001
Received: (from uucp@localhost)
	by passer.osg.gov.bc.ca (8.11.2/8.9.1) id f0UGSIl30872
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 30 Jan 2001 08:28:18 -0800 (PST)
Received: from cwsys9.cwsent.com(10.2.2.1), claiming to be "cwsys.cwsent.com"
 via SMTP by passer9.cwsent.com, id smtpdX30870; Tue Jan 30 08:28:12 2001
Received: (from cy@localhost)
	by cwsys.cwsent.com (8.11.2/8.9.1) id f0UGSCh11615;
	Tue, 30 Jan 2001 08:28:12 -0800 (PST)
Message-Id: <200101301628.f0UGSCh11615@cwsys.cwsent.com>
Date: Tue, 30 Jan 2001 08:28:12 -0800 (PST)
From: Cy.Schubert@uumail.gov.bc.ca
Reply-To: Cy.Schubert@uumail.gov.bc.ca
To: FreeBSD-gnats-submit@freebsd.org
Subject: CONNER CFP1080 Tagged Queueing Filesystem Corruption
X-Send-Pr-Version: 3.2

>Number:         24740
>Category:       kern
>Synopsis:       filesystem corruption CFP1080 CAM SCSI cam_xpt.c
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    cy
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 30 08:30:01 PST 2001
>Closed-Date:    Wed Nov 09 16:54:29 GMT 2005
>Last-Modified:  Wed Nov 09 16:54:29 GMT 2005
>Originator:     Cy Schubert
>Release:        FreeBSD 4.2-RELEASE i386
>Organization:
ITSD Province of BC
>Environment:

FreeBSD cwsys 4.2-RELEASE FreeBSD 4.2-RELEASE #9: Tue Jan 30 06:59:46 PST 2001     root@:/opt/cvs-420r/src/sys/compile/CWSYS  i386

>Description:

After replacing a dead Quantum drive with a CONNER CFP1080S drive,
filesystem corrupted and data lost; system hung after six hours.

>How-To-Repeat:

Install a CONNER CFP1080 SCSI disk drive.

>Fix:

Disable tagged queueing for CONNER CFP1080*.

--- src/sys/cam/cam_xpt.c.orig	Tue Oct 31 14:09:59 2000
+++ src/sys/cam/cam_xpt.c	Tue Jan 30 06:57:13 2001
@@ -354,6 +354,17 @@
 		/*
 		 * Broken tagged queuing drive.
 		 * Submitted by:
+		 * Cy Schubert <Cy.Schubert@osg.gov.bc.ca>
+		 * in PR kern/#####
+		 */
+		/* Broken tagged queuing drive */ 
+		{ T_DIRECT, SIP_MEDIA_FIXED, "CONNER", "CFP1080*", "*" },
+		/*quirks*/0, /*mintags*/0, /*maxtags*/0
+	},
+	{
+		/*
+		 * Broken tagged queuing drive.
+		 * Submitted by:
 		 * NAKAJI Hiroyuki <nakaji@zeisei.dpri.kyoto-u.ac.jp>
 		 * in PR kern/9535
 		 */

>Release-Note:
>Audit-Trail:

From: "Kenneth D. Merry" <ken@kdm.org>
To: Cy.Schubert@uumail.gov.bc.ca
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/24740: CONNER CFP1080 Tagged Queueing Filesystem Corruption
Date: Tue, 30 Jan 2001 10:21:38 -0700

 On Tue, Jan 30, 2001 at 08:28:12 -0800, Cy.Schubert@uumail.gov.bc.ca wrote:
 > FreeBSD cwsys 4.2-RELEASE FreeBSD 4.2-RELEASE #9: Tue Jan 30 06:59:46 PST 2001     root@:/opt/cvs-420r/src/sys/compile/CWSYS  i386
 > 
 > >Description:
 > 
 > After replacing a dead Quantum drive with a CONNER CFP1080S drive,
 > filesystem corrupted and data lost; system hung after six hours.
 > 
 > >How-To-Repeat:
 > 
 > Install a CONNER CFP1080 SCSI disk drive.
 > 
 > >Fix:
 > 
 > Disable tagged queueing for CONNER CFP1080*.
 
 What sort of controller are you using?
 
 What I'm getting at here is that I want to make sure the corruption problem
 is due to the drive and not the controller or HBA driver.
 
 Also, can you supply dmesg output for the drive and controller?
 
 Ken
 -- 
 Kenneth Merry
 ken@kdm.org
 

From: Dag-Erling Smorgrav <des@ofug.org>
To: "Kenneth D. Merry" <ken@kdm.org>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: kern/24740: CONNER CFP1080 Tagged Queueing Filesystem Corruption
Date: 31 Jan 2001 13:05:18 +0100

 I have a CFP1080S which has worked flawlessly without quirks since way
 before CAM. It's been inside the same machine since I bought it in
 1995 or 1996, and that machine has been running CURRENT (3.0, then
 4.0, then 5.0) since mid-1998, and was running RELENG_2_2 before that,
 and is now running RELENG_4.
 
 DES
 -- 
 Dag-Erling Smorgrav - des@ofug.org
 

From: "Kenneth D. Merry" <ken@kdm.org>
To: Dag-Erling Smorgrav <des@ofug.org>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: kern/24740: CONNER CFP1080 Tagged Queueing Filesystem Corruption
Date: Wed, 31 Jan 2001 08:11:01 -0700

 On Wed, Jan 31, 2001 at 13:05:18 +0100, Dag-Erling Smorgrav wrote:
 > I have a CFP1080S which has worked flawlessly without quirks since way
 > before CAM. It's been inside the same machine since I bought it in
 > 1995 or 1996, and that machine has been running CURRENT (3.0, then
 > 4.0, then 5.0) since mid-1998, and was running RELENG_2_2 before that,
 > and is now running RELENG_4.
 
 That's good to know.  What firmware revision is it?  (dmesg output would
 do the trick)  And what controller is it on?
 
 (This may help for comparing against Cy's hardware.)
 
 Ken
 -- 
 Kenneth Merry
 ken@kdm.org
 

From: Dag-Erling Smorgrav <des@ofug.org>
To: "Kenneth D. Merry" <ken@kdm.org>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: kern/24740: CONNER CFP1080 Tagged Queueing Filesystem Corruption
Date: 04 Feb 2001 17:34:19 +0100

 "Kenneth D. Merry" <ken@kdm.org> writes:
 > That's good to know.  What firmware revision is it?  (dmesg output would
 > do the trick)  And what controller is it on?
 
 Sorry for the delay. Here's a dmesg:
 
 Copyright (c) 1992-2000 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.2-BETA #4: Mon Nov  6 03:28:44 GMT 2000
     des@md5.thinksec.com:/usr/src/sys/compile/MD5
 Timecounter "i8254"  frequency 1193182 Hz
 CPU: Pentium/P54C (166.19-MHz 586-class CPU)
   Origin = "GenuineIntel"  Id = 0x52c  Stepping = 12
   Features=0x1bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
 real memory  = 134217728 (131072K bytes)
 avail memory = 127721472 (124728K bytes)
 Preloaded elf kernel "kernel" at 0xc02f9000.
 Intel Pentium detected, installing workaround for F00F bug
 md0: Malloc disk
 apm0: <APM BIOS> on motherboard
 apm: found APM BIOS v1.2, connected at v1.2
 npx0: <math processor> on motherboard
 npx0: INT 16 interface
 pcib0: <Host to PCI bridge> on motherboard
 pci0: <PCI bus> on pcib0
 isab0: <Intel 82371SB PCI to ISA bridge> at device 7.0 on pci0
 isa0: <ISA bus> on isab0
 atapci0: <Intel PIIX3 ATA controller> port 0xe800-0xe80f at device 7.1 on pci0
 ata0: at 0x1f0 irq 14 on atapci0
 pci0: <Tseng Labs ET6000/ET6100 graphics accelerator> at 9.0 irq 9
 fxp0: <Intel Pro 10/100B/100+ Ethernet> port 0xd800-0xd81f mem 0xf8800000-0xf88fffff,0xfa800000-0xfa800fff irq 9 at device 10.0 on pci0
 fxp0: Ethernet address 00:a0:c9:4d:1b:d4
 pcm0: <AudioPCI ES1371> port 0xd400-0xd43f irq 12 at device 11.0 on pci0
 ahc0: <Adaptec 2940 Ultra SCSI adapter> port 0xd000-0xd0ff mem 0xf8000000-0xf8000fff irq 11 at device 12.0 on pci0
 aic7880: Wide Channel A, SCSI Id=7, 16/255 SCBs
 fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
 fdc0: FIFO enabled, 8 bytes threshold
 fd0: <1440-KB 3.5" drive> on fdc0 drive 0
 atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
 atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
 kbd0 at atkbd0
 vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
 sc0: <System console> at flags 0x100 on isa0
 sc0: VGA <16 virtual consoles, flags=0x100>
 sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
 sio0: type 16550A, console
 sio1 at port 0x2f8-0x2ff irq 3 on isa0
 sio1: type 16550A
 ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
 ppc0: FIFO with 16/16/15 bytes threshold
 lpt0: <Printer> on ppbus0
 lpt0: Interrupt-driven port
 ad0: 6149MB <QUANTUM FIREBALL ST6.4A> [13328/15/63] at ata0-master WDMA2
 Waiting 2 seconds for SCSI devices to settle
 sa0 at ahc0 bus 0 target 3 lun 0
 sa0: <TECMAR TRAVAN NS8 P611> Removable Sequential Access SCSI-2 device
 sa0: 10.000MB/s transfers (10.000MHz, offset 8)
 da0 at ahc0 bus 0 target 2 lun 0
 da0: <QUANTUM XP34550W LXY1> Fixed Direct Access SCSI-2 device
 da0: 40.000MB/s transfers (20.000MHz, offset 8, 16bit), Tagged Queueing Enabled
 da0: 4341MB (8890760 512 byte sectors: 255H 63S/T 553C)
 da1 at ahc0 bus 0 target 4 lun 0
 da1: <CONNER CFP1080S 4649> Fixed Direct Access SCSI-2 device
 da1: 10.000MB/s transfers (10.000MHz, offset 15), Tagged Queueing Enabled
 da1: 1030MB (2110812 512 byte sectors: 255H 63S/T 131C)
 Mounting root from ufs:/dev/wd0a
 cd0 at ahc0 bus 0 target 5 lun 0
 cd0: <TOSHIBA CD-ROM XM-3801TA 1047> Removable CD-ROM SCSI-2 device
 cd0: 10.000MB/s transfers (10.000MHz, offset 8)
 cd0: Attempt to query device size failed: NOT READY, Medium not present
 
 DES
 -- 
 Dag-Erling Smorgrav - des@ofug.org
 
State-Changed-From-To: open->feedback 
State-Changed-By: ken 
State-Changed-When: Mon Feb 5 16:45:47 PST 2001 
State-Changed-Why:  
Submitter never responded to my questions: 

What sort of controller are you using? 

What I'm getting at here is that I want to make sure the corruption 
problem is due to the drive and not the controller or HBA driver. 

Also, can you supply dmesg output for the drive and controller?          


http://www.freebsd.org/cgi/query-pr.cgi?pr=24740 

From: Cy Schubert - ITSD Open Systems Group <Cy.Schubert@uumail.gov.bc.ca>
To: ken@FreeBSD.org
Cc: Cy.Schubert@uumail.gov.bc.ca, freebsd-bugs@FreeBSD.org
Subject: Re: kern/24740: filesystem corruption CFP1080 CAM SCSI 
 cam_xpt.c
Date: Tue, 06 Feb 2001 10:43:13 -0800

 AHA 2940U/UW
 
 Copyright (c) 1992-2000 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.2-RELEASE #8: Tue Jan 23 13:50:12 PST 2001
 root@cwsys:/usr/opt/cvs-420r/src/sys/compile/CWSYS
 Timecounter "i8254"  frequency 1193182 Hz
 Timecounter "TSC"  frequency 119752821 Hz
 CPU: Pentium/P54C (119.75-MHz 586-class CPU)
 Origin = "GenuineIntel"  Id = 0x52c  Stepping = 12
 Features=0x1bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
 real memory  = 83886080 (81920K bytes)
 avail memory = 78356480 (76520K bytes)
 Preloaded elf kernel "kernel" at 0xc0337000.
 Intel Pentium detected, installing workaround for F00F bug
 md0: Malloc disk
 npx0: <math processor> on motherboard
 npx0: INT 16 interface
 pcib0: <Host to PCI bridge> on motherboard
 pci0: <PCI bus> on pcib0
 isab0: <Intel 82371SB PCI to ISA bridge> at device 7.0 on pci0
 isa0: <ISA bus> on isab0
 atapci0: <Intel PIIX3 ATA controller> port 0xf000-0xf00f at device 7.1 
 on pci0
 ata0: at 0x1f0 irq 14 on atapci0
 ata1: at 0x170 irq 15 on atapci0
 pci0: <Intel 82371SB (PIIX3) USB controller> at 7.2 irq 9
 xl0: <3Com 3c905B-TX Fast Etherlink XL> port 0x6000-0x607f mem 
 0xe4001000-0xe400107f irq 5 at device 18.0 on pci0
 xl0: Ethernet address: 00:50:da:80:28:96
 miibus0: <MII bus> on xl0
 xlphy0: <3Com internal media interface> on miibus0
 xlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 ahc0: <Adaptec 2940 Ultra SCSI adapter> port 0x6100-0x61ff mem 
 0xe4000000-0xe4000fff irq 5 at device 19.0 on pci0
 aic7880: Wide Channel A, SCSI Id=7, 16/255 SCBs
 pci0: <S3 Trio graphics accelerator> at 20.0 irq 12
 fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on 
 isa0
 fdc0: FIFO enabled, 8 bytes threshold
 fd0: <1440-KB 3.5" drive> on fdc0 drive 0
 fd1: <1200-KB 5.25" drive> on fdc0 drive 1
 aha0 at port 0x330-0x333 irq 11 drq 5 on isa0
 aha0: AHA-1542CF FW Rev. C.0 (ID=45) SCSI Host Adapter, SCSI ID 7, 16 
 CCBs
 atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
 atkbd0: <AT Keyboard> irq 1 on atkbdc0
 vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on 
 isa0
 sc0: <System console> on isa0
 sc0: VGA <16 virtual consoles, flags=0x200>
 sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
 sio0: type 16550A
 sio1 at port 0x2f8-0x2ff irq 3 on isa0
 sio1: type 16550A
 ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
 lpt0: <Printer> on ppbus0
 lpt0: Interrupt-driven port
 ep0: <3Com 3C509-Combo EtherLink III> at port 0x300-0x30f irq 10 on isa0
 ep0: Ethernet address 00:60:97:d3:32:3e
 IP packet filtering initialized, divert enabled, rule-based forwarding 
 enabled, default to deny, unlimited logging
 DUMMYNET initialized (000608)
 IP Filter: v3.4.16 initialized.  Default = block all, Logging = enabled
 ad0: 2014MB <WDC AC22100H> [4092/16/63] at ata0-master WDMA2
 ad2: 2441MB <WDC AC22500L> [4960/16/63] at ata1-master WDMA2
 Waiting 15 seconds for SCSI devices to settle
 sa0 at ahc0 bus 0 target 4 lun 0
 sa0: <ARCHIVE Python 28388-XXX 5.45> Removable Sequential Access SCSI-2 
 device
 sa0: 7.812MB/s transfers (7.812MHz, offset 15)
 da1 at ahc0 bus 0 target 1 lun 0
 da1: <SEAGATE ST34520N 1487> Fixed Direct Access SCSI-2 device 
 da1: 10.000MB/s transfers (10.000MHz, offset 15), Tagged Queueing 
 Enabled
 da1: 4340MB (8888924 512 byte sectors: 64H 32S/T 4340C)
 da0 at ahc0 bus 0 target 0 lun 0
 da0: <CONNER CFP1080S 4649> Fixed Direct Access SCSI-2 device 
 da0: 10.000MB/s transfers (10.000MHz, offset 15), Tagged Queueing 
 Enabled
 da0: 1030MB (2110812 512 byte sectors: 64H 32S/T 1030C)
 Mounting root from ufs:/dev/ad0s1a
 cd0 at ahc0 bus 0 target 2 lun 0
 cd0: <PLEXTOR CD-ROM PX-4XCH 1.22> Removable CD-ROM SCSI-2 device 
 cd0: 4.032MB/s transfers (4.032MHz, offset 15)
 cd0: Attempt to query device size failed: NOT READY, Medium not present
 da2 at aha0 bus 0 target 6 lun 0
 da2: <IOMEGA ZIP 100 D.09> Removable Direct Access SCSI-2 device 
 da2: 3.300MB/s transfers
 da2: Attempt to query device size failed: NOT READY, Medium not present
 
 
 
 Regards,                         Phone:  (250)387-8437
 Cy Schubert                        Fax:  (250)387-5766
 Team Leader, Sun/Alpha Team   Internet:  Cy.Schubert@osg.gov.bc.ca
 Open Systems Group, ITSD, ISTA
 Province of BC
 
 In message <200102060047.f160lU516022@freefall.freebsd.org>, 
 ken@FreeBSD.org wr
 ites:
 > Synopsis: filesystem corruption CFP1080 CAM SCSI cam_xpt.c
 > 
 > State-Changed-From-To: open->feedback
 > State-Changed-By: ken
 > State-Changed-When: Mon Feb 5 16:45:47 PST 2001
 > State-Changed-Why: 
 > Submitter never responded to my questions:
 > 
 > What sort of controller are you using?
 > 
 > What I'm getting at here is that I want to make sure the corruption
 > problem is due to the drive and not the controller or HBA driver.
 > 
 > Also, can you supply dmesg output for the drive and controller?         
 > 
 > 
 > http://www.freebsd.org/cgi/query-pr.cgi?pr=24740
 
 
Responsible-Changed-From-To: freebsd-bugs->cy 
Responsible-Changed-By: asmodai 
Responsible-Changed-When: Thu Nov 15 11:25:59 PST 2001 
Responsible-Changed-Why:  
Now that you are a committer, have fun cleaning up your own PRs. :) 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=24740 
State-Changed-From-To: feedback->suspended 
State-Changed-By: cy 
State-Changed-When: Sun Jun 2 15:28:51 PDT 2002 
State-Changed-Why:  
Am unable to recreate the problem because I no longer have that 
controller.  Another controller of the same model but with 
different firmware does not exhibit the problem. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=24740 
State-Changed-From-To: suspended->closed 
State-Changed-By: cy 
State-Changed-When: Wed Nov 9 16:52:31 GMT 2005 
State-Changed-Why:  
Unable to recreate the problem under FreeBSD 4.X, 5.X, and 6.0. 

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