From owner-freebsd-bugs@FreeBSD.ORG Sun Aug 24 09:00:23 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5EB3816A4BF for ; Sun, 24 Aug 2003 09:00:23 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C22C43F3F for ; Sun, 24 Aug 2003 09:00:22 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h7OG0MUp009523 for ; Sun, 24 Aug 2003 09:00:22 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h7OG0Mh8009522; Sun, 24 Aug 2003 09:00:22 -0700 (PDT) Resent-Date: Sun, 24 Aug 2003 09:00:22 -0700 (PDT) Resent-Message-Id: <200308241600.h7OG0Mh8009522@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, Hideyuki KURASHINA Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 503A016A4BF for ; Sun, 24 Aug 2003 08:56:06 -0700 (PDT) Received: from wasley.bl.mmtr.or.jp (wasley.bl.mmtr.or.jp [210.228.173.142]) by mx1.FreeBSD.org (Postfix) with SMTP id 4C50143FF2 for ; Sun, 24 Aug 2003 08:56:04 -0700 (PDT) (envelope-from rushani@FreeBSD.org) Received: (qmail 22253 invoked from network); 25 Aug 2003 00:56:02 +0900 Received: from unknown (HELO localhost) (202.229.16.132) by mx.bl.mmtr.or.jp with SMTP; 25 Aug 2003 00:56:02 +0900 Message-Id: <20030825.005515.82158510.rushani@FreeBSD.org> Date: Mon, 25 Aug 2003 00:55:15 +0900 (JST) From: Hideyuki KURASHINA To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: SHIOTA Shoichi cc: sos@FreeBSD.org Subject: kern/55926: [PATCH] VIA VT8237 support X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Aug 2003 16:00:23 -0000 >Number: 55926 >Category: kern >Synopsis: [PATCH] VIA VT8237 support >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sun Aug 24 09:00:21 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Hideyuki KURASHINA >Release: >Organization: >Environment: >Description: I received a mail at FreeBSD mailing list in Japan, which is related to VIA VT8237. SHIOTA-san, who is original reporter, bought ASUS A7V600 that has KT600 Chipset. Unfortunately, FreeBSD 5.1-CURRENT recognizes that chip as follows; ad0: 114473MB [232581/16/63] at ata0-master PIO4 acd0: DVD-ROM at ata1-master PIO4 He made a simple patch that attached at end of this mail, applying to his system results like following; atapci0: port 0xa400-0xa4ff,0xa800-0xa80f,0xb000-0xb003, 0xb400-0xb407,0xb800-0xb803,0xd000-0xd007 irq 3 at device 15.0 on pci0 ata2: at 0xd000 on atapci0 ata3: at 0xb400 on atapci0 atapci1: port 0xa000-0xa00f at device 15.1 on pci0 ata0: at 0x1f0 irq 14 on atapci1 ata1: at 0x170 irq 15 on atapci1 ad0: 114473MB [232581/16/63] at ata0-master UDMA100 ata1-master: DMA limited to UDMA33, non-ATA66 cable or device acd0: DVD-ROM at ata1-master UDMA33 According to SHIOTA-san's testing, this change yields 12 times faster than before. I've checked VIA's web site, IDE Support, Linux Application Notes http://www.viaarena.com/?PageID=297 and then downloaded VT8237 South Bridge SATA RAID controller http://downloads.viaarena.com/LinuxApplicationNotes/Aug03/VIA%20RH7.2%20SATA%20Device%20ver0.8.gz then extracted it. The file `pcitable' in distfile shows 0x1106 0x3149 "viasraid" "VIATECH|VIA VT6420 RAID Controller" It seems that 0x3149 is sufficient for VT8237, I think. Could you please commit this? >How-To-Repeat: >Fix: Apply following patch; Index: ata-chipset.c =================================================================== RCS file: /home/ncvs/src/sys/dev/ata/ata-chipset.c,v retrieving revision 1.34 diff -u -r1.34 ata-chipset.c --- ata-chipset.c 24 Aug 2003 09:22:26 -0000 1.34 +++ ata-chipset.c 24 Aug 2003 15:33:41 -0000 @@ -2052,6 +2052,7 @@ { ATA_VIA8233C, 0x00, VIA100, 0x00, ATA_UDMA5, "VIA 8233C" }, { ATA_VIA8233A, 0x00, VIA133, 0x00, ATA_UDMA6, "VIA 8233A" }, { ATA_VIA8235, 0x00, VIA133, 0x00, ATA_UDMA6, "VIA 8235" }, + { ATA_VIA8237, 0x00, VIA133, 0x00, ATA_UDMA6, "VIA 8237" }, { 0, 0, 0, 0, 0, 0 }}; char buffer[64]; Index: ata-pci.h =================================================================== RCS file: /home/ncvs/src/sys/dev/ata/ata-pci.h,v retrieving revision 1.13 diff -u -r1.13 ata-pci.h --- ata-pci.h 24 Aug 2003 09:22:26 -0000 1.13 +++ ata-pci.h 24 Aug 2003 15:34:38 -0000 @@ -215,6 +215,7 @@ #define ATA_VIA8233A 0x31471106 #define ATA_VIA8233C 0x31091106 #define ATA_VIA8235 0x31771106 +#define ATA_VIA8237 0x31491106 #define ATA_VIA8361 0x31121106 #define ATA_VIA8363 0x03051106 #define ATA_VIA8371 0x03911106 >Release-Note: >Audit-Trail: >Unformatted: