From owner-freebsd-stable@FreeBSD.ORG Tue May 6 16:54:02 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5619F106566B; Tue, 6 May 2008 16:54:02 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from smtpoutm.mac.com (smtpoutm.mac.com [17.148.16.65]) by mx1.freebsd.org (Postfix) with ESMTP id 3EC038FC29; Tue, 6 May 2008 16:54:02 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from mac.com (asmtp010-s [10.150.69.73]) by smtpoutm.mac.com (Xserve/smtpout002/MantshX 4.0) with ESMTP id m46Grtwi008823; Tue, 6 May 2008 09:53:55 -0700 (PDT) Received: from macbook-pro.jnpr.net (natint3.juniper.net [66.129.224.36]) (authenticated bits=0) by mac.com (Xserve/asmtp010/MantshX 4.0) with ESMTP id m46GrlYc025217 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Tue, 6 May 2008 09:53:48 -0700 (PDT) Message-Id: <770A639E-DDE0-4464-B8A3-1D63EBFA6B65@mac.com> From: Marcel Moolenaar To: Ingeborg Hellemo In-Reply-To: <200805061305.m46D57EF097186@barnetv.cc.uit.no> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Date: Tue, 6 May 2008 09:53:42 -0700 References: <200805061305.m46D57EF097186@barnetv.cc.uit.no> X-Mailer: Apple Mail (2.919.2) Cc: Jeremy Chadwick , freebsd-stable@freebsd.org Subject: Re: PCI serial card works on 6.2 but not on 6.3 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 May 2008 16:54:02 -0000 On May 6, 2008, at 6:05 AM, Ingeborg Hellemo wrote: > > koitsu@freebsd.org said: >> Try loading the uart(4) driver, which can also replace sio(4) if I >> remember >> correctly. > > I have now tried both loading the uart4) -driver and kompiled it > into the > kernel, but the card is still unrecognized: > > pci1: at device 8.0 (no driver attached) > > ~# pciconf -l -v | grep -B 4 UART > none2@pci1:8:0: class=0x070002 card=0x00041000 chip=0x98459710 > rev=0x01 > hdr=0x00 > vendor = 'MosChip Semiconductors (Was: Netmos Technology)' > device = 'Nm9845 Parallel/Serial Port Adapter' > class = simple comms > subclass = UART The problem seems to be puc(4). This appears to be a multi-port card, which means puc(4) needs to attach. This is not happening. The problem seems to be revision 1.51.2.3 of src/sys/dev/puc/pucdata.c Could you try the following patch? Index: pucdata.c =================================================================== RCS file: /volume/apg-bbuild09-b/marcelm/ncvs/src/sys/dev/puc/ pucdata.c,v retrieving revision 1.51.2.3 diff -u -r1.51.2.3 pucdata.c --- pucdata.c 15 Dec 2006 22:31:37 -0000 1.51.2.3 +++ pucdata.c 6 May 2008 16:51:02 -0000 @@ -946,7 +946,7 @@ /* NetMos 4S0P PCI: 4S, 0P */ { "NetMos NM9845 Quad UART", - { 0x9710, 0x9845, 0, 0x0014 }, + { 0x9710, 0x9845, 0, 0x0004 }, { 0xffff, 0xffff, 0, 0xffff }, { { PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ }, -- Marcel Moolenaar xcllnt@mac.com