NetBSD Problem Report #35049

From www@NetBSD.org  Mon Nov 13 21:26:15 2006
Return-Path: <www@NetBSD.org>
Received: by narn.NetBSD.org (Postfix, from userid 31301)
	id 2960C63B400; Mon, 13 Nov 2006 21:26:15 +0000 (UTC)
Message-Id: <20061113212615.2960C63B400@narn.NetBSD.org>
Date: Mon, 13 Nov 2006 21:26:15 +0000 (UTC)
From: teemu@rinta-aho.org
Reply-To: teemu@rinta-aho.org
To: gnats-bugs@NetBSD.org
Subject: viaide.c v1.35 + VT8237 + ST3200822AS != OK
X-Send-Pr-Version: www-1.0

>Number:         35049
>Category:       kern
>Synopsis:       viaide.c v1.35 + VT8237 + ST3200822AS != OK
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    bouyer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 13 21:30:01 +0000 2006
>Closed-Date:    Tue Nov 14 18:40:45 +0000 2006
>Last-Modified:  Tue Nov 14 21:15:07 +0000 2006
>Originator:     Teemu Rinta-aho
>Release:        4.0_BETA
>Organization:
>Environment:
NetBSD server 4.0_BETA NetBSD 4.0_BETA (SERVER) #0: Fri Sep 29 01:13:41 EEST 2006  root@bsd4.rinta-aho.org:/usr/obj/usr/src/sys/arch/i386/compile/SERVER i386
>Description:
I have a VIA EPIA PD8000E Mini-ITX motherboard with VT8237 SATA controller and two Seagate 7200.7 SATA discs (ST3200822AS).

4.0_BETA kernel (Sep 29 2006) works fine, 4.99.3 (Nov 13 2006) does not. The problem seems to be with the new code added in version 1.35 of viaide.c. When booting up the discs are not recognized correctly. Type is "ST506" instead of "ST3200822AS", access is "chs" instead of "LBA48", size is less than half of what it should be etc... And as it doesn't match MBR, kernel doesn't boot.

I tried to compile -current with all the latest versions of files as of one hour ago except using version 1.34 of viaide.c and all seemed to work fine.
>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: kern-bug-people->bouyer
Responsible-Changed-By: bouyer@netbsd.org
Responsible-Changed-When: Tue, 14 Nov 2006 18:40:45 +0000
Responsible-Changed-Why:
I proposed a patch; also see kern/35008


State-Changed-From-To: open->closed
State-Changed-By: bouyer@netbsd.org
State-Changed-When: Tue, 14 Nov 2006 18:40:45 +0000
State-Changed-Why:
The patch is confirmed working by submitter, I commited it.


From: Manuel Bouyer <bouyer@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/35049 CVS commit: src/sys/dev/ic
Date: Tue, 14 Nov 2006 18:39:10 +0000 (UTC)

 Module Name:	src
 Committed By:	bouyer
 Date:		Tue Nov 14 18:39:10 UTC 2006

 Modified Files:
 	src/sys/dev/ic: wdc.c

 Log Message:
 wdc_sataprobe():
 - wait up to 1s for SStatus_DET_DEV after SControl_DET_INIT toggle (from
   FreeBSD)
 - reset the drive once we know it's there. It may be in some PM state and
   not able to properly reply to IDENTIFY. Tested by Teemu Rinta-aho,
   fixes PR kern/35049 and should also fix PR kern/35008.


 To generate a diff of this commit:
 cvs rdiff -r1.240 -r1.241 src/sys/dev/ic/wdc.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Teemu Rinta-aho" <teemu@rinta-aho.org>
To: gnats-bugs@NetBSD.org
Cc: bouyer@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org, teemu@rinta-aho.org
Subject: Re: PR/35049 CVS commit: src/sys/dev/ic
Date: Tue, 14 Nov 2006 22:11:53 +0200 (EET)

 Thanks for the patch! This PR can be closed.

 > The following reply was made to PR kern/35049; it has been noted by GNATS.
 >
 > From: Manuel Bouyer <bouyer@netbsd.org>
 > To: gnats-bugs@NetBSD.org
 > Cc:
 > Subject: PR/35049 CVS commit: src/sys/dev/ic
 > Date: Tue, 14 Nov 2006 18:39:10 +0000 (UTC)
 >
 >  Module Name:	src
 >  Committed By:	bouyer
 >  Date:		Tue Nov 14 18:39:10 UTC 2006
 >
 >  Modified Files:
 >  	src/sys/dev/ic: wdc.c
 >
 >  Log Message:
 >  wdc_sataprobe():
 >  - wait up to 1s for SStatus_DET_DEV after SControl_DET_INIT toggle (from
 >    FreeBSD)
 >  - reset the drive once we know it's there. It may be in some PM state and
 >    not able to properly reply to IDENTIFY. Tested by Teemu Rinta-aho,
 >    fixes PR kern/35049 and should also fix PR kern/35008.
 >
 >
 >  To generate a diff of this commit:
 >  cvs rdiff -r1.240 -r1.241 src/sys/dev/ic/wdc.c
 >
 >  Please note that diffs are not public domain; they are subject to the
 >  copyright notices on the relevant files.
 >
 >
 >
 >


From: "Teemu Rinta-aho" <teemu@rinta-aho.org>
To: gnats-bugs@NetBSD.org
Cc: bouyer@netbsd.org, kern-bug-people@netbsd.org,
	netbsd-bugs@netbsd.org, gnats-admin@netbsd.org, teemu@rinta-aho.org
Subject: Re: kern/35049 (viaide.c v1.35 + VT8237 + ST3200822AS != OK)
Date: Tue, 14 Nov 2006 22:12:25 +0200 (EET)

 Ah, I was late :-)

 > Synopsis: viaide.c v1.35 + VT8237 + ST3200822AS != OK
 >
 > Responsible-Changed-From-To: kern-bug-people->bouyer
 > Responsible-Changed-By: bouyer@netbsd.org
 > Responsible-Changed-When: Tue, 14 Nov 2006 18:40:45 +0000
 > Responsible-Changed-Why:
 > I proposed a patch; also see kern/35008
 >
 >
 > State-Changed-From-To: open->closed
 > State-Changed-By: bouyer@netbsd.org
 > State-Changed-When: Tue, 14 Nov 2006 18:40:45 +0000
 > State-Changed-Why:
 > The patch is confirmed working by submitter, I commited it.
 >
 >
 >
 >
 >


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.