From owner-freebsd-current@FreeBSD.ORG Thu Dec 11 01:00:29 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 3B9961065672 for ; Thu, 11 Dec 2008 01:00:29 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout011.mac.com (asmtpout011.mac.com [17.148.16.86]) by mx1.freebsd.org (Postfix) with ESMTP id 246DC8FC1B for ; Thu, 11 Dec 2008 01:00:29 +0000 (UTC) (envelope-from xcllnt@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed Received: from yiangh-mbp.jnpr.net (natint3.juniper.net [66.129.224.36]) by asmtp011.mac.com (Sun Java(tm) System Messaging Server 6.3-7.03 (built Aug 7 2008; 32bit)) with ESMTPSA id <0KBO006RYTGO5830@asmtp011.mac.com> for freebsd-current@FreeBSD.org; Wed, 10 Dec 2008 17:00:25 -0800 (PST) Message-id: <19F75E66-0535-4982-9726-E2C0A03117EA@mac.com> From: Marcel Moolenaar To: Boris Samorodov In-reply-to: <26719629@bb.ipt.ru> Date: Wed, 10 Dec 2008 17:00:24 -0800 References: <92804393@bb.ipt.ru> <26722819@bb.ipt.ru> <26719629@bb.ipt.ru> X-Mailer: Apple Mail (2.929.2) Cc: freebsd-current@FreeBSD.org, rea-fbsd@codelabs.ru Subject: Re: Timeda 8-multiport adapter: only 2 ports available X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Dec 2008 01:00:29 -0000 On Dec 10, 2008, at 4:02 PM, Boris Samorodov wrote: > Seems that just the same card should work: > http://lists.freebsd.org/pipermail/freebsd-stable/2008-May/042505.html > > I've added some diagnistic. But 'rid' is not what you want, I guess: The RID is fine. It should always be 0. * > uart4: /usr/src/sys/dev/uart/uart_core.c:374: continue with rid=0x0 > ns8250_probe: no errors, exiting * > uart4: /usr/src/sys/dev/uart/uart_core.c:374: continue with rid=0x0 > ns8250_probe: no errors, exiting * > uart5: /usr/src/sys/dev/uart/uart_core.c:374: continue with rid=0x0 > ns8250_probe: no errors, exiting * > uart5: /usr/src/sys/dev/uart/uart_core.c:374: continue with rid=0x0 > ns8250_probe: no errors, exiting * > uart6: /usr/src/sys/dev/uart/uart_core.c:374: continue with rid=0x0 > ns8250_probe: got MCR wrong register, exiting with ENXIO * > uart6: /usr/src/sys/dev/uart/uart_core.c:374: continue with rid=0x0 > ns8250_probe: got MCR wrong register, exiting with ENXIO * > uart6: /usr/src/sys/dev/uart/uart_core.c:374: continue with rid=0x0 > ns8250_probe: got MCR wrong register, exiting with ENXIO * > uart6: /usr/src/sys/dev/uart/uart_core.c:374: continue with rid=0x0 > ns8250_probe: got MCR wrong register, exiting with ENXIO * > uart6: /usr/src/sys/dev/uart/uart_core.c:374: continue with rid=0x0 > ns8250_probe: got MCR wrong register, exiting with ENXIO * > uart6: /usr/src/sys/dev/uart/uart_core.c:374: continue with rid=0x0 > ns8250_probe: got MCR wrong register, exiting with ENXIO It looks like the mapping is wrong. That is, uart(4) gets to probe 8 ports but rejects 6. I would add debugging information to puc(4) and in particular to where resources are assigned to ports so that we can see what the BAR and offsets within the BAR are for each port. FYI, -- Marcel Moolenaar xcllnt@mac.com