From owner-freebsd-current@FreeBSD.ORG Sat Nov 22 05:08:31 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from green.bikeshed.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 58B8F16A4CE; Sat, 22 Nov 2003 05:08:31 -0800 (PST) Received: from green.bikeshed.org (green@pcp04368313pcs.nrockv01.md.comcast.net [69.140.209.127]) by green.bikeshed.org (8.12.10/8.12.9) with ESMTP id hAMD8U0o000997; Sat, 22 Nov 2003 08:08:30 -0500 (EST) (envelope-from green@green.bikeshed.org) Received: from localhost (green@localhost)hAMD8TQ4000993; Sat, 22 Nov 2003 08:08:29 -0500 (EST) Message-Id: <200311221308.hAMD8TQ4000993@green.bikeshed.org> X-Mailer: exmh version 2.6.3 04/04/2003 with nmh-1.0.4 To: ticso@cicely.de In-Reply-To: Message from Bernd Walter <20031121202949.GE74178@cicely12.cicely.de> From: "Brian F. Feldman" Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 22 Nov 2003 08:08:29 -0500 Sender: green@green.bikeshed.org cc: Josef Karthauser cc: Ian Dowse cc: current@freebsd.org Subject: Re: kernel panic trying to utilize a da(4)/umass(4) device with ohci(4) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Nov 2003 13:08:31 -0000 Bernd Walter wrote: > On Fri, Nov 21, 2003 at 12:35:50PM -0500, Brian F. Feldman wrote: > > Doug White wrote: > > > The OHCI driver is largely synced with NetBSD so you might see if they > > > have the same bug. > > > > I'll look around for a bootable NetBSD CD. > > NetBSD is different in that point. > > > > This might be the underlying wierdness we were seeing in gtetlow's > > > microdrive with transfers over 8k. The one-page-crossing ohci limitation > > > is really annoying. > > > > Is there a way to add a quirk for max 8k transfers or anything? Even though > > that would be patently lame, I'd like to get some sort of workaround here. > > I don't even know what is supposed to be the problem here -- the fact that > > it's an ohci controller, an ohci+ehci controller, or that it's some specific > > controller issue... > > We never did any page crossing on ohci/ehci bevor the newbus change > took place. Found it!!! Definitely a problem created then... --- ohci.c 12 Nov 2003 01:40:11 -0000 1.138 +++ ohci.c 22 Nov 2003 03:28:42 -0000 @@ -569,7 +569,7 @@ cur->td.td_cbp = htole32(dataphys); cur->nexttd = next; cur->td.td_nexttd = htole32(next->physaddr); - cur->td.td_be = htole32(DMAADDR(dma, curlen - 1)); + cur->td.td_be = htole32(DMAADDR(dma, offset + curlen - 1)); cur->len = curlen; cur->flags = OHCI_ADD_LEN; cur->xfer = xfer; I'm a lot happier now :-) Let's start trying to get this stuff merged in! -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\