From owner-freebsd-current@FreeBSD.ORG Thu Apr 11 14:55:42 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 1553C681; Thu, 11 Apr 2013 14:55:42 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) by mx1.freebsd.org (Postfix) with ESMTP id E46C3F80; Thu, 11 Apr 2013 14:55:41 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 640DDB94A; Thu, 11 Apr 2013 10:55:41 -0400 (EDT) From: John Baldwin To: "John-Mark Gurney" Subject: Re: Intel D2500CC motherboard and strange RS232/UART behavior Date: Thu, 11 Apr 2013 10:50:36 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p25; KDE/4.5.5; amd64; ; ) References: <229402991.20130407172016@serebryakov.spb.ru> <201304101016.57894.jhb@freebsd.org> <20130411070139.GR76354@funkthat.com> In-Reply-To: <20130411070139.GR76354@funkthat.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201304111050.37055.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Thu, 11 Apr 2013 10:55:41 -0400 (EDT) Cc: Poul-Henning Kamp , lev@freebsd.org, Adrian Chadd , freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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 Apr 2013 14:55:42 -0000 On Thursday, April 11, 2013 3:01:40 am John-Mark Gurney wrote: > John Baldwin wrote this message on Wed, Apr 10, 2013 at 10:16 -0400: > > On Wednesday, April 10, 2013 3:04:15 am Poul-Henning Kamp wrote: > > > In message <1424327083.20130410103010@serebryakov.spb.ru>, Lev Serebryakov > > writ > > > es: > > > >Hello, Poul-Henning. > > > >You wrote 10 =E0=EF=F0=E5=EB=FF 2013 =E3., 0:52:04: > > > > > > > >>> Problem is, that every uart device now is independent from each > > > >>> other in good "OOP" style, and it looks like interrupt sharing we > > > >>> need one interrupt handler per irq (not per device), which will now > > > >>> about several UARTs. Something like "multiport" device, bot not > > > >>> exactly. > > > >PHK> That is what the puc(4) driver does... > > > > Yes, for PCI devices only :( > > > > > > Yes, it needs to learn to do it from hints for ISA. > > > > No, that is that not the right hammer for this. This isn't a single ISA > > device with two ports (which is what puc(4) is aimed at). > > Don't you remeber the old AST 4 port cards? Heck, even our handbook > talks about how to make those cards work: > https://www.freebsd.org/doc/en/books/faq/serial.html#enable-multiport-serial > > I have a couple of these cards around somewhere I think... Uses a DB-37 > connector for the ports.... > > Though if these ports don't have the logic that the AST cards did to > share the IRQ, that'd make it hard... > > The sio man page talks about this... These are multiport cards and something like puc or digi, etc. is fine for those. The OP's issue is that he has a board with 4 independent 16550 UARTs which are attempting to share IRQs. Those are not multiport cards and are thus a separate issue. -- John Baldwin