From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 4546 invoked from network); 16 Mar 1999 03:21:24 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 16 Mar 1999 03:21:24 -0000 Received: from mail13.digital.com (mail13.digital.com [192.208.46.30]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id WAA31226 for ; Mon, 15 Mar 1999 22:12:02 -0500 Received: from segsrv.hlo.dec.com (segsrv.hlo.dec.com [16.128.112.18]) by mail13.digital.com (8.9.2/8.9.2/WV2.0e) with SMTP id WAA24412 for ; Mon, 15 Mar 1999 22:12:02 -0500 (EST) Received: from ogors15.ogo.dec.com by segsrv.hlo.dec.com (5.65v4.0/1.1.10.5/21Aug98-0201PM) id AA32343; Mon, 15 Mar 1999 22:12:00 -0500 Received: from ma.ultranet.com (jestabro@localhost [127.0.0.1]) by alpha1.estabrook.org (8.8.7/8.8.7) with ESMTP id UAA03619 for ; Sun, 14 Mar 1999 20:37:24 -0500 Message-Id: <199903150137.UAA03619@alpha1.estabrook.org> X-Mailer: exmh version 2.0.2 X-Exmh-Isig-Comptype: repl X-Exmh-Isig-Folder: axp-list To: axp-list@redhat.com From: Jay.Estabrook@digital.com Subject: Re: supporting large memory on alphas today In-Reply-To: Your message of Sun, 14 Mar 1999 16:47:36 -0500. <199903142147.QAA04261@adder.cs.Virginia.EDU> Mime-Version: 1.0 Content-Type: text/plain Date: Sun, 14 Mar 1999 20:37:24 -0500 Sender: jestabro@ma.ultranet.com >>> Greg Lindahl said: > > OK, so that needs to get fixed on a driver-by-driver basis. > Fortunately that's pretty easy although tedious: look for kmalloc > calls. That'll catch the obvious ones, anyway... ;-} And once you *do* find one, what'll you do with it? Simply add GFP_DMA to the flags? At the moment, that'd only work for XL and RUFFIAN, as all the other Alphas don't limit ISA DMA addresses to anything less than 32 bits, and that's what that flag is used for (the bounce buffer technique uses an explicitly-tested-for ISA_DMA_THRESHHOLD value, to activate it). It'd be much better, as Matti suggested, to introduce a new GFP_DMA32 flag for this purpose. It would be set for all pages that could be accessed via the direct-mapped PCI DMA window(s), on the Alphas. Unfortunately, it still doesn't handle the case of a request for DMA to a user buffer, when that buffer is not in the reachable range, as Steve has pointed out. Perhaps the bounce buffer technique in the SCSI subsystem could be modified to catch this, but then, that'd only handle the SCSI case... --Jay++ ------------------------------------------------------------------------------- American Non Sequitur Society: we don't make sense, but we do like pizza... Jay A Estabrook Alpha Motherboards - LINUX Project Compaq Computer Corporation (508) 841-3241 or (DTN) 237-3241 334 South Street, Shrewsbury, MA 01545 Jay.Estabrook@digital.com -------------------------------------------------------------------------------