From owner-freebsd-hardware@FreeBSD.ORG Sun May 22 07:29:56 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5B212106566B for ; Sun, 22 May 2011 07:29:56 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta15.emeryville.ca.mail.comcast.net (qmta15.emeryville.ca.mail.comcast.net [76.96.27.228]) by mx1.freebsd.org (Postfix) with ESMTP id 457808FC14 for ; Sun, 22 May 2011 07:29:56 +0000 (UTC) Received: from omta03.emeryville.ca.mail.comcast.net ([76.96.30.27]) by qmta15.emeryville.ca.mail.comcast.net with comcast id mXGj1g0020b6N64AFXGkSu; Sun, 22 May 2011 07:16:44 +0000 Received: from koitsu.dyndns.org ([67.180.84.87]) by omta03.emeryville.ca.mail.comcast.net with comcast id mXGj1g00Q1t3BNj8PXGjff; Sun, 22 May 2011 07:16:44 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id 0447A102C19; Sun, 22 May 2011 00:16:43 -0700 (PDT) Date: Sun, 22 May 2011 00:16:42 -0700 From: Jeremy Chadwick To: Willy Offermans Message-ID: <20110522071642.GA61515@icarus.home.lan> References: <20110521092037.GB3271@vpn.offrom.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110521092037.GB3271@vpn.offrom.nl> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-stable@FreeBSD.ORG, freebsd-hardware@FreeBSD.ORG Subject: Re: modem support MT9234ZPX-PCIE-NV X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 May 2011 07:29:56 -0000 On Sat, May 21, 2011 at 11:20:37AM +0200, Willy Offermans wrote: > Dear FreeBSD friends, > > I need support with a MultiTech modem, MT9234ZPX-PCIE-NV > (http://www.multitech.com/en_US/PRODUCTS/Families/MultiModemZPX/) > > The modem is recognised during the boot event: > > > pci6: at device 0.0 (no driver attached) > > > and also appears in the list of found hardware over the PCI bus: > > > none1@pci0:6:0:0: class=0x070002 card=0x20262205 chip=0x015213a8 rev=0x02 hdr=0x00 > vendor = 'Exar Corp.' > device = 'XR17C/D152 Dual PCI UART' > class = simple comms > subclass = UART > > > However, as the boot process already mentions, there is no driver attached > and I cannot get the modem to appear as an accessible and functional > device. Is there someone, who can help me to get this modem to work? It would be helpful if you could specify what FreeBSD version you're using. Assuming 8.2 or RELENG_8: no promises, but puc(4) is probably what you're looking for. I would try adding: puc_load="yes" To your /boot/loader.conf, then see what happens after booting. uart(4) may auto-attach to that. Again, no promises. -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP 4BD6C0CB | From owner-freebsd-hardware@FreeBSD.ORG Sun May 22 08:48:14 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AD4EA1065670; Sun, 22 May 2011 08:48:14 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (unknown [IPv6:2001:44b8:7c07:5581:266:e1ff:fe0c:8f16]) by mx1.freebsd.org (Postfix) with ESMTP id 56F808FC14; Sun, 22 May 2011 08:48:12 +0000 (UTC) Received: from [192.168.42.215] (maarsy.rocketrange.no [128.39.153.30]) (authenticated bits=0) by cain.gsoft.com.au (8.14.4/8.14.3) with ESMTP id p4M8m3vx050107 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sun, 22 May 2011 18:18:07 +0930 (CST) (envelope-from doconnor@gsoft.com.au) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: "Daniel O'Connor" In-Reply-To: <20110522071642.GA61515@icarus.home.lan> Date: Sun, 22 May 2011 10:48:03 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <986DD7FA-E426-4261-8DB0-6F9063CE9BF6@gsoft.com.au> References: <20110521092037.GB3271@vpn.offrom.nl> <20110522071642.GA61515@icarus.home.lan> To: Jeremy Chadwick X-Mailer: Apple Mail (2.1084) X-Spam-Score: -1.5 () BAYES_00 X-Scanned-By: MIMEDefang 2.67 on 203.31.81.10 Cc: Willy Offermans , freebsd-stable@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: modem support MT9234ZPX-PCIE-NV X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 May 2011 08:48:14 -0000 On 22/05/2011, at 9:16, Jeremy Chadwick wrote: >> However, as the boot process already mentions, there is no driver = attached >> and I cannot get the modem to appear as an accessible and functional >> device. Is there someone, who can help me to get this modem to work? >=20 > It would be helpful if you could specify what FreeBSD version you're > using. >=20 > Assuming 8.2 or RELENG_8: no promises, but puc(4) is probably what > you're looking for. I would try adding: >=20 > puc_load=3D"yes" >=20 > To your /boot/loader.conf, then see what happens after booting. = uart(4) > may auto-attach to that. Again, no promises. I have my doubts it would work though, most likely it's a soft modem = which will only work with proprietary drivers. I couldn't find any details on the web page though so you might get = lucky I suppose :) -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C From owner-freebsd-hardware@FreeBSD.ORG Sun May 22 11:26:48 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E2A481065703 for ; Sun, 22 May 2011 11:26:48 +0000 (UTC) (envelope-from njm@njm.me.uk) Received: from smtp004.apm-internet.net (smtp004.apm-internet.net [85.119.248.54]) by mx1.freebsd.org (Postfix) with SMTP id 55DB48FC15 for ; Sun, 22 May 2011 11:26:48 +0000 (UTC) Received: (qmail 65540 invoked from network); 22 May 2011 11:00:07 -0000 Received: from unknown (HELO oberon.njm.me.uk) (86.144.181.151) by smtp004.apm-internet.net with SMTP; 22 May 2011 11:00:07 -0000 Received: from titania.njm.me.uk (titania.njm.me.uk [192.168.144.130]) by oberon.njm.me.uk (8.14.4/8.14.4) with ESMTP id p4MB03wq027823 for ; Sun, 22 May 2011 12:00:03 +0100 (BST) (envelope-from njm@njm.me.uk) Received: from titania.njm.me.uk (localhost [127.0.0.1]) by titania.njm.me.uk (8.14.4/8.14.4) with ESMTP id p4MB02M0010355 for ; Sun, 22 May 2011 12:00:02 +0100 (BST) (envelope-from njm@njm.me.uk) Received: (from njm@localhost) by titania.njm.me.uk (8.14.4/8.14.4/Submit) id p4MB02c8010354 for freebsd-hardware@freebsd.org; Sun, 22 May 2011 12:00:02 +0100 (BST) (envelope-from njm@njm.me.uk) Date: Sun, 22 May 2011 12:00:02 +0100 From: "N.J. Mann" To: freebsd-hardware@freebsd.org Message-ID: <20110522110002.GB91694@titania.njm.me.uk> Mail-Followup-To: freebsd-hardware@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD 8.2-STABLE User-Agent: mutt-NJM (2010-10-31) Subject: Sunix 4056A PCI 4 port RS-232 card - only 2 ports configured X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 May 2011 11:26:49 -0000 Hi, I am trying to setup a console server, but I am having a problem with the hardware. The RS-232 card I am using is a Sunix 4056A Universal PCI 4 port RS-232 card. However, only two ports are being configured, uart2 and uart3 - uart0 and uart1 are on the motherboard. I had assumed that all I had to do was install the card, add puc(4) to my kernel and it would just work. uname: ------ FreeBSD 9.0-CURRENT #0: Thu May 19 15:01:10 UTC 2011 i386 I CVSup'ed about fours before then. relevant parts of verbose dmesg: -------------------------------- found-> vendor=0x1409, dev=0x7168, revid=0x01 domain=0, bus=0, slot=10, func=0 class=07-00-02, hdrtype=0x00, mfdev=0 cmdreg=0x0081, statreg=0x0280, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=a, irq=3 map[10]: type I/O Port, range 32, base 0xe000, size 5, enabled map[14]: type I/O Port, range 32, base 0xe400, size 4, enabled pcib0: matched entry for 0.10.INTA pcib0: slot 10 INTA hardwired to IRQ 18 [...] puc0: port 0xe000-0xe01f,0xe400-0xe40f irq 18 at device 10.0 on pci0 ioapic0: routing intpin 18 (PCI IRQ 18) to lapic 0 vector 52 uart2: <16550 or compatible> on puc0 uart2: fast interrupt uart3: <16550 or compatible> on puc0 uart3: fast interrupt I can provide a full verbose dmesg if required, together with any other information which may be relevant. Any and all help gratefully received. Cheers, Nick. -- From owner-freebsd-hardware@FreeBSD.ORG Mon May 23 11:06:59 2011 Return-Path: Delivered-To: freebsd-hardware@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D362A1065670 for ; Mon, 23 May 2011 11:06:59 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A9E2E8FC17 for ; Mon, 23 May 2011 11:06:59 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p4NB6xJX051677 for ; Mon, 23 May 2011 11:06:59 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4NB6xtn051675 for freebsd-hardware@FreeBSD.org; Mon, 23 May 2011 11:06:59 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 23 May 2011 11:06:59 GMT Message-Id: <201105231106.p4NB6xtn051675@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-hardware@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-hardware@FreeBSD.org X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 May 2011 11:06:59 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/156241 hardware [mfi] 'zfs send' does not prevents disks to suspend if 1 problem total. From owner-freebsd-hardware@FreeBSD.ORG Mon May 23 14:32:22 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F9E5106564A for ; Mon, 23 May 2011 14:32:22 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 365958FC08 for ; Mon, 23 May 2011 14:32:22 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id DBF3046CD9; Mon, 23 May 2011 10:32:21 -0400 (EDT) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 810188A050; Mon, 23 May 2011 10:32:21 -0400 (EDT) From: John Baldwin To: freebsd-hardware@freebsd.org Date: Mon, 23 May 2011 10:26:54 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110325; KDE/4.5.5; amd64; ; ) References: <20110522110002.GB91694@titania.njm.me.uk> In-Reply-To: <20110522110002.GB91694@titania.njm.me.uk> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201105231026.54178.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Mon, 23 May 2011 10:32:21 -0400 (EDT) Cc: "N.J. Mann" Subject: Re: Sunix 4056A PCI 4 port RS-232 card - only 2 ports configured X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 May 2011 14:32:22 -0000 On Sunday, May 22, 2011 7:00:02 am N.J. Mann wrote: > Hi, > > > I am trying to setup a console server, but I am having a problem with > the hardware. The RS-232 card I am using is a Sunix 4056A Universal PCI > 4 port RS-232 card. However, only two ports are being configured, uart2 > and uart3 - uart0 and uart1 are on the motherboard. I had assumed that > all I had to do was install the card, add puc(4) to my kernel and it > would just work. > > uname: > ------ > FreeBSD 9.0-CURRENT #0: Thu May 19 15:01:10 UTC 2011 i386 > > I CVSup'ed about fours before then. > > > relevant parts of verbose dmesg: > -------------------------------- > found-> vendor=0x1409, dev=0x7168, revid=0x01 > domain=0, bus=0, slot=10, func=0 > class=07-00-02, hdrtype=0x00, mfdev=0 > cmdreg=0x0081, statreg=0x0280, cachelnsz=0 (dwords) > lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) > intpin=a, irq=3 > map[10]: type I/O Port, range 32, base 0xe000, size 5, enabled > map[14]: type I/O Port, range 32, base 0xe400, size 4, enabled > pcib0: matched entry for 0.10.INTA > pcib0: slot 10 INTA hardwired to IRQ 18 > [...] > puc0: port 0xe000-0xe01f,0xe400-0xe40f irq 18 at device 10.0 on pci0 > ioapic0: routing intpin 18 (PCI IRQ 18) to lapic 0 vector 52 > uart2: <16550 or compatible> on puc0 > uart2: fast interrupt > uart3: <16550 or compatible> on puc0 > uart3: fast interrupt > > > I can provide a full verbose dmesg if required, together with any other > information which may be relevant. > > Any and all help gratefully received. Hmm, for Timedia it looks like the puc(4) driver uses the subvendor device ID to figure out how many ports your card has, but it does see 4 ports (the device descrption is correct). Does 'devinfo -v' show any other child devices of 'puc0' besides the two uart devices? -- John Baldwin From owner-freebsd-hardware@FreeBSD.ORG Mon May 23 15:17:11 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BFFE21065670 for ; Mon, 23 May 2011 15:17:11 +0000 (UTC) (envelope-from njm@njm.me.uk) Received: from smtp004.apm-internet.net (smtp004.apm-internet.net [85.119.248.54]) by mx1.freebsd.org (Postfix) with SMTP id 46C538FC1F for ; Mon, 23 May 2011 15:17:10 +0000 (UTC) Received: (qmail 15531 invoked from network); 23 May 2011 15:17:09 -0000 Received: from unknown (HELO oberon.njm.me.uk) (86.144.179.156) by smtp004.apm-internet.net with SMTP; 23 May 2011 15:17:09 -0000 Received: from titania.njm.me.uk (titania.njm.me.uk [192.168.144.130]) by oberon.njm.me.uk (8.14.4/8.14.4) with ESMTP id p4NFH8nj037274; Mon, 23 May 2011 16:17:08 +0100 (BST) (envelope-from njm@njm.me.uk) Received: from titania.njm.me.uk (localhost [127.0.0.1]) by titania.njm.me.uk (8.14.4/8.14.4) with ESMTP id p4NFH8Pa012500; Mon, 23 May 2011 16:17:08 +0100 (BST) (envelope-from njm@njm.me.uk) Received: (from njm@localhost) by titania.njm.me.uk (8.14.4/8.14.4/Submit) id p4NFH8CE012499; Mon, 23 May 2011 16:17:08 +0100 (BST) (envelope-from njm@njm.me.uk) Date: Mon, 23 May 2011 16:17:08 +0100 From: "N.J. Mann" To: John Baldwin Message-ID: <20110523151708.GA671@titania.njm.me.uk> Mail-Followup-To: John Baldwin , freebsd-hardware@freebsd.org References: <20110522110002.GB91694@titania.njm.me.uk> <201105231026.54178.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201105231026.54178.jhb@freebsd.org> X-Operating-System: FreeBSD 8.2-STABLE User-Agent: mutt-NJM (2010-10-31) Cc: freebsd-hardware@freebsd.org Subject: Re: Sunix 4056A PCI 4 port RS-232 card - only 2 ports configured X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 May 2011 15:17:11 -0000 In message <201105231026.54178.jhb@freebsd.org>, John Baldwin (jhb@freebsd.org) wrote: > On Sunday, May 22, 2011 7:00:02 am N.J. Mann wrote: > > Hi, > > > > > > I am trying to setup a console server, but I am having a problem with > > the hardware. The RS-232 card I am using is a Sunix 4056A Universal PCI > > 4 port RS-232 card. However, only two ports are being configured, uart2 > > and uart3 - uart0 and uart1 are on the motherboard. I had assumed that > > all I had to do was install the card, add puc(4) to my kernel and it > > would just work. > > > > uname: > > ------ > > FreeBSD 9.0-CURRENT #0: Thu May 19 15:01:10 UTC 2011 i386 > > > > I CVSup'ed about fours before then. > > > > > > relevant parts of verbose dmesg: > > -------------------------------- > > found-> vendor=0x1409, dev=0x7168, revid=0x01 > > domain=0, bus=0, slot=10, func=0 > > class=07-00-02, hdrtype=0x00, mfdev=0 > > cmdreg=0x0081, statreg=0x0280, cachelnsz=0 (dwords) > > lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) > > intpin=a, irq=3 > > map[10]: type I/O Port, range 32, base 0xe000, size 5, enabled > > map[14]: type I/O Port, range 32, base 0xe400, size 4, enabled > > pcib0: matched entry for 0.10.INTA > > pcib0: slot 10 INTA hardwired to IRQ 18 > > [...] > > puc0: port 0xe000-0xe01f,0xe400-0xe40f > > irq 18 at device 10.0 on pci0 > > ioapic0: routing intpin 18 (PCI IRQ 18) to lapic 0 vector 52 > > uart2: <16550 or compatible> on puc0 > > uart2: fast interrupt > > uart3: <16550 or compatible> on puc0 > > uart3: fast interrupt > > > > > > I can provide a full verbose dmesg if required, together with any other > > information which may be relevant. > > > > Any and all help gratefully received. > > Hmm, for Timedia it looks like the puc(4) driver uses the subvendor device ID > to figure out how many ports your card has, but it does see 4 ports (the > device descrption is correct). Does 'devinfo -v' show any other child > devices of 'puc0' besides the two uart devices? No. puc0 pnpinfo vendor=0x1409 device=0x7168 subvendor=0x1409 subdevice=0x4056 class=0x070002 at slot=10 function=0 uart2 uart3 (If you want the complete output of devinfo just ask - I assumed from your question you only wanted the puc-releated section.) BTW I saw the patch for puc(4) you just posted to current@. Is it worth me trying that? Many thanks. Cheers, Nick. -- From owner-freebsd-hardware@FreeBSD.ORG Tue May 24 11:55:42 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 11FF61065675 for ; Tue, 24 May 2011 11:55:42 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id C6F098FC1C for ; Tue, 24 May 2011 11:55:41 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 5E9C746B37; Tue, 24 May 2011 07:55:41 -0400 (EDT) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id D7F018A052; Tue, 24 May 2011 07:55:40 -0400 (EDT) From: John Baldwin To: "N.J. Mann" Date: Tue, 24 May 2011 07:55:38 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110325; KDE/4.5.5; amd64; ; ) References: <20110522110002.GB91694@titania.njm.me.uk> <201105231026.54178.jhb@freebsd.org> <20110523151708.GA671@titania.njm.me.uk> In-Reply-To: <20110523151708.GA671@titania.njm.me.uk> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201105240755.38404.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Tue, 24 May 2011 07:55:41 -0400 (EDT) Cc: freebsd-hardware@freebsd.org Subject: Re: Sunix 4056A PCI 4 port RS-232 card - only 2 ports configured X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 May 2011 11:55:42 -0000 On Monday, May 23, 2011 11:17:08 am N.J. Mann wrote: > In message <201105231026.54178.jhb@freebsd.org>, > John Baldwin (jhb@freebsd.org) wrote: > > On Sunday, May 22, 2011 7:00:02 am N.J. Mann wrote: > > > Hi, > > > > > > > > > I am trying to setup a console server, but I am having a problem with > > > the hardware. The RS-232 card I am using is a Sunix 4056A Universal PCI > > > 4 port RS-232 card. However, only two ports are being configured, uart2 > > > and uart3 - uart0 and uart1 are on the motherboard. I had assumed that > > > all I had to do was install the card, add puc(4) to my kernel and it > > > would just work. > > > > > > uname: > > > ------ > > > FreeBSD 9.0-CURRENT #0: Thu May 19 15:01:10 UTC 2011 i386 > > > > > > I CVSup'ed about fours before then. > > > > > > > > > relevant parts of verbose dmesg: > > > -------------------------------- > > > found-> vendor=0x1409, dev=0x7168, revid=0x01 > > > domain=0, bus=0, slot=10, func=0 > > > class=07-00-02, hdrtype=0x00, mfdev=0 > > > cmdreg=0x0081, statreg=0x0280, cachelnsz=0 (dwords) > > > lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) > > > intpin=a, irq=3 > > > map[10]: type I/O Port, range 32, base 0xe000, size 5, enabled > > > map[14]: type I/O Port, range 32, base 0xe400, size 4, enabled > > > pcib0: matched entry for 0.10.INTA > > > pcib0: slot 10 INTA hardwired to IRQ 18 > > > [...] > > > puc0: port 0xe000-0xe01f,0xe400-0xe40f > > > irq 18 at device 10.0 on pci0 > > > ioapic0: routing intpin 18 (PCI IRQ 18) to lapic 0 vector 52 > > > uart2: <16550 or compatible> on puc0 > > > uart2: fast interrupt > > > uart3: <16550 or compatible> on puc0 > > > uart3: fast interrupt > > > > > > > > > I can provide a full verbose dmesg if required, together with any other > > > information which may be relevant. > > > > > > Any and all help gratefully received. > > > > Hmm, for Timedia it looks like the puc(4) driver uses the subvendor device ID > > to figure out how many ports your card has, but it does see 4 ports (the > > device descrption is correct). Does 'devinfo -v' show any other child > > devices of 'puc0' besides the two uart devices? > > No. > > puc0 pnpinfo vendor=0x1409 device=0x7168 subvendor=0x1409 subdevice=0x4056 class=0x070002 at slot=10 function=0 > uart2 > uart3 > > (If you want the complete output of devinfo just ask - I assumed from > your question you only wanted the puc-releated section.) Yeah, this is all I wanted. Hmm, so from the description we can see that it thinks you have 4 ports: snprintf(desc, sizeof(desc), "Timedia technology %d Port Serial", (int)sc->sc_cfg_data); and the code that sets sc_cfg_data sets it to the number of supported ports that PUC_CFG_GET_NPORTS returns: case PUC_CFG_GET_NPORTS: ... if (subdev == subdevs[dev].ids[id]) { sc->sc_cfg_data = subdevs[dev].ports; *res = sc->sc_cfg_data; return (0); } You might need to just add some printfs to puc_bfe_attach(). It would be good to see if the PUC_CFG_GET_NPORTS request in attach also returned 4 in res (the description string is set in puc_bfe_probe()). > BTW I saw the patch for puc(4) you just posted to current@. Is it worth > me trying that? That patch is just cosmetic. It would be nice to have it tested, but it won't fix your bug. -- John Baldwin From owner-freebsd-hardware@FreeBSD.ORG Tue May 24 15:58:13 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9603F1065670 for ; Tue, 24 May 2011 15:58:13 +0000 (UTC) (envelope-from njm@njm.me.uk) Received: from smtp003.apm-internet.net (smtp003.apm-internet.net [85.119.248.52]) by mx1.freebsd.org (Postfix) with SMTP id 08A9B8FC17 for ; Tue, 24 May 2011 15:58:12 +0000 (UTC) Received: (qmail 19569 invoked from network); 24 May 2011 15:58:11 -0000 Received: from unknown (HELO oberon.njm.me.uk) (86.144.179.156) by smtp003.apm-internet.net with SMTP; 24 May 2011 15:58:11 -0000 Received: from titania.njm.me.uk (titania.njm.me.uk [192.168.144.130]) by oberon.njm.me.uk (8.14.4/8.14.4) with ESMTP id p4OFwAMd034126; Tue, 24 May 2011 16:58:10 +0100 (BST) (envelope-from njm@njm.me.uk) Received: from titania.njm.me.uk (localhost [127.0.0.1]) by titania.njm.me.uk (8.14.4/8.14.4) with ESMTP id p4OFwATk085889; Tue, 24 May 2011 16:58:10 +0100 (BST) (envelope-from njm@njm.me.uk) Received: (from njm@localhost) by titania.njm.me.uk (8.14.4/8.14.4/Submit) id p4OFwA3v085888; Tue, 24 May 2011 16:58:10 +0100 (BST) (envelope-from njm@njm.me.uk) Date: Tue, 24 May 2011 16:58:10 +0100 From: "N.J. Mann" To: John Baldwin Message-ID: <20110524155810.GA6748@titania.njm.me.uk> Mail-Followup-To: John Baldwin , freebsd-hardware@freebsd.org References: <20110522110002.GB91694@titania.njm.me.uk> <201105231026.54178.jhb@freebsd.org> <20110523151708.GA671@titania.njm.me.uk> <201105240755.38404.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201105240755.38404.jhb@freebsd.org> X-Operating-System: FreeBSD 8.2-STABLE User-Agent: mutt-NJM (2010-10-31) Cc: freebsd-hardware@freebsd.org Subject: Re: Sunix 4056A PCI 4 port RS-232 card - only 2 ports configured X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 May 2011 15:58:13 -0000 In message <201105240755.38404.jhb@freebsd.org>, John Baldwin (jhb@freebsd.org) wrote: > On Monday, May 23, 2011 11:17:08 am N.J. Mann wrote: > > In message <201105231026.54178.jhb@freebsd.org>, > > John Baldwin (jhb@freebsd.org) wrote: > > > On Sunday, May 22, 2011 7:00:02 am N.J. Mann wrote: > > > > Hi, > > > > > > > > > > > > I am trying to setup a console server, but I am having a problem with > > > > the hardware. The RS-232 card I am using is a Sunix 4056A Universal PCI > > > > 4 port RS-232 card. However, only two ports are being configured, uart2 > > > > and uart3 - uart0 and uart1 are on the motherboard. I had assumed that > > > > all I had to do was install the card, add puc(4) to my kernel and it > > > > would just work. > > > > > > > > uname: > > > > ------ > > > > FreeBSD 9.0-CURRENT #0: Thu May 19 15:01:10 UTC 2011 i386 > > > > > > > > I CVSup'ed about fours before then. > > > > > > > > > > > > relevant parts of verbose dmesg: > > > > -------------------------------- > > > > found-> vendor=0x1409, dev=0x7168, revid=0x01 > > > > domain=0, bus=0, slot=10, func=0 > > > > class=07-00-02, hdrtype=0x00, mfdev=0 > > > > cmdreg=0x0081, statreg=0x0280, cachelnsz=0 (dwords) > > > > lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) > > > > intpin=a, irq=3 > > > > map[10]: type I/O Port, range 32, base 0xe000, size 5, enabled > > > > map[14]: type I/O Port, range 32, base 0xe400, size 4, enabled > > > > pcib0: matched entry for 0.10.INTA > > > > pcib0: slot 10 INTA hardwired to IRQ 18 > > > > [...] > > > > puc0: port 0xe000-0xe01f,0xe400-0xe40f > > > > irq 18 at device 10.0 on pci0 > > > > ioapic0: routing intpin 18 (PCI IRQ 18) to lapic 0 vector 52 > > > > uart2: <16550 or compatible> on puc0 > > > > uart2: fast interrupt > > > > uart3: <16550 or compatible> on puc0 > > > > uart3: fast interrupt > > > > > > > > > > > > I can provide a full verbose dmesg if required, together with any other > > > > information which may be relevant. > > > > > > > > Any and all help gratefully received. > > > > > > Hmm, for Timedia it looks like the puc(4) driver uses the subvendor device ID > > > to figure out how many ports your card has, but it does see 4 ports (the > > > device descrption is correct). Does 'devinfo -v' show any other child > > > devices of 'puc0' besides the two uart devices? > > > > No. > > > > puc0 pnpinfo vendor=0x1409 device=0x7168 subvendor=0x1409 subdevice=0x4056 class=0x070002 at slot=10 function=0 > > uart2 > > uart3 > > > > (If you want the complete output of devinfo just ask - I assumed from > > your question you only wanted the puc-releated section.) > > Yeah, this is all I wanted. Hmm, so from the description we can see that > it thinks you have 4 ports: > > snprintf(desc, sizeof(desc), > "Timedia technology %d Port Serial", (int)sc->sc_cfg_data); > > and the code that sets sc_cfg_data sets it to the number of supported ports > that PUC_CFG_GET_NPORTS returns: > > case PUC_CFG_GET_NPORTS: > ... > if (subdev == subdevs[dev].ids[id]) { > sc->sc_cfg_data = subdevs[dev].ports; > *res = sc->sc_cfg_data; > return (0); > } The above code returns 4 each time it is called - three times. > > You might need to just add some printfs to puc_bfe_attach(). It would be good > to see if the PUC_CFG_GET_NPORTS request in attach also returned 4 in res (the > description string is set in puc_bfe_probe()). Okay, lots of printf's later. :-) In put_bfe_attach() the second 'for' loop which starts with the comment "Probe and attach our children." - puc.c line 352 - the call to device_probe_and_attach passes for the first two ports, but fails for the second two with an error code of 6. Does that make any sense to you? Cheers, Nick. -- From owner-freebsd-hardware@FreeBSD.ORG Tue May 24 17:41:51 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D109B1065675 for ; Tue, 24 May 2011 17:41:51 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 9020F8FC15 for ; Tue, 24 May 2011 17:41:51 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 221F746B2E; Tue, 24 May 2011 13:41:51 -0400 (EDT) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 89C5C8A050; Tue, 24 May 2011 13:41:50 -0400 (EDT) From: John Baldwin To: "N.J. Mann" Date: Tue, 24 May 2011 13:41:49 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110325; KDE/4.5.5; amd64; ; ) References: <20110522110002.GB91694@titania.njm.me.uk> <201105240755.38404.jhb@freebsd.org> <20110524155810.GA6748@titania.njm.me.uk> In-Reply-To: <20110524155810.GA6748@titania.njm.me.uk> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201105241341.49546.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Tue, 24 May 2011 13:41:50 -0400 (EDT) Cc: freebsd-hardware@freebsd.org Subject: Re: Sunix 4056A PCI 4 port RS-232 card - only 2 ports configured X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 May 2011 17:41:51 -0000 On Tuesday, May 24, 2011 11:58:10 am N.J. Mann wrote: > In message <201105240755.38404.jhb@freebsd.org>, > John Baldwin (jhb@freebsd.org) wrote: > > On Monday, May 23, 2011 11:17:08 am N.J. Mann wrote: > > > In message <201105231026.54178.jhb@freebsd.org>, > > > John Baldwin (jhb@freebsd.org) wrote: > > > > On Sunday, May 22, 2011 7:00:02 am N.J. Mann wrote: > > > > > Hi, > > > > > > > > > > > > > > > I am trying to setup a console server, but I am having a problem with > > > > > the hardware. The RS-232 card I am using is a Sunix 4056A Universal PCI > > > > > 4 port RS-232 card. However, only two ports are being configured, uart2 > > > > > and uart3 - uart0 and uart1 are on the motherboard. I had assumed that > > > > > all I had to do was install the card, add puc(4) to my kernel and it > > > > > would just work. > > > > > > > > > > uname: > > > > > ------ > > > > > FreeBSD 9.0-CURRENT #0: Thu May 19 15:01:10 UTC 2011 i386 > > > > > > > > > > I CVSup'ed about fours before then. > > > > > > > > > > > > > > > relevant parts of verbose dmesg: > > > > > -------------------------------- > > > > > found-> vendor=0x1409, dev=0x7168, revid=0x01 > > > > > domain=0, bus=0, slot=10, func=0 > > > > > class=07-00-02, hdrtype=0x00, mfdev=0 > > > > > cmdreg=0x0081, statreg=0x0280, cachelnsz=0 (dwords) > > > > > lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) > > > > > intpin=a, irq=3 > > > > > map[10]: type I/O Port, range 32, base 0xe000, size 5, enabled > > > > > map[14]: type I/O Port, range 32, base 0xe400, size 4, enabled > > > > > pcib0: matched entry for 0.10.INTA > > > > > pcib0: slot 10 INTA hardwired to IRQ 18 > > > > > [...] > > > > > puc0: port 0xe000-0xe01f,0xe400-0xe40f > > > > > irq 18 at device 10.0 on pci0 > > > > > ioapic0: routing intpin 18 (PCI IRQ 18) to lapic 0 vector 52 > > > > > uart2: <16550 or compatible> on puc0 > > > > > uart2: fast interrupt > > > > > uart3: <16550 or compatible> on puc0 > > > > > uart3: fast interrupt > > > > > > > > > > > > > > > I can provide a full verbose dmesg if required, together with any other > > > > > information which may be relevant. > > > > > > > > > > Any and all help gratefully received. > > > > > > > > Hmm, for Timedia it looks like the puc(4) driver uses the subvendor device ID > > > > to figure out how many ports your card has, but it does see 4 ports (the > > > > device descrption is correct). Does 'devinfo -v' show any other child > > > > devices of 'puc0' besides the two uart devices? > > > > > > No. > > > > > > puc0 pnpinfo vendor=0x1409 device=0x7168 subvendor=0x1409 subdevice=0x4056 class=0x070002 at slot=10 function=0 > > > uart2 > > > uart3 > > > > > > (If you want the complete output of devinfo just ask - I assumed from > > > your question you only wanted the puc-releated section.) > > > > Yeah, this is all I wanted. Hmm, so from the description we can see that > > it thinks you have 4 ports: > > > > snprintf(desc, sizeof(desc), > > "Timedia technology %d Port Serial", (int)sc->sc_cfg_data); > > > > and the code that sets sc_cfg_data sets it to the number of supported ports > > that PUC_CFG_GET_NPORTS returns: > > > > case PUC_CFG_GET_NPORTS: > > ... > > if (subdev == subdevs[dev].ids[id]) { > > sc->sc_cfg_data = subdevs[dev].ports; > > *res = sc->sc_cfg_data; > > return (0); > > } > > The above code returns 4 each time it is called - three times. > > > > > You might need to just add some printfs to puc_bfe_attach(). It would be good > > to see if the PUC_CFG_GET_NPORTS request in attach also returned 4 in res (the > > description string is set in puc_bfe_probe()). > > Okay, lots of printf's later. :-) > > In put_bfe_attach() the second 'for' loop which starts with the comment > "Probe and attach our children." - puc.c line 352 - the call to > device_probe_and_attach passes for the first two ports, but fails for > the second two with an error code of 6. Does that make any sense to > you? Ahh, can you comment out the 'device_delete_child' bit for now? It might be worth adding some tracing to see if uart_puc_probe() is being called and if so why it is failing. -- John Baldwin From owner-freebsd-hardware@FreeBSD.ORG Tue May 24 20:01:03 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 411F8106566C for ; Tue, 24 May 2011 20:01:03 +0000 (UTC) (envelope-from njm@njm.me.uk) Received: from smtp003.apm-internet.net (smtp003.apm-internet.net [85.119.248.52]) by mx1.freebsd.org (Postfix) with SMTP id A68B98FC12 for ; Tue, 24 May 2011 20:01:02 +0000 (UTC) Received: (qmail 1774 invoked from network); 24 May 2011 20:01:01 -0000 Received: from unknown (HELO oberon.njm.me.uk) (86.166.167.42) by smtp003.apm-internet.net with SMTP; 24 May 2011 20:01:01 -0000 Received: from titania.njm.me.uk (titania.njm.me.uk [192.168.144.130]) by oberon.njm.me.uk (8.14.4/8.14.4) with ESMTP id p4OK10rq047009; Tue, 24 May 2011 21:01:00 +0100 (BST) (envelope-from njm@njm.me.uk) Received: from titania.njm.me.uk (localhost [127.0.0.1]) by titania.njm.me.uk (8.14.4/8.14.4) with ESMTP id p4OK10Ot099250; Tue, 24 May 2011 21:01:00 +0100 (BST) (envelope-from njm@njm.me.uk) Received: (from njm@localhost) by titania.njm.me.uk (8.14.4/8.14.4/Submit) id p4OK109J099249; Tue, 24 May 2011 21:01:00 +0100 (BST) (envelope-from njm@njm.me.uk) Date: Tue, 24 May 2011 21:01:00 +0100 From: "N.J. Mann" To: John Baldwin Message-ID: <20110524200100.GA92553@titania.njm.me.uk> Mail-Followup-To: John Baldwin , freebsd-hardware@freebsd.org References: <20110522110002.GB91694@titania.njm.me.uk> <201105240755.38404.jhb@freebsd.org> <20110524155810.GA6748@titania.njm.me.uk> <201105241341.49546.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201105241341.49546.jhb@freebsd.org> X-Operating-System: FreeBSD 8.2-STABLE User-Agent: mutt-NJM (2010-10-31) Cc: freebsd-hardware@freebsd.org Subject: Re: Sunix 4056A PCI 4 port RS-232 card - only 2 ports configured X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 May 2011 20:01:03 -0000 In message <201105241341.49546.jhb@freebsd.org>, John Baldwin (jhb@freebsd.org) wrote: > On Tuesday, May 24, 2011 11:58:10 am N.J. Mann wrote: > > In message <201105240755.38404.jhb@freebsd.org>, > > John Baldwin (jhb@freebsd.org) wrote: > > > On Monday, May 23, 2011 11:17:08 am N.J. Mann wrote: > > > > In message <201105231026.54178.jhb@freebsd.org>, > > > > John Baldwin (jhb@freebsd.org) wrote: > > > > > On Sunday, May 22, 2011 7:00:02 am N.J. Mann wrote: > > > > > > Hi, > > > > > > > > > > > > > > > > > > I am trying to setup a console server, but I am having a problem > with > > > > > > the hardware. The RS-232 card I am using is a Sunix 4056A Universal > PCI > > > > > > 4 port RS-232 card. However, only two ports are being configured, > uart2 > > > > > > and uart3 - uart0 and uart1 are on the motherboard. I had assumed > that > > > > > > all I had to do was install the card, add puc(4) to my kernel and it > > > > > > would just work. > > > > > > > > > > > > uname: > > > > > > ------ > > > > > > FreeBSD 9.0-CURRENT #0: Thu May 19 15:01:10 UTC 2011 i386 > > > > > > > > > > > > I CVSup'ed about fours before then. > > > > > > > > > > > > > > > > > > relevant parts of verbose dmesg: > > > > > > -------------------------------- > > > > > > found-> vendor=0x1409, dev=0x7168, revid=0x01 > > > > > > domain=0, bus=0, slot=10, func=0 > > > > > > class=07-00-02, hdrtype=0x00, mfdev=0 > > > > > > cmdreg=0x0081, statreg=0x0280, cachelnsz=0 (dwords) > > > > > > lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) > > > > > > intpin=a, irq=3 > > > > > > map[10]: type I/O Port, range 32, base 0xe000, size 5, enabled > > > > > > map[14]: type I/O Port, range 32, base 0xe400, size 4, enabled > > > > > > pcib0: matched entry for 0.10.INTA > > > > > > pcib0: slot 10 INTA hardwired to IRQ 18 > > > > > > [...] > > > > > > puc0: port > 0xe000-0xe01f,0xe400-0xe40f > > > > > > irq 18 at device 10.0 on pci0 > > > > > > ioapic0: routing intpin 18 (PCI IRQ 18) to lapic 0 vector 52 > > > > > > uart2: <16550 or compatible> on puc0 > > > > > > uart2: fast interrupt > > > > > > uart3: <16550 or compatible> on puc0 > > > > > > uart3: fast interrupt > > > > > > > > > > > > > > > > > > I can provide a full verbose dmesg if required, together with any > other > > > > > > information which may be relevant. > > > > > > > > > > > > Any and all help gratefully received. > > > > > > > > > > Hmm, for Timedia it looks like the puc(4) driver uses the subvendor > device ID > > > > > to figure out how many ports your card has, but it does see 4 ports > (the > > > > > device descrption is correct). Does 'devinfo -v' show any other child > > > > > devices of 'puc0' besides the two uart devices? > > > > > > > > No. > > > > > > > > puc0 pnpinfo vendor=0x1409 device=0x7168 subvendor=0x1409 > subdevice=0x4056 class=0x070002 at slot=10 function=0 > > > > uart2 > > > > uart3 > > > > > > > > (If you want the complete output of devinfo just ask - I assumed from > > > > your question you only wanted the puc-releated section.) > > > > > > Yeah, this is all I wanted. Hmm, so from the description we can see that > > > it thinks you have 4 ports: > > > > > > snprintf(desc, sizeof(desc), > > > "Timedia technology %d Port Serial", (int)sc->sc_cfg_data); > > > > > > and the code that sets sc_cfg_data sets it to the number of supported > ports > > > that PUC_CFG_GET_NPORTS returns: > > > > > > case PUC_CFG_GET_NPORTS: > > > ... > > > if (subdev == subdevs[dev].ids[id]) { > > > sc->sc_cfg_data = subdevs[dev].ports; > > > *res = sc->sc_cfg_data; > > > return (0); > > > } > > > > The above code returns 4 each time it is called - three times. > > > > > > > > You might need to just add some printfs to puc_bfe_attach(). It would be > good > > > to see if the PUC_CFG_GET_NPORTS request in attach also returned 4 in res > (the > > > description string is set in puc_bfe_probe()). > > > > Okay, lots of printf's later. :-) > > > > In put_bfe_attach() the second 'for' loop which starts with the comment > > "Probe and attach our children." - puc.c line 352 - the call to > > device_probe_and_attach passes for the first two ports, but fails for > > the second two with an error code of 6. Does that make any sense to > > you? > > Ahh, can you comment out the 'device_delete_child' bit for now? It might be > worth adding some tracing to see if uart_puc_probe() is being called and if so > why it is failing. I commented out device_delete_child and then added printf's in uart_pub_probe() and uart_bus_probe. It is UART_PROBE which is returning 6 for the second two ports. I must be missing something because I cannot find where UART_PROBE is defined. Any chance of giving me a clue? :-) Many thanks. Cheers, Nick. -- From owner-freebsd-hardware@FreeBSD.ORG Tue May 24 20:10:52 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4D1961065703 for ; Tue, 24 May 2011 20:10:52 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id C8ECE8FC23 for ; Tue, 24 May 2011 20:10:51 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 503FD46B2D; Tue, 24 May 2011 16:10:51 -0400 (EDT) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id DDCDD8A050; Tue, 24 May 2011 16:10:50 -0400 (EDT) From: John Baldwin To: "N.J. Mann" Date: Tue, 24 May 2011 16:10:49 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110325; KDE/4.5.5; amd64; ; ) References: <20110522110002.GB91694@titania.njm.me.uk> <201105241341.49546.jhb@freebsd.org> <20110524200100.GA92553@titania.njm.me.uk> In-Reply-To: <20110524200100.GA92553@titania.njm.me.uk> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201105241610.49930.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Tue, 24 May 2011 16:10:51 -0400 (EDT) Cc: freebsd-hardware@freebsd.org Subject: Re: Sunix 4056A PCI 4 port RS-232 card - only 2 ports configured X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 May 2011 20:10:52 -0000 On Tuesday, May 24, 2011 4:01:00 pm N.J. Mann wrote: > In message <201105241341.49546.jhb@freebsd.org>, > John Baldwin (jhb@freebsd.org) wrote: > > On Tuesday, May 24, 2011 11:58:10 am N.J. Mann wrote: > > > In message <201105240755.38404.jhb@freebsd.org>, > > > John Baldwin (jhb@freebsd.org) wrote: > > > > On Monday, May 23, 2011 11:17:08 am N.J. Mann wrote: > > > > > In message <201105231026.54178.jhb@freebsd.org>, > > > > > John Baldwin (jhb@freebsd.org) wrote: > > > > > > On Sunday, May 22, 2011 7:00:02 am N.J. Mann wrote: > > > > > > > Hi, > > > > > > > > > > > > > > > > > > > > > I am trying to setup a console server, but I am having a problem > > with > > > > > > > the hardware. The RS-232 card I am using is a Sunix 4056A Universal > > PCI > > > > > > > 4 port RS-232 card. However, only two ports are being configured, > > uart2 > > > > > > > and uart3 - uart0 and uart1 are on the motherboard. I had assumed > > that > > > > > > > all I had to do was install the card, add puc(4) to my kernel and it > > > > > > > would just work. > > > > > > > > > > > > > > uname: > > > > > > > ------ > > > > > > > FreeBSD 9.0-CURRENT #0: Thu May 19 15:01:10 UTC 2011 i386 > > > > > > > > > > > > > > I CVSup'ed about fours before then. > > > > > > > > > > > > > > > > > > > > > relevant parts of verbose dmesg: > > > > > > > -------------------------------- > > > > > > > found-> vendor=0x1409, dev=0x7168, revid=0x01 > > > > > > > domain=0, bus=0, slot=10, func=0 > > > > > > > class=07-00-02, hdrtype=0x00, mfdev=0 > > > > > > > cmdreg=0x0081, statreg=0x0280, cachelnsz=0 (dwords) > > > > > > > lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) > > > > > > > intpin=a, irq=3 > > > > > > > map[10]: type I/O Port, range 32, base 0xe000, size 5, enabled > > > > > > > map[14]: type I/O Port, range 32, base 0xe400, size 4, enabled > > > > > > > pcib0: matched entry for 0.10.INTA > > > > > > > pcib0: slot 10 INTA hardwired to IRQ 18 > > > > > > > [...] > > > > > > > puc0: port > > 0xe000-0xe01f,0xe400-0xe40f > > > > > > > irq 18 at device 10.0 on pci0 > > > > > > > ioapic0: routing intpin 18 (PCI IRQ 18) to lapic 0 vector 52 > > > > > > > uart2: <16550 or compatible> on puc0 > > > > > > > uart2: fast interrupt > > > > > > > uart3: <16550 or compatible> on puc0 > > > > > > > uart3: fast interrupt > > > > > > > > > > > > > > > > > > > > > I can provide a full verbose dmesg if required, together with any > > other > > > > > > > information which may be relevant. > > > > > > > > > > > > > > Any and all help gratefully received. > > > > > > > > > > > > Hmm, for Timedia it looks like the puc(4) driver uses the subvendor > > device ID > > > > > > to figure out how many ports your card has, but it does see 4 ports > > (the > > > > > > device descrption is correct). Does 'devinfo -v' show any other child > > > > > > devices of 'puc0' besides the two uart devices? > > > > > > > > > > No. > > > > > > > > > > puc0 pnpinfo vendor=0x1409 device=0x7168 subvendor=0x1409 > > subdevice=0x4056 class=0x070002 at slot=10 function=0 > > > > > uart2 > > > > > uart3 > > > > > > > > > > (If you want the complete output of devinfo just ask - I assumed from > > > > > your question you only wanted the puc-releated section.) > > > > > > > > Yeah, this is all I wanted. Hmm, so from the description we can see that > > > > it thinks you have 4 ports: > > > > > > > > snprintf(desc, sizeof(desc), > > > > "Timedia technology %d Port Serial", (int)sc- >sc_cfg_data); > > > > > > > > and the code that sets sc_cfg_data sets it to the number of supported > > ports > > > > that PUC_CFG_GET_NPORTS returns: > > > > > > > > case PUC_CFG_GET_NPORTS: > > > > ... > > > > if (subdev == subdevs[dev].ids[id]) { > > > > sc->sc_cfg_data = subdevs[dev].ports; > > > > *res = sc->sc_cfg_data; > > > > return (0); > > > > } > > > > > > The above code returns 4 each time it is called - three times. > > > > > > > > > > > You might need to just add some printfs to puc_bfe_attach(). It would be > > good > > > > to see if the PUC_CFG_GET_NPORTS request in attach also returned 4 in res > > (the > > > > description string is set in puc_bfe_probe()). > > > > > > Okay, lots of printf's later. :-) > > > > > > In put_bfe_attach() the second 'for' loop which starts with the comment > > > "Probe and attach our children." - puc.c line 352 - the call to > > > device_probe_and_attach passes for the first two ports, but fails for > > > the second two with an error code of 6. Does that make any sense to > > > you? > > > > Ahh, can you comment out the 'device_delete_child' bit for now? It might be > > worth adding some tracing to see if uart_puc_probe() is being called and if so > > why it is failing. > > I commented out device_delete_child and then added printf's in > uart_pub_probe() and uart_bus_probe. It is UART_PROBE which is > returning 6 for the second two ports. I must be missing something > because I cannot find where UART_PROBE is defined. Any chance of giving > me a clue? :-) Ah, uart_puc_probe() always uses the 'uart_ns8250_class' uart driver which is defined in uart_dev_ns8250.c. ns8250_bus_probe() is what you want to instrument I think. -- John Baldwin From owner-freebsd-hardware@FreeBSD.ORG Tue May 24 21:52:35 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 317421065676 for ; Tue, 24 May 2011 21:52:35 +0000 (UTC) (envelope-from njm@njm.me.uk) Received: from smtp003.apm-internet.net (smtp003.apm-internet.net [85.119.248.52]) by mx1.freebsd.org (Postfix) with SMTP id 8F5A68FC17 for ; Tue, 24 May 2011 21:52:34 +0000 (UTC) Received: (qmail 18905 invoked from network); 24 May 2011 21:52:33 -0000 Received: from unknown (HELO oberon.njm.me.uk) (86.166.167.42) by smtp003.apm-internet.net with SMTP; 24 May 2011 21:52:33 -0000 Received: from titania.njm.me.uk (titania.njm.me.uk [192.168.144.130]) by oberon.njm.me.uk (8.14.4/8.14.4) with ESMTP id p4OLqWOV052719; Tue, 24 May 2011 22:52:32 +0100 (BST) (envelope-from njm@njm.me.uk) Received: from titania.njm.me.uk (localhost [127.0.0.1]) by titania.njm.me.uk (8.14.4/8.14.4) with ESMTP id p4OLqWiD005371; Tue, 24 May 2011 22:52:32 +0100 (BST) (envelope-from njm@njm.me.uk) Received: (from njm@localhost) by titania.njm.me.uk (8.14.4/8.14.4/Submit) id p4OLqWBV005370; Tue, 24 May 2011 22:52:32 +0100 (BST) (envelope-from njm@njm.me.uk) Date: Tue, 24 May 2011 22:52:32 +0100 From: "N.J. Mann" To: John Baldwin Message-ID: <20110524215232.GB92553@titania.njm.me.uk> Mail-Followup-To: John Baldwin , freebsd-hardware@freebsd.org References: <20110522110002.GB91694@titania.njm.me.uk> <201105241341.49546.jhb@freebsd.org> <20110524200100.GA92553@titania.njm.me.uk> <201105241610.49930.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201105241610.49930.jhb@freebsd.org> X-Operating-System: FreeBSD 8.2-STABLE User-Agent: mutt-NJM (2010-10-31) Cc: freebsd-hardware@freebsd.org Subject: Re: Sunix 4056A PCI 4 port RS-232 card - only 2 ports configured X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 May 2011 21:52:35 -0000 In message <201105241610.49930.jhb@freebsd.org>, John Baldwin (jhb@freebsd.org) wrote: [snip] > > Ah, uart_puc_probe() always uses the 'uart_ns8250_class' uart driver which > is defined in uart_dev_ns8250.c. ns8250_bus_probe() is what you want to > instrument I think. ns8250_bus_probe() is called twice for each of the working devices as follows: UART2: ------ ns8250_bus_probe:: entry ns8250_probe::uart_getreg REG_IIR = 1 ns8250_probe::uart_getreg REG_MCR = 0 ns8250_bus_probe:: exit ... ns8250_bus_probe:: entry ns8250_probe::uart_getreg REG_IIR = 193 ns8250_probe::uart_getreg REG_MCR = 8 ns8250_bus_probe:: exit UART3 ----- ns8250_bus_probe:: entry ns8250_probe::uart_getreg REG_IIR = 1 ns8250_probe::uart_getreg REG_MCR = 0 ns8250_bus_probe:: exit ... ns8250_bus_probe:: entry ns8250_probe::uart_getreg REG_IIR = 193 ns8250_probe::uart_getreg REG_MCR = 8 ns8250_bus_probe:: exit For the two devices that fail, ns8250_bus_probe() fails on the first call: UART4 ----- ns8250_bus_probe:: entry ns8250_probe::uart_getreg REG_IIR = 1 ns8250_probe::uart_getreg REG_MCR = 64 ns8250_bus_probe::ns8250_probe returned 6 UART5 ----- ns8250_bus_probe:: entry ns8250_probe::uart_getreg REG_IIR = 1 ns8250_probe::uart_getreg REG_MCR = 64 ns8250_bus_probe::ns8250_probe returned 6 The value returned for the read of REG_MCR is 64, or 0x40, which causes the premature exit: static int ns8250_probe(struct uart_bas *bas) { u_char val; /* Check known 0 bits that don't depend on DLAB. */ val = uart_getreg(bas, REG_IIR); if (val & 0x30) return (ENXIO); val = uart_getreg(bas, REG_MCR); if (val & 0xe0) return (ENXIO); return (0); } Do you need to know the contents of 'bas'? Many thanks. Cheers, Nick -- From owner-freebsd-hardware@FreeBSD.ORG Wed May 25 13:46:48 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5DE88106566C; Wed, 25 May 2011 13:46:48 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 337668FC0C; Wed, 25 May 2011 13:46:48 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id D882646B32; Wed, 25 May 2011 09:46:47 -0400 (EDT) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 6BAE78A051; Wed, 25 May 2011 09:46:47 -0400 (EDT) From: John Baldwin To: "N.J. Mann" Date: Wed, 25 May 2011 09:46:45 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110325; KDE/4.5.5; amd64; ; ) References: <20110522110002.GB91694@titania.njm.me.uk> <201105241610.49930.jhb@freebsd.org> <20110524215232.GB92553@titania.njm.me.uk> In-Reply-To: <20110524215232.GB92553@titania.njm.me.uk> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201105250946.45653.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Wed, 25 May 2011 09:46:47 -0400 (EDT) Cc: Marcel Moolenaar , freebsd-hardware@freebsd.org Subject: Re: Sunix 4056A PCI 4 port RS-232 card - only 2 ports configured X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2011 13:46:48 -0000 On Tuesday, May 24, 2011 5:52:32 pm N.J. Mann wrote: > In message <201105241610.49930.jhb@freebsd.org>, > John Baldwin (jhb@freebsd.org) wrote: > [snip] > > > > Ah, uart_puc_probe() always uses the 'uart_ns8250_class' uart driver which > > is defined in uart_dev_ns8250.c. ns8250_bus_probe() is what you want to > > instrument I think. > > ns8250_bus_probe() is called twice for each of the working devices as > follows: > > UART2: > ------ > ns8250_bus_probe:: entry > ns8250_probe::uart_getreg REG_IIR = 1 > ns8250_probe::uart_getreg REG_MCR = 0 > ns8250_bus_probe:: exit > ... > ns8250_bus_probe:: entry > ns8250_probe::uart_getreg REG_IIR = 193 > ns8250_probe::uart_getreg REG_MCR = 8 > ns8250_bus_probe:: exit > > UART3 > ----- > ns8250_bus_probe:: entry > ns8250_probe::uart_getreg REG_IIR = 1 > ns8250_probe::uart_getreg REG_MCR = 0 > ns8250_bus_probe:: exit > ... > ns8250_bus_probe:: entry > ns8250_probe::uart_getreg REG_IIR = 193 > ns8250_probe::uart_getreg REG_MCR = 8 > ns8250_bus_probe:: exit > > For the two devices that fail, ns8250_bus_probe() fails on the first > call: > > UART4 > ----- > ns8250_bus_probe:: entry > ns8250_probe::uart_getreg REG_IIR = 1 > ns8250_probe::uart_getreg REG_MCR = 64 > ns8250_bus_probe::ns8250_probe returned 6 > > UART5 > ----- > ns8250_bus_probe:: entry > ns8250_probe::uart_getreg REG_IIR = 1 > ns8250_probe::uart_getreg REG_MCR = 64 > ns8250_bus_probe::ns8250_probe returned 6 > > The value returned for the read of REG_MCR is 64, or 0x40, which causes > the premature exit: > > static int > ns8250_probe(struct uart_bas *bas) > { > u_char val; > > /* Check known 0 bits that don't depend on DLAB. */ > val = uart_getreg(bas, REG_IIR); > if (val & 0x30) > return (ENXIO); > val = uart_getreg(bas, REG_MCR); > if (val & 0xe0) > return (ENXIO); > > return (0); > } > > Do you need to know the contents of 'bas'? This goes beyond my level of knowledge. I've cc'd Marcel (author of uart) who can hopefully help with this more. -- John Baldwin From owner-freebsd-hardware@FreeBSD.ORG Wed May 25 14:05:01 2011 Return-Path: Delivered-To: freebsd-hardware@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B5FEA1065672; Wed, 25 May 2011 14:05:01 +0000 (UTC) (envelope-from willy@Offermans.Rompen.nl) Received: from cpsmtpb-ews07.kpnxchange.com (cpsmtpb-ews07.kpnxchange.com [213.75.39.10]) by mx1.freebsd.org (Postfix) with ESMTP id 23CBE8FC14; Wed, 25 May 2011 14:05:00 +0000 (UTC) Received: from cpbrm-ews24.kpnxchange.com ([10.94.84.155]) by cpsmtpb-ews07.kpnxchange.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 25 May 2011 16:04:59 +0200 Received: from CPSMTPM-CMT101.kpnxchange.com ([195.121.3.17]) by cpbrm-ews24.kpnxchange.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 25 May 2011 16:04:58 +0200 Received: from koko.offrom.nl ([77.170.60.162]) by CPSMTPM-CMT101.kpnxchange.com with Microsoft SMTPSVC(7.0.6002.18264); Wed, 25 May 2011 16:04:57 +0200 Received: from squid.home.itmc.RWTH-Aachen.DE (squid.vpn.offrom.nl [10.168.0.72]) by koko.offrom.nl (8.14.3/8.14.3) with ESMTP id p4PE4s0S011164; Wed, 25 May 2011 16:04:54 +0200 (CEST) (envelope-from willy@vpn.offrom.nl) Received: from willy by squid.home.itmc.RWTH-Aachen.DE with local (Exim 4.72) (envelope-from ) id 1QPEhh-0001MU-VL; Wed, 25 May 2011 16:04:53 +0200 Date: Wed, 25 May 2011 16:04:53 +0200 From: Willy Offermans To: Jeremy Chadwick Message-ID: <20110525140453.GD3842@vpn.offrom.nl> References: <20110521092037.GB3271@vpn.offrom.nl> <20110522071642.GA61515@icarus.home.lan> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="7iMSBzlTiPOCCT2k" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20110522071642.GA61515@icarus.home.lan> User-Agent: Mutt/1.5.20 (2009-06-14) X-OriginalArrivalTime: 25 May 2011 14:04:57.0979 (UTC) FILETIME=[BB0A6CB0:01CC1AE4] X-RcptDomain: FreeBSD.ORG Cc: Willy Offermans , freebsd-stable@FreeBSD.ORG, freebsd-hardware@FreeBSD.ORG Subject: Re: modem support MT9234ZPX-PCIE-NV X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Willy@Offermans.Rompen.nl List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2011 14:05:01 -0000 --7iMSBzlTiPOCCT2k Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Hello Jeremy and FreeBSD friends, On Sun, May 22, 2011 at 12:16:42AM -0700, Jeremy Chadwick wrote: > On Sat, May 21, 2011 at 11:20:37AM +0200, Willy Offermans wrote: > > Dear FreeBSD friends, > > > > I need support with a MultiTech modem, MT9234ZPX-PCIE-NV > > (http://www.multitech.com/en_US/PRODUCTS/Families/MultiModemZPX/) > > > > The modem is recognised during the boot event: > > > > > > pci6: at device 0.0 (no driver attached) > > > > > > and also appears in the list of found hardware over the PCI bus: > > > > > > none1@pci0:6:0:0: class=0x070002 card=0x20262205 chip=0x015213a8 rev=0x02 hdr=0x00 > > vendor = 'Exar Corp.' > > device = 'XR17C/D152 Dual PCI UART' > > class = simple comms > > subclass = UART > > > > > > However, as the boot process already mentions, there is no driver attached > > and I cannot get the modem to appear as an accessible and functional > > device. Is there someone, who can help me to get this modem to work? > > It would be helpful if you could specify what FreeBSD version you're > using. > > Assuming 8.2 or RELENG_8: no promises, but puc(4) is probably what > you're looking for. I would try adding: > > puc_load="yes" > > To your /boot/loader.conf, then see what happens after booting. uart(4) > may auto-attach to that. Again, no promises. > > -- > | Jeremy Chadwick jdc@parodius.com | > | Parodius Networking http://www.parodius.com/ | > | UNIX Systems Administrator Mountain View, CA, USA | > | Making life hard for others since 1977. PGP 4BD6C0CB | > I'm using FreeBSD 7.2-RELEASE-p2. I have enclosed the dmesg.boot file. puc was already incorporated into the kernel: kosmos# kldload -v puc kldload: can't load puc: File exists So I assume puc has already been loaded. -- Met vriendelijke groeten, With kind regards, Mit freundlichen Gruessen, De jrus wah, Willy ************************************* Dr. W.K. Offermans CAT Postdoctoral Fellow CAT Catalytic Center Institut für Technische und Makromolekulare Chemie RWTH Aachen Worringerweg 1, Raum 38C-150 D-52074 Aachen, Germany Phone: +49 241 80 28592 Fax: +49 241 80 22593 Home: +31 45 544 49 44 Mobile: +31 681 15 87 68 e-mail: Willy@Offermans.Rompen.nl e-mail: Willy.Offermans@CatalyticCenter.RWTH-Aachen.de Powered by .... (__) \\\'',) \/ \ ^ .\._/_) www.FreeBSD.org --7iMSBzlTiPOCCT2k Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="dmesg.boot" Waiting (max 60 seconds) for system process `vnlru' to stop...done Waiting (max 60 seconds) for system process `bufdaemon' to stop...done Waiting (max 60 seconds) for system process `syncer' to stop... Syncing disks, vnodes remaining...0 0 done All buffers synced. Copyright (c) 1992-2009 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 7.2-RELEASE-p2 #3: Thu May 12 16:15:47 CEST 2011 willy@kosmos.rompen.nl:/usr/obj/usr/src/sys/KOSMOS Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Xeon(R) CPU X3360 @ 2.83GHz (2266.76-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x1067a Stepping = 10 Features=0xbfebfbff Features2=0x408e3fd,XSAVE> AMD Features=0x20100800 AMD Features2=0x1 Cores per package: 4 usable memory = 4285059072 (4086 MB) avail memory = 4116738048 (3926 MB) ACPI APIC Table: <082608 APIC0956> FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu2 (AP): APIC ID: 2 cpu3 (AP): APIC ID: 3 This module (opensolaris) contains code covered by the Common Development and Distribution License (CDDL) see http://opensolaris.org/os/licensing/opensolaris_license/ ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: <082608 RSDT0956> on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, dff00000 (3) failed Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 acpi_hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 900 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: irq 16 at device 1.0 on pci0 pci5: on pcib1 pcib2: at device 0.0 on pci5 pci6: on pcib2 pci6: at device 0.0 (no driver attached) pcib3: irq 16 at device 28.0 on pci0 pci4: on pcib3 pcib4: irq 16 at device 28.4 on pci0 pci3: on pcib4 bge0: mem 0xfbef0000-0xfbefffff irq 16 at device 0.0 on pci3 miibus0: on bge0 brgphy0: PHY 1 on miibus0 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto bge0: Ethernet address: 00:24:8c:66:4b:62 bge0: [ITHREAD] pcib5: irq 17 at device 28.5 on pci0 pci2: on pcib5 bge1: mem 0xfbdf0000-0xfbdfffff irq 17 at device 0.0 on pci2 miibus1: on bge1 brgphy1: PHY 1 on miibus1 brgphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto bge1: Ethernet address: 00:24:8c:66:4c:48 bge1: [ITHREAD] uhci0: port 0xcc00-0xcc1f irq 23 at device 29.0 on pci0 uhci0: [GIANT-LOCKED] uhci0: [ITHREAD] usb0: on uhci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xd000-0xd01f irq 19 at device 29.1 on pci0 uhci1: [GIANT-LOCKED] uhci1: [ITHREAD] usb1: on uhci1 usb1: USB revision 1.0 uhub1: on usb1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0xd080-0xd09f irq 18 at device 29.2 on pci0 uhci2: [GIANT-LOCKED] uhci2: [ITHREAD] usb2: on uhci2 usb2: USB revision 1.0 uhub2: on usb2 uhub2: 2 ports with 2 removable, self powered ehci0: mem 0xfbbff800-0xfbbffbff irq 23 at device 29.7 on pci0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb3: EHCI version 1.0 usb3: companion controllers, 2 ports each: usb0 usb1 usb2 usb3: on ehci0 usb3: USB revision 2.0 uhub3: on usb3 uhub3: 6 ports with 6 removable, self powered pcib6: at device 30.0 on pci0 pci1: on pcib6 vgapci0: port 0xec00-0xec7f mem 0xf4000000-0xf7ffffff,0xfbcc0000-0xfbcfffff at device 3.0 on pci1 isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 31.1 on pci0 ata0: on atapci0 ata0: [ITHREAD] atapci1: port 0xdc00-0xdc07,0xd880-0xd883,0xd800-0xd807,0xd480-0xd483,0xd400-0xd40f mem 0xfbbffc00-0xfbbfffff irq 19 at device 31.2 on pci0 atapci1: [ITHREAD] ata2: on atapci1 ata2: [ITHREAD] ata3: on atapci1 ata3: [ITHREAD] pci0: at device 31.3 (no driver attached) acpi_button0: on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: [ITHREAD] psm0: model IntelliMouse, device ID 3 uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 uart0: [FILTER] uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 on acpi0 uart1: [FILTER] cpu0: on acpi0 ACPI Warning (tbutils-0243): Incorrect checksum in table [OEMB] - 67, should be 64 [20070320] est0: on cpu0 p4tcc0: on cpu0 cpu1: on acpi0 est1: on cpu1 p4tcc1: on cpu1 cpu2: on acpi0 est2: on cpu2 p4tcc2: on cpu2 cpu3: on acpi0 est3: on cpu3 p4tcc3: on cpu3 orm0: at iomem 0xc0000-0xc7fff on isa0 ppc0: cannot reserve I/O port range WARNING: ZFS is considered to be an experimental feature in FreeBSD. Timecounters tick every 1.000 msec ipfw2 (+ipv6) initialized, divert enabled, nat loadable, rule-based forwarding disabled, default to deny, logging limited to 10 packets/entry by default ZFS filesystem version 6 ZFS storage pool version 6 ad4: 953869MB at ata2-master SATA150 ad5: 953869MB at ata2-slave SATA150 ad6: 953869MB at ata3-master SATA150 GEOM_LABEL: Label for provider ad4s1a is ufsid/4a6b25f55a113d71. acd0: DVDR at ata3-slave SATA150 SMP: AP CPU #1 Launched! SMP: AP CPU #2 Launched! SMP: AP CPU #3 Launched! Trying to mount root from zfs:tank/root tap0: Ethernet address: 00:bd:45:09:00:00 GEOM_LABEL: Label ufsid/4a6b25f55a113d71 removed. GEOM_LABEL: Label for provider ad4s1a is ufsid/4a6b25f55a113d71. GEOM_LABEL: Label ufsid/4a6b25f55a113d71 removed. bge0: link state changed to UP bge1: link state changed to UP --7iMSBzlTiPOCCT2k-- From owner-freebsd-hardware@FreeBSD.ORG Wed May 25 14:10:55 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A82791065672; Wed, 25 May 2011 14:10:55 +0000 (UTC) (envelope-from willy@Offermans.Rompen.nl) Received: from cpsmtpb-ews01.kpnxchange.com (cpsmtpb-ews01.kpnxchange.com [213.75.39.4]) by mx1.freebsd.org (Postfix) with ESMTP id 27CEE8FC16; Wed, 25 May 2011 14:10:54 +0000 (UTC) Received: from cpbrm-ews07.kpnxchange.com ([10.94.84.138]) by cpsmtpb-ews01.kpnxchange.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 25 May 2011 16:10:53 +0200 Received: from CPSMTPM-CMT105.kpnxchange.com ([195.121.3.21]) by cpbrm-ews07.kpnxchange.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 25 May 2011 16:10:53 +0200 Received: from koko.offrom.nl ([77.170.60.162]) by CPSMTPM-CMT105.kpnxchange.com with Microsoft SMTPSVC(7.0.6002.18264); Wed, 25 May 2011 16:10:52 +0200 Received: from squid.home.itmc.RWTH-Aachen.DE (squid.vpn.offrom.nl [10.168.0.72]) by koko.offrom.nl (8.14.3/8.14.3) with ESMTP id p4PEAlnK011199; Wed, 25 May 2011 16:10:49 +0200 (CEST) (envelope-from willy@vpn.offrom.nl) Received: from willy by squid.home.itmc.RWTH-Aachen.DE with local (Exim 4.72) (envelope-from ) id 1QPEnP-0001NP-Cb; Wed, 25 May 2011 16:10:47 +0200 Date: Wed, 25 May 2011 16:10:47 +0200 From: Willy Offermans To: "Daniel O'Connor" Message-ID: <20110525141047.GE3842@vpn.offrom.nl> References: <20110521092037.GB3271@vpn.offrom.nl> <20110522071642.GA61515@icarus.home.lan> <986DD7FA-E426-4261-8DB0-6F9063CE9BF6@gsoft.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <986DD7FA-E426-4261-8DB0-6F9063CE9BF6@gsoft.com.au> User-Agent: Mutt/1.5.20 (2009-06-14) X-OriginalArrivalTime: 25 May 2011 14:10:52.0736 (UTC) FILETIME=[8E7E0C00:01CC1AE5] X-RcptDomain: freebsd.org Cc: Willy Offermans , freebsd-stable@freebsd.org, Jeremy Chadwick , freebsd-hardware@freebsd.org Subject: Re: modem support MT9234ZPX-PCIE-NV X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Willy@Offermans.Rompen.nl List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2011 14:10:55 -0000 Dear Daniel and FreeBSD friends, On Sun, May 22, 2011 at 10:48:03AM +0200, Daniel O'Connor wrote: > > On 22/05/2011, at 9:16, Jeremy Chadwick wrote: > >> However, as the boot process already mentions, there is no driver attached > >> and I cannot get the modem to appear as an accessible and functional > >> device. Is there someone, who can help me to get this modem to work? > > > > It would be helpful if you could specify what FreeBSD version you're > > using. > > > > Assuming 8.2 or RELENG_8: no promises, but puc(4) is probably what > > you're looking for. I would try adding: > > > > puc_load="yes" > > > > To your /boot/loader.conf, then see what happens after booting. uart(4) > > may auto-attach to that. Again, no promises. > > I have my doubts it would work though, most likely it's a soft modem which will only work with proprietary drivers. > > I couldn't find any details on the web page though so you might get lucky I suppose :) > > -- > Daniel O'Connor software and network engineer > for Genesis Software - http://www.gsoft.com.au > "The nice thing about standards is that there > are so many of them to choose from." > -- Andrew Tanenbaum > GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C > > > > > > According to the manufacturer (http://www.multitech.com/en_US/PRODUCTS/Families/MultiModemZPX/) it is not a soft modem, but a ``hardware'' modem. It says: Built-in processor does the work, so your computer doesn't have to. I do not know if this is sufficient to work under FreeBSD, but it seems to indicate that it does not need any proprietary driver. -- Met vriendelijke groeten, With kind regards, Mit freundlichen Gruessen, Willy ************************************* W.K. Offermans Home: +31 45 544 49 44 Mobile: +31 681 15 87 68 e-mail: Willy@Offermans.Rompen.nl From owner-freebsd-hardware@FreeBSD.ORG Wed May 25 14:32:32 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F35D106564A; Wed, 25 May 2011 14:32:32 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (unknown [IPv6:2001:44b8:7c07:5581:266:e1ff:fe0c:8f16]) by mx1.freebsd.org (Postfix) with ESMTP id 15BC98FC19; Wed, 25 May 2011 14:32:30 +0000 (UTC) Received: from [192.168.42.215] (maarsy.rocketrange.no [128.39.153.30]) (authenticated bits=0) by cain.gsoft.com.au (8.14.4/8.14.3) with ESMTP id p4PEWLm6011217 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Thu, 26 May 2011 00:02:25 +0930 (CST) (envelope-from doconnor@gsoft.com.au) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: "Daniel O'Connor" In-Reply-To: <20110525141047.GE3842@vpn.offrom.nl> Date: Wed, 25 May 2011 16:32:20 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <43FC5BF5-27B7-4051-BF7D-44A8FDB6ECE6@gsoft.com.au> References: <20110521092037.GB3271@vpn.offrom.nl> <20110522071642.GA61515@icarus.home.lan> <986DD7FA-E426-4261-8DB0-6F9063CE9BF6@gsoft.com.au> <20110525141047.GE3842@vpn.offrom.nl> To: Willy@Offermans.Rompen.nl X-Mailer: Apple Mail (2.1084) X-Spam-Score: -1.5 () BAYES_00 X-Scanned-By: MIMEDefang 2.67 on 203.31.81.10 Cc: freebsd-stable@freebsd.org, Jeremy Chadwick , freebsd-hardware@freebsd.org Subject: Re: modem support MT9234ZPX-PCIE-NV X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2011 14:32:32 -0000 On 25/05/2011, at 16:10, Willy Offermans wrote: > According to the manufacturer > (http://www.multitech.com/en_US/PRODUCTS/Families/MultiModemZPX/) > it is not a soft modem, but a ``hardware'' modem. It says: Built-in > processor does the work, so your computer doesn't have to. I do not = know if > this is sufficient to work under FreeBSD, but it seems to indicate = that it > does not need any proprietary driver.=20 Ahh, sounds promising.. You could just try adding the device IDs to the PUC driver and seeing = what happens. Failing that ask Multitech if they can help you out. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C From owner-freebsd-hardware@FreeBSD.ORG Wed May 25 15:23:56 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D05B7106566C; Wed, 25 May 2011 15:23:56 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (unknown [IPv6:2001:44b8:7c07:5581:266:e1ff:fe0c:8f16]) by mx1.freebsd.org (Postfix) with ESMTP id D8B398FC17; Wed, 25 May 2011 15:23:55 +0000 (UTC) Received: from [192.168.42.215] (maarsy.rocketrange.no [128.39.153.30]) (authenticated bits=0) by cain.gsoft.com.au (8.14.4/8.14.3) with ESMTP id p4PFNjbM012890 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Thu, 26 May 2011 00:53:50 +0930 (CST) (envelope-from doconnor@gsoft.com.au) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: "Daniel O'Connor" In-Reply-To: <20110525140453.GD3842@vpn.offrom.nl> Date: Wed, 25 May 2011 17:23:44 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20110521092037.GB3271@vpn.offrom.nl> <20110522071642.GA61515@icarus.home.lan> <20110525140453.GD3842@vpn.offrom.nl> To: Willy@Offermans.Rompen.nl X-Mailer: Apple Mail (2.1084) X-Spam-Score: -1.5 () BAYES_00 X-Scanned-By: MIMEDefang 2.67 on 203.31.81.10 Cc: freebsd-stable@freebsd.org, Jeremy Chadwick , freebsd-hardware@freebsd.org Subject: Re: modem support MT9234ZPX-PCIE-NV X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2011 15:23:56 -0000 On 25/05/2011, at 16:04, Willy Offermans wrote: > I'm using FreeBSD 7.2-RELEASE-p2. I have enclosed the dmesg.boot file. >=20 > puc was already incorporated into the kernel: >=20 > kosmos# kldload -v puc > kldload: can't load puc: File exists >=20 > So I assume puc has already been loaded. You could try editing /usr/src/sys/dev/puc/pucdata.c to add your card's = ID and then rebuild & reload the puc module. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C From owner-freebsd-hardware@FreeBSD.ORG Wed May 25 15:56:49 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 458F6106566C for ; Wed, 25 May 2011 15:56:49 +0000 (UTC) (envelope-from marcel@xcllnt.net) Received: from mail.xcllnt.net (mail.xcllnt.net [70.36.220.4]) by mx1.freebsd.org (Postfix) with ESMTP id CDC548FC16 for ; Wed, 25 May 2011 15:56:48 +0000 (UTC) Received: from sa-nc-common-178.static.jnpr.net (natint3.juniper.net [66.129.224.36]) (authenticated bits=0) by mail.xcllnt.net (8.14.4/8.14.4) with ESMTP id p4PFjS58026138 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Wed, 25 May 2011 08:45:33 -0700 (PDT) (envelope-from marcel@xcllnt.net) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Marcel Moolenaar In-Reply-To: <201105250946.45653.jhb@freebsd.org> Date: Wed, 25 May 2011 08:45:22 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <803C09E5-8E10-4289-A8B3-952E8A72C7A1@xcllnt.net> References: <20110522110002.GB91694@titania.njm.me.uk> <201105241610.49930.jhb@freebsd.org> <20110524215232.GB92553@titania.njm.me.uk> <201105250946.45653.jhb@freebsd.org> To: John Baldwin X-Mailer: Apple Mail (2.1084) Cc: freebsd-hardware@freebsd.org, "N.J. Mann" Subject: Re: Sunix 4056A PCI 4 port RS-232 card - only 2 ports configured X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2011 15:56:49 -0000 On May 25, 2011, at 6:46 AM, John Baldwin wrote: *snip* >> For the two devices that fail, ns8250_bus_probe() fails on the first >> call: >>=20 >> UART4 >> ----- >> ns8250_bus_probe:: entry >> ns8250_probe::uart_getreg REG_IIR =3D 1 >> ns8250_probe::uart_getreg REG_MCR =3D 64 >> ns8250_bus_probe::ns8250_probe returned 6 >>=20 >> UART5 >> ----- >> ns8250_bus_probe:: entry >> ns8250_probe::uart_getreg REG_IIR =3D 1 >> ns8250_probe::uart_getreg REG_MCR =3D 64 >> ns8250_bus_probe::ns8250_probe returned 6 >>=20 >> The value returned for the read of REG_MCR is 64, or 0x40, which = causes >> the premature exit: >>=20 >> static int >> ns8250_probe(struct uart_bas *bas) >> { >> u_char val; >>=20 >> /* Check known 0 bits that don't depend on DLAB. */ >> val =3D uart_getreg(bas, REG_IIR); >> if (val & 0x30) >> return (ENXIO); >> val =3D uart_getreg(bas, REG_MCR); >> if (val & 0xe0) >> return (ENXIO); >>=20 >> return (0); >> } >>=20 >> Do you need to know the contents of 'bas'? >=20 > This goes beyond my level of knowledge. I've cc'd Marcel (author of = uart) who=20 > can hopefully help with this more. The ns8250 family of UARTs typically have bits 5, 6 and 7 of the MCR register reserved and thus hardwired to 0. The probe function checks for that to make sure that the hardware looks enough like a UART that we can claim it without hosing the box. That said: newer chips in the family, like the ST16C850/XR16C850, have given those bits a function: bit 5 - Xon-Any enable bit 6 - Infrared enable bit 7 - Clock pre-scaler It's unclear to me whether those bits are consistently defined across the different implementations (for some reason I think not) and it's also unclear to me whether the device will work correctly with FreeBSD if we simply ignore those bits (again I don't think this is always the case). I think the first order of business from an architectural point of view is to determine how much value register probing still has on modern hardware. In the good old days, this was needed. If we think it's not really needed anymore, then it makes sense to loosen the grip so to speak. For you, the first thing is to see whether the UART ports work if you tweak the probe functions, like so: Index: uart_dev_ns8250.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- uart_dev_ns8250.c (revision 222217) +++ uart_dev_ns8250.c (working copy) @@ -243,7 +243,7 @@ if (val & 0x30) return (ENXIO); val =3D uart_getreg(bas, REG_MCR); - if (val & 0xe0) + if (val & 0xa0) return (ENXIO); =20 return (0); Secondly, I'd like to know the vendor of the Quad-port UART. Either it's Sunix's own implementation (this seems to be the case), or they simply OEM someone else's. In any case: I'd like to see the datasheet of the ASIC so as to understand the meaning/function of the bit. FYI, --=20 Marcel Moolenaar marcel@xcllnt.net From owner-freebsd-hardware@FreeBSD.ORG Wed May 25 16:36:31 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 92B4C106566B; Wed, 25 May 2011 16:36:31 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 68FF28FC18; Wed, 25 May 2011 16:36:31 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 17D2346B3C; Wed, 25 May 2011 12:36:31 -0400 (EDT) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id ABE1B8A04F; Wed, 25 May 2011 12:36:30 -0400 (EDT) From: John Baldwin To: freebsd-stable@freebsd.org, Willy@offermans.rompen.nl Date: Wed, 25 May 2011 12:36:30 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110325; KDE/4.5.5; amd64; ; ) References: <20110521092037.GB3271@vpn.offrom.nl> In-Reply-To: <20110521092037.GB3271@vpn.offrom.nl> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201105251236.30188.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Wed, 25 May 2011 12:36:30 -0400 (EDT) Cc: freebsd-hardware@freebsd.org Subject: Re: modem support MT9234ZPX-PCIE-NV X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2011 16:36:31 -0000 On Saturday, May 21, 2011 5:20:37 am Willy Offermans wrote: > Dear FreeBSD friends, > > I need support with a MultiTech modem, MT9234ZPX-PCIE-NV > (http://www.multitech.com/en_US/PRODUCTS/Families/MultiModemZPX/) > > The modem is recognised during the boot event: > > > pci6: at device 0.0 (no driver attached) > > > and also appears in the list of found hardware over the PCI bus: > > > none1@pci0:6:0:0: class=0x070002 card=0x20262205 chip=0x015213a8 rev=0x02 hdr=0x00 > vendor = 'Exar Corp.' > device = 'XR17C/D152 Dual PCI UART' > class = simple comms > subclass = UART > > > However, as the boot process already mentions, there is no driver attached > and I cannot get the modem to appear as an accessible and functional > device. Is there someone, who can help me to get this modem to work? Try this patch to sys/dev/uart/uart_bus_pci.c: Index: uart_bus_pci.c =================================================================== --- uart_bus_pci.c (revision 222248) +++ uart_bus_pci.c (working copy) @@ -110,6 +110,7 @@ static struct pci_id pci_ns8250_ids[] = { { 0x1415, 0x950b, 0xffff, 0, "Oxford Semiconductor OXCB950 Cardbus 16950 UART", 0x10, 16384000 }, { 0x151f, 0x0000, 0xffff, 0, "TOPIC Semiconductor TP560 56k modem", 0x10 }, +{ 0x13a8, 0x0152, 0x2205, 0x2026, "MultiTech MultiModem ZPX", 0x10 }, { 0x9710, 0x9820, 0x1000, 1, "NetMos NM9820 Serial Port", 0x10 }, { 0x9710, 0x9835, 0x1000, 1, "NetMos NM9835 Serial Port", 0x10 }, { 0x9710, 0x9865, 0xa000, 0x1000, "NetMos NM9865 Serial Port", 0x10 }, -- John Baldwin From owner-freebsd-hardware@FreeBSD.ORG Thu May 26 13:12:15 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 02DF11065677 for ; Thu, 26 May 2011 13:12:15 +0000 (UTC) (envelope-from njm@njm.me.uk) Received: from smtp004.apm-internet.net (smtp004.apm-internet.net [85.119.248.54]) by mx1.freebsd.org (Postfix) with SMTP id 7B6B48FC20 for ; Thu, 26 May 2011 13:12:13 +0000 (UTC) Received: (qmail 42102 invoked from network); 26 May 2011 13:12:11 -0000 Received: from unknown (HELO oberon.njm.me.uk) (86.150.31.19) by smtp004.apm-internet.net with SMTP; 26 May 2011 13:12:11 -0000 Received: from titania.njm.me.uk (titania.njm.me.uk [192.168.144.130]) by oberon.njm.me.uk (8.14.4/8.14.4) with ESMTP id p4QDCBrn017198; Thu, 26 May 2011 14:12:11 +0100 (BST) (envelope-from njm@njm.me.uk) Received: from titania.njm.me.uk (localhost [127.0.0.1]) by titania.njm.me.uk (8.14.4/8.14.4) with ESMTP id p4QDCAWO014240; Thu, 26 May 2011 14:12:10 +0100 (BST) (envelope-from njm@njm.me.uk) Received: (from njm@localhost) by titania.njm.me.uk (8.14.4/8.14.4/Submit) id p4QDCA5R014239; Thu, 26 May 2011 14:12:10 +0100 (BST) (envelope-from njm@njm.me.uk) Date: Thu, 26 May 2011 14:12:10 +0100 From: "N.J. Mann" To: John Baldwin Message-ID: <20110526131210.GA9481@titania.njm.me.uk> Mail-Followup-To: John Baldwin , freebsd-hardware@freebsd.org, Marcel Moolenaar References: <20110522110002.GB91694@titania.njm.me.uk> <201105241610.49930.jhb@freebsd.org> <20110524215232.GB92553@titania.njm.me.uk> <201105250946.45653.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201105250946.45653.jhb@freebsd.org> X-Operating-System: FreeBSD 8.2-STABLE User-Agent: mutt-NJM (2010-10-31) Cc: Marcel Moolenaar , freebsd-hardware@freebsd.org Subject: Re: Sunix 4056A PCI 4 port RS-232 card - only 2 ports configured X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 May 2011 13:12:15 -0000 Hi John, In message <201105250946.45653.jhb@freebsd.org>, John Baldwin (jhb@freebsd.org) wrote: > On Tuesday, May 24, 2011 5:52:32 pm N.J. Mann wrote: > > In message <201105241610.49930.jhb@freebsd.org>, > > John Baldwin (jhb@freebsd.org) wrote: > > [snip] > > > > > > Ah, uart_puc_probe() always uses the 'uart_ns8250_class' uart driver which > > > is defined in uart_dev_ns8250.c. ns8250_bus_probe() is what you want to > > > instrument I think. > > > > ns8250_bus_probe() is called twice for each of the working devices as > > follows: > > > > UART2: > > ------ > > ns8250_bus_probe:: entry > > ns8250_probe::uart_getreg REG_IIR = 1 > > ns8250_probe::uart_getreg REG_MCR = 0 > > ns8250_bus_probe:: exit > > ... > > ns8250_bus_probe:: entry > > ns8250_probe::uart_getreg REG_IIR = 193 > > ns8250_probe::uart_getreg REG_MCR = 8 > > ns8250_bus_probe:: exit > > > > UART3 > > ----- > > ns8250_bus_probe:: entry > > ns8250_probe::uart_getreg REG_IIR = 1 > > ns8250_probe::uart_getreg REG_MCR = 0 > > ns8250_bus_probe:: exit > > ... > > ns8250_bus_probe:: entry > > ns8250_probe::uart_getreg REG_IIR = 193 > > ns8250_probe::uart_getreg REG_MCR = 8 > > ns8250_bus_probe:: exit > > > > For the two devices that fail, ns8250_bus_probe() fails on the first > > call: > > > > UART4 > > ----- > > ns8250_bus_probe:: entry > > ns8250_probe::uart_getreg REG_IIR = 1 > > ns8250_probe::uart_getreg REG_MCR = 64 > > ns8250_bus_probe::ns8250_probe returned 6 > > > > UART5 > > ----- > > ns8250_bus_probe:: entry > > ns8250_probe::uart_getreg REG_IIR = 1 > > ns8250_probe::uart_getreg REG_MCR = 64 > > ns8250_bus_probe::ns8250_probe returned 6 > > > > The value returned for the read of REG_MCR is 64, or 0x40, which causes > > the premature exit: > > > > static int > > ns8250_probe(struct uart_bas *bas) > > { > > u_char val; > > > > /* Check known 0 bits that don't depend on DLAB. */ > > val = uart_getreg(bas, REG_IIR); > > if (val & 0x30) > > return (ENXIO); > > val = uart_getreg(bas, REG_MCR); > > if (val & 0xe0) > > return (ENXIO); > > > > return (0); > > } > > > > Do you need to know the contents of 'bas'? > > This goes beyond my level of knowledge. I've cc'd Marcel (author of uart) who > can hopefully help with this more. Thank you for all your help. I now have all four ports working, but a few things still need sorting out. I'll see if Marcel can help me. Best wishes. Cheers, Nick. -- From owner-freebsd-hardware@FreeBSD.ORG Thu May 26 13:42:14 2011 Return-Path: Delivered-To: freebsd-hardware@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 65E74106566B for ; Thu, 26 May 2011 13:42:14 +0000 (UTC) (envelope-from njm@njm.me.uk) Received: from smtp003.apm-internet.net (smtp003.apm-internet.net [85.119.248.52]) by mx1.freebsd.org (Postfix) with SMTP id A41618FC20 for ; Thu, 26 May 2011 13:42:13 +0000 (UTC) Received: (qmail 64536 invoked from network); 26 May 2011 13:42:12 -0000 Received: from unknown (HELO oberon.njm.me.uk) (86.150.31.19) by smtp003.apm-internet.net with SMTP; 26 May 2011 13:42:12 -0000 Received: from titania.njm.me.uk (titania.njm.me.uk [192.168.144.130]) by oberon.njm.me.uk (8.14.4/8.14.4) with ESMTP id p4QDgBwQ018757; Thu, 26 May 2011 14:42:11 +0100 (BST) (envelope-from njm@njm.me.uk) Received: from titania.njm.me.uk (localhost [127.0.0.1]) by titania.njm.me.uk (8.14.4/8.14.4) with ESMTP id p4QDgB1s015841; Thu, 26 May 2011 14:42:11 +0100 (BST) (envelope-from njm@njm.me.uk) Received: (from njm@localhost) by titania.njm.me.uk (8.14.4/8.14.4/Submit) id p4QDgBKq015840; Thu, 26 May 2011 14:42:11 +0100 (BST) (envelope-from njm@njm.me.uk) Date: Thu, 26 May 2011 14:42:11 +0100 From: "N.J. Mann" To: Marcel Moolenaar Message-ID: <20110526134211.GB9481@titania.njm.me.uk> Mail-Followup-To: Marcel Moolenaar , John Baldwin , freebsd-hardware@FreeBSD.org References: <20110522110002.GB91694@titania.njm.me.uk> <201105241610.49930.jhb@freebsd.org> <20110524215232.GB92553@titania.njm.me.uk> <201105250946.45653.jhb@freebsd.org> <803C09E5-8E10-4289-A8B3-952E8A72C7A1@xcllnt.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <803C09E5-8E10-4289-A8B3-952E8A72C7A1@xcllnt.net> X-Operating-System: FreeBSD 8.2-STABLE User-Agent: mutt-NJM (2010-10-31) Cc: John Baldwin , freebsd-hardware@FreeBSD.org Subject: Re: Sunix 4056A PCI 4 port RS-232 card - only 2 ports configured X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 May 2011 13:42:14 -0000 Hi Marcel, In message <803C09E5-8E10-4289-A8B3-952E8A72C7A1@xcllnt.net>, Marcel Moolenaar (marcel@xcllnt.net) wrote: > > On May 25, 2011, at 6:46 AM, John Baldwin wrote: > > *snip* > > >> For the two devices that fail, ns8250_bus_probe() fails on the first > >> call: > >> > >> UART4 > >> ----- > >> ns8250_bus_probe:: entry > >> ns8250_probe::uart_getreg REG_IIR = 1 > >> ns8250_probe::uart_getreg REG_MCR = 64 > >> ns8250_bus_probe::ns8250_probe returned 6 > >> > >> UART5 > >> ----- > >> ns8250_bus_probe:: entry > >> ns8250_probe::uart_getreg REG_IIR = 1 > >> ns8250_probe::uart_getreg REG_MCR = 64 > >> ns8250_bus_probe::ns8250_probe returned 6 > >> > >> The value returned for the read of REG_MCR is 64, or 0x40, which causes > >> the premature exit: > >> > >> static int > >> ns8250_probe(struct uart_bas *bas) > >> { > >> u_char val; > >> > >> /* Check known 0 bits that don't depend on DLAB. */ > >> val = uart_getreg(bas, REG_IIR); > >> if (val & 0x30) > >> return (ENXIO); > >> val = uart_getreg(bas, REG_MCR); > >> if (val & 0xe0) > >> return (ENXIO); > >> > >> return (0); > >> } > >> > >> Do you need to know the contents of 'bas'? > > > > This goes beyond my level of knowledge. I've cc'd Marcel (author of uart) who > > can hopefully help with this more. > > The ns8250 family of UARTs typically have bits 5, 6 and 7 of the > MCR register reserved and thus hardwired to 0. The probe function > checks for that to make sure that the hardware looks enough like > a UART that we can claim it without hosing the box. > > That said: newer chips in the family, like the ST16C850/XR16C850, > have given those bits a function: > bit 5 - Xon-Any enable > bit 6 - Infrared enable > bit 7 - Clock pre-scaler > > It's unclear to me whether those bits are consistently defined > across the different implementations (for some reason I think > not) and it's also unclear to me whether the device will work > correctly with FreeBSD if we simply ignore those bits (again I > don't think this is always the case). > > I think the first order of business from an architectural point > of view is to determine how much value register probing still has > on modern hardware. In the good old days, this was needed. If > we think it's not really needed anymore, then it makes sense to > loosen the grip so to speak. > > For you, the first thing is to see whether the UART ports work > if you tweak the probe functions, like so: > > Index: uart_dev_ns8250.c > =================================================================== > --- uart_dev_ns8250.c (revision 222217) > +++ uart_dev_ns8250.c (working copy) > @@ -243,7 +243,7 @@ > if (val & 0x30) > return (ENXIO); > val = uart_getreg(bas, REG_MCR); > - if (val & 0xe0) > + if (val & 0xa0) > return (ENXIO); > > return (0); I tried this and the result is that ports 3 and 4 now attach okay. However, the baud rate of these two is wrong. If I select 9600 they actually send and receive at 1200, i.e. eight times slower. The speed setting for the first two ports is correct. (I checked all four ports at 9600, 38400 and 115200.) Here are the relevant lines from a verbose dmesg. The ns8250_ lines are debug printf's I added, with the register contents in hex. %%%%% puc0: port 0xe000-0xe01f,0xe400-0xe40f irq 18 at device 10.0 on pci0 puc_config_timedia::PUC_CFG_GET_NPORTS port=0 dev=1 id=1 res=4 ns8250_bus_probe:: entry ns8250_probe::uart_getreg REG_IIR = 1 ns8250_probe::uart_getreg REG_MCR = 0 ns8250_bus_probe:: exit ns8250_bus_probe:: entry ns8250_probe::uart_getreg REG_IIR = c1 ns8250_probe::uart_getreg REG_MCR = 8 ns8250_bus_probe:: exit uart2: <16550 or compatible> on puc0 uart2: fast interrupt ns8250_bus_probe:: entry ns8250_probe::uart_getreg REG_IIR = 1 ns8250_probe::uart_getreg REG_MCR = 0 ns8250_bus_probe:: exit ns8250_bus_probe:: entry ns8250_probe::uart_getreg REG_IIR = c1 ns8250_probe::uart_getreg REG_MCR = 8 ns8250_bus_probe:: exit uart3: <16550 or compatible> on puc0 uart3: fast interrupt ns8250_bus_probe:: entry ns8250_probe::uart_getreg REG_IIR = 1 ns8250_probe::uart_getreg REG_MCR = 40 ns8250_bus_probe:: exit ns8250_bus_probe:: entry ns8250_probe::uart_getreg REG_IIR = 1 ns8250_probe::uart_getreg REG_MCR = 48 ns8250_bus_probe:: exit uart4: on puc0 uart4: fast interrupt ns8250_bus_probe:: entry ns8250_probe::uart_getreg REG_IIR = 1 ns8250_probe::uart_getreg REG_MCR = 40 ns8250_bus_probe:: exit ns8250_bus_probe:: entry ns8250_probe::uart_getreg REG_IIR = 1 ns8250_probe::uart_getreg REG_MCR = 48 ns8250_bus_probe:: exit uart5: on puc0 uart5: fast interrupt %%%%% > Secondly, I'd like to know the vendor of the Quad-port UART. Either > it's Sunix's own implementation (this seems to be the case), or they > simply OEM someone else's. In any case: I'd like to see the datasheet > of the ASIC so as to understand the meaning/function of the bit. I took the card out of the PC to see exactly what is on it. There are three LSI chips, plus four RS-232 interface chips. The largest of the LSI chips is a SUN1889 and it appears to connect to ports 1 and 2, and to the PCI bus. The other two LSI chips are both SUN1699. The first of these seems to be for port 3 and the second for port 4. I tried finding data sheets for these chips on the web, but all I could find was marketing leaflets for various single- and multi-port RS-232 and RS-422 interface cards. Perhaps you will have better luck in searching than I did. Best wishes. Cheers, Nick. -- From owner-freebsd-hardware@FreeBSD.ORG Thu May 26 15:39:18 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F3100106564A for ; Thu, 26 May 2011 15:39:18 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id B2C5C8FC12 for ; Thu, 26 May 2011 15:39:18 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 4CE2D46B2E; Thu, 26 May 2011 11:39:18 -0400 (EDT) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id E1EC18A04F; Thu, 26 May 2011 11:39:17 -0400 (EDT) From: John Baldwin To: "N.J. Mann" Date: Thu, 26 May 2011 11:39:16 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110325; KDE/4.5.5; amd64; ; ) References: <20110522110002.GB91694@titania.njm.me.uk> <803C09E5-8E10-4289-A8B3-952E8A72C7A1@xcllnt.net> <20110526134211.GB9481@titania.njm.me.uk> In-Reply-To: <20110526134211.GB9481@titania.njm.me.uk> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201105261139.16839.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Thu, 26 May 2011 11:39:18 -0400 (EDT) Cc: freebsd-hardware@freebsd.org, Marcel Moolenaar Subject: Re: Sunix 4056A PCI 4 port RS-232 card - only 2 ports configured X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 May 2011 15:39:19 -0000 On Thursday, May 26, 2011 9:42:11 am N.J. Mann wrote: > Hi Marcel, > > > In message <803C09E5-8E10-4289-A8B3-952E8A72C7A1@xcllnt.net>, > Marcel Moolenaar (marcel@xcllnt.net) wrote: > > > > On May 25, 2011, at 6:46 AM, John Baldwin wrote: > > > > *snip* > > > > >> For the two devices that fail, ns8250_bus_probe() fails on the first > > >> call: > > >> > > >> UART4 > > >> ----- > > >> ns8250_bus_probe:: entry > > >> ns8250_probe::uart_getreg REG_IIR = 1 > > >> ns8250_probe::uart_getreg REG_MCR = 64 > > >> ns8250_bus_probe::ns8250_probe returned 6 > > >> > > >> UART5 > > >> ----- > > >> ns8250_bus_probe:: entry > > >> ns8250_probe::uart_getreg REG_IIR = 1 > > >> ns8250_probe::uart_getreg REG_MCR = 64 > > >> ns8250_bus_probe::ns8250_probe returned 6 > > >> > > >> The value returned for the read of REG_MCR is 64, or 0x40, which causes > > >> the premature exit: > > >> > > >> static int > > >> ns8250_probe(struct uart_bas *bas) > > >> { > > >> u_char val; > > >> > > >> /* Check known 0 bits that don't depend on DLAB. */ > > >> val = uart_getreg(bas, REG_IIR); > > >> if (val & 0x30) > > >> return (ENXIO); > > >> val = uart_getreg(bas, REG_MCR); > > >> if (val & 0xe0) > > >> return (ENXIO); > > >> > > >> return (0); > > >> } > > >> > > >> Do you need to know the contents of 'bas'? > > > > > > This goes beyond my level of knowledge. I've cc'd Marcel (author of uart) who > > > can hopefully help with this more. > > > > The ns8250 family of UARTs typically have bits 5, 6 and 7 of the > > MCR register reserved and thus hardwired to 0. The probe function > > checks for that to make sure that the hardware looks enough like > > a UART that we can claim it without hosing the box. > > > > That said: newer chips in the family, like the ST16C850/XR16C850, > > have given those bits a function: > > bit 5 - Xon-Any enable > > bit 6 - Infrared enable > > bit 7 - Clock pre-scaler > > > > It's unclear to me whether those bits are consistently defined > > across the different implementations (for some reason I think > > not) and it's also unclear to me whether the device will work > > correctly with FreeBSD if we simply ignore those bits (again I > > don't think this is always the case). > > > > I think the first order of business from an architectural point > > of view is to determine how much value register probing still has > > on modern hardware. In the good old days, this was needed. If > > we think it's not really needed anymore, then it makes sense to > > loosen the grip so to speak. > > > > For you, the first thing is to see whether the UART ports work > > if you tweak the probe functions, like so: > > > > Index: uart_dev_ns8250.c > > =================================================================== > > --- uart_dev_ns8250.c (revision 222217) > > +++ uart_dev_ns8250.c (working copy) > > @@ -243,7 +243,7 @@ > > if (val & 0x30) > > return (ENXIO); > > val = uart_getreg(bas, REG_MCR); > > - if (val & 0xe0) > > + if (val & 0xa0) > > return (ENXIO); > > > > return (0); > > I tried this and the result is that ports 3 and 4 now attach okay. > However, the baud rate of these two is wrong. If I select 9600 they > actually send and receive at 1200, i.e. eight times slower. The speed > setting for the first two ports is correct. (I checked all four ports at > 9600, 38400 and 115200.) Ah, there are other reports of this: http://lists.freebsd.org/pipermail/freebsd-stable/2010-April/056533.html I think this patch should fix the timing issue: Index: pucdata.c =================================================================== --- pucdata.c (revision 222285) +++ pucdata.c (working copy) @@ -1292,6 +1292,12 @@ puc_config_timedia(struct puc_softc *sc, enum puc_ uint16_t subdev; switch (cmd) { + case PUC_CFG_GET_CLOCK: + if (port < 2) + *res = DEFAULT_RCLK * 8; + else + *res = DEFAULT_RCLK; + return (0); case PUC_CFG_GET_DESC: snprintf(desc, sizeof(desc), "Timedia technology %d Port Serial", (int)sc->sc_cfg_data); -- John Baldwin From owner-freebsd-hardware@FreeBSD.ORG Thu May 26 16:35:54 2011 Return-Path: Delivered-To: freebsd-hardware@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5A23E1065675; Thu, 26 May 2011 16:35:54 +0000 (UTC) (envelope-from marcel@xcllnt.net) Received: from mail.xcllnt.net (mail.xcllnt.net [70.36.220.4]) by mx1.freebsd.org (Postfix) with ESMTP id 0B4688FC20; Thu, 26 May 2011 16:35:53 +0000 (UTC) Received: from sa-nc-common-178.static.jnpr.net (natint3.juniper.net [66.129.224.36]) (authenticated bits=0) by mail.xcllnt.net (8.14.4/8.14.4) with ESMTP id p4QGZmsp056235 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Thu, 26 May 2011 09:35:53 -0700 (PDT) (envelope-from marcel@xcllnt.net) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Marcel Moolenaar In-Reply-To: <20110526134211.GB9481@titania.njm.me.uk> Date: Thu, 26 May 2011 09:35:43 -0700 Content-Transfer-Encoding: 7bit Message-Id: References: <20110522110002.GB91694@titania.njm.me.uk> <201105241610.49930.jhb@freebsd.org> <20110524215232.GB92553@titania.njm.me.uk> <201105250946.45653.jhb@freebsd.org> <803C09E5-8E10-4289-A8B3-952E8A72C7A1@xcllnt.net> <20110526134211.GB9481@titania.njm.me.uk> To: "N.J. Mann" X-Mailer: Apple Mail (2.1084) Cc: John Baldwin , freebsd-hardware@FreeBSD.org Subject: Re: Sunix 4056A PCI 4 port RS-232 card - only 2 ports configured X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 May 2011 16:35:54 -0000 On May 26, 2011, at 6:42 AM, N.J. Mann wrote: *snip* >> For you, the first thing is to see whether the UART ports work >> if you tweak the probe functions, like so: >> >> Index: uart_dev_ns8250.c >> =================================================================== >> --- uart_dev_ns8250.c (revision 222217) >> +++ uart_dev_ns8250.c (working copy) >> @@ -243,7 +243,7 @@ >> if (val & 0x30) >> return (ENXIO); >> val = uart_getreg(bas, REG_MCR); >> - if (val & 0xe0) >> + if (val & 0xa0) >> return (ENXIO); >> >> return (0); > > I tried this and the result is that ports 3 and 4 now attach okay. > However, the baud rate of these two is wrong. If I select 9600 they > actually send and receive at 1200, i.e. eight times slower. The speed > setting for the first two ports is correct. (I checked all four ports at > 9600, 38400 and 115200.) See John's email for the baudrate issue. >> Secondly, I'd like to know the vendor of the Quad-port UART. Either >> it's Sunix's own implementation (this seems to be the case), or they >> simply OEM someone else's. In any case: I'd like to see the datasheet >> of the ASIC so as to understand the meaning/function of the bit. > > I took the card out of the PC to see exactly what is on it. There are > three LSI chips, plus four RS-232 interface chips. The largest of the > LSI chips is a SUN1889 and it appears to connect to ports 1 and 2, and > to the PCI bus. The other two LSI chips are both SUN1699. The first of > these seems to be for port 3 and the second for port 4. I tried finding > data sheets for these chips on the web, but all I could find was > marketing leaflets for various single- and multi-port RS-232 and RS-422 > interface cards. Perhaps you will have better luck in searching than I > did. Thanks! This what really useful. It seems that the SUN1699 has MCR bit 6 set by default or it's even hardwired as 1. There have been various reports on the FreeBSD mailing lists relating to the SUN1699 and how uart(4) doesn't attach due to the MCR having a value of 0x40. Looking at the Sunix driver for Linux I cannot see any reference to this bit at all. The code does not mask it out or force it to 1 either. So, from what I can tell, it has absolutely no meaning. So, I'll change FreeBSD to just ignore this bit. There's even an open PR for this: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/129663 Thanks a lot of working with us! -- Marcel Moolenaar marcel@xcllnt.net From owner-freebsd-hardware@FreeBSD.ORG Thu May 26 19:01:43 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6142C106564A; Thu, 26 May 2011 19:01:43 +0000 (UTC) (envelope-from willy@Offermans.Rompen.nl) Received: from cpsmtpb-ews01.kpnxchange.com (cpsmtpb-ews01.kpnxchange.com [213.75.39.4]) by mx1.freebsd.org (Postfix) with ESMTP id A053B8FC08; Thu, 26 May 2011 19:01:42 +0000 (UTC) Received: from cpbrm-ews10.kpnxchange.com ([10.94.84.141]) by cpsmtpb-ews01.kpnxchange.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 26 May 2011 21:01:41 +0200 Received: from CPSMTPM-CMT108.kpnxchange.com ([195.121.3.24]) by cpbrm-ews10.kpnxchange.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 26 May 2011 21:01:40 +0200 Received: from koko.offrom.nl ([77.170.60.162]) by CPSMTPM-CMT108.kpnxchange.com with Microsoft SMTPSVC(7.0.6002.18264); Thu, 26 May 2011 21:01:39 +0200 Received: from squid.home.itmc.RWTH-Aachen.DE (squid.vpn.offrom.nl [10.168.0.72]) by koko.offrom.nl (8.14.3/8.14.3) with ESMTP id p4QJ1Zww020662; Thu, 26 May 2011 21:01:36 +0200 (CEST) (envelope-from willy@vpn.offrom.nl) Received: from willy by squid.home.itmc.RWTH-Aachen.DE with local (Exim 4.72) (envelope-from ) id 1QPfoN-0000tM-4e; Thu, 26 May 2011 21:01:35 +0200 Date: Thu, 26 May 2011 21:01:35 +0200 From: Willy Offermans To: John Baldwin Message-ID: <20110526190134.GA3037@vpn.offrom.nl> References: <20110521092037.GB3271@vpn.offrom.nl> <201105251236.30188.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201105251236.30188.jhb@freebsd.org> User-Agent: Mutt/1.5.20 (2009-06-14) X-OriginalArrivalTime: 26 May 2011 19:01:39.0801 (UTC) FILETIME=[582AA490:01CC1BD7] X-RcptDomain: freebsd.org Cc: Willy@offermans.rompen.nl, freebsd-stable@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: modem support MT9234ZPX-PCIE-NV X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Willy@Offermans.Rompen.nl List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 May 2011 19:01:43 -0000 Dear John and FreeBSD friends, On Wed, May 25, 2011 at 12:36:30PM -0400, John Baldwin wrote: > On Saturday, May 21, 2011 5:20:37 am Willy Offermans wrote: > > Dear FreeBSD friends, > > > > I need support with a MultiTech modem, MT9234ZPX-PCIE-NV > > (http://www.multitech.com/en_US/PRODUCTS/Families/MultiModemZPX/) > > > > The modem is recognised during the boot event: > > > > > > pci6: at device 0.0 (no driver attached) > > > > > > and also appears in the list of found hardware over the PCI bus: > > > > > > none1@pci0:6:0:0: class=0x070002 card=0x20262205 chip=0x015213a8 > rev=0x02 hdr=0x00 > > vendor = 'Exar Corp.' > > device = 'XR17C/D152 Dual PCI UART' > > class = simple comms > > subclass = UART > > > > > > However, as the boot process already mentions, there is no driver attached > > and I cannot get the modem to appear as an accessible and functional > > device. Is there someone, who can help me to get this modem to work? > > Try this patch to sys/dev/uart/uart_bus_pci.c: > > Index: uart_bus_pci.c > =================================================================== > --- uart_bus_pci.c (revision 222248) > +++ uart_bus_pci.c (working copy) > @@ -110,6 +110,7 @@ static struct pci_id pci_ns8250_ids[] = { > { 0x1415, 0x950b, 0xffff, 0, "Oxford Semiconductor OXCB950 Cardbus 16950 > UART", > 0x10, 16384000 }, > { 0x151f, 0x0000, 0xffff, 0, "TOPIC Semiconductor TP560 56k modem", 0x10 }, > +{ 0x13a8, 0x0152, 0x2205, 0x2026, "MultiTech MultiModem ZPX", 0x10 }, > { 0x9710, 0x9820, 0x1000, 1, "NetMos NM9820 Serial Port", 0x10 }, > { 0x9710, 0x9835, 0x1000, 1, "NetMos NM9835 Serial Port", 0x10 }, > { 0x9710, 0x9865, 0xa000, 0x1000, "NetMos NM9865 Serial Port", 0x10 }, > > -- > John Baldwin I have applied your suggested patch. Upon reboot the system showed an extra serial device: crw-rw---- 1 uucp dialer 0, 36 May 26 19:13 /dev/cuau0 crw-rw---- 1 uucp dialer 0, 37 May 26 19:00 /dev/cuau0.init crw-rw---- 1 uucp dialer 0, 38 May 26 19:00 /dev/cuau0.lock crw-rw---- 1 uucp dialer 0, 55 May 26 19:00 /dev/cuau1 crw-rw---- 1 uucp dialer 0, 56 May 26 19:00 /dev/cuau1.init crw-rw---- 1 uucp dialer 0, 57 May 26 19:00 /dev/cuau1.lock crw-rw---- 1 uucp dialer 0, 61 May 26 19:00 /dev/cuau2 crw-rw---- 1 uucp dialer 0, 62 May 26 19:00 /dev/cuau2.init crw-rw---- 1 uucp dialer 0, 63 May 26 19:00 /dev/cuau2.lock the boot messages concerning uart were: uart0: failed to enable port mapping! uart0: failed to enable port mapping! uart0: <16750 or compatible> mem 0xfbfffc00-0xfbffffff irq 16 at device 0.0 on pci6 uart0: [FILTER] uart1: <16550 or compatible> port 0x3f8-0x3ff irq 4 on acpi0 uart1: [FILTER] uart2: <16550 or compatible> port 0x2f8-0x2ff irq 3 on acpi0 uart2: [FILTER] pciconf -lv gave the following: uart0@pci0:6:0:0: class=0x070002 card=0x20262205 chip=0x015213a8 rev=0x02 hdr=0x00 vendor = 'Exar Corp.' device = 'XR17C/D152 Dual PCI UART' class = simple comms subclass = UART However minicom was not able to initialise the modem properly. I only saw some ooo.oo signs. HylaFAX could find the modem, but was not able to initialise it: HylaFAX scheduler on localhost: Running Modem modem (+31455******): Waiting for modem to come ready In the debug.log: May 26 20:57:05 kosmos HylaFAX[2889]: Parsing hostPort(): "EPRT" May 26 20:57:05 kosmos HylaFAX[2889]: Parsing "|1|127.0.0.1|62073|" May 26 20:57:05 kosmos HylaFAX[2889]: `-> s.length() = 19 May 26 20:57:05 kosmos HylaFAX[2889]: `-> s[0] = '|' May 26 20:57:05 kosmos HylaFAX[2889]: `-> s[2] = '|' May 26 20:57:05 kosmos HylaFAX[2889]: `-> s[18] = '|' May 26 20:57:05 kosmos HylaFAX[2889]: Looks like extended syntax: "|1|127.0.0.1|62073|" [7C: |] May 26 20:57:05 kosmos HylaFAX[2889]: `-> Got a: 127.0.0.1[13] May 26 20:57:05 kosmos HylaFAX[2889]: `-> Got a: 62073[19] May 26 20:57:05 kosmos HylaFAX[2889]: Parsed: Family 1 Address 127.0.0.1 Port 62073 May 26 20:57:06 kosmos HylaFAX[2891]: Parsing hostPort(): "EPRT" May 26 20:57:06 kosmos HylaFAX[2891]: Parsing "|1|127.0.0.1|60536|" May 26 20:57:06 kosmos HylaFAX[2891]: `-> s.length() = 19 May 26 20:57:06 kosmos HylaFAX[2891]: `-> s[0] = '|' May 26 20:57:06 kosmos HylaFAX[2891]: `-> s[2] = '|' May 26 20:57:06 kosmos HylaFAX[2891]: `-> s[18] = '|' May 26 20:57:06 kosmos HylaFAX[2891]: Looks like extended syntax: "|1|127.0.0.1|60536|" [7C: |] May 26 20:57:06 kosmos HylaFAX[2891]: `-> Got a: 127.0.0.1[13] May 26 20:57:06 kosmos HylaFAX[2891]: `-> Got a: 60536[19] May 26 20:57:06 kosmos HylaFAX[2891]: Parsed: Family 1 Address 127.0.0.1 Port 60536 So it looks promising, but the goal has not been achieved yet. Is there something that needs to be done? -- Met vriendelijke groeten, With kind regards, Mit freundlichen Gruessen, Willy ************************************* W.K. Offermans Home: +31 45 544 49 44 Mobile: +31 681 15 87 68 e-mail: Willy@Offermans.Rompen.nl From owner-freebsd-hardware@FreeBSD.ORG Thu May 26 20:12:42 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 18705106566B; Thu, 26 May 2011 20:12:42 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id CD2808FC13; Thu, 26 May 2011 20:12:41 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 6363346B2D; Thu, 26 May 2011 16:12:41 -0400 (EDT) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 01B1F8A04F; Thu, 26 May 2011 16:12:41 -0400 (EDT) From: John Baldwin To: freebsd-stable@freebsd.org, Willy@offermans.rompen.nl Date: Thu, 26 May 2011 16:12:40 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110325; KDE/4.5.5; amd64; ; ) References: <20110521092037.GB3271@vpn.offrom.nl> <201105251236.30188.jhb@freebsd.org> <20110526190134.GA3037@vpn.offrom.nl> In-Reply-To: <20110526190134.GA3037@vpn.offrom.nl> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201105261612.40451.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Thu, 26 May 2011 16:12:41 -0400 (EDT) Cc: Marcel Moolenaar , freebsd-hardware@freebsd.org Subject: Re: modem support MT9234ZPX-PCIE-NV X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 May 2011 20:12:42 -0000 On Thursday, May 26, 2011 3:01:35 pm Willy Offermans wrote: > Dear John and FreeBSD friends, > > On Wed, May 25, 2011 at 12:36:30PM -0400, John Baldwin wrote: > > On Saturday, May 21, 2011 5:20:37 am Willy Offermans wrote: > > > Dear FreeBSD friends, > > > > > > I need support with a MultiTech modem, MT9234ZPX-PCIE-NV > > > (http://www.multitech.com/en_US/PRODUCTS/Families/MultiModemZPX/) > > > > > > The modem is recognised during the boot event: > > > > > > > > > pci6: at device 0.0 (no driver attached) > > > > > > > > > and also appears in the list of found hardware over the PCI bus: > > > > > > > > > none1@pci0:6:0:0: class=0x070002 card=0x20262205 chip=0x015213a8 > > rev=0x02 hdr=0x00 > > > vendor = 'Exar Corp.' > > > device = 'XR17C/D152 Dual PCI UART' > > > class = simple comms > > > subclass = UART > > > > > > > > > However, as the boot process already mentions, there is no driver attached > > > and I cannot get the modem to appear as an accessible and functional > > > device. Is there someone, who can help me to get this modem to work? > > > > Try this patch to sys/dev/uart/uart_bus_pci.c: > > > > Index: uart_bus_pci.c > > =================================================================== > > --- uart_bus_pci.c (revision 222248) > > +++ uart_bus_pci.c (working copy) > > @@ -110,6 +110,7 @@ static struct pci_id pci_ns8250_ids[] = { > > { 0x1415, 0x950b, 0xffff, 0, "Oxford Semiconductor OXCB950 Cardbus 16950 > > UART", > > 0x10, 16384000 }, > > { 0x151f, 0x0000, 0xffff, 0, "TOPIC Semiconductor TP560 56k modem", 0x10 }, > > +{ 0x13a8, 0x0152, 0x2205, 0x2026, "MultiTech MultiModem ZPX", 0x10 }, > > { 0x9710, 0x9820, 0x1000, 1, "NetMos NM9820 Serial Port", 0x10 }, > > { 0x9710, 0x9835, 0x1000, 1, "NetMos NM9835 Serial Port", 0x10 }, > > { 0x9710, 0x9865, 0xa000, 0x1000, "NetMos NM9865 Serial Port", 0x10 }, > > > > -- > > John Baldwin > > I have applied your suggested patch. > > Upon reboot the system showed an extra serial device: > crw-rw---- 1 uucp dialer 0, 36 May 26 19:13 /dev/cuau0 > crw-rw---- 1 uucp dialer 0, 37 May 26 19:00 /dev/cuau0.init > crw-rw---- 1 uucp dialer 0, 38 May 26 19:00 /dev/cuau0.lock > crw-rw---- 1 uucp dialer 0, 55 May 26 19:00 /dev/cuau1 > crw-rw---- 1 uucp dialer 0, 56 May 26 19:00 /dev/cuau1.init > crw-rw---- 1 uucp dialer 0, 57 May 26 19:00 /dev/cuau1.lock > crw-rw---- 1 uucp dialer 0, 61 May 26 19:00 /dev/cuau2 > crw-rw---- 1 uucp dialer 0, 62 May 26 19:00 /dev/cuau2.init > crw-rw---- 1 uucp dialer 0, 63 May 26 19:00 /dev/cuau2.lock > > the boot messages concerning uart were: > > uart0: failed to enable port mapping! > uart0: failed to enable port mapping! > uart0: <16750 or compatible> mem 0xfbfffc00-0xfbffffff irq 16 at device 0.0 on pci6 > uart0: [FILTER] Hmm, can you get 'pciconf -lb' output? Hmm, wow, I wonder how uart(4) works at all. It tries to reuse it's softc structure in uart_bus_attach() that was setup in uart_bus_probe(). Since it doesn't return 0 from its probe routine, that is forbidden. I guess it accidentally works because of the hack where we call DEVICE_PROBE() again to make sure the device description is correct. -- John Baldwin From owner-freebsd-hardware@FreeBSD.ORG Thu May 26 20:22:05 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 087051065672 for ; Thu, 26 May 2011 20:22:05 +0000 (UTC) (envelope-from njm@njm.me.uk) Received: from smtp003.apm-internet.net (smtp003.apm-internet.net [85.119.248.52]) by mx1.freebsd.org (Postfix) with SMTP id 710828FC0A for ; Thu, 26 May 2011 20:22:04 +0000 (UTC) Received: (qmail 56098 invoked from network); 26 May 2011 20:22:03 -0000 Received: from unknown (HELO oberon.njm.me.uk) (86.144.179.173) by smtp003.apm-internet.net with SMTP; 26 May 2011 20:22:03 -0000 Received: from titania.njm.me.uk (titania.njm.me.uk [192.168.144.130]) by oberon.njm.me.uk (8.14.4/8.14.4) with ESMTP id p4QKM2TA039888; Thu, 26 May 2011 21:22:02 +0100 (BST) (envelope-from njm@njm.me.uk) Received: from titania.njm.me.uk (localhost [127.0.0.1]) by titania.njm.me.uk (8.14.4/8.14.4) with ESMTP id p4QKM2Ar037502; Thu, 26 May 2011 21:22:02 +0100 (BST) (envelope-from njm@njm.me.uk) Received: (from njm@localhost) by titania.njm.me.uk (8.14.4/8.14.4/Submit) id p4QKM21I037501; Thu, 26 May 2011 21:22:02 +0100 (BST) (envelope-from njm@njm.me.uk) Date: Thu, 26 May 2011 21:22:01 +0100 From: "N.J. Mann" To: John Baldwin Message-ID: <20110526202201.GA29605@titania.njm.me.uk> Mail-Followup-To: John Baldwin , Marcel Moolenaar , freebsd-hardware@freebsd.org References: <20110522110002.GB91694@titania.njm.me.uk> <803C09E5-8E10-4289-A8B3-952E8A72C7A1@xcllnt.net> <20110526134211.GB9481@titania.njm.me.uk> <201105261139.16839.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201105261139.16839.jhb@freebsd.org> X-Operating-System: FreeBSD 8.2-STABLE User-Agent: mutt-NJM (2010-10-31) Cc: freebsd-hardware@freebsd.org, Marcel Moolenaar Subject: Re: Sunix 4056A PCI 4 port RS-232 card - only 2 ports configured X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 May 2011 20:22:05 -0000 In message <201105261139.16839.jhb@freebsd.org>, John Baldwin (jhb@freebsd.org) wrote: > On Thursday, May 26, 2011 9:42:11 am N.J. Mann wrote: > > Hi Marcel, > > > > > > In message <803C09E5-8E10-4289-A8B3-952E8A72C7A1@xcllnt.net>, > > Marcel Moolenaar (marcel@xcllnt.net) wrote: > > > > > > On May 25, 2011, at 6:46 AM, John Baldwin wrote: > > > > > > *snip* > > > > > > >> For the two devices that fail, ns8250_bus_probe() fails on the first > > > >> call: > > > >> > > > >> UART4 > > > >> ----- > > > >> ns8250_bus_probe:: entry > > > >> ns8250_probe::uart_getreg REG_IIR = 1 > > > >> ns8250_probe::uart_getreg REG_MCR = 64 > > > >> ns8250_bus_probe::ns8250_probe returned 6 > > > >> > > > >> UART5 > > > >> ----- > > > >> ns8250_bus_probe:: entry > > > >> ns8250_probe::uart_getreg REG_IIR = 1 > > > >> ns8250_probe::uart_getreg REG_MCR = 64 > > > >> ns8250_bus_probe::ns8250_probe returned 6 > > > >> > > > >> The value returned for the read of REG_MCR is 64, or 0x40, which causes > > > >> the premature exit: > > > >> > > > >> static int > > > >> ns8250_probe(struct uart_bas *bas) > > > >> { > > > >> u_char val; > > > >> > > > >> /* Check known 0 bits that don't depend on DLAB. */ > > > >> val = uart_getreg(bas, REG_IIR); > > > >> if (val & 0x30) > > > >> return (ENXIO); > > > >> val = uart_getreg(bas, REG_MCR); > > > >> if (val & 0xe0) > > > >> return (ENXIO); > > > >> > > > >> return (0); > > > >> } > > > >> > > > >> Do you need to know the contents of 'bas'? > > > > > > > > This goes beyond my level of knowledge. I've cc'd Marcel (author of > uart) who > > > > can hopefully help with this more. > > > > > > The ns8250 family of UARTs typically have bits 5, 6 and 7 of the > > > MCR register reserved and thus hardwired to 0. The probe function > > > checks for that to make sure that the hardware looks enough like > > > a UART that we can claim it without hosing the box. > > > > > > That said: newer chips in the family, like the ST16C850/XR16C850, > > > have given those bits a function: > > > bit 5 - Xon-Any enable > > > bit 6 - Infrared enable > > > bit 7 - Clock pre-scaler > > > > > > It's unclear to me whether those bits are consistently defined > > > across the different implementations (for some reason I think > > > not) and it's also unclear to me whether the device will work > > > correctly with FreeBSD if we simply ignore those bits (again I > > > don't think this is always the case). > > > > > > I think the first order of business from an architectural point > > > of view is to determine how much value register probing still has > > > on modern hardware. In the good old days, this was needed. If > > > we think it's not really needed anymore, then it makes sense to > > > loosen the grip so to speak. > > > > > > For you, the first thing is to see whether the UART ports work > > > if you tweak the probe functions, like so: > > > > > > Index: uart_dev_ns8250.c > > > =================================================================== > > > --- uart_dev_ns8250.c (revision 222217) > > > +++ uart_dev_ns8250.c (working copy) > > > @@ -243,7 +243,7 @@ > > > if (val & 0x30) > > > return (ENXIO); > > > val = uart_getreg(bas, REG_MCR); > > > - if (val & 0xe0) > > > + if (val & 0xa0) > > > return (ENXIO); > > > > > > return (0); > > > > I tried this and the result is that ports 3 and 4 now attach okay. > > However, the baud rate of these two is wrong. If I select 9600 they > > actually send and receive at 1200, i.e. eight times slower. The speed > > setting for the first two ports is correct. (I checked all four ports at > > 9600, 38400 and 115200.) > > Ah, there are other reports of this: > > http://lists.freebsd.org/pipermail/freebsd-stable/2010-April/056533.html > > I think this patch should fix the timing issue: > > Index: pucdata.c > =================================================================== > --- pucdata.c (revision 222285) > +++ pucdata.c (working copy) > @@ -1292,6 +1292,12 @@ puc_config_timedia(struct puc_softc *sc, enum puc_ > uint16_t subdev; > > switch (cmd) { > + case PUC_CFG_GET_CLOCK: > + if (port < 2) > + *res = DEFAULT_RCLK * 8; > + else > + *res = DEFAULT_RCLK; > + return (0); > case PUC_CFG_GET_DESC: > snprintf(desc, sizeof(desc), > "Timedia technology %d Port Serial", (int)sc->sc_cfg_data); > Yes, that fixed it. All ports are working correctly now. Many thanks. Cheers, Nick. -- From owner-freebsd-hardware@FreeBSD.ORG Thu May 26 20:23:52 2011 Return-Path: Delivered-To: freebsd-hardware@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 16002106566C for ; Thu, 26 May 2011 20:23:52 +0000 (UTC) (envelope-from njm@njm.me.uk) Received: from smtp003.apm-internet.net (smtp003.apm-internet.net [85.119.248.52]) by mx1.freebsd.org (Postfix) with SMTP id 6D1178FC20 for ; Thu, 26 May 2011 20:23:51 +0000 (UTC) Received: (qmail 56489 invoked from network); 26 May 2011 20:23:50 -0000 Received: from unknown (HELO oberon.njm.me.uk) (86.144.179.173) by smtp003.apm-internet.net with SMTP; 26 May 2011 20:23:50 -0000 Received: from titania.njm.me.uk (titania.njm.me.uk [192.168.144.130]) by oberon.njm.me.uk (8.14.4/8.14.4) with ESMTP id p4QKNoQB040081; Thu, 26 May 2011 21:23:50 +0100 (BST) (envelope-from njm@njm.me.uk) Received: from titania.njm.me.uk (localhost [127.0.0.1]) by titania.njm.me.uk (8.14.4/8.14.4) with ESMTP id p4QKNnpV037605; Thu, 26 May 2011 21:23:49 +0100 (BST) (envelope-from njm@njm.me.uk) Received: (from njm@localhost) by titania.njm.me.uk (8.14.4/8.14.4/Submit) id p4QKNnVD037604; Thu, 26 May 2011 21:23:49 +0100 (BST) (envelope-from njm@njm.me.uk) Date: Thu, 26 May 2011 21:23:49 +0100 From: "N.J. Mann" To: Marcel Moolenaar Message-ID: <20110526202349.GB29605@titania.njm.me.uk> Mail-Followup-To: Marcel Moolenaar , John Baldwin , freebsd-hardware@FreeBSD.org References: <20110522110002.GB91694@titania.njm.me.uk> <201105241610.49930.jhb@freebsd.org> <20110524215232.GB92553@titania.njm.me.uk> <201105250946.45653.jhb@freebsd.org> <803C09E5-8E10-4289-A8B3-952E8A72C7A1@xcllnt.net> <20110526134211.GB9481@titania.njm.me.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 8.2-STABLE User-Agent: mutt-NJM (2010-10-31) Cc: John Baldwin , freebsd-hardware@FreeBSD.org Subject: Re: Sunix 4056A PCI 4 port RS-232 card - only 2 ports configured X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 May 2011 20:23:52 -0000 In message , Marcel Moolenaar (marcel@xcllnt.net) wrote: > > On May 26, 2011, at 6:42 AM, N.J. Mann wrote: > > *snip* > > >> For you, the first thing is to see whether the UART ports work > >> if you tweak the probe functions, like so: > >> > >> Index: uart_dev_ns8250.c > >> =================================================================== > >> --- uart_dev_ns8250.c (revision 222217) > >> +++ uart_dev_ns8250.c (working copy) > >> @@ -243,7 +243,7 @@ > >> if (val & 0x30) > >> return (ENXIO); > >> val = uart_getreg(bas, REG_MCR); > >> - if (val & 0xe0) > >> + if (val & 0xa0) > >> return (ENXIO); > >> > >> return (0); > > > > I tried this and the result is that ports 3 and 4 now attach okay. > > However, the baud rate of these two is wrong. If I select 9600 they > > actually send and receive at 1200, i.e. eight times slower. The speed > > setting for the first two ports is correct. (I checked all four ports at > > 9600, 38400 and 115200.) > > See John's email for the baudrate issue. > > >> Secondly, I'd like to know the vendor of the Quad-port UART. Either > >> it's Sunix's own implementation (this seems to be the case), or they > >> simply OEM someone else's. In any case: I'd like to see the datasheet > >> of the ASIC so as to understand the meaning/function of the bit. > > > > I took the card out of the PC to see exactly what is on it. There are > > three LSI chips, plus four RS-232 interface chips. The largest of the > > LSI chips is a SUN1889 and it appears to connect to ports 1 and 2, and > > to the PCI bus. The other two LSI chips are both SUN1699. The first of > > these seems to be for port 3 and the second for port 4. I tried finding > > data sheets for these chips on the web, but all I could find was > > marketing leaflets for various single- and multi-port RS-232 and RS-422 > > interface cards. Perhaps you will have better luck in searching than I > > did. > > Thanks! This what really useful. It seems that the SUN1699 has MCR > bit 6 set by default or it's even hardwired as 1. There have been > various reports on the FreeBSD mailing lists relating to the SUN1699 > and how uart(4) doesn't attach due to the MCR having a value of 0x40. > > Looking at the Sunix driver for Linux I cannot see any reference to > this bit at all. The code does not mask it out or force it to 1 > either. So, from what I can tell, it has absolutely no meaning. > > So, I'll change FreeBSD to just ignore this bit. There's even an open > PR for this: > http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/129663 > > Thanks a lot of working with us! John's latest patch has fixed the speed problem, so I now have a fully working card. %%%%% puc0: port 0xdc00-0xdc1f,0xe000-0xe00f irq 17 at device 9.0 on pci0 ioapic0: routing intpin 17 (PCI IRQ 17) to lapic 0 vector 52 uart2: <16550 or compatible> on puc0 uart2: fast interrupt uart3: <16550 or compatible> on puc0 uart3: fast interrupt uart4: <16550 or compatible> on puc0 uart4: fast interrupt uart5: <16550 or compatible> on puc0 uart5: fast interrupt %%%%% Many thanks. Cheers, Nick. -- From owner-freebsd-hardware@FreeBSD.ORG Thu May 26 20:59:07 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 53ED2106566C; Thu, 26 May 2011 20:59:07 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1-6.sentex.ca [IPv6:2607:f3e0:0:1::12]) by mx1.freebsd.org (Postfix) with ESMTP id 03E258FC12; Thu, 26 May 2011 20:59:06 +0000 (UTC) Received: from smtp2.sentex.ca (smtp2c.sentex.ca [64.7.153.30]) by smarthost1.sentex.ca (8.14.4/8.14.4) with ESMTP id p4QKx0qE058904 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 26 May 2011 16:59:01 -0400 (EDT) (envelope-from mike@sentex.net) Received: from pyroxene.sentex.ca ([IPv6:2607:f3e0:0:3::18]) by smtp2.sentex.ca (8.14.4/8.14.4) with ESMTP id p4QKx0kk086720; Thu, 26 May 2011 16:59:00 -0400 (EDT) (envelope-from mike@sentex.net) Received: from [192.168.43.26] (saphire3.sentex.ca [192.168.43.26]) by pyroxene.sentex.ca (8.14.4/8.14.3) with ESMTP id p4QKx0LE060701; Thu, 26 May 2011 16:59:00 -0400 (EDT) (envelope-from mike@sentex.net) Message-ID: <4DDEBEFD.8050902@sentex.net> Date: Thu, 26 May 2011 16:58:37 -0400 From: Mike Tancsa Organization: Sentex Communications User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: John Baldwin References: <20110521092037.GB3271@vpn.offrom.nl> <201105251236.30188.jhb@freebsd.org> <20110526190134.GA3037@vpn.offrom.nl> <201105261612.40451.jhb@freebsd.org> In-Reply-To: <201105261612.40451.jhb@freebsd.org> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.95.1 at smtp2.sentex.ca X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.67 on 64.7.153.18 Cc: Willy@offermans.rompen.nl, Marcel Moolenaar , freebsd-stable@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: modem support MT9234ZPX-PCIE-NV X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 May 2011 20:59:07 -0000 On 5/26/2011 4:12 PM, John Baldwin wrote: > > Hmm, can you get 'pciconf -lb' output? > > Hmm, wow, I wonder how uart(4) works at all. It tries to reuse it's softc > structure in uart_bus_attach() that was setup in uart_bus_probe(). Since it > doesn't return 0 from its probe routine, that is forbidden. I guess it > accidentally works because of the hack where we call DEVICE_PROBE() again > to make sure the device description is correct. I think this is a similar card. Had it laying about for a while and popped it in. cu -l to it, attaches, but I am not able to interact with it. none3@pci0:5:0:0: class=0x070002 card=0x20282205 chip=0x015213a8 rev=0x02 hdr=0x00 vendor = 'Exar Corp.' device = 'XR17C/D152 Dual PCI UART' class = simple comms subclass = UART bar [10] = type Memory, range 32, base 0xe8950000, size 1024, enabled NetBSD supposedly has support for this card http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/pci/pucdata.c.diff?r1=1.43&r2=1.44 ---Mike -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/ From owner-freebsd-hardware@FreeBSD.ORG Fri May 27 07:19:43 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CFE7F106566B; Fri, 27 May 2011 07:19:43 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.c2i.net [212.247.154.98]) by mx1.freebsd.org (Postfix) with ESMTP id 295D48FC08; Fri, 27 May 2011 07:19:42 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=wd7fLirDSts22yawIUsTeMUS9lsm8Llc0grT6RvpTjU= c=1 sm=1 a=SvYTsOw2Z4kA:10 a=gH2l33NO9zgA:10 a=I_V-8a3mpGgA:10 a=WQU8e4WWZSUA:10 a=Fdkxr_5KmFUA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=VrpS9D41Wf-qsKqnjl0A:9 a=pvA44qeTxYYA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe04.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 131894313; Fri, 27 May 2011 09:09:39 +0200 From: Hans Petter Selasky To: freebsd-current@freebsd.org Date: Fri, 27 May 2011 09:08:23 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) References: <4DDF4C23.3010600@FreeBSD.org> In-Reply-To: <4DDF4C23.3010600@FreeBSD.org> X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq, NwSZ4V"|LR.+tj}g5 %V,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( :AuzV9:.hESm-x4h240C`9=w MIME-Version: 1.0 Content-Type: Text/Plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Message-Id: <201105270908.23256.hselasky@c2i.net> Cc: freebsd-scsi@freebsd.org, Alexander Motin , freebsd-hardware@freebsd.org Subject: Re: SES/SAF-TE + SATA == SEMB! X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 May 2011 07:19:43 -0000 On Friday 27 May 2011 09:00:51 Alexander Motin wrote: > YAY! > > So now three questions: > 1. Does anybody else have alike hardware and wish to test it? > 2. Patch reviews are welcome. > 3. Is there any software except share/examples/ses working with ses(4) > and/or some good use practices? Does it work with USB? --HPS From owner-freebsd-hardware@FreeBSD.ORG Fri May 27 07:24:25 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E980E106566C; Fri, 27 May 2011 07:24:25 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 14C178FC1B; Fri, 27 May 2011 07:24:24 +0000 (UTC) Received: by fxm11 with SMTP id 11so1646762fxm.13 for ; Fri, 27 May 2011 00:24:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:message-id:date:from:user-agent :mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=PkTq5FUfZTAypxV5eMr8JzzH23KUe0nLqNVlRDrqYEw=; b=ocX5Jlf8Ipv3VYn3GEa4/bZOfn+Ur6XKX3BXuMfwqBDJBxdcnMrAFOddnWq7JpLVaT 9ttNhiisfWVw4Kgvk0YNudG4n+gK3BHKUg1EpTpQmKoTdlM0gN4GXjHqo7qEn1M38cSW N8ziNnWlXmyMPp/y72BGSeGUHtqulHT+8dQ08= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=untyCX1EbpXc+/NZemcYHvYjOqwo+yK0bkNf7eLFoxXEYQDVerH9tzQ9M0H5V43W3W IOQ46hboRptvuV0/I+73MXxXbFleW/w/mvleD22uDU5YV7XfoG7bLFbX2E6869KWxmZm +FSVfc2+F2Ez6cqJjuxYGydotL4Lagg5ttmGs= Received: by 10.223.28.220 with SMTP id n28mr514106fac.101.1306481063880; Fri, 27 May 2011 00:24:23 -0700 (PDT) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id x15sm560722fah.22.2011.05.27.00.24.22 (version=SSLv3 cipher=OTHER); Fri, 27 May 2011 00:24:23 -0700 (PDT) Sender: Alexander Motin Message-ID: <4DDF518A.2070901@FreeBSD.org> Date: Fri, 27 May 2011 10:23:54 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: Hans Petter Selasky References: <4DDF4C23.3010600@FreeBSD.org> <201105270908.23256.hselasky@c2i.net> In-Reply-To: <201105270908.23256.hselasky@c2i.net> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Cc: freebsd-scsi@freebsd.org, freebsd-current@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: SES/SAF-TE + SATA == SEMB! X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 May 2011 07:24:26 -0000 Hans Petter Selasky wrote: > On Friday 27 May 2011 09:00:51 Alexander Motin wrote: >> YAY! >> >> So now three questions: >> 1. Does anybody else have alike hardware and wish to test it? >> 2. Patch reviews are welcome. >> 3. Is there any software except share/examples/ses working with ses(4) >> and/or some good use practices? > > Does it work with USB? SEMB is ATA-specific. I've never heard about SES/SAF-TE on USB, but I think more likely it will be reported as usual SCSI Enclosure Services device -- there is no need to invent something new. Technically for ATA it also could be made as regular ATAPI (SCSI) device, but for some reason it was made in custom way. -- Alexander Motin From owner-freebsd-hardware@FreeBSD.ORG Fri May 27 07:29:38 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 208251065674 for ; Fri, 27 May 2011 07:29:38 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id A12C78FC12 for ; Fri, 27 May 2011 07:29:37 +0000 (UTC) Received: by fxm11 with SMTP id 11so1649539fxm.13 for ; Fri, 27 May 2011 00:29:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:message-id:date:from:user-agent :mime-version:to:subject:x-enigmail-version:content-type :content-transfer-encoding; bh=l8VOcEWuo13BcahdsXx4E/NgKgbPpqSoU3BDcRgqJ/g=; b=wgbfj+fDuQA5XNp827481AMfl28cId6eIA0+Yz21a3IPq32vq9kIV30WsTymC6m2p8 /PmkMdlgutgBPYWfo6oUN2qkqslBz9FDDyrdQzUGOlrj8f+Q9STATfTC25v8fUgA1Mpk 6dCx2XBxXJaJoUyItE7hCIIR0LUBBde0KbuUk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :x-enigmail-version:content-type:content-transfer-encoding; b=NHCJcCOeZa4fIA1ZFQdrfGAydbuTNIILyEKku0dlKEZm+W1627vHGgNsohy04RP3dR x0yN0XwJy3ODq8agmg5v71qTc+Qom8IzEHq+xy+lTATA5grupkTpaRhbQvufJ52QeiAV 5tFFnsRMEkuM8L0o5URremgrNhwWH2u+TJNb0= Received: by 10.223.28.220 with SMTP id n28mr493044fac.101.1306479680500; Fri, 27 May 2011 00:01:20 -0700 (PDT) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id l26sm555292fah.38.2011.05.27.00.01.18 (version=SSLv3 cipher=OTHER); Fri, 27 May 2011 00:01:19 -0700 (PDT) Sender: Alexander Motin Message-ID: <4DDF4C23.3010600@FreeBSD.org> Date: Fri, 27 May 2011 10:00:51 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: freebsd-scsi@freebsd.org, FreeBSD-Current , freebsd-hardware@freebsd.org X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Cc: Subject: SES/SAF-TE + SATA == SEMB! X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 May 2011 07:29:38 -0000 Hi. As probably not many know, SATA specification defines the way to talk to SES/SAF-TE enclosures -- Serial ATA Enclosure Management Bridge (SEMB). It can be either separate device or built-in to SATA Port Multiplier. I know at leat two models of Port Multipliers including SEMB and having I2C interfaces to talk to SEP (backplane): SiI3726 and SiI4726. Unluckily such combination of hardware is not widely spread (backplanes are rarely used in desktops, while PMPs are rarely used in servers), but finally I've built such setup! I've connected SuperMicro SAS815TQ backplane to the SiI3726 multiplier with I2C cable and it works like a charm! I've made a patch for HEAD to support it. It adds SEMB devices support to the ATA/SATA XPT probe code, some glue to handle one more ATA-based command protocol and some changes to ses(4) driver to teach it talk to such devices: http://people.freebsd.org/~mav/semb.patch As result I've got: %dmesg |grep ses0 ses0 at ahcich8 bus 0 scbus8 target 5 lun 0 ses0: SEMB S-E-S 2.00 device ses0: Serial Number 50030481 ses0: 150.000MB/s transfers (SATA 1.x, NONE, PIO 8192bytes) ses0: SEMB SES Device ses0: GenCode 0 0 Subenclosures ses0: SubEnclosure ID 0, 4 Types With this ID, Enclosure Length 36 ses0: WWN: 3530303330343831 ses0: Type Desc[0]: Type 0x17, MaxElt 4, In Subenc 0, Text Length 0 ses0: Type Desc[1]: Type 0x4, MaxElt 1, In Subenc 0, Text Length 0 ses0: Type Desc[2]: Type 0xe, MaxElt 1, In Subenc 0, Text Length 0 ses0: Type Desc[3]: Type 0x6, MaxElt 1, In Subenc 0, Text Length 0 %camcontrol devlist at scbus8 target 0 lun 0 (ada0,pass1) at scbus8 target 1 lun 0 (ada1,pass2) at scbus8 target 2 lun 0 (pass5,ada2) at scbus8 target 3 lun 0 (pass6,ada3) at scbus8 target 5 lun 0 (ses0,pass3) at scbus8 target 15 lun 0 (pass4,pmp0) %getencstat -v /dev/ses0 /dev/ses0: Enclosure Status Element 0x0: Array device OK (Status=ok (bytes=0x11 0x00 0x00 0x00)) Element 0x1: Array device OK (Status=ok (bytes=0x11 0x00 0x00 0x00)) Element 0x2: Array device OK (Status=ok (bytes=0x01 0x00 0x00 0x00)) Element 0x3: Array device OK (Status=ok (bytes=0x01 0x00 0x00 0x00)) Element 0x4: Temperature sensors OK (Status=ok (bytes=0x01 0x00 0x32 0x00)) Element 0x5: Enclosure OK (Status=ok (bytes=0x01 0x00 0x00 0x00)) Element 0x6: Audible alarm OK (Status=ok (bytes=0x01 0x00 0x00 0x00)) YAY! So now three questions: 1. Does anybody else have alike hardware and wish to test it? 2. Patch reviews are welcome. 3. Is there any software except share/examples/ses working with ses(4) and/or some good use practices? -- Alexander Motin From owner-freebsd-hardware@FreeBSD.ORG Fri May 27 07:30:46 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7F875106564A; Fri, 27 May 2011 07:30:46 +0000 (UTC) (envelope-from willy@Offermans.Rompen.nl) Received: from cpsmtpb-ews07.kpnxchange.com (cpsmtpb-ews07.kpnxchange.com [213.75.39.10]) by mx1.freebsd.org (Postfix) with ESMTP id E02E58FC1A; Fri, 27 May 2011 07:30:45 +0000 (UTC) Received: from cpbrm-ews12.kpnxchange.com ([10.94.84.143]) by cpsmtpb-ews07.kpnxchange.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 27 May 2011 09:30:43 +0200 Received: from CPSMTPM-cmt107.kpnxchange.com ([195.121.3.23]) by cpbrm-ews12.kpnxchange.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 27 May 2011 09:30:43 +0200 Received: from koko.offrom.nl ([77.170.60.162]) by CPSMTPM-cmt107.kpnxchange.com with Microsoft SMTPSVC(7.0.6002.18264); Fri, 27 May 2011 09:30:42 +0200 Received: from squid.home.itmc.RWTH-Aachen.DE (squid.vpn.offrom.nl [10.168.0.72]) by koko.offrom.nl (8.14.3/8.14.3) with ESMTP id p4R7Ud5N024847; Fri, 27 May 2011 09:30:39 +0200 (CEST) (envelope-from willy@vpn.offrom.nl) Received: from willy by squid.home.itmc.RWTH-Aachen.DE with local (Exim 4.72) (envelope-from ) id 1QPrVG-0000ty-Sv; Fri, 27 May 2011 09:30:38 +0200 Date: Fri, 27 May 2011 09:30:38 +0200 From: Willy Offermans To: John Baldwin Message-ID: <20110527073038.GB3065@vpn.offrom.nl> References: <20110521092037.GB3271@vpn.offrom.nl> <201105251236.30188.jhb@freebsd.org> <20110526190134.GA3037@vpn.offrom.nl> <201105261612.40451.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201105261612.40451.jhb@freebsd.org> User-Agent: Mutt/1.5.20 (2009-06-14) X-OriginalArrivalTime: 27 May 2011 07:30:42.0911 (UTC) FILETIME=[FC58FEF0:01CC1C3F] X-RcptDomain: freebsd.org Cc: Willy@offermans.rompen.nl, Marcel Moolenaar , freebsd-stable@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: modem support MT9234ZPX-PCIE-NV X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Willy@Offermans.Rompen.nl List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 May 2011 07:30:46 -0000 Dear John and FreeBSD friends, On Thu, May 26, 2011 at 04:12:40PM -0400, John Baldwin wrote: > On Thursday, May 26, 2011 3:01:35 pm Willy Offermans wrote: > > Dear John and FreeBSD friends, > > > > On Wed, May 25, 2011 at 12:36:30PM -0400, John Baldwin wrote: > > > On Saturday, May 21, 2011 5:20:37 am Willy Offermans wrote: > > > > Dear FreeBSD friends, > > > > > > > > I need support with a MultiTech modem, MT9234ZPX-PCIE-NV > > > > (http://www.multitech.com/en_US/PRODUCTS/Families/MultiModemZPX/) > > > > > > > > The modem is recognised during the boot event: > > > > > > > > > > > > pci6: at device 0.0 (no driver attached) > > > > > > > > > > > > and also appears in the list of found hardware over the PCI bus: > > > > > > > > > > > > none1@pci0:6:0:0: class=0x070002 card=0x20262205 chip=0x015213a8 > > > rev=0x02 hdr=0x00 > > > > vendor = 'Exar Corp.' > > > > device = 'XR17C/D152 Dual PCI UART' > > > > class = simple comms > > > > subclass = UART > > > > > > > > > > > > However, as the boot process already mentions, there is no driver attached > > > > and I cannot get the modem to appear as an accessible and functional > > > > device. Is there someone, who can help me to get this modem to work? > > > > > > Try this patch to sys/dev/uart/uart_bus_pci.c: > > > > > > Index: uart_bus_pci.c > > > =================================================================== > > > --- uart_bus_pci.c (revision 222248) > > > +++ uart_bus_pci.c (working copy) > > > @@ -110,6 +110,7 @@ static struct pci_id pci_ns8250_ids[] = { > > > { 0x1415, 0x950b, 0xffff, 0, "Oxford Semiconductor OXCB950 Cardbus 16950 > > > UART", > > > 0x10, 16384000 }, > > > { 0x151f, 0x0000, 0xffff, 0, "TOPIC Semiconductor TP560 56k modem", 0x10 }, > > > +{ 0x13a8, 0x0152, 0x2205, 0x2026, "MultiTech MultiModem ZPX", 0x10 }, > > > { 0x9710, 0x9820, 0x1000, 1, "NetMos NM9820 Serial Port", 0x10 }, > > > { 0x9710, 0x9835, 0x1000, 1, "NetMos NM9835 Serial Port", 0x10 }, > > > { 0x9710, 0x9865, 0xa000, 0x1000, "NetMos NM9865 Serial Port", 0x10 }, > > > > > > -- > > > John Baldwin > > > > I have applied your suggested patch. > > > > Upon reboot the system showed an extra serial device: > > crw-rw---- 1 uucp dialer 0, 36 May 26 19:13 /dev/cuau0 > > crw-rw---- 1 uucp dialer 0, 37 May 26 19:00 /dev/cuau0.init > > crw-rw---- 1 uucp dialer 0, 38 May 26 19:00 /dev/cuau0.lock > > crw-rw---- 1 uucp dialer 0, 55 May 26 19:00 /dev/cuau1 > > crw-rw---- 1 uucp dialer 0, 56 May 26 19:00 /dev/cuau1.init > > crw-rw---- 1 uucp dialer 0, 57 May 26 19:00 /dev/cuau1.lock > > crw-rw---- 1 uucp dialer 0, 61 May 26 19:00 /dev/cuau2 > > crw-rw---- 1 uucp dialer 0, 62 May 26 19:00 /dev/cuau2.init > > crw-rw---- 1 uucp dialer 0, 63 May 26 19:00 /dev/cuau2.lock > > > > the boot messages concerning uart were: > > > > uart0: failed to enable port mapping! > > uart0: failed to enable port mapping! > > uart0: <16750 or compatible> mem 0xfbfffc00-0xfbffffff irq 16 at device 0.0 on pci6 > > uart0: [FILTER] > > Hmm, can you get 'pciconf -lb' output? > > Hmm, wow, I wonder how uart(4) works at all. It tries to reuse it's softc > structure in uart_bus_attach() that was setup in uart_bus_probe(). Since it > doesn't return 0 from its probe routine, that is forbidden. I guess it > accidentally works because of the hack where we call DEVICE_PROBE() again > to make sure the device description is correct. > > -- > John Baldwin I guess this is the interesting part: uart0@pci0:6:0:0: class=0x070002 card=0x20262205 chip=0x015213a8 rev=0x02 hdr=0x00 bar [10] = type Memory, range 32, base 0xfbfffc00, size 1024, enabled -- Met vriendelijke groeten, With kind regards, Mit freundlichen Gruessen, Willy ************************************* W.K. Offermans Home: +31 45 544 49 44 Mobile: +31 681 15 87 68 e-mail: Willy@Offermans.Rompen.nl From owner-freebsd-hardware@FreeBSD.ORG Fri May 27 07:35:33 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5B9DA1065670; Fri, 27 May 2011 07:35:33 +0000 (UTC) (envelope-from willy@Offermans.Rompen.nl) Received: from cpsmtpb-ews06.kpnxchange.com (cpsmtpb-ews06.kpnxchange.com [213.75.39.9]) by mx1.freebsd.org (Postfix) with ESMTP id CDA808FC17; Fri, 27 May 2011 07:35:32 +0000 (UTC) Received: from cpbrm-ews02.kpnxchange.com ([10.94.84.133]) by cpsmtpb-ews06.kpnxchange.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 27 May 2011 09:35:31 +0200 Received: from CPSMTPM-CMT102.kpnxchange.com ([195.121.3.18]) by cpbrm-ews02.kpnxchange.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 27 May 2011 09:35:31 +0200 Received: from koko.offrom.nl ([77.170.60.162]) by CPSMTPM-CMT102.kpnxchange.com with Microsoft SMTPSVC(7.0.6002.18264); Fri, 27 May 2011 09:35:30 +0200 Received: from squid.home.itmc.RWTH-Aachen.DE (squid.vpn.offrom.nl [10.168.0.72]) by koko.offrom.nl (8.14.3/8.14.3) with ESMTP id p4R7ZQvg024885; Fri, 27 May 2011 09:35:27 +0200 (CEST) (envelope-from willy@vpn.offrom.nl) Received: from willy by squid.home.itmc.RWTH-Aachen.DE with local (Exim 4.72) (envelope-from ) id 1QPrZt-0000ui-Td; Fri, 27 May 2011 09:35:25 +0200 Date: Fri, 27 May 2011 09:35:25 +0200 From: Willy Offermans To: Mike Tancsa Message-ID: <20110527073525.GC3065@vpn.offrom.nl> References: <20110521092037.GB3271@vpn.offrom.nl> <201105251236.30188.jhb@freebsd.org> <20110526190134.GA3037@vpn.offrom.nl> <201105261612.40451.jhb@freebsd.org> <4DDEBEFD.8050902@sentex.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4DDEBEFD.8050902@sentex.net> User-Agent: Mutt/1.5.20 (2009-06-14) X-OriginalArrivalTime: 27 May 2011 07:35:30.0442 (UTC) FILETIME=[A7BABEA0:01CC1C40] X-RcptDomain: freebsd.org Cc: Willy@offermans.rompen.nl, Marcel Moolenaar , freebsd-stable@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: modem support MT9234ZPX-PCIE-NV X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Willy@Offermans.Rompen.nl List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 May 2011 07:35:33 -0000 On Thu, May 26, 2011 at 04:58:37PM -0400, Mike Tancsa wrote: > On 5/26/2011 4:12 PM, John Baldwin wrote: > > > > Hmm, can you get 'pciconf -lb' output? > > > > Hmm, wow, I wonder how uart(4) works at all. It tries to reuse it's softc > > structure in uart_bus_attach() that was setup in uart_bus_probe(). Since it > > doesn't return 0 from its probe routine, that is forbidden. I guess it > > accidentally works because of the hack where we call DEVICE_PROBE() again > > to make sure the device description is correct. > > > I think this is a similar card. Had it laying about for a while and > popped it in. cu -l to it, attaches, but I am not able to interact with it. > > none3@pci0:5:0:0: class=0x070002 card=0x20282205 chip=0x015213a8 > rev=0x02 hdr=0x00 > vendor = 'Exar Corp.' > device = 'XR17C/D152 Dual PCI UART' > class = simple comms > subclass = UART > bar [10] = type Memory, range 32, base 0xe8950000, size 1024, enabled > > > NetBSD supposedly has support for this card > > http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/pci/pucdata.c.diff?r1=1.43&r2=1.44 > > > ---Mike > > -- > ------------------- > Mike Tancsa, tel +1 519 651 3400 > Sentex Communications, mike@sentex.net > Providing Internet services since 1994 www.sentex.net > Cambridge, Ontario Canada http://www.tancsa.com/ I guess you refer to this part: + { "EXAR XR17D152", + { 0x13a8, 0x0152, 0, 0 }, + { 0xffff, 0xffff, 0, 0 }, + { + { PUC_PORT_TYPE_COM, 0x10, 0x0000, COM_FREQ * 8 }, + { PUC_PORT_TYPE_COM, 0x10, 0x0200, COM_FREQ * 8 }, + }, + }, I also found this link, but I cannot do anything with the entries. Maybe a developer can use this. -- Met vriendelijke groeten, With kind regards, Mit freundlichen Gruessen, Willy ************************************* W.K. Offermans Home: +31 45 544 49 44 Mobile: +31 681 15 87 68 e-mail: Willy@Offermans.Rompen.nl From owner-freebsd-hardware@FreeBSD.ORG Fri May 27 12:23:55 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CA0E7106566B; Fri, 27 May 2011 12:23:55 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id A0E968FC08; Fri, 27 May 2011 12:23:55 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 574F346B2E; Fri, 27 May 2011 08:23:55 -0400 (EDT) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id EC68C8A04F; Fri, 27 May 2011 08:23:54 -0400 (EDT) From: John Baldwin To: Mike Tancsa Date: Fri, 27 May 2011 08:05:56 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110325; KDE/4.5.5; amd64; ; ) References: <20110521092037.GB3271@vpn.offrom.nl> <201105261612.40451.jhb@freebsd.org> <4DDEBEFD.8050902@sentex.net> In-Reply-To: <4DDEBEFD.8050902@sentex.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201105270805.56457.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Fri, 27 May 2011 08:23:55 -0400 (EDT) Cc: Willy@offermans.rompen.nl, Marcel Moolenaar , freebsd-stable@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: modem support MT9234ZPX-PCIE-NV X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 May 2011 12:23:55 -0000 On Thursday, May 26, 2011 4:58:37 pm Mike Tancsa wrote: > On 5/26/2011 4:12 PM, John Baldwin wrote: > > > > Hmm, can you get 'pciconf -lb' output? > > > > Hmm, wow, I wonder how uart(4) works at all. It tries to reuse it's softc > > structure in uart_bus_attach() that was setup in uart_bus_probe(). Since it > > doesn't return 0 from its probe routine, that is forbidden. I guess it > > accidentally works because of the hack where we call DEVICE_PROBE() again > > to make sure the device description is correct. > > > I think this is a similar card. Had it laying about for a while and > popped it in. cu -l to it, attaches, but I am not able to interact with it. > > none3@pci0:5:0:0: class=0x070002 card=0x20282205 chip=0x015213a8 > rev=0x02 hdr=0x00 > vendor = 'Exar Corp.' > device = 'XR17C/D152 Dual PCI UART' > class = simple comms > subclass = UART > bar [10] = type Memory, range 32, base 0xe8950000, size 1024, enabled > > > NetBSD supposedly has support for this card Oh, hmm, looks like the clock has an unusual multiplier. Does it work if you use 'cu -l -s 1200' to talk at 9600 for example? (In general use speed / 8 as the speed to '-s'.) Also, is your card a modem or a dual-port card? -- John Baldwin From owner-freebsd-hardware@FreeBSD.ORG Fri May 27 12:32:11 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 12342106564A; Fri, 27 May 2011 12:32:11 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1-6.sentex.ca [IPv6:2607:f3e0:0:1::12]) by mx1.freebsd.org (Postfix) with ESMTP id C05508FC0A; Fri, 27 May 2011 12:32:10 +0000 (UTC) Received: from smtp2.sentex.ca (smtp2c.sentex.ca [64.7.153.30]) by smarthost1.sentex.ca (8.14.4/8.14.4) with ESMTP id p4RCW8AH022960 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 27 May 2011 08:32:09 -0400 (EDT) (envelope-from mike@sentex.net) Received: from pyroxene.sentex.ca ([IPv6:2607:f3e0:0:3::18]) by smtp2.sentex.ca (8.14.4/8.14.4) with ESMTP id p4RCW8Hc026263; Fri, 27 May 2011 08:32:09 -0400 (EDT) (envelope-from mike@sentex.net) Received: from [192.168.43.26] (saphire3.sentex.net [192.168.43.26]) by pyroxene.sentex.ca (8.14.4/8.14.3) with ESMTP id p4RCW8Gh085975; Fri, 27 May 2011 08:32:08 -0400 (EDT) (envelope-from mike@sentex.net) Message-ID: <4DDF99B0.3030309@sentex.net> Date: Fri, 27 May 2011 08:31:44 -0400 From: Mike Tancsa Organization: Sentex Communications User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: John Baldwin References: <20110521092037.GB3271@vpn.offrom.nl> <201105261612.40451.jhb@freebsd.org> <4DDEBEFD.8050902@sentex.net> <201105270805.56457.jhb@freebsd.org> In-Reply-To: <201105270805.56457.jhb@freebsd.org> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.95.1 at smtp2.sentex.ca X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.67 on 64.7.153.18 Cc: Willy@offermans.rompen.nl, Marcel Moolenaar , freebsd-stable@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: modem support MT9234ZPX-PCIE-NV X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 May 2011 12:32:11 -0000 On 5/27/2011 8:05 AM, John Baldwin wrote: > > Oh, hmm, looks like the clock has an unusual multiplier. Does it work if you > use 'cu -l -s 1200' to talk at 9600 for example? (In general use speed / 8 > as the speed to '-s'.) > > Also, is your card a modem or a dual-port card? Its a 3G modem. ---Mike -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/ From owner-freebsd-hardware@FreeBSD.ORG Fri May 27 14:38:09 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 647451065674; Fri, 27 May 2011 14:38:09 +0000 (UTC) (envelope-from willy@Offermans.Rompen.nl) Received: from cpsmtpb-ews02.kpnxchange.com (cpsmtpb-ews02.kpnxchange.com [213.75.39.5]) by mx1.freebsd.org (Postfix) with ESMTP id DBB138FC16; Fri, 27 May 2011 14:38:08 +0000 (UTC) Received: from cpbrm-ews30.kpnxchange.com ([10.94.84.161]) by cpsmtpb-ews02.kpnxchange.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 27 May 2011 16:38:07 +0200 Received: from CPSMTPM-CMT108.kpnxchange.com ([195.121.3.24]) by cpbrm-ews30.kpnxchange.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 27 May 2011 16:38:06 +0200 Received: from koko.offrom.nl ([77.170.60.162]) by CPSMTPM-CMT108.kpnxchange.com with Microsoft SMTPSVC(7.0.6002.18264); Fri, 27 May 2011 16:38:06 +0200 Received: from squid.home.itmc.RWTH-Aachen.DE (squid.vpn.offrom.nl [10.168.0.72]) by koko.offrom.nl (8.14.3/8.14.3) with ESMTP id p4REc296060891; Fri, 27 May 2011 16:38:03 +0200 (CEST) (envelope-from willy@vpn.offrom.nl) Received: from willy by squid.home.itmc.RWTH-Aachen.DE with local (Exim 4.72) (envelope-from ) id 1QPyAs-0001PE-CP; Fri, 27 May 2011 16:38:02 +0200 Date: Fri, 27 May 2011 16:38:02 +0200 From: Willy Offermans To: John Baldwin Message-ID: <20110527143802.GA5352@vpn.offrom.nl> References: <20110521092037.GB3271@vpn.offrom.nl> <201105261612.40451.jhb@freebsd.org> <4DDEBEFD.8050902@sentex.net> <201105270805.56457.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201105270805.56457.jhb@freebsd.org> User-Agent: Mutt/1.5.20 (2009-06-14) X-OriginalArrivalTime: 27 May 2011 14:38:06.0390 (UTC) FILETIME=[B10D5D60:01CC1C7B] X-RcptDomain: freebsd.org Cc: Willy@offermans.rompen.nl, Marcel Moolenaar , freebsd-stable@freebsd.org, freebsd-hardware@freebsd.org, Mike Tancsa Subject: Re: modem support MT9234ZPX-PCIE-NV X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Willy@Offermans.Rompen.nl List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 May 2011 14:38:09 -0000 Dear John and FreeBSD friends, On Fri, May 27, 2011 at 08:05:56AM -0400, John Baldwin wrote: > On Thursday, May 26, 2011 4:58:37 pm Mike Tancsa wrote: > > On 5/26/2011 4:12 PM, John Baldwin wrote: > > > > > > Hmm, can you get 'pciconf -lb' output? > > > > > > Hmm, wow, I wonder how uart(4) works at all. It tries to reuse it's softc > > > structure in uart_bus_attach() that was setup in uart_bus_probe(). Since > it > > > doesn't return 0 from its probe routine, that is forbidden. I guess it > > > accidentally works because of the hack where we call DEVICE_PROBE() again > > > to make sure the device description is correct. > > > > > > I think this is a similar card. Had it laying about for a while and > > popped it in. cu -l to it, attaches, but I am not able to interact with it. > > > > none3@pci0:5:0:0: class=0x070002 card=0x20282205 chip=0x015213a8 > > rev=0x02 hdr=0x00 > > vendor = 'Exar Corp.' > > device = 'XR17C/D152 Dual PCI UART' > > class = simple comms > > subclass = UART > > bar [10] = type Memory, range 32, base 0xe8950000, size 1024, enabled > > > > > > NetBSD supposedly has support for this card > > Oh, hmm, looks like the clock has an unusual multiplier. Does it work if you > use 'cu -l -s 1200' to talk at 9600 for example? (In general use speed / 8 > as the speed to '-s'.) > > Also, is your card a modem or a dual-port card? > > -- > John Baldwin It is a modem. As suggested: kosmos# cu -l /dev/cuau0 -s 1200 Stale lock on cuau0 PID=3642... overriding. Connected at&F OK atdt0045******* NO DIALTONE The last message can be explained. There is no line connected yet. But this looks very promising again. What do you exactly mean with ``Oh, hmm, looks like the clock has an unusual multiplier.'' What kind of multiplier are you talking about? How to proceed? B.t.w. cu looks like a nice tool. I was not aware of its existence. -- Met vriendelijke groeten, With kind regards, Mit freundlichen Gruessen, De jrus wah, Willy ************************************* W.K. Offermans Home: +31 45 544 49 44 Mobile: +31 681 15 87 68 e-mail: Willy@Offermans.Rompen.nl From owner-freebsd-hardware@FreeBSD.ORG Fri May 27 14:43:36 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 24A301065673; Fri, 27 May 2011 14:43:36 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id B68018FC0A; Fri, 27 May 2011 14:43:35 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 5366646B1A; Fri, 27 May 2011 10:43:35 -0400 (EDT) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id E51248A04F; Fri, 27 May 2011 10:43:34 -0400 (EDT) From: John Baldwin To: Willy@offermans.rompen.nl Date: Fri, 27 May 2011 10:43:34 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110325; KDE/4.5.5; amd64; ; ) References: <20110521092037.GB3271@vpn.offrom.nl> <201105270805.56457.jhb@freebsd.org> <20110527143802.GA5352@vpn.offrom.nl> In-Reply-To: <20110527143802.GA5352@vpn.offrom.nl> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201105271043.34268.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Fri, 27 May 2011 10:43:35 -0400 (EDT) Cc: freebsd-hardware@freebsd.org, Marcel Moolenaar , freebsd-stable@freebsd.org, Mike Tancsa Subject: Re: modem support MT9234ZPX-PCIE-NV X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 May 2011 14:43:36 -0000 On Friday, May 27, 2011 10:38:02 am Willy Offermans wrote: > Dear John and FreeBSD friends, > > On Fri, May 27, 2011 at 08:05:56AM -0400, John Baldwin wrote: > > On Thursday, May 26, 2011 4:58:37 pm Mike Tancsa wrote: > > > On 5/26/2011 4:12 PM, John Baldwin wrote: > > > > > > > > Hmm, can you get 'pciconf -lb' output? > > > > > > > > Hmm, wow, I wonder how uart(4) works at all. It tries to reuse it's softc > > > > structure in uart_bus_attach() that was setup in uart_bus_probe(). Since > > it > > > > doesn't return 0 from its probe routine, that is forbidden. I guess it > > > > accidentally works because of the hack where we call DEVICE_PROBE() again > > > > to make sure the device description is correct. > > > > > > > > > I think this is a similar card. Had it laying about for a while and > > > popped it in. cu -l to it, attaches, but I am not able to interact with it. > > > > > > none3@pci0:5:0:0: class=0x070002 card=0x20282205 chip=0x015213a8 > > > rev=0x02 hdr=0x00 > > > vendor = 'Exar Corp.' > > > device = 'XR17C/D152 Dual PCI UART' > > > class = simple comms > > > subclass = UART > > > bar [10] = type Memory, range 32, base 0xe8950000, size 1024, enabled > > > > > > > > > NetBSD supposedly has support for this card > > > > Oh, hmm, looks like the clock has an unusual multiplier. Does it work if you > > use 'cu -l -s 1200' to talk at 9600 for example? (In general use speed / 8 > > as the speed to '-s'.) > > > > Also, is your card a modem or a dual-port card? > > > > -- > > John Baldwin > > It is a modem. > > As suggested: > > kosmos# cu -l /dev/cuau0 -s 1200 > Stale lock on cuau0 PID=3642... overriding. > Connected > at&F > OK > atdt0045******* > NO DIALTONE Ok, try this updated patch. After this you should be able to use the correct speed: Index: uart_bus_pci.c =================================================================== --- uart_bus_pci.c (revision 222285) +++ uart_bus_pci.c (working copy) @@ -110,6 +110,8 @@ static struct pci_id pci_ns8250_ids[] = { { 0x1415, 0x950b, 0xffff, 0, "Oxford Semiconductor OXCB950 Cardbus 16950 UART", 0x10, 16384000 }, { 0x151f, 0x0000, 0xffff, 0, "TOPIC Semiconductor TP560 56k modem", 0x10 }, +{ 0x13a8, 0x0152, 0x2205, 0x2026, "MultiTech MultiModem ZPX", 0x10, + 8 * DEFAULT_RCLK }, { 0x9710, 0x9820, 0x1000, 1, "NetMos NM9820 Serial Port", 0x10 }, { 0x9710, 0x9835, 0x1000, 1, "NetMos NM9835 Serial Port", 0x10 }, { 0x9710, 0x9865, 0xa000, 0x1000, "NetMos NM9865 Serial Port", 0x10 }, -- John Baldwin From owner-freebsd-hardware@FreeBSD.ORG Fri May 27 14:43:51 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1F33F106567B; Fri, 27 May 2011 14:43:51 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1-6.sentex.ca [IPv6:2607:f3e0:0:1::12]) by mx1.freebsd.org (Postfix) with ESMTP id CC48E8FC0A; Fri, 27 May 2011 14:43:50 +0000 (UTC) Received: from smtp2.sentex.ca (smtp2c.sentex.ca [64.7.153.30]) by smarthost1.sentex.ca (8.14.4/8.14.4) with ESMTP id p4REhm4I051637 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 27 May 2011 10:43:48 -0400 (EDT) (envelope-from mike@sentex.net) Received: from pyroxene.sentex.ca ([IPv6:2607:f3e0:0:3::18]) by smtp2.sentex.ca (8.14.4/8.14.4) with ESMTP id p4REhmie084902; Fri, 27 May 2011 10:43:48 -0400 (EDT) (envelope-from mike@sentex.net) Received: from [192.168.43.26] (saphire3.sentex.net [192.168.43.26]) by pyroxene.sentex.ca (8.14.4/8.14.3) with ESMTP id p4REhm7A089405; Fri, 27 May 2011 10:43:48 -0400 (EDT) (envelope-from mike@sentex.net) Message-ID: <4DDFB88B.2090408@sentex.net> Date: Fri, 27 May 2011 10:43:23 -0400 From: Mike Tancsa Organization: Sentex Communications User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: John Baldwin References: <20110521092037.GB3271@vpn.offrom.nl> <201105261612.40451.jhb@freebsd.org> <4DDEBEFD.8050902@sentex.net> <201105270805.56457.jhb@freebsd.org> In-Reply-To: <201105270805.56457.jhb@freebsd.org> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.95.1 at smtp2.sentex.ca X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.67 on 64.7.153.18 Cc: Willy@offermans.rompen.nl, Marcel Moolenaar , freebsd-stable@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: modem support MT9234ZPX-PCIE-NV X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 May 2011 14:43:51 -0000 On 5/27/2011 8:05 AM, John Baldwin wrote: > > Oh, hmm, looks like the clock has an unusual multiplier. Does it work if you > use 'cu -l -s 1200' to talk at 9600 for example? (In general use speed / 8 > as the speed to '-s'.) > > Also, is your card a modem or a dual-port card? If I add in the device IDs, I am not able to talk to it at any speed. However, the port that is exposed, might just not be echoing back chars and the second port which is not showing up, might be the "control port" ? uart2@pci0:5:0:0: class=0x070002 card=0x20282205 chip=0x015213a8 rev=0x02 hdr=0x00 vendor = 'Exar Corp.' device = 'XR17C/D152 Dual PCI UART' class = simple comms subclass = UART -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/ From owner-freebsd-hardware@FreeBSD.ORG Fri May 27 16:02:06 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 725001065693; Fri, 27 May 2011 16:02:06 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 484238FC25; Fri, 27 May 2011 16:02:06 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id EEA5046B55; Fri, 27 May 2011 12:02:05 -0400 (EDT) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 864A18A050; Fri, 27 May 2011 12:02:05 -0400 (EDT) From: John Baldwin To: Mike Tancsa Date: Fri, 27 May 2011 12:00:11 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110325; KDE/4.5.5; amd64; ; ) References: <20110521092037.GB3271@vpn.offrom.nl> <201105270805.56457.jhb@freebsd.org> <4DDFB88B.2090408@sentex.net> In-Reply-To: <4DDFB88B.2090408@sentex.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201105271200.12062.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Fri, 27 May 2011 12:02:05 -0400 (EDT) Cc: Willy@offermans.rompen.nl, Marcel Moolenaar , freebsd-stable@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: modem support MT9234ZPX-PCIE-NV X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 May 2011 16:02:06 -0000 On Friday, May 27, 2011 10:43:23 am Mike Tancsa wrote: > On 5/27/2011 8:05 AM, John Baldwin wrote: > > > > > Oh, hmm, looks like the clock has an unusual multiplier. Does it work if you > > use 'cu -l -s 1200' to talk at 9600 for example? (In general use speed / 8 > > as the speed to '-s'.) > > > > Also, is your card a modem or a dual-port card? > > If I add in the device IDs, I am not able to talk to it at any speed. > However, the port that is exposed, might just not be echoing back chars > and the second port which is not showing up, might be the "control port" ? > > uart2@pci0:5:0:0: class=0x070002 card=0x20282205 chip=0x015213a8 > rev=0x02 hdr=0x00 > vendor = 'Exar Corp.' > device = 'XR17C/D152 Dual PCI UART' > class = simple comms > subclass = UART Possibly. Did you try adding it via puc instead? -- John Baldwin From owner-freebsd-hardware@FreeBSD.ORG Fri May 27 17:55:23 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5636F106564A; Fri, 27 May 2011 17:55:23 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1-6.sentex.ca [IPv6:2607:f3e0:0:1::12]) by mx1.freebsd.org (Postfix) with ESMTP id 0EE458FC08; Fri, 27 May 2011 17:55:22 +0000 (UTC) Received: from smtp2.sentex.ca (smtp2c.sentex.ca [64.7.153.30]) by smarthost1.sentex.ca (8.14.4/8.14.4) with ESMTP id p4RHtKgH087940 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 27 May 2011 13:55:21 -0400 (EDT) (envelope-from mike@sentex.net) Received: from pyroxene.sentex.ca ([IPv6:2607:f3e0:0:3::18]) by smtp2.sentex.ca (8.14.4/8.14.4) with ESMTP id p4RHtK9q000752; Fri, 27 May 2011 13:55:20 -0400 (EDT) (envelope-from mike@sentex.net) Received: from [192.168.43.26] (saphire3.sentex.net [192.168.43.26]) by pyroxene.sentex.ca (8.14.4/8.14.3) with ESMTP id p4RHtJ2v095019; Fri, 27 May 2011 13:55:20 -0400 (EDT) (envelope-from mike@sentex.net) Message-ID: <4DDFE56E.3000406@sentex.net> Date: Fri, 27 May 2011 13:54:54 -0400 From: Mike Tancsa Organization: Sentex Communications User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: John Baldwin References: <20110521092037.GB3271@vpn.offrom.nl> <201105270805.56457.jhb@freebsd.org> <4DDFB88B.2090408@sentex.net> <201105271200.12062.jhb@freebsd.org> In-Reply-To: <201105271200.12062.jhb@freebsd.org> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.95.1 at smtp2.sentex.ca X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.67 on 64.7.153.18 Cc: Willy@offermans.rompen.nl, Marcel Moolenaar , freebsd-stable@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: modem support MT9234ZPX-PCIE-NV X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 May 2011 17:55:23 -0000 On 5/27/2011 12:00 PM, John Baldwin wrote: >> >> uart2@pci0:5:0:0: class=0x070002 card=0x20282205 chip=0x015213a8 >> rev=0x02 hdr=0x00 >> vendor = 'Exar Corp.' >> device = 'XR17C/D152 Dual PCI UART' >> class = simple comms >> subclass = UART > > Possibly. Did you try adding it via puc instead? Yes, same result. But I am not sure what values to plugin for some of the options. I tried this is uart 1(ich10)# diff -u uart_bus_pci.c.orig uart_bus_pci.c --- uart_bus_pci.c.orig 2011-05-24 17:10:21.000000000 -0400 +++ uart_bus_pci.c 2011-05-27 10:49:05.000000000 -0400 @@ -110,6 +110,8 @@ { 0x1415, 0x950b, 0xffff, 0, "Oxford Semiconductor OXCB950 Cardbus 16950 UART", 0x10, 16384000 }, { 0x151f, 0x0000, 0xffff, 0, "TOPIC Semiconductor TP560 56k modem", 0x10 }, +{ 0x13a8, 0x0152, 0x2205, 0x2028, "MultiTech MultiModem ZPX", 0x10, + 8 * DEFAULT_RCLK }, { 0x9710, 0x9835, 0x1000, 1, "NetMos NM9835 Serial Port", 0x10 }, { 0x9710, 0x9865, 0xa000, 0x1000, "NetMos NM9865 Serial Port", 0x10 }, { 0x9710, 0x9901, 0xa000, 0x1000, 1(ich10)# Then I removed the entry from uart and added the following for pucdata.c { 0x13a8, 0x0152, 0xffff, 0, "Exar Multitech", DEFAULT_RCLK * 8, PUC_PORT_2S, 0x10, 0, -1, }, But it does not seem to want to attach ? ---Mike -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/ From owner-freebsd-hardware@FreeBSD.ORG Fri May 27 19:18:15 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8F385106566C; Fri, 27 May 2011 19:18:15 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 660D58FC12; Fri, 27 May 2011 19:18:15 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 06CE346B35; Fri, 27 May 2011 15:18:15 -0400 (EDT) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 8FF038A04F; Fri, 27 May 2011 15:18:14 -0400 (EDT) From: John Baldwin To: Mike Tancsa Date: Fri, 27 May 2011 15:18:13 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110325; KDE/4.5.5; amd64; ; ) References: <20110521092037.GB3271@vpn.offrom.nl> <201105271200.12062.jhb@freebsd.org> <4DDFE56E.3000406@sentex.net> In-Reply-To: <4DDFE56E.3000406@sentex.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201105271518.13856.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Fri, 27 May 2011 15:18:14 -0400 (EDT) Cc: Willy@offermans.rompen.nl, Marcel Moolenaar , freebsd-stable@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: modem support MT9234ZPX-PCIE-NV X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 May 2011 19:18:15 -0000 On Friday, May 27, 2011 1:54:54 pm Mike Tancsa wrote: > On 5/27/2011 12:00 PM, John Baldwin wrote: > >> > >> uart2@pci0:5:0:0: class=0x070002 card=0x20282205 chip=0x015213a8 > >> rev=0x02 hdr=0x00 > >> vendor = 'Exar Corp.' > >> device = 'XR17C/D152 Dual PCI UART' > >> class = simple comms > >> subclass = UART > > > > Possibly. Did you try adding it via puc instead? > > Yes, same result. But I am not sure what values to plugin for some of > the options. > > I tried this is uart > > 1(ich10)# diff -u uart_bus_pci.c.orig uart_bus_pci.c > --- uart_bus_pci.c.orig 2011-05-24 17:10:21.000000000 -0400 > +++ uart_bus_pci.c 2011-05-27 10:49:05.000000000 -0400 > @@ -110,6 +110,8 @@ > { 0x1415, 0x950b, 0xffff, 0, "Oxford Semiconductor OXCB950 Cardbus > 16950 UART", > 0x10, 16384000 }, > { 0x151f, 0x0000, 0xffff, 0, "TOPIC Semiconductor TP560 56k modem", 0x10 }, > +{ 0x13a8, 0x0152, 0x2205, 0x2028, "MultiTech MultiModem ZPX", 0x10, > + 8 * DEFAULT_RCLK }, > { 0x9710, 0x9835, 0x1000, 1, "NetMos NM9835 Serial Port", 0x10 }, > { 0x9710, 0x9865, 0xa000, 0x1000, "NetMos NM9865 Serial Port", 0x10 }, > { 0x9710, 0x9901, 0xa000, 0x1000, > 1(ich10)# > > Then I removed the entry from uart and added the following for pucdata.c > > > { 0x13a8, 0x0152, 0xffff, 0, > "Exar Multitech", > DEFAULT_RCLK * 8, > PUC_PORT_2S, 0x10, 0, -1, > }, Use '0x200' rather than -1. -- John Baldwin From owner-freebsd-hardware@FreeBSD.ORG Fri May 27 19:33:05 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EB0761065670; Fri, 27 May 2011 19:33:04 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id AAEA28FC18; Fri, 27 May 2011 19:33:04 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 60F0C46B45; Fri, 27 May 2011 15:33:04 -0400 (EDT) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 005388A04F; Fri, 27 May 2011 15:33:04 -0400 (EDT) From: John Baldwin To: Mike Tancsa Date: Fri, 27 May 2011 15:33:03 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110325; KDE/4.5.5; amd64; ; ) References: <20110521092037.GB3271@vpn.offrom.nl> <201105271200.12062.jhb@freebsd.org> <4DDFE56E.3000406@sentex.net> In-Reply-To: <4DDFE56E.3000406@sentex.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201105271533.03445.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Fri, 27 May 2011 15:33:04 -0400 (EDT) Cc: Willy@offermans.rompen.nl, Marcel Moolenaar , freebsd-stable@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: modem support MT9234ZPX-PCIE-NV X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 May 2011 19:33:05 -0000 On Friday, May 27, 2011 1:54:54 pm Mike Tancsa wrote: > On 5/27/2011 12:00 PM, John Baldwin wrote: > >> > >> uart2@pci0:5:0:0: class=0x070002 card=0x20282205 chip=0x015213a8 > >> rev=0x02 hdr=0x00 > >> vendor = 'Exar Corp.' > >> device = 'XR17C/D152 Dual PCI UART' > >> class = simple comms > >> subclass = UART > > > > Possibly. Did you try adding it via puc instead? > > Yes, same result. But I am not sure what values to plugin for some of > the options. > > I tried this is uart > > 1(ich10)# diff -u uart_bus_pci.c.orig uart_bus_pci.c > --- uart_bus_pci.c.orig 2011-05-24 17:10:21.000000000 -0400 > +++ uart_bus_pci.c 2011-05-27 10:49:05.000000000 -0400 > @@ -110,6 +110,8 @@ > { 0x1415, 0x950b, 0xffff, 0, "Oxford Semiconductor OXCB950 Cardbus > 16950 UART", > 0x10, 16384000 }, > { 0x151f, 0x0000, 0xffff, 0, "TOPIC Semiconductor TP560 56k modem", 0x10 }, > +{ 0x13a8, 0x0152, 0x2205, 0x2028, "MultiTech MultiModem ZPX", 0x10, > + 8 * DEFAULT_RCLK }, > { 0x9710, 0x9835, 0x1000, 1, "NetMos NM9835 Serial Port", 0x10 }, > { 0x9710, 0x9865, 0xa000, 0x1000, "NetMos NM9865 Serial Port", 0x10 }, > { 0x9710, 0x9901, 0xa000, 0x1000, > 1(ich10)# > > Then I removed the entry from uart and added the following for pucdata.c > > > { 0x13a8, 0x0152, 0xffff, 0, > "Exar Multitech", > DEFAULT_RCLK * 8, > PUC_PORT_2S, 0x10, 0, -1, > }, > > But it does not seem to want to attach ? Actually, can you just try this: Index: pucdata.c =================================================================== --- pucdata.c (revision 222364) +++ pucdata.c (working copy) @@ -48,7 +48,6 @@ __FBSDID("$FreeBSD$"); #include static puc_config_f puc_config_amc; -static puc_config_f puc_config_cronyx; static puc_config_f puc_config_diva; static puc_config_f puc_config_icbook; static puc_config_f puc_config_quatech; @@ -548,11 +547,22 @@ const struct puc_cfg puc_pci_devices[] = { PUC_PORT_8S, 0x18, 0, 8, }, + { 0x13a8, 0x0152, 0xffff, 0, + "Exar XR17C/D152", + DEFAULT_RCLK * 8, + PUC_PORT_2S, 0x10, 0, 0x200, + }, + + { 0x13a8, 0x0154, 0xffff, 0, + "Exar XR17C154", + DEFAULT_RCLK * 8, + PUC_PORT_4S, 0x10, 0, 0x200, + }, + { 0x13a8, 0x0158, 0xffff, 0, - "Cronyx Omega2-PCI", + "Exar XR17C158", DEFAULT_RCLK * 8, - PUC_PORT_8S, 0x10, 0, -1, - .config_function = puc_config_cronyx + PUC_PORT_8S, 0x10, 0, 0x200, }, { 0x13a8, 0x0258, 0xffff, 0, @@ -1014,17 +1024,6 @@ puc_config_amc(struct puc_softc *sc, enum puc_cfg_ } static int -puc_config_cronyx(struct puc_softc *sc, enum puc_cfg_cmd cmd, int port, - intptr_t *res) -{ - if (cmd == PUC_CFG_GET_OFS) { - *res = port * 0x200; - return (0); - } - return (ENXIO); -} - -static int puc_config_diva(struct puc_softc *sc, enum puc_cfg_cmd cmd, int port, intptr_t *res) { -- John Baldwin From owner-freebsd-hardware@FreeBSD.ORG Fri May 27 19:38:32 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5870D1065672; Fri, 27 May 2011 19:38:32 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1-6.sentex.ca [IPv6:2607:f3e0:0:1::12]) by mx1.freebsd.org (Postfix) with ESMTP id 121338FC19; Fri, 27 May 2011 19:38:31 +0000 (UTC) Received: from smtp2.sentex.ca (smtp2c.sentex.ca [64.7.153.30]) by smarthost1.sentex.ca (8.14.4/8.14.4) with ESMTP id p4RJcUwO008395 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 27 May 2011 15:38:30 -0400 (EDT) (envelope-from mike@sentex.net) Received: from pyroxene.sentex.ca ([IPv6:2607:f3e0:0:3::18]) by smtp2.sentex.ca (8.14.4/8.14.4) with ESMTP id p4RJcUch042296; Fri, 27 May 2011 15:38:30 -0400 (EDT) (envelope-from mike@sentex.net) Received: from [192.168.43.26] (saphire3.sentex.ca [192.168.43.26]) by pyroxene.sentex.ca (8.14.4/8.14.3) with ESMTP id p4RJcTVX097760; Fri, 27 May 2011 15:38:30 -0400 (EDT) (envelope-from mike@sentex.net) Message-ID: <4DDFFD9C.2000503@sentex.net> Date: Fri, 27 May 2011 15:38:04 -0400 From: Mike Tancsa Organization: Sentex Communications User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: John Baldwin References: <20110521092037.GB3271@vpn.offrom.nl> <201105271200.12062.jhb@freebsd.org> <4DDFE56E.3000406@sentex.net> <201105271533.03445.jhb@freebsd.org> In-Reply-To: <201105271533.03445.jhb@freebsd.org> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.95.1 at smtp2.sentex.ca X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.67 on 64.7.153.18 Cc: Willy@offermans.rompen.nl, Marcel Moolenaar , freebsd-stable@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: modem support MT9234ZPX-PCIE-NV X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 May 2011 19:38:32 -0000 On 5/27/2011 3:33 PM, John Baldwin wrote: > > Actually, can you just try this: > > Index: pucdata.c Hi, Patch applies, but it doesnt compile on RELENG_8 patch < p Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: pucdata.c |=================================================================== |--- pucdata.c (revision 222364) |+++ pucdata.c (working copy) -------------------------- Patching file pucdata.c using Plan A... Hunk #1 succeeded at 48. Hunk #2 succeeded at 546 (offset -1 lines). Hunk #3 succeeded at 949 (offset -75 lines). done ===> puc (all) cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -DHAVE_KERNEL_OPTION_HEADERS -include /usr/obj/usr/src/sys/ipsec/opt_global.h -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -g -I/usr/obj/usr/src/sys/ipsec -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c /usr/src/sys/modules/puc/../../dev/puc/pucdata.c cc1: warnings being treated as errors /usr/src/sys/modules/puc/../../dev/puc/pucdata.c:552: warning: overflow in implicit constant conversion /usr/src/sys/modules/puc/../../dev/puc/pucdata.c:558: warning: overflow in implicit constant conversion /usr/src/sys/modules/puc/../../dev/puc/pucdata.c:564: warning: overflow in implicit constant conversion *** Error code 1 Stop in /usr/src/sys/modules/puc. *** Error code 1 Stop in /usr/src/sys/modules. *** Error code 1 Stop in /usr/obj/usr/src/sys/ipsec. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/ From owner-freebsd-hardware@FreeBSD.ORG Fri May 27 20:22:23 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 060741065677; Fri, 27 May 2011 20:22:23 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id D15268FC0A; Fri, 27 May 2011 20:22:22 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 6DBE346B45; Fri, 27 May 2011 16:22:22 -0400 (EDT) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id E1F748A04F; Fri, 27 May 2011 16:22:21 -0400 (EDT) From: John Baldwin To: Mike Tancsa Date: Fri, 27 May 2011 16:22:21 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110325; KDE/4.5.5; amd64; ; ) References: <20110521092037.GB3271@vpn.offrom.nl> <201105271533.03445.jhb@freebsd.org> <4DDFFD9C.2000503@sentex.net> In-Reply-To: <4DDFFD9C.2000503@sentex.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201105271622.21355.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Fri, 27 May 2011 16:22:22 -0400 (EDT) Cc: Willy@offermans.rompen.nl, Marcel Moolenaar , freebsd-stable@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: modem support MT9234ZPX-PCIE-NV X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 May 2011 20:22:23 -0000 On Friday, May 27, 2011 3:38:04 pm Mike Tancsa wrote: > On 5/27/2011 3:33 PM, John Baldwin wrote: > > > > Actually, can you just try this: > > > > Index: pucdata.c > > Hi, > Patch applies, but it doesnt compile on RELENG_8 Ugh, looks like the offset can't handle 0x200, try this instead: Index: pucdata.c =================================================================== --- pucdata.c (revision 222364) +++ pucdata.c (working copy) @@ -48,8 +48,8 @@ __FBSDID("$FreeBSD$"); #include static puc_config_f puc_config_amc; -static puc_config_f puc_config_cronyx; static puc_config_f puc_config_diva; +static puc_config_f puc_config_exar; static puc_config_f puc_config_icbook; static puc_config_f puc_config_quatech; static puc_config_f puc_config_syba; @@ -548,11 +548,25 @@ const struct puc_cfg puc_pci_devices[] = { PUC_PORT_8S, 0x18, 0, 8, }, + { 0x13a8, 0x0152, 0xffff, 0, + "Exar XR17C/D152", + DEFAULT_RCLK * 8, + PUC_PORT_2S, 0x10, 0, -1, + .config_function = puc_config_exar + }, + + { 0x13a8, 0x0154, 0xffff, 0, + "Exar XR17C154", + DEFAULT_RCLK * 8, + PUC_PORT_4S, 0x10, 0, -1, + .config_function = puc_config_exar + }, + { 0x13a8, 0x0158, 0xffff, 0, - "Cronyx Omega2-PCI", + "Exar XR17C158", DEFAULT_RCLK * 8, PUC_PORT_8S, 0x10, 0, -1, - .config_function = puc_config_cronyx + .config_function = puc_config_exar }, { 0x13a8, 0x0258, 0xffff, 0, @@ -1014,28 +1028,28 @@ puc_config_amc(struct puc_softc *sc, enum puc_cfg_ } static int -puc_config_cronyx(struct puc_softc *sc, enum puc_cfg_cmd cmd, int port, +puc_config_diva(struct puc_softc *sc, enum puc_cfg_cmd cmd, int port, intptr_t *res) { + const struct puc_cfg *cfg = sc->sc_cfg; + if (cmd == PUC_CFG_GET_OFS) { - *res = port * 0x200; + if (cfg->subdevice == 0x1282) /* Everest SP */ + port <<= 1; + else if (cfg->subdevice == 0x104b) /* Maestro SP2 */ + port = (port == 3) ? 4 : port; + *res = port * 8 + ((port > 2) ? 0x18 : 0); return (0); } return (ENXIO); } static int -puc_config_diva(struct puc_softc *sc, enum puc_cfg_cmd cmd, int port, +puc_config_exar(struct puc_softc *sc, enum puc_cfg_cmd cmd, int port, intptr_t *res) { - const struct puc_cfg *cfg = sc->sc_cfg; - if (cmd == PUC_CFG_GET_OFS) { - if (cfg->subdevice == 0x1282) /* Everest SP */ - port <<= 1; - else if (cfg->subdevice == 0x104b) /* Maestro SP2 */ - port = (port == 3) ? 4 : port; - *res = port * 8 + ((port > 2) ? 0x18 : 0); + *res = port * 0x200; return (0); } return (ENXIO); -- John Baldwin From owner-freebsd-hardware@FreeBSD.ORG Fri May 27 20:38:16 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 22F08106566B; Fri, 27 May 2011 20:38:16 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1-6.sentex.ca [IPv6:2607:f3e0:0:1::12]) by mx1.freebsd.org (Postfix) with ESMTP id B816C8FC08; Fri, 27 May 2011 20:38:15 +0000 (UTC) Received: from smtp2.sentex.ca (smtp2c.sentex.ca [64.7.153.30]) by smarthost1.sentex.ca (8.14.4/8.14.4) with ESMTP id p4RKcDt8019096 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 27 May 2011 16:38:14 -0400 (EDT) (envelope-from mike@sentex.net) Received: from pyroxene.sentex.ca ([IPv6:2607:f3e0:0:3::18]) by smtp2.sentex.ca (8.14.4/8.14.4) with ESMTP id p4RKcEGk064800; Fri, 27 May 2011 16:38:14 -0400 (EDT) (envelope-from mike@sentex.net) Received: from [192.168.43.26] (saphire3.sentex.net [192.168.43.26]) by pyroxene.sentex.ca (8.14.4/8.14.3) with ESMTP id p4RKcDAP099250; Fri, 27 May 2011 16:38:13 -0400 (EDT) (envelope-from mike@sentex.net) Message-ID: <4DE00B9C.4070809@sentex.net> Date: Fri, 27 May 2011 16:37:48 -0400 From: Mike Tancsa Organization: Sentex Communications User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: John Baldwin References: <20110521092037.GB3271@vpn.offrom.nl> <201105271533.03445.jhb@freebsd.org> <4DDFFD9C.2000503@sentex.net> <201105271622.21355.jhb@freebsd.org> In-Reply-To: <201105271622.21355.jhb@freebsd.org> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.95.1 at smtp2.sentex.ca X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.67 on 64.7.153.18 Cc: Willy@offermans.rompen.nl, Marcel Moolenaar , freebsd-stable@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: modem support MT9234ZPX-PCIE-NV X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 May 2011 20:38:16 -0000 On 5/27/2011 4:22 PM, John Baldwin wrote: > On Friday, May 27, 2011 3:38:04 pm Mike Tancsa wrote: >> On 5/27/2011 3:33 PM, John Baldwin wrote: >>> >>> Actually, can you just try this: >>> >>> Index: pucdata.c >> >> Hi, >> Patch applies, but it doesnt compile on RELENG_8 > > Ugh, looks like the offset can't handle 0x200, try this instead: > > Index: pucdata.c > =================================================================== Thanks! that applies cleanly and I see both ports now. However, I still cannot interact with the modem. Let me fire up LINUX 0(ich10)# patch < p Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: pucdata.c |=================================================================== |--- pucdata.c (revision 222364) |+++ pucdata.c (working copy) -------------------------- Patching file pucdata.c using Plan A... Hunk #1 succeeded at 48. Hunk #2 succeeded at 547 (offset -1 lines). Hunk #3 succeeded at 953 (offset -75 lines). done 0(ich10)# puc0: mem 0xe8950000-0xe89503ff irq 21 at device 0.0 on pci5 puc0: [FILTER] uart2: <16750 or compatible> on puc0 uart2: [FILTER] uart3: <16750 or compatible> on puc0 uart3: [FILTER] -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/