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