From owner-freebsd-current Thu Apr 4 19:25:59 2002 Delivered-To: freebsd-current@freebsd.org Received: from beppo.feral.com (beppo.feral.com [192.67.166.79]) by hub.freebsd.org (Postfix) with ESMTP id A614137B41C for ; Thu, 4 Apr 2002 19:25:56 -0800 (PST) Received: from mailhost.feral.com (mjacob@mailhost.feral.com [192.67.166.1]) by beppo.feral.com (8.11.3/8.11.3) with ESMTP id g353Pnf83891; Thu, 4 Apr 2002 19:25:49 -0800 (PST) (envelope-from mjacob@feral.com) Date: Thu, 4 Apr 2002 19:25:49 -0800 (PST) From: Matthew Jacob X-Sender: mjacob@beppo Reply-To: mjacob@feral.com To: "Justin T. Gibbs" Cc: Terry Lambert , Andrew Gallatin , freebsd-current@freebsd.org Subject: Re: BUS_SPACE_MAXSIZE & isp driver. In-Reply-To: <200204050321.g353Ku971739@aslan.scsiguy.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 4 Apr 2002, Justin T. Gibbs wrote: > >BUS_SPACE_MAXSIZE seems to be related to the 'largest xfer you will be allowed > >to do at one time'- which is wrong because MAXPHYS is larger. > > If you look at the x86 implementation, BUS_SPACE_MAXSIZE is only > used in the non-GNUC case and is not referenced (I don't think) > by any driver code. Even setting it to MAXPHYS is not truely > correct since at some point we will have to start supporting > transfer mappings that are larger than what can be mapped by > a single buffer. I never realized that there was such controversy > over this value... it was just put in so that I could have something > for the non-GNUC case. Yeah, but, uh, it'll blow up in one's face..... The question I have is what *should* we be using? Should BUS_SPACE_MAXSIZE be bumped up so that any dma allocation we attempt for a platform will fit within it? I mean, it's used in a lot of places, so clearly it must mean something, right? What are the semantics here? -matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message