Re: umcs (4-Port-USB-serial) triggering way too much ehci IRQs

2013-09-17 Thread Hans Petter Selasky
Let me know when this issue settles, what changes you want in the umcs kernel driver. --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd

Re: umcs (4-Port-USB-serial) triggering way too much ehci IRQs

2013-09-17 Thread John-Mark Gurney
Lev Serebryakov wrote this message on Tue, Sep 17, 2013 at 23:08 +0400: > Hello, Harald. > You wrote 17 2013 ??., 21:43:17: > > HS> Is that worth a try? > HS> > http://www.asix.com.tw/FrootAttach/driver/MCS7840_7820_FreeBSD_driver_v1.1.zip > Nope. I've started from this driver,

Re: umcs (4-Port-USB-serial) triggering way too much ehci IRQs

2013-09-17 Thread Harald Schmalzbauer
Bezüglich Ian Lepore's Nachricht vom 17.09.2013 18:16 (localtime): > On Tue, 2013-09-17 at 17:38 +0200, Harald Schmalzbauer wrote: >> ... >>> Try this patch and see what happens: >>> >>> == >>> --- umcs.c(revision 255492) >>> +++

Re: umcs (4-Port-USB-serial) triggering way too much ehci IRQs

2013-09-17 Thread Ian Lepore
On Tue, 2013-09-17 at 23:08 +0400, Lev Serebryakov wrote: > Hello, Harald. > You wrote 17 сентября 2013 г., 21:43:17: > > HS> Is that worth a try? > HS> > http://www.asix.com.tw/FrootAttach/driver/MCS7840_7820_FreeBSD_driver_v1.1.zip > Nope. I've started from this driver, and it even doesn't su

Re: umcs (4-Port-USB-serial) triggering way too much ehci IRQs

2013-09-17 Thread Lev Serebryakov
Hello, Harald. You wrote 17 сентября 2013 г., 21:43:17: HS> Is that worth a try? HS> http://www.asix.com.tw/FrootAttach/driver/MCS7840_7820_FreeBSD_driver_v1.1.zip Nope. I've started from this driver, and it even doesn't support BREAK signal (it is was first reason why I start to write new one

Re: umcs (4-Port-USB-serial) triggering way too much ehci IRQs

2013-09-17 Thread Lev Serebryakov
Hello, Hans. You wrote 17 сентября 2013 г., 13:24:26: HPS> Try this patch and see what happens: It could throttle interrupts, but it doesn't explain, why device spams with interrupts when all ports are closed and all UART interrupts are disabled! HPS> BTW: I see that the umcs driver shouldn't do

Re: umcs (4-Port-USB-serial) triggering way too much ehci IRQs

2013-09-17 Thread Lev Serebryakov
Hello, Hans. You wrote 17 сентября 2013 г., 20:04:58: HPS> I think the adapters use very small buffers. You can try adding HPS> ".interval = 4" to the other USB configs, above the one you patched, and HPS> see what happens. I cannot tell if you will loose characters or not. Datasheet promise 2x5

Re: umcs (4-Port-USB-serial) triggering way too much ehci IRQs

2013-09-17 Thread Ian Lepore
On Tue, 2013-09-17 at 19:32 +0200, Harald Schmalzbauer wrote: > Bezüglich Ian Lepore's Nachricht vom 17.09.2013 18:16 (localtime): > > On Tue, 2013-09-17 at 17:38 +0200, Harald Schmalzbauer wrote: > >> ... > >>> Try this patch and see what happens: > >>> > >>> ==

Re: umcs (4-Port-USB-serial) triggering way too much ehci IRQs

2013-09-17 Thread Harald Schmalzbauer
Bezüglich Lev Serebryakov's Nachricht vom 16.09.2013 23:37 (localtime): > ... > > To be honest, I didn't know much about USB at all, I wrote this driver > without complete understanding USB magic and use USB only as transport to > access MCS7840 registers... > > Maybe, local USB Guru Hans Pette

Re: umcs (4-Port-USB-serial) triggering way too much ehci IRQs

2013-09-17 Thread Ian Lepore
On Tue, 2013-09-17 at 17:38 +0200, Harald Schmalzbauer wrote: > Bezüglich Hans Petter Selasky's Nachricht vom 17.09.2013 11:24 > (localtime): > > On 09/17/13 11:06, Harald Schmalzbauer wrote: > >> ... > >> Shall we switch to non-list-comm? > > > > Hi, > > > > That's OK. > > > >> Hmm, in my case, th

Re: umcs (4-Port-USB-serial) triggering way too much ehci IRQs

2013-09-17 Thread Harald Schmalzbauer
Bezüglich Hans Petter Selasky's Nachricht vom 17.09.2013 11:24 (localtime): > On 09/17/13 11:06, Harald Schmalzbauer wrote: >> ... >> Shall we switch to non-list-comm? > > Hi, > > That's OK. > >> Hmm, in my case, this 4-port-serial-USB-hub will be used as console >> concentrator. So most time it's

Re: umcs (4-Port-USB-serial) triggering way too much ehci IRQs

2013-09-17 Thread Hans Petter Selasky
On 09/17/13 17:38, Harald Schmalzbauer wrote: Bezüglich Hans Petter Selasky's Nachricht vom 17.09.2013 11:24 (localtime): On 09/17/13 11:06, Harald Schmalzbauer wrote: ... Shall we switch to non-list-comm? Hi, That's OK. Hmm, in my case, this 4-port-serial-USB-hub will be used as console

Re: umcs (4-Port-USB-serial) triggering way too much ehci IRQs

2013-09-17 Thread Hans Petter Selasky
On 09/17/13 11:06, Harald Schmalzbauer wrote: Bezüglich Hans Petter Selasky's Nachricht vom 17.09.2013 10:57 (localtime): On 09/17/13 10:47, Lev Serebryakov wrote: Hello, Harald. You wrote 17 сентября 2013 г., 12:46:25: HS> The Y is the device addr @ bus #X. Oh :) HS> Same posted some s

Re: umcs (4-Port-USB-serial) triggering way too much ehci IRQs

2013-09-17 Thread Harald Schmalzbauer
Bezüglich Hans Petter Selasky's Nachricht vom 17.09.2013 10:57 (localtime): > On 09/17/13 10:47, Lev Serebryakov wrote: >> Hello, Harald. >> You wrote 17 сентября 2013 г., 12:46:25: >> >> HS> The Y is the device addr @ bus #X. >>Oh :) >> >> HS> Same posted some seconds ago :-) >>Yep, exact

Re: umcs (4-Port-USB-serial) triggering way too much ehci IRQs

2013-09-17 Thread Hans Petter Selasky
On 09/17/13 10:47, Lev Serebryakov wrote: Hello, Harald. You wrote 17 сентября 2013 г., 12:46:25: HS> The Y is the device addr @ bus #X. Oh :) HS> Same posted some seconds ago :-) Yep, exactly the same pattern. Hi, Could you show the configuration descriptor for your device? usbconf

Re: umcs (4-Port-USB-serial) triggering way too much ehci IRQs

2013-09-17 Thread Lev Serebryakov
Hello, Harald. You wrote 17 сентября 2013 г., 12:46:25: HS> The Y is the device addr @ bus #X. Oh :) HS> Same posted some seconds ago :-) Yep, exactly the same pattern. -- // Black Lion AKA Lev Serebryakov ___ freebsd-usb@freebsd.org mailing lis

Re: umcs (4-Port-USB-serial) triggering way too much ehci IRQs

2013-09-17 Thread Harald Schmalzbauer
Bezüglich Lev Serebryakov's Nachricht vom 17.09.2013 10:44 (localtime): > Hello, Hans. > You wrote 17 сентября 2013 г., 9:14:17: > > HPS> Check using usbdump -i usbusX -f Y -s 65536 -vvv > HPS> what is going on. Maybe some USB transfers are returning zero length > data from the chip. > Ok, I got

Re: umcs (4-Port-USB-serial) triggering way too much ehci IRQs

2013-09-17 Thread Lev Serebryakov
Hello, Hans. You wrote 17 сентября 2013 г., 9:14:17: HPS> Check using usbdump -i usbusX -f Y -s 65536 -vvv HPS> what is going on. Maybe some USB transfers are returning zero length data from the chip. Ok, I got 500 irq/s here from my device, so, I have same problem, as topicstarter. My usbdump

Re: umcs (4-Port-USB-serial) triggering way too much ehci IRQs

2013-09-17 Thread Harald Schmalzbauer
Bezüglich Hans Petter Selasky's Nachricht vom 17.09.2013 07:14 (localtime): > Hi, > > Check using usbdump -i usbusX -f Y -s 65536 -vvv > > what is going on. Maybe some USB transfers are returning zero length data > from the chip. Thanks for your help! I can't really read the numbers, but these 4

Re: umcs (4-Port-USB-serial) triggering way too much ehci IRQs

2013-09-17 Thread Lev Serebryakov
Hello, Hans. You wrote 17 сентября 2013 г., 9:14:17: HPS> Check using usbdump -i usbusX -f Y -s 65536 -vvv HPS> what is going on. Maybe some USB transfers are returning zero length data from the chip. After closing port I disable all interrupts in chip, I've checked this (it was my first thoug

RE: umcs (4-Port-USB-serial) triggering way too much ehci IRQs

2013-09-16 Thread Hans Petter Selasky
> To: Harald Schmalzbauer <mailto:h.schmalzba...@omnilan.de> > > Cc: FreeBSD Stable <mailto:freebsd-sta...@freebsd.org> >; freebsd-usb@freebsd.org > <mailto:freebsd-usb@freebsd.org> > Subject: Re: umcs (4-Port-USB-serial) triggering way too much ehci IRQs > > He

Re: umcs (4-Port-USB-serial) triggering way too much ehci IRQs

2013-09-16 Thread Lev Serebryakov
Hello, Harald. You wrote 16 сентября 2013 г., 20:11:38: HS> I have some of these 4-Port-Serial-USB-Hubs: HS> http://www.delock.com/produkte/F_673_USB---Seriell_87414/merkmale.html HS> They have the MosChip MCS7840 inside, wich also understands RS485/422 HS> besides RS232. HS> FreeBSDs umcs(4) sup