Subject: kern/34927: viaide.c does not contain entry in pciide_via_products[] for VT8237A SATA controller
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <blair.sadewitz@gmail.com>
List: netbsd-bugs
Date: 10/27/2006 03:50:00
>Number:         34927
>Category:       kern
>Synopsis:       viaide.c does not contain entry in pciide_via_products[] for VT8237A SATA controller
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 27 03:50:00 +0000 2006
>Originator:     Blair Sadewitz
>Release:        4.99.3
>Organization:
>Environment:
NetBSD woody 4.99.3 NetBSD 4.99.3 (kernel) #0: Thu Oct 26 23:25:06 EDT 2006  blair@woody:/home/blair/kernel amd64
>Description:
The appropriate entires for the VT8237A SATA controller are present in pcidevs and pcidevs.h, but not in viaide.c.  Thus, this controller is not recognized and pciide(4) attaches instead.

>How-To-Repeat:
Use a SATA drive with the VT8237A south bridge.  Savor the sluggishness.
>Fix:
--- viaide.c.orig       2006-10-26 23:29:52.000000000 -0400
+++ viaide.c    2006-10-26 23:29:41.000000000 -0400
@@ -258,6 +258,11 @@
          "VIA Technologies VT8237 SATA Controller",
          via_sata_chip_map,
        },
+       { PCI_PRODUCT_VIATECH_VT8237A_SATA,
+         0,
+         "VIA Technologies VT8237A SATA Controller",
+         via_sata_chip_map,
+       },
        { PCI_PRODUCT_VIATECH_VT8237R_SATA,
          0,
          "VIA Technologies VT8237R SATA Controller",