From owner-freebsd-usb@FreeBSD.ORG Tue Dec 18 20:37:49 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0BF72F0B for ; Tue, 18 Dec 2012 20:37:49 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ob0-f178.google.com (mail-ob0-f178.google.com [209.85.214.178]) by mx1.freebsd.org (Postfix) with ESMTP id B583C8FC12 for ; Tue, 18 Dec 2012 20:37:48 +0000 (UTC) Received: by mail-ob0-f178.google.com with SMTP id eh20so1130194obb.23 for ; Tue, 18 Dec 2012 12:37:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to:x-mailer:x-gm-message-state; bh=d8JiGBXi83yepZQ0AxYKBf6+kTWDVimdqpbqgK+x39M=; b=SqVsh6Ax/fpAgf68P9VkeWOwb/z6/qtuhhoHW5eHqGhfn2VaHcfxqrXu3VhKMKdXKa TuysZepEv3OX2e2TYA8YgxqvOiC/+2cRZdrVTjBLPidLhR/HBlskwybRCkGy2cF1GP4D 4GYtythVGdflSCb8p5+nb/BIu8m3qqhWaHdd4PBZFFDkZAAkyEalTREXroTc5TNiNdnC QMnbrrCmQnZlArE93+ECiVf/Kq6xHa9ujaFjl+mMHFIroyQr8YGL25qo06XcvqToM+wz U33Ldprs+YC8+DTd952meHj0X+q/SDYnadws2tJEwPkS05fFoly2LoIXeLwW8DLS6WH2 nMeQ== X-Received: by 10.60.32.67 with SMTP id g3mr2754504oei.77.1355862645993; Tue, 18 Dec 2012 12:30:45 -0800 (PST) Received: from monkey-bot.int.fusionio.com ([209.117.142.2]) by mx.google.com with ESMTPS id a9sm1892367oee.10.2012.12.18.12.30.43 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 18 Dec 2012 12:30:44 -0800 (PST) Sender: Warner Losh Subject: Re: EHCI on armv6 with Write-Back caches Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <201212180922.22217.hselasky@c2i.net> Date: Tue, 18 Dec 2012 13:30:42 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <7005E47E-3AF3-4E8E-9AE2-795B7A02D3BB@bsdimp.com> References: <20121218204931.5322922d@fubar.geek.nz> <201212180922.22217.hselasky@c2i.net> To: Hans Petter Selasky X-Mailer: Apple Mail (2.1085) X-Gm-Message-State: ALoCoQmEch9UK7u6Ejv7EzLXkqUj6W6XuveCHOAHVNdUj+Aw3+ltCCTcCYtI3K9Elb9Oafu7c65k Cc: Oleksandr Tymoshenko , Andrew Turner , freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Dec 2012 20:37:49 -0000 On Dec 18, 2012, at 1:22 AM, Hans Petter Selasky wrote: > On Tuesday 18 December 2012 08:49:31 Andrew Turner wrote: >> Hello, >>=20 >> Oleksandr and myself have been looking into why when we enable the >> write-back cache on the PandaBoard there are kernel panics with USB. = We >> have tracked it down to an issue appending the ehci_qh_t to the list = at >> the end of ehci_setup_standard_chain(). >>=20 >> I have a patch at [1] that allows me to run sha256 on a 40MB file = over >> NSF using the built in smsc USB ethernet chip. The problem is I have >> had to place a call to DELAY before EHCI_APPEND_QH. This is obviously >> not the correct solution. >>=20 >> Is anyone able to help me narrow down what is missing? It appears to = be >> a missing cache invalidate or flush somewhere but I haven't been able >> to track down what cache function the DELAY is working around. >>=20 >> Andrew >>=20 >> [1] http://fubar.geek.nz/files/freebsd/ehci_4.diff >=20 > Hi, >=20 > Can you dump the DMA tag belonging to the QH via and check wether it = is mapped=20 > coherent or not. Thes QH- and TD- structures should not be cache = mapped. Else=20 > cache has not been disabled on those pages. busdma doesn't work that way. The coherent flag is just a hint.... Warner > qh->page_cache->tag >=20 > --HPS > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org"