Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Sep 2013 07:14:17 +0200
From:      =?utf-8?Q?Hans_Petter_Selasky?= <hans.petter.selasky@bitfrost.no>
To:        =?utf-8?Q?lev=40FreeBSD=2Eorg?= <lev@FreeBSD.org>,  =?utf-8?Q?Harald_Schmalzbauer?= <h.schmalzbauer@omnilan.de>
Cc:        =?utf-8?Q?FreeBSD_Stable?= <freebsd-stable@FreeBSD.org>, =?utf-8?Q?freebsd-usb=40freebsd=2Eorg?= <freebsd-usb@freebsd.org>
Subject:   RE: umcs (4-Port-USB-serial) triggering way too much ehci IRQs
Message-ID:  <zarafa.5237e529.2bc6.08fde6eb34c27a87@mail.lockless.no>
In-Reply-To: <1314959000.20130917013707@serebryakov.spb.ru>
References:  <52372DBA.6020703@omnilan.de>

next in thread | previous in thread | raw e-mail | index | archive | help

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.



--HPS



 

 

-----Original message-----

> From:Lev Serebryakov <lev@FreeBSD.org <mailto:lev@FreeBSD.org> >

> Sent: Monday 16th September 2013 23:38

> To: Harald Schmalzbauer <h.schmalzbauer@omnilan.de <mailto:h.schmalzbauer@omnilan.de> >

> Cc: FreeBSD Stable <freebsd-stable@FreeBSD.org <mailto:freebsd-stable@FreeBSD.org> >; freebsd-usb@freebsd.org <mailto:freebsd-usb@freebsd.org> 

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

> 

> 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 <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: <vendor 0x9710> at usbus3

> umcs78400: <vendor 0x9710 product 0x7840, rev 2.00/0.01, addr 2> 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:

> 

> -- 

> // Black Lion AKA Lev Serebryakov <lev@FreeBSD.org <mailto:lev@FreeBSD.org> >

> 

> _______________________________________________

> freebsd-usb@freebsd.org <mailto:freebsd-usb@freebsd.org>  mailing list

> http://lists.freebsd.org/mailman/listinfo/freebsd-usb <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>; 

> To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org <mailto:freebsd-usb-unsubscribe@freebsd.org> "




From owner-freebsd-stable@FreeBSD.ORG  Tue Sep 17 07:45:15 2013
Return-Path: <owner-freebsd-stable@FreeBSD.ORG>
Delivered-To: freebsd-stable@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 470C5E82;
 Tue, 17 Sep 2013 07:45:15 +0000 (UTC)
 (envelope-from marko.cupac@mimar.rs)
Received: from www.mimar.rs (www.mimar.rs [193.53.106.101])
 by mx1.freebsd.org (Postfix) with ESMTP id 04AF32205;
 Tue, 17 Sep 2013 07:45:14 +0000 (UTC)
Received: from kaa.mimar.rs (178-221-85-142.dynamic.isp.telekom.rs
 [178.221.85.142])
 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: marko.cupac@mimar.rs)
 by www.mimar.rs (Postfix) with ESMTPSA id 4D464B9030;
 Tue, 17 Sep 2013 09:45:08 +0200 (CEST)
Date: Tue, 17 Sep 2013 09:45:07 +0200
From: Marko =?UTF-8?B?Q3VwYcSH?= <marko.cupac@mimar.rs>
To: Adrian Chadd <adrian@freebsd.org>
Subject: Re: reproducible dump possibly related to ath and virtualbox
Message-Id: <20130917094507.bab50639749da1f173762588@mimar.rs>
In-Reply-To: <CAJ-Vmo=uKJmC+Wza5zer1q79Xh6HzZex6=nQYHiruUDMBw-hHg@mail.gmail.com>
References: <20130915144827.39a207b0c3417aad75a18f79@mimar.rs>
 <CAJ-Vmo=uKJmC+Wza5zer1q79Xh6HzZex6=nQYHiruUDMBw-hHg@mail.gmail.com>
Organization: Mimar
X-Mailer: Sylpheed 3.3.0 (GTK+ 2.24.19; amd64-portbld-freebsd9.2)
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Cc: FreeBSD Stable Mailing List <freebsd-stable@freebsd.org>
X-BeenThere: freebsd-stable@freebsd.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Production branch of FreeBSD source code <freebsd-stable.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-stable>,
 <mailto:freebsd-stable-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-stable>;
List-Post: <mailto:freebsd-stable@freebsd.org>
List-Help: <mailto:freebsd-stable-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-stable>,
 <mailto:freebsd-stable-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Sep 2013 07:45:15 -0000

On Sun, 15 Sep 2013 23:34:45 -0700
Adrian Chadd <adrian@freebsd.org> wrote:

> Hi,
>
> Please try -HEAD or -10. I fixed a number o AR9285 bugs there.

Uh, I did this a few times before, and indeed it fixed some problems with
wifi. Unfortunately, generally it broke more things than it fixed
so I always ended up with clean re-install.

Hope those bug fixes will be backported to 9-STABLE.
--
Marko Cupać



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?zarafa.5237e529.2bc6.08fde6eb34c27a87>