From owner-freebsd-usb@FreeBSD.ORG Mon Sep 16 21:37:27 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 F1CC7627; Mon, 16 Sep 2013 21:37:27 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [46.4.40.135]) by mx1.freebsd.org (Postfix) with ESMTP id B16B5208F; Mon, 16 Sep 2013 21:37:27 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:e570:39d1:5fba:531f]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPSA id 29E064AC57; Tue, 17 Sep 2013 01:37:19 +0400 (MSK) Date: Tue, 17 Sep 2013 01:37:07 +0400 From: Lev Serebryakov Organization: FreeBSD Project X-Priority: 3 (Normal) Message-ID: <1314959000.20130917013707@serebryakov.spb.ru> To: Harald Schmalzbauer Subject: Re: umcs (4-Port-USB-serial) triggering way too much ehci IRQs In-Reply-To: <52372DBA.6020703@omnilan.de> References: <52372DBA.6020703@omnilan.de> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Stable , freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: lev@FreeBSD.org List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Sep 2013 21:37:28 -0000 Hello, Harald. You wrote 16 =F1=E5=ED=F2=FF=E1=F0=FF 2013 =E3., 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) supports the RS232 mode with standard baudrates and HS> works with that device. HS> Unfortunately, as soon as I open any of the 4 cuaU0.x ports, there are HS> 500irq/s from ehci. I have only one 2-port noname adapter with this chip, which I used to write this driver. And it works fine (at least right now): usbus0: 12Mbps Full Speed USB v1.0 usbus1: 12Mbps Full Speed USB v1.0 usbus2: 12Mbps Full Speed USB v1.0 usbus3: 480Mbps High Speed USB v2.0 .... ugen3.2: at usbus3 umcs78400: on usbus3 umcs78400: Chip mcs7840, found 2 active ports umcs78400: On-die confguration: RST: active low, HRD: yes, PLL: avail, POR:= avail, Ports: 4, EEPROM write disabled, IrDA is not available % vmstat -i interrupt total rate irq1: atkbd0 799 0 irq18: uhci2 ehci0+ 1210 0 irq20: hpet0 529850590 647 irq21: uhci1 2861007 3 irq23: uhci3 ehci1 2181202 2 irq256: em0 1139745179 1393 irq257: ahci0 76093174 93 Total 1750731961 2140 I have never seen other devices on this chip and I have never had chance to try it with 4-port version of device... 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 Selasky could give cime advicec how to debug this situation. I've added freebsd-usb@ to CC: --=20 // Black Lion AKA Lev Serebryakov