From owner-freebsd-bugs@FreeBSD.ORG Sun Aug 15 09:30:22 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3031F16A4CE for ; Sun, 15 Aug 2004 09:30:22 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF47A43D2D for ; Sun, 15 Aug 2004 09:30:21 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i7F9UKIm011927 for ; Sun, 15 Aug 2004 09:30:20 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i7F9UK9q011913; Sun, 15 Aug 2004 09:30:20 GMT (envelope-from gnats) Resent-Date: Sun, 15 Aug 2004 09:30:20 GMT Resent-Message-Id: <200408150930.i7F9UK9q011913@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Andrew Thompson Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D787E16A4CE for ; Sun, 15 Aug 2004 09:30:07 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id CDC9543D39 for ; Sun, 15 Aug 2004 09:30:07 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i7F9U7w5040138 for ; Sun, 15 Aug 2004 09:30:07 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.11/8.12.11/Submit) id i7F9U7NU040128; Sun, 15 Aug 2004 09:30:07 GMT (envelope-from nobody) Message-Id: <200408150930.i7F9U7NU040128@www.freebsd.org> Date: Sun, 15 Aug 2004 09:30:07 GMT From: Andrew Thompson To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: kern/70474: if_axe USB interface stops responding X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Aug 2004 09:30:22 -0000 >Number: 70474 >Category: kern >Synopsis: if_axe USB interface stops responding >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Aug 15 09:30:20 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Andrew Thompson >Release: 5.2-CURRENT >Organization: >Environment: >Description: I have a Netgear FA120 (if_axe) which is causing me greif. After doing moderate network traffic it will stop responding with oodles of "axe0: read PHY failed" on the console. A cvsup triggers it quite reliably. On further analysis I found that it will not send any ethernet frame where the size % 64 == 0 For instance all of the following will timeout ping -s 22 ping -s 86 ping -s 150 etc... Comparing to the other USB network drivers, I added USBD_FORCE_SHORT_XFER to the transfer flags and it nas now been working reliably for months. I have not seen any throughput reduction as a result. >How-To-Repeat: >Fix: --- sys/dev/usb/if_axe.c Thu Jun 10 02:34:03 2004 +++ sys/dev/usb/if_axe.c Thu Jul 1 20:31:57 2004 @@ -808,7 +808,8 @@ c->axe_mbuf = m; usbd_setup_xfer(c->axe_xfer, sc->axe_ep[AXE_ENDPT_TX], - c, c->axe_buf, m->m_pkthdr.len, 0, 10000, axe_txeof); + c, c->axe_buf, m->m_pkthdr.len, USBD_FORCE_SHORT_XFER, + 10000, axe_txeof); /* Transmit */ err = usbd_transfer(c->axe_xfer); >Release-Note: >Audit-Trail: >Unformatted: