Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Jay.Estabrook@digital.com
To: axp-list@redhat.com
Subject: Re: supporting large memory on alphas today
Date: Sun, 14 Mar 1999 20:37:24 -0500	[thread overview]
Message-ID: <199903150137.UAA03619@alpha1.estabrook.org> (raw)
In-Reply-To: Your message of Sun, 14 Mar 1999 16:47:36 -0500. <199903142147.QAA04261@adder.cs.Virginia.EDU>


>>> 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
-------------------------------------------------------------------------------


  reply	other threads:[~1999-03-16  3:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-14 20:31 supporting large memory on alphas today Greg Lindahl
1999-03-14 20:44 ` Dave Gilbert
1999-03-14 20:56   ` Greg Lindahl
1999-03-14 21:14     ` Jay.Estabrook
1999-03-14 21:47       ` Greg Lindahl
1999-03-15  1:37         ` Jay.Estabrook [this message]
1999-03-16 13:02           ` Greg Lindahl
1999-03-16 18:12             ` Jay.Estabrook
1999-03-16 19:48               ` Greg Lindahl
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox