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

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

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

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. 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 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 500

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 l...@freebsd.org ___

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?

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, exactly the same

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

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, this

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

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 doing

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 Petter

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) +++ umcs.c(local)

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 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 2x512

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, 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 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 support

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, and it

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

2013-09-16 Thread Harald Schmalzbauer
Hello, I have some of these 4-Port-Serial-USB-Hubs: http://www.delock.com/produkte/F_673_USB---Seriell_87414/merkmale.html They have the MosChip MCS7840 inside, wich also understands RS485/422 besides RS232. FreeBSDs umcs(4) supports the RS232 mode with standard baudrates and works with that

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)

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

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