From owner-cvs-src@FreeBSD.ORG Thu Mar 20 16:19:26 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4E88F1065679; Thu, 20 Mar 2008 16:19:26 +0000 (UTC) (envelope-from sam@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 491288FC13; Thu, 20 Mar 2008 16:19:26 +0000 (UTC) (envelope-from sam@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m2KGJQx9033986; Thu, 20 Mar 2008 16:19:26 GMT (envelope-from sam@repoman.freebsd.org) Received: (from sam@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m2KGJQr7033985; Thu, 20 Mar 2008 16:19:26 GMT (envelope-from sam) Message-Id: <200803201619.m2KGJQr7033985@repoman.freebsd.org> From: Sam Leffler Date: Thu, 20 Mar 2008 16:19:26 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/dev/usb ehci.c ohci.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Mar 2008 16:19:26 -0000 sam 2008-03-20 16:19:25 UTC FreeBSD src repository Modified files: sys/dev/usb ehci.c ohci.c Log: Workaround design botch in usb: blindly mixing bus_dma with PIO does not work on architectures with a write-back cache as the PIO writes end up in the cache which the sync(BUS_DMASYNC_POSTREAD) in usb_transfer_complete then discards; compensate in the xfer methods that do PIO by pushing the writes out of the cache before usb_transfer_complete is called. This fixes USB on xscale and likely other places. Sponsored by: hobnob Reviewed by: cognet, imp MFC after: 1 month Revision Changes Path 1.62 +16 -0 src/sys/dev/usb/ehci.c 1.171 +16 -0 src/sys/dev/usb/ohci.c