From owner-freebsd-current@FreeBSD.ORG Wed Dec 10 15:38:03 2008 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 24FE31065678 for ; Wed, 10 Dec 2008 15:38:03 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from 0.mx.codelabs.ru (0.mx.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id C991D8FC1D for ; Wed, 10 Dec 2008 15:38:02 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=one; d=codelabs.ru; h=Received:Date:From:To:Cc:Subject:Message-ID:Reply-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:Sender; b=lTaB44+WYYxsh3Kpo0GR1H8Sh8SK5ZTMTM31YJe2xioz58+8A5L1p9jEGMK64IqMr1s3kufNVmNfJcJ/6FXwrrOd1jQvocNvMBTOAmA+089nTL1yoyrP1Ije16W67dx7U0isQfIdwBeZl4RoXwnyhkuvl3BUqA5tZ6R6np0vJds=; Received: from shadow.codelabs.ru (shadow.codelabs.ru [144.206.177.8]) by 0.mx.codelabs.ru with esmtpsa (TLSv1:AES256-SHA:256) id 1LAR8T-0007cl-Hc; Wed, 10 Dec 2008 18:38:01 +0300 Date: Wed, 10 Dec 2008 18:38:00 +0300 From: Eygene Ryabinkin To: Boris Samorodov Message-ID: References: <92804393@bb.ipt.ru> <26722819@bb.ipt.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7iMSBzlTiPOCCT2k" Content-Disposition: inline In-Reply-To: <26722819@bb.ipt.ru> Sender: rea-fbsd@codelabs.ru Cc: freebsd-current@FreeBSD.org Subject: Re: Timeda 8-multiport adapter: only 2 ports available X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rea-fbsd@codelabs.ru List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Dec 2008 15:38:03 -0000 --7iMSBzlTiPOCCT2k Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Boris, good day. Wed, Dec 10, 2008 at 05:13:48PM +0300, Boris Samorodov wrote: > Boris Samorodov writes: >=20 > > I've got a Sunix PCI Serial 8-channel Multiport adapter (Timedia chipse= t): > > ----- > > puc0@pci0:5:2:0: class=3D0x070002 card=3D0x40661409 chip=3D0x716= 81409 rev=3D0x01 hdr=3D0x00 > > vendor =3D 'Timedia Technology Co Ltd' > > device =3D '40371409 PCI / ISA Asynchronous UART Signal Chips S= olution' >=20 > Actually the card is 4066, while 4037 (according to pucdata.c) is indeed > a dual-port card. May be the card is wrongly interpreted by the OS? pciconf just don't know about 4066, so is prints what it has in the database. This is irrelevant to the driver -- it discovers the correct chip with 8 ports: > > puc0: port 0xec00-0xec1f,0xe880-0xe8= 8f,0xe800-0xe807,0xe480-0xe487,0xe400-0xe407,0xe080-0xe087 irq 18 at device= 2.0 on pci5 > > puc0: Reserved 0x20 bytes for rid 0x10 type 4 at 0xec00 > > puc0: Reserved 0x10 bytes for rid 0x14 type 4 at 0xe880 > > puc0: Reserved 0x8 bytes for rid 0x18 type 4 at 0xe800 > > puc0: Reserved 0x8 bytes for rid 0x1c type 4 at 0xe480 > > puc0: Reserved 0x8 bytes for rid 0x20 type 4 at 0xe400 > > puc0: Reserved 0x8 bytes for rid 0x24 type 4 at 0xe080 > > puc0: [FILTER] > > uart4: <16550 or compatible> on puc0 > > uart4: [FILTER] > > uart4: fast interrupt > > uart5: <16550 or compatible> on puc0 > > uart5: [FILTER] > > uart5: fast interrupt > > ----- Judging by this output, the 6 ports that got their reservations at dev/pci/pci.c are the ones that aren't recognized by uart. You may need to add trace printfs to uart_puc_probe (uart_bus_puc.c) and to uart_bus_probe (uart_core.c), just around the register resource allocator. This should show what devices are passed to the probe routines and which are rejected. Be sure to include 'rid' values to your debug output to get the idea what ports we're speaking about. --=20 Eygene _ ___ _.--. # \`.|\..----...-'` `-._.-'_.-'` # Remember that it is hard / ' ` , __.--' # to read the on-line manual =20 )/' _/ \ `-_, / # while single-stepping the kernel. `-'" `"\_ ,_.-;_.-\_ ', fsc/as # _.-'_./ {_.' ; / # -- FreeBSD Developers handbook=20 {_.-``-' {_/ # --7iMSBzlTiPOCCT2k Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkk/4lcACgkQthUKNsbL7Yi1PACfZSMBOC1L012UYGv+HiIrbbJy gwYAnAlb3nG2AoZpK/u1L2NVINsHnaVL =COq+ -----END PGP SIGNATURE----- --7iMSBzlTiPOCCT2k--