From monsted@has.died.and.gone.to.nerdheaven.dk  Mon Aug 25 08:56:05 2003
Return-Path: <monsted@has.died.and.gone.to.nerdheaven.dk>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 2D97C16A4C0
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 25 Aug 2003 08:56:05 -0700 (PDT)
Received: from has.died.and.gone.to.nerdheaven.dk (rootweiler.dk [193.88.12.110])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 3E2F143FDF
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 25 Aug 2003 08:56:04 -0700 (PDT)
	(envelope-from monsted@has.died.and.gone.to.nerdheaven.dk)
Received: by has.died.and.gone.to.nerdheaven.dk (Postfix, from userid 1000)
	id 079C8551B; Mon, 25 Aug 2003 17:56:01 +0200 (CEST)
Message-Id: <20030825155601.079C8551B@has.died.and.gone.to.nerdheaven.dk>
Date: Mon, 25 Aug 2003 17:56:01 +0200 (CEST)
From: Jesper Monsted <jesper@monsted.dk>
Reply-To: Jesper Monsted <jesper@monsted.dk>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: IO to PATA drives on Promise SATA150 TX2plus (PDC20375) causes kernel lock-up
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         55960
>Category:       kern
>Synopsis:       IO to PATA drives on Promise SATA150 TX2plus (PDC20375) causes kernel lock-up
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    sos
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 25 09:00:18 PDT 2003
>Closed-Date:    Fri Aug 27 17:37:27 GMT 2004
>Last-Modified:  Fri Aug 27 17:37:27 GMT 2004
>Originator:     Jesper Monsted
>Release:        FreeBSD 5.1-RELEASE-p2 i386
>Organization:
none
>Environment:
System: FreeBSD  5.1-RELEASE-p2 FreebSD 5.1-RELEASE-p2 #2: Sun Aug 24 22:45:33 CEST 2003    root@chef:/usr/obj/usr/src/sys/CHEF  i386

P3-1000, 512 MB RAM, Adaptec 2940UW SCSI controller, Promise Ultra133 TX2 (2xATA133), Promise SATA150 TX2plus (2xSATA, 1xATA133) controllers, one SCSI, five ATA, two SATA drives, one ATA CDrom.

# atacontrol list
ATA channel 0:
    Master:  ad0 <IC35L040AVER07-0/ER4OA44A> ATA/ATAPI rev 5
    Slave:   ad1 <IC35L040AVER07-0/ER4OA46A> ATA/ATAPI rev 5
ATA channel 1:
    Master: acd0 <PLEXTOR CD-R PX-W4012A/1.00> ATA/ATAPI rev 0
    Slave:       no device present
ATA channel 2:
    Master:  ad4 <ST3160023AS/3.05> ATA/ATAPI rev 6
    Slave:       no device present
ATA channel 3:
    Master:  ad6 <ST3160023AS/3.05> ATA/ATAPI rev 6
    Slave:       no device present
ATA channel 4:
    Master:  ad8 <Maxtor 4G160J8/GAK819K0> ATA/ATAPI rev 6
    Slave:       no device present
ATA channel 5:
    Master: ad10 <Maxtor 6Y160P0/YAR41VW0> ATA/ATAPI rev 7
    Slave:       no device present
ATA channel 6:
    Master: ad12 <Maxtor 4G160J8/GAK819K0> ATA/ATAPI rev 6
    Slave:       no device present

>Description:
Any command generating IO on the drives connected to the ATA133 channel of the SATA150 controller triggers a lock-up. There is no output on the terminal and the only option is a hard reset. First, it seemed to be a problem with vinum, but later study found it to be reproducable with 'dd if=/dev/ad8s1e of=/dev/null bs=1m' and similar. 
Similar commands running on the SATA drives work flawlessly.

The drive in question is known good, since it was just taken off another controller and moved to the SATA one.

The problem was seen on both 5.1-RELEASE and CURRENT.

4.x was not tested since it didn't support the SATA controller.

The controller has been replaced with the same result.

>How-To-Repeat:
dd if=/dev/ad8s1e of=/dev/null bs=1m
Most traffic to a vinum array containing drive on the failing channel.

>Fix:

None known.

>Release-Note:
>Audit-Trail:

From: Stephen Casner <casner@acm.org>
To: freebsd-gnats-submit@FreeBSD.org
Cc: jesper@monsted.dk
Subject: Re: kern/55960: IO to PATA drives on Promise SATA150 TX2plus (PDC20375)
 causes kernel lock-up
Date: Mon, 15 Mar 2004 17:46:14 -0800 (PST)

 This bug did not repeat for me.
 Ran "dd if=/dev/ad8 of=/dev/null bs=1m" for all 250GB of ad8,
 also "dd if=/dev/ad8 of=/dev/ad9 bs=1m" for 128GB so far.
 
 System: FreeBSD 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #0: Mon Mar 15 15:51:25 PST 2004     casner@cauchy.packetdesign.com:/usr/src/sys/i386/compile/GENERIC  i386
 (patched per PR 61379 to allow slave drive to be detected)
 
 SuperMicro 370DLE motherboard
 Intel Pentium III (999.53-MHz 686-class CPU)
 128MB RAM
 Maxtor SATA/150 PCI CARD controller (Promise PDC20375 SATA150 TX2plus (2xSATA, 1xATA133))
 Two Maxtor 250GB ATA/133 drives, no SATA drives.
 
 # atacontrol list
 ATA channel 0:
     Master:  ad0 <Maxtor 92720U8/MA540RR0> ATA/ATAPI rev 5
     Slave:       no device present
 ATA channel 1:
     Master:      no device present
     Slave:       no device present
 ATA channel 2:
     Master:      no device present
     Slave:       no device present
 ATA channel 3:
     Master:      no device present
     Slave:       no device present
 ATA channel 4:
     Master:  ad8 <Maxtor 7Y250P0/YAR41BW0> ATA/ATAPI rev 7
     Slave:   ad9 <Maxtor 6Y250P0/YAR41BW0> ATA/ATAPI rev 7
 
                                                         -- Steve
Responsible-Changed-From-To: freebsd-bugs->sos 
Responsible-Changed-By: arved 
Responsible-Changed-When: Fri Aug 27 16:46:03 GMT 2004 
Responsible-Changed-Why:  
over to ATA Maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=55960 
State-Changed-From-To: open->closed 
State-Changed-By: sos 
State-Changed-When: Fri Aug 27 17:34:46 GMT 2004 
State-Changed-Why:  
There eas a few problems with the PATA ports on Promise controllers  
back when the support was green. You should definitly upgrade to  
preferably 5.3 or a current close to that. 

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