Subject: kern/35049: viaide.c v1.35 + VT8237 + ST3200822AS != OK
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <teemu@rinta-aho.org>
List: netbsd-bugs
Date: 11/13/2006 21:30:01
>Number:         35049
>Category:       kern
>Synopsis:       viaide.c v1.35 + VT8237 + ST3200822AS != OK
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 13 21:30:01 +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: