From owner-svn-src-stable-8@FreeBSD.ORG Tue Feb 4 08:52:10 2014 Return-Path: Delivered-To: svn-src-stable-8@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 ESMTPS id 09BED93B; Tue, 4 Feb 2014 08:52:10 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CF69A12F0; Tue, 4 Feb 2014 08:52:09 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s148q996062043; Tue, 4 Feb 2014 08:52:09 GMT (envelope-from hselasky@svn.freebsd.org) Received: (from hselasky@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s148q9ox062038; Tue, 4 Feb 2014 08:52:09 GMT (envelope-from hselasky@svn.freebsd.org) Message-Id: <201402040852.s148q9ox062038@svn.freebsd.org> From: Hans Petter Selasky Date: Tue, 4 Feb 2014 08:52:09 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r261470 - in stable/8/sys/dev/usb: . controller X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable-8@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for only the 8-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Feb 2014 08:52:10 -0000 Author: hselasky Date: Tue Feb 4 08:52:08 2014 New Revision: 261470 URL: http://svnweb.freebsd.org/changeset/base/261470 Log: MFC r261004, r261005 and r261033: Adjust the DMA delay logic so that the DMA delay does not become too small. Modified: stable/8/sys/dev/usb/controller/ehci.c stable/8/sys/dev/usb/usb_freebsd.h stable/8/sys/dev/usb/usb_transfer.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/dev/ (props changed) stable/8/sys/dev/usb/ (props changed) Modified: stable/8/sys/dev/usb/controller/ehci.c ============================================================================== --- stable/8/sys/dev/usb/controller/ehci.c Tue Feb 4 08:49:56 2014 (r261469) +++ stable/8/sys/dev/usb/controller/ehci.c Tue Feb 4 08:52:08 2014 (r261470) @@ -3778,7 +3778,7 @@ ehci_get_dma_delay(struct usb_device *ud * Wait until the hardware has finished any possible use of * the transfer descriptor(s) and QH */ - *pus = (188); /* microseconds */ + *pus = (1125); /* microseconds */ } static void Modified: stable/8/sys/dev/usb/usb_freebsd.h ============================================================================== --- stable/8/sys/dev/usb/usb_freebsd.h Tue Feb 4 08:49:56 2014 (r261469) +++ stable/8/sys/dev/usb/usb_freebsd.h Tue Feb 4 08:52:08 2014 (r261470) @@ -43,6 +43,9 @@ #define USB_HAVE_MSCTEST 1 #define USB_HAVE_PF 1 +/* define zero ticks callout value */ +#define USB_CALLOUT_ZERO_TICKS 1 + #define USB_TD_GET_PROC(td) (td)->td_proc #define USB_PROC_GET_GID(td) (td)->p_pgid Modified: stable/8/sys/dev/usb/usb_transfer.c ============================================================================== --- stable/8/sys/dev/usb/usb_transfer.c Tue Feb 4 08:49:56 2014 (r261469) +++ stable/8/sys/dev/usb/usb_transfer.c Tue Feb 4 08:52:08 2014 (r261470) @@ -2657,7 +2657,7 @@ usbd_transfer_timeout_ms(struct usb_xfer /* defer delay */ usb_callout_reset(&xfer->timeout_handle, - USB_MS_TO_TICKS(ms), cb, xfer); + USB_MS_TO_TICKS(ms) + USB_CALLOUT_ZERO_TICKS, cb, xfer); } /*------------------------------------------------------------------------*