Re: Intel D2500CC motherboard and strange RS232/UART behavior

From: John Baldwin <jhb_at_freebsd.org>
Date: Tue, 9 Apr 2013 16:58:22 -0400
On Tuesday, April 09, 2013 4:44:51 pm Lev Serebryakov wrote:
> Hello, John.
> You wrote 10 апреля 2013 г., 0:08:09:
> 
> JB> When did it ever work?
>   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.

No, the interrupt code itself will handle shared interrupts (it will
call all handlers).  I think in practice that uart is setting
INTR_EXCL or some such and/or uart doesn't set RF_SHAREABLE when
allocating the IRQ.  It is probably the latter.  You could try just
adding RF_SHAREABLE to the bus_alloc_resource_any() for the IRQ to
uart and see if that fixes it.

-- 
John Baldwin
Received on Tue Apr 09 2013 - 18:58:30 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:36 UTC