From owner-freebsd-usb@FreeBSD.ORG Thu Nov 18 20:53:15 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C4881065673 for ; Thu, 18 Nov 2010 20:53:15 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 3366C8FC24 for ; Thu, 18 Nov 2010 20:53:14 +0000 (UTC) Received: by yxh35 with SMTP id 35so2263426yxh.13 for ; Thu, 18 Nov 2010 12:53:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=eNmWiq1uHwGJ1ckr2jTLfYHNvakfS8IA8sVG5muMvTE=; b=UbzzrY7KTph9C5Jw51QFZenDSnUIljHzt7Uz5zewag4BSdA3a7e1afal7nTwRn2JZC 5qbG7DV4cd0ckb9hg26ujOeN/J/WGzCOGkFggL8Vy2BaIykQGd3JczhM3eGQtblWIGHu nUY8NXsGp9pdmAEPFUE05l+6qkX4erqejpsck= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=XwfIDBEY6oceMQ+3HvHnhVJFpcg6tq/XgnUpMOO9i7AyPKlmtAxAl+5FVLflQk4Tj2 /grh6wAjqI7H5fo1fNH8epoYG0nOJbiR1Ytwmnj8wgApFKqXf/Nb7Ify8BQPlv/+hhBw 2/O4YTPCHXtlXXIEkc/SDzzJm45jLKGOKJ6R4= Received: by 10.150.181.20 with SMTP id d20mr1935659ybf.126.1290111869747; Thu, 18 Nov 2010 12:24:29 -0800 (PST) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id p30sm533320ybk.8.2010.11.18.12.24.26 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 18 Nov 2010 12:24:27 -0800 (PST) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Thu, 18 Nov 2010 12:24:26 -0800 From: Pyun YongHyeon Date: Thu, 18 Nov 2010 12:24:26 -0800 To: Nenhum_de_Nos Message-ID: <20101118202426.GB8512@michelle.cdnetworks.com> References: <201011181510.oAIFA7SZ034209@freefall.freebsd.org> <833a33ce5369c53c6db220b79e379092.squirrel@eternamente.info> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <833a33ce5369c53c6db220b79e379092.squirrel@eternamente.info> User-Agent: Mutt/1.4.2.3i Cc: freebsd-usb@freebsd.org Subject: Re: usb/140883: [axe] [usb8] USB gigabit ethernet hangs after short period of traffic X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Nov 2010 20:53:15 -0000 On Thu, Nov 18, 2010 at 04:20:51PM -0200, Nenhum_de_Nos wrote: > > On Thu, November 18, 2010 13:10, Derrick Brashear wrote: > > The following reply was made to PR usb/140883; it has been noted by GNATS. > > > > From: Derrick Brashear > > To: bug-followup@FreeBSD.org, sub.mesa@gmail.com > > Cc: > > Subject: Re: usb/140883: [axe] [usb8] USB gigabit ethernet hangs after > > short > > period of traffic > > Date: Thu, 18 Nov 2010 09:36:50 -0500 > > > > Pyun has provided an updated driver which avoids several issues > > including using a too-large transmit buffer (the chipset claims only > > 8k) but none of the fixes worked until he disabled frame combining for > > transmit. With only a single packet being sent per frame (as was the > > case in FreeBSD 7, apparently) seems to make the issue go away. None > > of the cases I could use to reproduce the issue now happen. > > > > -- > > Derrick > > is this already in 8-stable ? I have a couple of axe(4) based nic's > they're not ok on 8-stable. I've talked to Pyun before, and that time > seemed do solve the issue (with gigabit belkin axe based) but now I can't > get them to work anymore. even fast ethernet linksys axe are just dying > when in a bridge (switched to OpenBSD to have it working). > > how ca I try this to help ? > I uploaded updated if_axe.c/if_axereg.h to the following URL. http://people.freebsd.org/~yongari/axe/if_axe.c http://people.freebsd.org/~yongari/axe/if_axereg.h That files seem to fix axe(4) hang which were seen on AX88772A controller. One of most notable changes are removing combining multiple TX frames in TX path such that this change may result in sub-optimal performance for most axe(4) controllers. However it seems that change makes Derrick's controller work without problems. Generally I prefer driver stability over performance so if this change also fixes other axe(4) stability issues reported so far, I want to check in the change. Thanks.