Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Oct 2006 14:15:49 GMT
From:      Shuichi KITAGUCHI<kit@ysnb.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/104212: [PATCH] support for Kuroutoshikou SERIAL4P-LPPCI2 (4port serial card)
Message-ID:  <200610091415.k99EFncZ098329@www.freebsd.org>
Resent-Message-ID: <200610091420.k99EKHmf093425@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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: <Oxford Semiconductor OX16PCI954 UARTs> 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: <Oxford Semiconductor OX16PCI954 UARTs> on puc0
sio2: type 16550A (multiport master)
sio2: unable to activate interrupt in fast mode - using normal mode
sio3: <Oxford Semiconductor OX16PCI954 UARTs> on puc0
sio3: type 16550A (multiport)
sio3: unable to activate interrupt in fast mode - using normal mode
sio4: <Oxford Semiconductor OX16PCI954 UARTs> on puc0
sio4: type 16550A (multiport)
sio4: unable to activate interrupt in fast mode - using normal mode
sio5: <Oxford Semiconductor OX16PCI954 UARTs> 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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200610091415.k99EFncZ098329>