From owner-freebsd-usb@FreeBSD.ORG Tue Sep 17 05:14:04 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 8AB2EF88; Tue, 17 Sep 2013 05:14:04 +0000 (UTC) (envelope-from hans.petter.selasky@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id F28272AAE; Tue, 17 Sep 2013 05:14:03 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id A1B417A143; Tue, 17 Sep 2013 07:14:01 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id 41E218EDC33; Tue, 17 Sep 2013 07:14:19 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id G2+ULZsi7f0o; Tue, 17 Sep 2013 07:14:18 +0200 (CEST) Received: from mail.lockless.no (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id DE9668EDFF3; Tue, 17 Sep 2013 07:14:17 +0200 (CEST) Subject: RE: umcs (4-Port-USB-serial) triggering way too much ehci IRQs From: =?utf-8?Q?Hans_Petter_Selasky?= To: =?utf-8?Q?lev=40FreeBSD=2Eorg?= , =?utf-8?Q?Harald_Schmalzbauer?= Date: Tue, 17 Sep 2013 07:14:17 +0200 Mime-Version: 1.0 In-Reply-To: <1314959000.20130917013707@serebryakov.spb.ru> References: <52372DBA.6020703@omnilan.de> X-Priority: 3 (Normal) X-Mailer: Zarafa 7.1.4-41394 Message-Id: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: =?utf-8?Q?FreeBSD_Stable?= , =?utf-8?Q?freebsd-usb=40freebsd=2Eorg?= X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Sep 2013 05:14:04 -0000 Hi,=0D=0A=0D=0ACheck using usbdump -i usbusX -f Y -s 65536 -vvv=0D=0A=0D=0A= what is going on. Maybe some USB transfers are returning zero length data= from the chip.=0D=0A=0D=0A--HPS=0D=0A=0D=0A=20=0D=0A=20=0D=0A-----Origin= al message-----=0D=0A> From:Lev Serebryakov >=0D=0A> Sent: Monday 16th September 2013 23:38=0D=0A> To: H= arald Schmalzbauer >=0D=0A> Cc: FreeBSD Stable >; freebsd-usb@freebsd.org =20=0D=0A> Subject: Re: umcs (4-Port-USB-serial) triggering = way too much ehci IRQs=0D=0A>=20=0D=0A> Hello, Harald.=0D=0A> You wrote 1= 6 =D1=81=D0=B5=D0=BD=D1=82=D1=8F=D0=B1=D1=80=D1=8F 2013 =D0=B3., 20:11:38= :=0D=0A>=20=0D=0A> HS> I have some of these 4-Port-Serial-USB-Hubs:=0D=0A= > HS> http://www.delock.com/produkte/F_673_USB---Seriell_87414/merkmale.h= tml =20=0D=0A> HS> They have the MosChip MCS7840 inside, wich also underst= ands RS485/422=0D=0A> HS> besides RS232.=0D=0A>=20=0D=0A> HS> FreeBSDs um= cs(4) supports the RS232 mode with standard baudrates and=0D=0A> HS> work= s with that device.=0D=0A>=20=0D=0A> HS> Unfortunately, as soon as I open= any of the 4 cuaU0.x ports, there are=0D=0A> HS> 500irq/s from ehci.=0D=0A= > I have only one 2-port noname adapter with this chip, which I used to= =0D=0A> write this driver. And it works fine (at least right now):=0D=0A= >=20=0D=0A> usbus0: 12Mbps Full Speed USB v1.0=0D=0A> usbus1: 12Mbps Full= Speed USB v1.0=0D=0A> usbus2: 12Mbps Full Speed USB v1.0=0D=0A> usbus3: = 480Mbps High Speed USB v2.0=0D=0A> ....=0D=0A> ugen3.2: a= t usbus3=0D=0A> umcs78400: on usbus3=0D=0A> umcs78400: Chip mcs7840, found 2 active ports=0D= =0A> umcs78400: On-die confguration: RST: active low, HRD: yes, PLL: avai= l, POR: avail, Ports: 4, EEPROM write disabled, IrDA is not available=0D=0A= >=20=0D=0A> % vmstat -i=0D=0A> interrupt total = rate=0D=0A> irq1: atkbd0 799 0=0D=0A= > irq18: uhci2 ehci0+ 1210 0=0D=0A> irq20: hpet0= 529850590 647=0D=0A> irq21: uhci1 = 2861007 3=0D=0A> irq23: uhci3 ehci1 2181202= 2=0D=0A> irq256: em0 1139745179 1393=0D= =0A> irq257: ahci0 76093174 93=0D=0A> Total = 1750731961 2140=0D=0A>=20=0D=0A> I have neve= r seen other devices on this chip and I have never had chance=0D=0A> to = try it with 4-port version of device...=0D=0A>=20=0D=0A> To be honest, = I didn't know much about USB at all, I wrote this driver=0D=0A> without c= omplete understanding USB magic and use USB only as transport to=0D=0A> a= ccess MCS7840 registers...=0D=0A>=20=0D=0A> Maybe, local USB Guru Hans P= etter Selasky could give cime advicec how to=0D=0A> debug this situation= =2E I've added freebsd-usb@ to CC:=0D=0A>=20=0D=0A> --=20=0D=0A> // Black= Lion AKA Lev Serebryakov >=0D=0A= >=20=0D=0A> _______________________________________________=0D=0A> freebs= d-usb@freebsd.org mailing list=0D=0A> h= ttp://lists.freebsd.org/mailman/listinfo/freebsd-usb =20=0D=0A> To unsubscribe, send any ma= il to "freebsd-usb-unsubscribe@freebsd.org "=0D=0A=0D=0A From owner-freebsd-usb@FreeBSD.ORG Tue Sep 17 06:03:17 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 588E08AE for ; Tue, 17 Sep 2013 06:03:17 +0000 (UTC) (envelope-from hps@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id 159142CF5 for ; Tue, 17 Sep 2013 06:03:16 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id 2ADC97A14B; Tue, 17 Sep 2013 08:03:16 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id BE18B8EEB4F; Tue, 17 Sep 2013 08:03:33 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zMTW8gEHuW4g; Tue, 17 Sep 2013 08:03:32 +0200 (CEST) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id B784A8EEB44; Tue, 17 Sep 2013 08:03:32 +0200 (CEST) Message-ID: <5237F0E6.40604@bitfrost.no> Date: Tue, 17 Sep 2013 08:04:22 +0200 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130522 Thunderbird/17.0.6 MIME-Version: 1.0 To: Antonis Anastasiadis Subject: Re: usb/181159: Problem attaching USB device References: <201308121250.r7CCo1RY007285@freefall.freebsd.org> <5208E5DA.90202@bitfrost.no> <5208EB94.1050708@bitfrost.no> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Sep 2013 06:03:17 -0000 Hi, Is there a possibility for you to try a 9-stable kernel as of today. Can you also ask the guys to connect another USB device, like an empty memory stick and see if that is detected. Thank you! --HPS