RE: Intel D2500CC motherboard and strange RS232/UART behavior

2013-05-27 Thread Weiß , Jürgen
26407 -Original Message- From: owner-freebsd-curr...@freebsd.org [mailto:owner-freebsd-curr...@freebsd.org] On Behalf Of Lev Serebryakov Sent: Friday, May 24, 2013 10:12 PM To: Weiß, Jürgen Cc: 'freebsd-current@freebsd.org' Subject: Re: Intel D2500CC motherboard and strange RS232/UART

Re: Intel D2500CC motherboard and strange RS232/UART behavior

2013-05-24 Thread Lev Serebryakov
Hello, Jürgen. You wrote 24 мая 2013 г., 23:15:17: WJ> According to the ACPI of the board, uart0 and uart 2 WJ> use IRQ 3 and WJ> IRQ (Edge, ActiveLow, Shared, ) WJ>{3} WJ> uart1 and uart3 use IRQ 4 WJ> IRQ (Edge, ActiveLow, Shared, ) WJ>{4} WJ> ioapic_config_intr is cal

Re: Intel D2500CC motherboard and strange RS232/UART behavior

2013-05-24 Thread Weiß , Jürgen
According to the ACPI of the board, uart0 and uart 2 use IRQ 3 and IRQ (Edge, ActiveLow, Shared, ) {3} uart1 and uart3 use IRQ 4 IRQ (Edge, ActiveLow, Shared, ) {4} ioapic_config_intr is called with trig == INTR_TRIGGER_EDGE and pol == INTR_POLARITY_LOW. The combinatation

Re: Intel D2500CC motherboard and strange RS232/UART behavior

2013-04-12 Thread Lev Serebryakov
Hello, John. You wrote 10 апреля 2013 г., 0:08:09: JB> Can you assign different interrupts via the BIOS somehow? I've tried it! And! I'm SHOCKED: this MoBo try to use some strange mode in BIOS Setup, which isn't supported by screen, installed where this router installed now! It looks like text

Re: Intel D2500CC motherboard and strange RS232/UART behavior

2013-04-12 Thread Poul-Henning Kamp
In message <201304121214.32331@freebsd.org>, John Baldwin writes: John, Quite frankly I don't think you have the age to teach me about ISA multiport serial cards :-) >Multiport isa(4) cards were not as generic as PCI cards, so we have several >different drivers for those (rc, digi, cy) [...

Re: Intel D2500CC motherboard and strange RS232/UART behavior

2013-04-12 Thread John Baldwin
On Thursday, April 11, 2013 5:37:48 pm Poul-Henning Kamp wrote: > In message <201304111050.37055@freebsd.org>, John Baldwin writes: > > >> 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 thi

Re: Intel D2500CC motherboard and strange RS232/UART behavior

2013-04-12 Thread Poul-Henning Kamp
In message <98147894.20130412171...@serebryakov.spb.ru>, Lev Serebryakov writes : > I mean, there is no good way to distinguish between this (hardware) > implementation and "true" 4 single UART chips, when it is identify > itself as "generic 16550 UART", 4 times, at 4 I/O addresses. That is a ker

Re: Intel D2500CC motherboard and strange RS232/UART behavior

2013-04-12 Thread Lev Serebryakov
Hello, Poul-Henning. You wrote 12 апреля 2013 г., 1:37:48: PHK> I think you are mistaken, the 4 uarts are in the same chip and I am PHK> sure they have done something sensible with the interrupts so they PHK> can be shared. I mean, there is no good way to distinguish between this (hardware) impl

Re: Intel D2500CC motherboard and strange RS232/UART behavior

2013-04-12 Thread Lev Serebryakov
Hello, Poul-Henning. You wrote 12 апреля 2013 г., 1:37:48: >>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

Re: Intel D2500CC motherboard and strange RS232/UART behavior

2013-04-11 Thread Poul-Henning Kamp
In message <201304111050.37055@freebsd.org>, John Baldwin writes: >> 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 fi

Re: Intel D2500CC motherboard and strange RS232/UART behavior

2013-04-11 Thread Lev Serebryakov
Hello, matt. You wrote 11 апреля 2013 г., 9:19:13: m> On 04/07/13 12:43, Lev Serebryakov wrote: >> How could I debug this? m> Does this board have any fancy BIOS -> RS232 redirection? Could m> something like that cause these symptoms? Nope. It is simple "Desktop" board (with LPT and 4xRS232, yes

Re: Intel D2500CC motherboard and strange RS232/UART behavior

2013-04-11 Thread John Baldwin
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.20130410103...@serebryakov.spb.ru>, Lev Serebryakov > > writ > >

Re: Intel D2500CC motherboard and strange RS232/UART behavior

2013-04-11 Thread John-Mark Gurney
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.20130410103...@serebryakov.spb.ru>, Lev Serebryakov > writ > > es: > > >Hello, Poul-Henning. > > >You wrote 10 =E0=EF=F0=E5=EB=FF 2013

Re: Intel D2500CC motherboard and strange RS232/UART behavior

2013-04-10 Thread matt
On 04/07/13 12:43, Lev Serebryakov wrote: > How could I debug this? Does this board have any fancy BIOS -> RS232 redirection? Could something like that cause these symptoms? Matt ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mail

Re: Intel D2500CC motherboard and strange RS232/UART behavior

2013-04-10 Thread Lev Serebryakov
Hello, John. You wrote 10 апреля 2013 г., 18:20:34: JB> Ok, then you need to figure out what is actually failing to install an JB> interrupt handler (e.g. does bus_alloc_resource or bus_setup_intr fail?) uart.ko could not be used, and rebuilding system for this system takes time (a lot of it).

Re: Intel D2500CC motherboard and strange RS232/UART behavior

2013-04-10 Thread John Baldwin
On Wednesday, April 10, 2013 2:28:38 am Lev Serebryakov wrote: > Hello, John. > You wrote 10 апреля 2013 г., 0:58:22: > > >> 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

Re: Intel D2500CC motherboard and strange RS232/UART behavior

2013-04-10 Thread John Baldwin
On Wednesday, April 10, 2013 3:04:15 am Poul-Henning Kamp wrote: > In message <1424327083.20130410103...@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 f

Re: Intel D2500CC motherboard and strange RS232/UART behavior

2013-04-10 Thread Adrian Chadd
On 9 April 2013 23:28, Lev Serebryakov wrote: > Hello, John. > You wrote 10 апреля 2013 г., 0:58:22: > >>> 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 dev

Re: Intel D2500CC motherboard and strange RS232/UART behavior

2013-04-10 Thread Poul-Henning Kamp
In message <1424327083.20130410103...@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 w

Re: Intel D2500CC motherboard and strange RS232/UART behavior

2013-04-09 Thread Lev Serebryakov
Hello, Poul-Henning. You wrote 10 апреля 2013 г., 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. Some

Re: Intel D2500CC motherboard and strange RS232/UART behavior

2013-04-09 Thread Lev Serebryakov
Hello, John. You wrote 10 апреля 2013 г., 0:58:22: >> 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. Somethin

Re: Intel D2500CC motherboard and strange RS232/UART behavior

2013-04-09 Thread John Baldwin
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

Re: Intel D2500CC motherboard and strange RS232/UART behavior

2013-04-09 Thread Poul-Henning Kamp
In message <105818341.20130410004...@serebryakov.spb.ru>, Lev Serebryakov write s: >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 devi

Re: Intel D2500CC motherboard and strange RS232/UART behavior

2013-04-09 Thread Lev Serebryakov
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

Re: Intel D2500CC motherboard and strange RS232/UART behavior

2013-04-09 Thread Lev Serebryakov
Hello, John. You wrote 10 апреля 2013 г., 0:08:09: >> .. did we really break shared interrupt handling on ISA? JB> When did it ever work? sio has special hacks to make it work, and in my experience, it worked around FreeBSD 4 (or even 3? I've started with 2.2.2, but it was later), when I had

Re: Intel D2500CC motherboard and strange RS232/UART behavior

2013-04-09 Thread John Baldwin
On Sunday, April 07, 2013 5:46:34 pm Adrian Chadd wrote: > On 7 April 2013 13:15, Poul-Henning Kamp wrote: > > In message <1428566376.20130407234...@serebryakov.spb.ru>, Lev Serebryakov writ > > es: > > > >>It doesn't look so. And uart1 and uart3 doesn't have interrupt > >>according to `v

Re: Intel D2500CC motherboard and strange RS232/UART behavior

2013-04-08 Thread Lev Serebryakov
Hello, Poul-Henning. You wrote 8 апреля 2013 г., 0:15:01: >>It doesn't look so. And uart1 and uart3 doesn't have interrupt >>according to `vmstat -i' (but share irq4 according to boot messages). PHK> Ohh, there you go... I'll try to turn off uart2 and uart3 in BIOS and give different IRQ

Re: Intel D2500CC motherboard and strange RS232/UART behavior

2013-04-07 Thread Adrian Chadd
On 7 April 2013 13:15, Poul-Henning Kamp wrote: > In message <1428566376.20130407234...@serebryakov.spb.ru>, Lev Serebryakov > writ > es: > >>It doesn't look so. And uart1 and uart3 doesn't have interrupt >>according to `vmstat -i' (but share irq4 according to boot messages). > > Ohh, the

Re: Intel D2500CC motherboard and strange RS232/UART behavior

2013-04-07 Thread Poul-Henning Kamp
In message <1428566376.20130407234...@serebryakov.spb.ru>, Lev Serebryakov writ es: >It doesn't look so. And uart1 and uart3 doesn't have interrupt >according to `vmstat -i' (but share irq4 according to boot messages). Ohh, there you go... Interrupt sharing on ISA requires special magic.

Re: Intel D2500CC motherboard and strange RS232/UART behavior

2013-04-07 Thread Lev Serebryakov
Hello, Poul-Henning. You wrote 7 апреля 2013 г., 23:31:50: >> It looks like it picks up IRQ hint from ACPI, and, according to >> dmesg, it does so correctly, but after that it doesn't work :( PHK> So does the interrupt actually arrive ? vmstat -i interrupt total

Re: Intel D2500CC motherboard and strange RS232/UART behavior

2013-04-07 Thread Poul-Henning Kamp
In message <962552272.20130407232...@serebryakov.spb.ru>, Lev Serebryakov write s: > It looks like it picks up IRQ hint from ACPI, and, according to > dmesg, it does so correctly, but after that it doesn't work :( So does the interrupt actually arrive ? If not: Interrupt routing issue ?

Re: Intel D2500CC motherboard and strange RS232/UART behavior

2013-04-07 Thread Lev Serebryakov
Hello, Adrian. You wrote 7 апреля 2013 г., 21:42:32: >> I think if you configure no irq at all, it will automatically >> go to polled mode. >> Not sure if uart(4) can actually do that, sio(4) could. AC> Yup, it does. No IRQ hint == polled mode. It'll say as much in the dmesg. It looks like it

Re: Intel D2500CC motherboard and strange RS232/UART behavior

2013-04-07 Thread Adrian Chadd
On 7 April 2013 10:35, Poul-Henning Kamp wrote: > > I think if you configure no irq at all, it will automatically > go to polled mode. > > Not sure if uart(4) can actually do that, sio(4) could. Yup, it does. No IRQ hint == polled mode. It'll say as much in the dmesg. Adrian __

Re: Intel D2500CC motherboard and strange RS232/UART behavior

2013-04-07 Thread Poul-Henning Kamp
I think if you configure no irq at all, it will automatically go to polled mode. Not sure if uart(4) can actually do that, sio(4) could. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@freebsd.org | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Neve

Re: Intel D2500CC motherboard and strange RS232/UART behavior

2013-04-07 Thread Lev Serebryakov
Hello, Poul-Henning. You wrote 7 апреля 2013 г., 19:36:09: >> I've built new router based on Intel D2500CC motherboard. PHK> I have similar problems, and have not found any solution, but havn't PHK> tried particularly hard either. PHK> Try running the uarts in polled mode, to find out if it's an

Re: Intel D2500CC motherboard and strange RS232/UART behavior

2013-04-07 Thread Poul-Henning Kamp
In message <229402991.20130407172...@serebryakov.spb.ru>, Lev Serebryakov write s: > I've built new router based on Intel D2500CC motherboard. I have similar problems, and have not found any solution, but havn't tried particularly hard either. Try running the uarts in polled mode, to find out i

Intel D2500CC motherboard and strange RS232/UART behavior

2013-04-07 Thread Lev Serebryakov
Hello, Freebsd-current. I've built new router based on Intel D2500CC motherboard. It contains four (!) UARTs. Two of them are D-SUB9 on back panel, two others are only headers. This motherboard contains PS/2 keyboard and VGA too. I'm trying to get com console on one of D-SUBs. All UART