From owner-freebsd-bugs@FreeBSD.ORG Sun Mar 9 14:10:02 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7675F1065673 for ; Sun, 9 Mar 2008 14:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 492938FC17 for ; Sun, 9 Mar 2008 14:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m29EA2Kn079768 for ; Sun, 9 Mar 2008 14:10:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m29EA27G079767; Sun, 9 Mar 2008 14:10:02 GMT (envelope-from gnats) Resent-Date: Sun, 9 Mar 2008 14:10:02 GMT Resent-Message-Id: <200803091410.m29EA27G079767@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Yoshihiko Sarumaru Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 970A5106566B for ; Sun, 9 Mar 2008 14:04:12 +0000 (UTC) (envelope-from sarumaru@yumi.yamayuri.org) Received: from yumi.yamayuri.org (unknown [IPv6:2001:380:e02:3f:204:5fff:fe00:9621]) by mx1.freebsd.org (Postfix) with ESMTP id 253E38FC1F for ; Sun, 9 Mar 2008 14:04:11 +0000 (UTC) (envelope-from sarumaru@yumi.yamayuri.org) Received: from yumi.yamayuri.org (sarumaru@localhost [127.0.0.1]) by yumi.yamayuri.org (8.13.8/8.13.8) with ESMTP id m29E49MM008050 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 9 Mar 2008 23:04:09 +0900 (JST) (envelope-from sarumaru@yumi.yamayuri.org) Received: (from sarumaru@localhost) by yumi.yamayuri.org (8.13.8/8.13.8/Submit) id m29E47t5008049; Sun, 9 Mar 2008 23:04:07 +0900 (JST) (envelope-from sarumaru) Message-Id: <200803091404.m29E47t5008049@yumi.yamayuri.org> Date: Sun, 9 Mar 2008 23:04:07 +0900 (JST) From: Yoshihiko Sarumaru To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: kern/121521: add VIA CX700M2 chipset to ata driver X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Yoshihiko Sarumaru List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Mar 2008 14:10:02 -0000 >Number: 121521 >Category: kern >Synopsis: add VIA CX700M2 chipset to ata driver >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Mar 09 14:10:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Yoshihiko Sarumaru >Release: FreeBSD 6.3-RELEASE i386 >Organization: >Environment: System: FreeBSD yumi.yamayuri.org 6.2-RELEASE-p3 FreeBSD 6.2-RELEASE-p3 #0: Tue Mar 27 01:55:53 JST 2007 root@yumi.yamayuri.org:/usr/obj/usr/src/sys/YUMI i386 >Description: FreeBSD ata driver doesn't know VIA CX700M2 chipset and it fallback to UDMA33 mode on boot. This patch introduces VIA CX700M2 to FreeBSD ata driver. I'm not sure this chipset has AHCI feature. http://www.via.com.tw/en/products/chipsets/c-series/cx700m/ before: atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xff00-0xff0f at device 15.0 on pci0 ad2: 152627MB at ata1-master UDMA33 after: atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xff00-0xff0f at device 15.0 on pci0 ad2: 152627MB at ata1-master UDMA100 # HTE541616J9AT00 is an UDMA100 device. CX700 and CX700M are also not have been added to ata driver, but I don't know PCI IDs of these chipsets, sorry. >How-To-Repeat: >Fix: patch to FreeBSD 6.3-RELEASE. --- sys/dev/ata/ata-pci.h.orig 2007-11-22 16:50:36.000000000 +0900 +++ sys/dev/ata/ata-pci.h 2008-03-09 21:41:58.000000000 +0900 @@ -374,6 +374,7 @@ #define ATA_VIA6410 0x31641106 #define ATA_VIA6420 0x31491106 #define ATA_VIA6421 0x32491106 +#define ATA_VIACX700M2 0x53241106 /* chipset setup related defines */ #define AHCI 1 --- sys/dev/ata/ata-chipset.c.orig 2007-12-10 04:27:19.000000000 +0900 +++ sys/dev/ata/ata-chipset.c 2008-03-09 21:43:27.000000000 +0900 @@ -5276,6 +5276,7 @@ { ATA_VIA8237A, 0x00, VIA133, 0x00, ATA_UDMA6, "8237A" }, { ATA_VIA8237S, 0x00, VIA133, 0x00, ATA_UDMA6, "8237S" }, { ATA_VIA8251, 0x00, VIA133, 0x00, ATA_UDMA6, "8251" }, + { ATA_VIACX700M2,0x00, VIA133, 0x00, ATA_UDMA6, "CX700M2" }, { 0, 0, 0, 0, 0, 0 }}; static struct ata_chip_id new_ids[] = {{ ATA_VIA6410, 0x00, 0, 0x00, ATA_UDMA6, "6410" }, @@ -5284,6 +5285,7 @@ { ATA_VIA8237A, 0x00, 7, 0x00, ATA_SA150, "8237A" }, { ATA_VIA8237S, 0x00, 7, 0x00, ATA_SA150, "8237S" }, { ATA_VIA8251, 0x00, 0, VIAAHCI, ATA_SA300, "8251" }, + { ATA_VIACX700M2,0x00, 0, 0x00, ATA_SA300, "CX700M2" }, { 0, 0, 0, 0, 0, 0 }}; if (pci_get_devid(dev) == ATA_VIA82C571) { >Release-Note: >Audit-Trail: >Unformatted: