From owner-freebsd-bugs@FreeBSD.ORG Mon Oct 9 14:20:17 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org 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 F1D1016A416 for ; Mon, 9 Oct 2006 14:20:17 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 66C3243D46 for ; Mon, 9 Oct 2006 14:20:17 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k99EKHJe093431 for ; Mon, 9 Oct 2006 14:20:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k99EKHmf093425; Mon, 9 Oct 2006 14:20:17 GMT (envelope-from gnats) Resent-Date: Mon, 9 Oct 2006 14:20:17 GMT Resent-Message-Id: <200610091420.k99EKHmf093425@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, Shuichi KITAGUCHI Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 61A8116A412 for ; Mon, 9 Oct 2006 14:15:54 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 151AF43D76 for ; Mon, 9 Oct 2006 14:15:50 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k99EFnNZ098330 for ; Mon, 9 Oct 2006 14:15:49 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k99EFncZ098329; Mon, 9 Oct 2006 14:15:49 GMT (envelope-from nobody) Message-Id: <200610091415.k99EFncZ098329@www.freebsd.org> Date: Mon, 9 Oct 2006 14:15:49 GMT From: Shuichi KITAGUCHI To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: kern/104212: [PATCH] support for Kuroutoshikou SERIAL4P-LPPCI2 (4port serial card) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Oct 2006 14:20:18 -0000 >Number: 104212 >Category: kern >Synopsis: [PATCH] support for Kuroutoshikou SERIAL4P-LPPCI2 (4port serial card) >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: Mon Oct 09 14:20:16 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Shuichi KITAGUCHI >Release: 6.2-PRERELEASE >Organization: >Environment: FreeBSD themis.k.ysnb.net 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #1: Sat Oct 7 02:21:33 JST 2006 root@themis.k.ysnb.net:/pub/obj/usr/src/sys/THEMIS i386 >Description: Kuroutoshikou SERIAL4P-LPPCI2 (http://www.kuroutoshikou.com/modules/display/?iid=173) seems to use Oxford Semiconductor Ltd OX16PCI954, but default configuration does not work. modified pucddata.c which config is copied from "SIIG Cyber 4S PCI 16C650 (20x family)" works well for me. please apply an attached patch. >How-To-Repeat: boot 6-STABLE with SERIAL4P-LPPCI2. dmesg is here: puc0: port 0x9000-0x901f,0x9400-0x941f mem 0xe4061000-0xe4061fff,0xe4062000-0xe4062fff irq 7 at device 4.0 on pci1 puc0: Reserved 0x20 bytes for rid 0x10 type 4 at 0x9000 sio2: on puc0 sio2: type 16550A (multiport master) sio2: unable to activate interrupt in fast mode - using normal mode sio3: on puc0 sio3: type 16550A (multiport) sio3: unable to activate interrupt in fast mode - using normal mode sio4: on puc0 sio4: type 16550A (multiport) sio4: unable to activate interrupt in fast mode - using normal mode sio5: on puc0 sio5: type 16550A (multiport) sio5: unable to activate interrupt in fast mode - using normal mode pciconv -lv is here: puc0@pci1:4:0: class=0x070006 card=0x215014db chip=0x95011415 rev=0x00 hdr=0x00 vendor = 'Oxford Semiconductor Ltd' device = 'OX16PCI954 Quad UART' class = simple comms subclass = UART >Fix: patch for 6-STABLE is here: --- pucdata.c.orig Sat Sep 9 00:06:31 2006 +++ pucdata.c Sat Oct 7 02:14:20 2006 @@ -876,6 +876,18 @@ }, }, + /* Kuroutoshikou SERIAL4P-LPPCI2 */ + { "Kuroutoshikou SERIAL4P-LPPCI2", + { 0x1415, 0x9501, 0x14db, 0x2150 }, + { 0xffff, 0xffff, 0xffff, 0xffff }, + { + { PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ * 10 }, + { PUC_PORT_TYPE_COM, 0x10, 0x08, COM_FREQ * 10 }, + { PUC_PORT_TYPE_COM, 0x10, 0x10, COM_FREQ * 10 }, + { PUC_PORT_TYPE_COM, 0x10, 0x18, COM_FREQ * 10 }, + }, + }, + /* Oxford Semiconductor OX16PCI954 PCI UARTs */ { "Oxford Semiconductor OX16PCI954 UARTs", { 0x1415, 0x9501, 0, 0 }, patch for -CURRENT is here: (not tested) --- pucdata.c.orig Fri Sep 8 23:43:41 2006 +++ pucdata.c Mon Oct 9 22:45:10 2006 @@ -596,6 +596,12 @@ PUC_PORT_4S, 0x10, 0, 8, }, + { 0x1415, 0x9501, 0x14db, 0x2150, + "Kuroutoshikou SERIAL4P-LPPCI2", + DEFAULT_RCLK * 10, + PUC_PORT_4S, 0x10, 0, 8, + }, + { 0x1415, 0x9501, 0xffff, 0, "Oxford Semiconductor OX16PCI954 UARTs", DEFAULT_RCLK, >Release-Note: >Audit-Trail: >Unformatted: