From arundel@gmx.net  Tue Jul 13 17:16:25 2004
Return-Path: <arundel@gmx.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id A5F5916A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 13 Jul 2004 17:16:25 +0000 (GMT)
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20])
	by mx1.FreeBSD.org (Postfix) with SMTP id AC87B43D31
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 13 Jul 2004 17:16:22 +0000 (GMT)
	(envelope-from arundel@gmx.net)
Received: (qmail 27205 invoked by uid 65534); 13 Jul 2004 17:16:21 -0000
Received: from pD9FF1118.dip.t-dialin.net (EHLO skatecity.) (217.255.17.24)
  by mail.gmx.net (mp011) with SMTP; 13 Jul 2004 19:16:21 +0200
Received: from skatecity. (freebsd@skatecity. [127.0.0.1])
	by skatecity. (8.12.11/8.12.11) with ESMTP id i6DHIiDe009765
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 13 Jul 2004 19:18:45 +0200 (CEST)
	(envelope-from arundel@skatecity)
Received: (from arundel@localhost)
	by skatecity. (8.12.11/8.12.11/Submit) id i6DHIiui009764;
	Tue, 13 Jul 2004 19:18:44 +0200 (CEST)
	(envelope-from arundel)
Message-Id: <200407131718.i6DHIiui009764@skatecity.>
Date: Tue, 13 Jul 2004 19:18:44 +0200 (CEST)
From: No Name <arundel@gmx.net>
Reply-To: No Name <arundel@gmx.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: LBA48 hd on Promise UDMA100 (plus fix)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         69009
>Category:       kern
>Synopsis:       [patch] LBA48 hd times out on Promise UDMA100
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    sos
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 13 17:20:20 GMT 2004
>Closed-Date:    Tue Aug 31 08:02:26 GMT 2004
>Last-Modified:  Tue Jul 27 16:30:05 UTC 2010
>Originator:     Alexander Best
>Release:        FreeBSD 4.10-STABLE i386
>Organization:
>Environment:
System: FreeBSD skatecity 4.10-STABLE FreeBSD 4.10-STABLE #0: Tue Jul 13 20:12:31 CEST 2004 root@:/usr/obj/usr/src/sys/ARUNDEL i386

>Description:
	When trying to boot from a big harddrive (LBA48), which is connected to the A7V
	onboard Promise UDMA100 controller FBSD won't boot.
>How-To-Repeat:

Using this controller (atapci1: <Promise ATA100 controller>):

	atapci1@pci0:17:0:      class=0x018000 card=0x4d33105a chip=0x0d30105a rev=0x02 hdr=0x00
	vendor   = 'Promise Technology Inc'
	device   = 'PDC20265 FastTrak100 Lite EIDE Controller'
	class    = mass storage

and this harddrive (ad4: 157066MB <HDS722516VLAT80> [319120/16/63]):

	ATA/ATAPI revision    6
	device model          HDS722516VLAT80
	serial number         VNR43EC4GYNGAM
	firmware revision     V34OA63A
	cylinders             16383
	heads                 16
	sectors/track         63
	lba supported         268435455 sectors
	lba48 supported         321672960 sectors
	dma supported
	overlap not supported

The following error occurs:

	ad4: WRITE command timeout tag=0 serv=0 - resetting

hw.ata.ata_dma: 1 => Error
hw.ata.ata_dma: 0 => Error

Btw.: No problems under the onboard DMA66 controller (atapci0: <VIA 82C686 ATA66 controller>):

	atapci0@pci0:4:1:       class=0x01018a card=0x00000000 chip=0x05711106 rev=0x10 hdr=0x00
	vendor   = 'VIA Technologies Inc'
	device   = 'VT82xxxx EIDE Controller (All VIA Chipsets)'
	class    = mass storage
	subclass = ATA

>Fix:

Apply the following patch and do a buldkernel/installkernel:

	http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/ata/ata-dma.c.diff?r1=1.106&r2=1.107

to (should be the newest -STABLE revision):

	$FreeBSD: /repoman/r/ncvs/src/sys/dev/ata/ata-dma.c,v 1.35.2.38 2003/12/31 18:05:16 jhb Exp $

Maybe the original patch code from (2003/01/08 10:03:31	1.107) got thrown out at some point?
I don't know what the situation is like in -CURRENT.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->sos 
Responsible-Changed-By: arved 
Responsible-Changed-When: Mon Aug 30 21:00:14 GMT 2004 
Responsible-Changed-Why:  
Over to Ata maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=69009 
State-Changed-From-To: open->closed 
State-Changed-By: sos 
State-Changed-When: Tue Aug 31 07:57:29 GMT 2004 
State-Changed-Why:  
Upgrade to 5.3 when it get there (or a recent -current). 

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