From owner-freebsd-bugs@FreeBSD.ORG Tue Aug 5 20:10:21 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0A7CA37B401 for ; Tue, 5 Aug 2003 20:10:21 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5EB4943F93 for ; Tue, 5 Aug 2003 20:10:18 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h763AIUp028768 for ; Tue, 5 Aug 2003 20:10:18 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h763AIGq028767; Tue, 5 Aug 2003 20:10:18 -0700 (PDT) Resent-Date: Tue, 5 Aug 2003 20:10:18 -0700 (PDT) Resent-Message-Id: <200308060310.h763AIGq028767@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Soonmyung Hong Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A1AF737B401 for ; Tue, 5 Aug 2003 20:07:48 -0700 (PDT) Received: from copper.he.net (copper.he.net [216.218.164.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1EAC243FD7 for ; Tue, 5 Aug 2003 20:07:46 -0700 (PDT) (envelope-from sonnet@teatime.org) Received: from teatime.org ([220.117.215.185] (may be forged)) by copper.he.net (8.8.6p2003-03-31/8.8.2) with ESMTP id UAA20313 for ; Tue, 5 Aug 2003 20:07:44 -0700 Message-Id: <3F30713A.9060100@teatime.org> Date: Wed, 06 Aug 2003 12:08:42 +0900 From: Soonmyung Hong To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/55299: Promise ATA controller can't handle UDMA device properly X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Aug 2003 03:10:21 -0000 >Number: 55299 >Category: kern >Synopsis: Promise ATA controller can't handle UDMA device properly >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Aug 05 20:10:17 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Soonmyung Hong >Release: FreeBSD 4.8-STABLE i386 / FreeBSD 5.1-CURRENT i386 >Organization: ubAgent Inc. >Environment: System: FreeBSD hel.ubagent.com 4.8-STABLE FreeBSD 4.8-STABLE #0: Thu Jul 31 21:01:57 KST 2003 root@hel.ubagent.com:/usr/obj/usr/src/sys/HEL i386 FreeBSD fs0.ubagent.com 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Mon Aug 4 03:42:13 KST 2003 root@fs0.ubagent.com:/usr/obj/usr/src/sys/FS i386 MB: Intel SE7500CW2 HDD: Western Digital WD2500JB(250GB IDE) * 4 >Description: Intel mainboard has on-board IDE-RAID controller PDC-20267, I used it as just additional IDE controller. When I connected HDD to Promise controller, driver doesn't work properly. (4-Stable and 5-Current show different behaviors.) 1) 4.8R and 4-Stable Case When I connect HDD to any(primary master/slave, secondary master/slave) channel of promise controller, system hang(fatal trap 12) after message > ad6: READ command timeout tag=0 serv=0 - resetting workaround: Set hw.ata.ata_dma="0" at loader command line(for CD install), or /boot/loader.conf(for installed one). But it shows very unpleasant perfomance. 2) 5.1R and 5-Current Case When I connected HDD to primary master(alone) or primary master/slave, it works properly. # atacontrol list ATA channel 0: Master: ad0 ATA/ATAPI rev 6 Slave: no device present ATA channel 1: Master: acd0 ATA/ATAPI rev 0 Slave: ad3 ATA/ATAPI rev 6 ATA channel 2: Master: ad4 ATA/ATAPI rev 6 Slave: ad5 ATA/ATAPI rev 6 ATA channel 3: Master: no device present Slave: no device present # atacontrol mode 2 Master = UDMA100 Slave = UDMA100 But when I connect HDD to secondary master(alone) or secondary master/slave, It doesn't work UDMA100. At boot time, driver report below message. > ad6: READ command timeout tag=0 serv=0 - resetting > ata3: resetting device .. > ata3-slave: ATA identify retries exceeded. > done repeated 3 times and fail back to PIO4 mode. In this case, fatal trap 12 doesn't happened. # atacontrol list ATA channel 0: Master: ad0 ATA/ATAPI rev 6 Slave: no device present ATA channel 1: Master: acd0 ATA/ATAPI rev 0 Slave: ad3 ATA/ATAPI rev 6 ATA channel 2: Master: ad4 ATA/ATAPI rev 6 Slave: ad5 ATA/ATAPI rev 6 ATA channel 3: Master: ad6 ATA/ATAPI rev 6 Slave: no device present # atacontrol mode 3 Master = PIO4 Slave = ??? It is odd that secondary master(alone) configuration also show message "ata3-slave: ATA identify retries exceeded.". I convinced it is not hardware/connection/cable problem. (I carefully tested on 4 different machine(4Motherboard/16HDD)). I think kern/50559 is similar problem. >How-To-Repeat: everytime (I test it with 4 different machine with same configuration) >Fix: >Release-Note: >Audit-Trail: >Unformatted: