From nobody@FreeBSD.org  Mon Apr 10 21:41:32 2000
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21])
	by hub.freebsd.org (Postfix) with ESMTP id D47D237B595
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 10 Apr 2000 21:41:32 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.9.3/8.9.2) id VAA48667;
	Mon, 10 Apr 2000 21:41:32 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Message-Id: <200004110441.VAA48667@freefall.freebsd.org>
Date: Mon, 10 Apr 2000 21:41:32 -0700 (PDT)
From: pir-freebsd@pir.net
Sender: nobody@FreeBSD.org
To: freebsd-gnats-submit@FreeBSD.org
Subject: ata/ad driver HARD ERROR failure with internal disk on an NCR laptop
X-Send-Pr-Version: www-1.0

>Number:         17920
>Category:       kern
>Synopsis:       ata/ad driver HARD ERROR failure with internal disk on an NCR laptop
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    sos
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 10 21:50:01 PDT 2000
>Closed-Date:    Tue Nov 14 00:45:07 PST 2000
>Last-Modified:  Tue Nov 14 00:46:00 PST 2000
>Originator:     Peter Radcliffe
>Release:        4.0-STABLE as of 2000-4-7
>Organization:
>Environment:
FreeBSD foop 4.0-STABLE FreeBSD 4.0-STABLE #5: Mon Apr 10 19:01:25 EDT 2000     pir@peem:/usr/src/sys/compile/WD  i386

>Description:
hardware: NEC Versa V/50 laptop.
4.0 ATA driver fails with a HARD ERROR on the internal IDE disk.

From the 4.0-R install floppies the ATA controller is recognised during 
boot and then during device probe a pair of hard errors in the debug
screen;

  ad0: HARD READ ERROR blk# 0 status 51 error=04
  ad0: reading primary partition stable: error reading fsbn: 0
  ad0: HARD READ ERROR blk# 0 status 51 error=04
  ad0: reading primary partition stable: error reading fsbn: 0

I did the install by installing a minimal 3.4-PAO, which worked fine,
and then a manual installation of 4.0 via NFS (sysinstall wouldn't
recognise wd0 during a floppy install with a custom wdc kernel on
kern.flp).

I built a kernel on a 4.0-S machine using wdc instead of ata which
works perfectly;

  wdc0 at port 0x1f0-0x1f7 irq 14 on isa0
  wdc0: unit 0 (wd0): <IBM-H2344-A4>
  wd0: 328MB (672525 sectors), 915 cyls, 15 heads, 49 S/T, 512 B/S
  wdc0: driver is using old-style compatability shims

If I build an ATA kernel and try to boot from it I get;

  ad0: 320MB <IBM-H2344-A4> [915/15/49] at ata0-master using BIOSPIO
  Mounting root from ufs:/dev/ad0s1a
  ad0: HARD ERROR blk# 0 status=51 error=04
  ad0: reading primary partition stable: error reading fsbn 0

It was suggested that this could be the pio problem, but the messages
I've found imply it is already trying to use pio mode.


>How-To-Repeat:
boot this laptop from 4.0-R install floppies.

>Fix:
:/


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->sos 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Tue Apr 11 05:52:45 PDT 2000 
Responsible-Changed-Why:  
Ah, an ata-related PR with a datapoint.  Perhaps Soren can help. :-) 

From: Tim Vanderhoek <vanderh@ecf.utoronto.ca>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: kern/17920
Date: Tue, 16 May 2000 16:08:49 -0400

 The following was intended to be a follow-up to this PR.
 
 ----- Forwarded message from Tim Vanderhoek <tim@localhost.nowhere> -----
 
 >   Description
 >          
 > An extra datapoint on this problem.
 >
 > I tracked down a spare disk in a caddy and disk for this machine so I
 > could leave 3.4-PAO on the new disk (which is smaller) and test with
 > 4.x on the old disk.
 >
 > 4.0-R doesn't produce the same errors with the new disk (a seagate
 > ST9144A) so it looks like the old disk (or the combination of disk and
 > controller) is the problem. It's an IBM OEM disk, IBM-H2344-A4 disk;
 > 344Mb, 915/15/49.
 >
 > I don't have another machine I can test this disk in but would be
 > quite happy to ship it to someone else who does and could spend time
 > debugging the low level problem.
 >
 > P.
 >
 > --
 > pir                  pir@pir.net                    pir@net.tufts.edu
 
 ----- End forwarded message -----
 
 
 -- 
 Signature withheld by request of author.
 
State-Changed-From-To: open->closed 
State-Changed-By: sos 
State-Changed-When: Tue Nov 14 00:45:07 PST 2000 
State-Changed-Why:  
Please upgrade to 4.2, and get back to me if problem persists. 

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