* Re: > 1GB on alpha. Patch to 1TB? @ 1999-03-11 20:28 Anders Blicher Petersen 0 siblings, 0 replies; 50+ messages in thread From: Anders Blicher Petersen @ 1999-03-11 20:28 UTC (permalink / raw) To: axp-list -----Original Message----- From: Ron Farrer <uct@fidalgo.net> To: axp-list@redhat.com <axp-list@redhat.com> Date: Thursday, March 11, 1999 7:34 PM Subject: Re: > 1GB on alpha. Patch to 1TB? > >On Thu, 11 Mar 1999, Maurice Hilarius wrote: > >> With regards to your message at 09:39 AM 03-11-99 -0800, Ron Farrer. Where >> you stated: >> >Okay, but would it go beyond 4GB if you could you could use > 256MB >> >DIMMs? i.e. the Viking spec sheet says 1GB due in Q1 1999, so if you >> >*could* use 1GB DIMMs could you get 16GB or is there a hard limit some >> >place?? >> > >> > >> Lots of people *claim* a 512MB or 1Gb "real soon now (tm)" >> We shall see. >> Don't get me wrong, it will happen sooner or later. It will also be expensive. >> You can't just slap on more chips, this needs bigger RAMs, which are at a >> verylimited supply and high cost, at least for now. >> >> Viking and others are telling us "April" > >Okay that's all fine and dandy, but that still doesn't answer my >question... *Can* the 264DP go past 4GB??? I had a look in the DP264 users manual, and I checked the pinout of the DIMM modules. As fare as I can tell, it seems that there's only 12 address pin's [a0:a11]. On top of that there are two bank select pins [ba0:ba1] To my knowledge this means that it is only possible to select [2**(2*12)]*[2**2] or 64Meg. addresses onto the DIMM's. Knowing that the DIMM's data bus width is 8 bytes wide, the maximum addressable bytes will therefore be 512 MB/DIMM. This means that the max useable bytes will be 16 * 512MB or 8GB. Now, pin #54 is on some DIMM modules referred to as A12/CS2 but only as CS2 in the DP264 DIMM pinout. Anyhow if the Tsunami chipset can use this A12, this would mean that 2GB is accessible on a single DIMM and thus a total of 32GB. Well, one can only dream, but I wouldn't count on more that 8GB. Regards, Anders Blicher Petersen > > >Regards, > >Ron Farrer > >-- >To unsubscribe: send e-mail to axp-list-request@redhat.com with >'unsubscribe' as the subject. Do not send it to axp-list@redhat.com > ^ permalink raw reply [flat|nested] 50+ messages in thread
[parent not found: <19990315002405.A2138@alpha.franken.de>]
* Re: > 1GB on alpha. Patch to 1TB? [not found] <19990315002405.A2138@alpha.franken.de> @ 1999-03-15 0:54 ` Jay.Estabrook 0 siblings, 0 replies; 50+ messages in thread From: Jay.Estabrook @ 1999-03-15 0:54 UTC (permalink / raw) To: axp-list; +Cc: debian-alpha, linux-kernel >>> Thomas Bogendoerfer said: > > what I'm wondering for quite a while, why does the DMA window start at 1GB > (2GB with Richard's patch) and not starting from address 0 (so we could make > it up to 4GB). Is this a hardware restriction (couldn't find anything in the > LCA documention) ? It's done this way to avoid using the same addresses as have been allocated to PCI devices needs, as well as some of the unallocated-but-always-present ISA devices, like the VGA aperture at 0xa0000 - 0xbffff. For example, say you have the VGA framebuffer starting at 128Mb (0x08000000) with 4Mb size, and a SCSI device is told to transfer data to memory at 0x08002000. Both the DMA window *and* the framebuffer will try to respond to the addresses, most likely resulting in a hung bus (worst case) or data corruption (best 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 ------------------------------------------------------------------------------- ^ permalink raw reply [flat|nested] 50+ messages in thread
[parent not found: <199903132048.VAA11627@sunsite.mff.cuni.cz>]
* Re: > 1GB on alpha. Patch to 1TB? [not found] <199903132048.VAA11627@sunsite.mff.cuni.cz> @ 1999-03-13 21:17 ` Matthew Jacob 1999-03-14 16:02 ` Jay.Estabrook 1 sibling, 0 replies; 50+ messages in thread From: Matthew Jacob @ 1999-03-13 21:17 UTC (permalink / raw) To: Jakub Jelinek; +Cc: axp-list, debian-alpha, linux-kernel, torvalds On Sat, 13 Mar 1999, Jakub Jelinek wrote: > > There are a growing number of 64 bit PCI implementations. Alpha has quite > > a chunk of this, and so does UltraSparc. > > > > Is there a framework in place or a notion of how the Linux PCI stuff ought > > to cope with this yet? > > There is something in the sparc tree, which is used also for sun4c and sun4d > (where there is only 64MB of DMA per board, so one has to remap DMA areas > during runtime). > Besically, each driver before it starts doing dma uses some function which > translates virtual address + length to dma address and allocates it, then > after the dma the driver has to release it again. > Martin Mares and myself are considering this as part of the new buses > interface we plan for 2.3. The Ultra port supports even now huge amounts of > memory, but uses bounce buffers for that. I plan to change it in early 2.3. > Good. There's a moral equivalent for this in some alpha implementations (rawhide comes to mind). I have two different Qlogic cards that could be ready to start taking full 64 bit addresses. -matt ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? [not found] <199903132048.VAA11627@sunsite.mff.cuni.cz> 1999-03-13 21:17 ` Matthew Jacob @ 1999-03-14 16:02 ` Jay.Estabrook 1999-03-15 19:14 ` James H. Cloos Jr. 1 sibling, 1 reply; 50+ messages in thread From: Jay.Estabrook @ 1999-03-14 16:02 UTC (permalink / raw) To: Jakub Jelinek; +Cc: axp-list, debian-alpha, linux-kernel >>> Jakub Jelinek said: > > There is something in the sparc tree, which is used also for sun4c and sun4d > (where there is only 64MB of DMA per board, so one has to remap DMA areas > during runtime). > Besically, each driver before it starts doing dma uses some function which > translates virtual address + length to dma address and allocates it, then > after the dma the driver has to release it again. This is a technique that would work on the Alphas as well, but as noted above, it *does* require driver modifications to manage the resource correctly. On Alpha, in addition to the direct-map DMA windows which are currently used, one can define what we call "scatter-gather" DMA windows. The range of PCI addresses that fall into one of these windows are re-directed to host memory via a page table, where the address in a PTE can be *any* page in the possible installed memory - no bounce buffers needed... :-) > Martin Mares and myself are considering this as part of the new buses > interface we plan for 2.3. The Ultra port supports even now huge amounts of > memory, but uses bounce buffers for that. I plan to change it in early 2.3. Great! Keep us posted with your progress. --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 ------------------------------------------------------------------------------- ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-14 16:02 ` Jay.Estabrook @ 1999-03-15 19:14 ` James H. Cloos Jr. 1999-03-15 19:41 ` Michal Jaegermann 1999-03-16 0:34 ` Bob McElrath 0 siblings, 2 replies; 50+ messages in thread From: James H. Cloos Jr. @ 1999-03-15 19:14 UTC (permalink / raw) To: axp-list, debian-alpha, linux-kernel -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 >>>>> "Jay" == Jay Estabrook <Jay.Estabrook@digital.com> writes: Jay> On Alpha, in addition to the direct-map DMA windows which are currently Jay> used, one can define what we call "scatter-gather" DMA windows. The range of Jay> PCI addresses that fall into one of these windows are re-directed to host Jay> memory via a page table, where the address in a PTE can be *any* page in the Jay> possible installed memory - no bounce buffers needed... :-) I suspect this is what the original poster was referring to. In any case, for 2.3 at least, this would be the best target to shoot for, IMO. How much effort would be required to implement this scheme? If the `scatter-gather' were set up at device resolution, rather than page resolution, would the drivers even require modification? - -JimC - -- James H. Cloos, Jr. <http://www.jhcloos.com/cloos/public_key> 1024D/ED7DAEA6 <cloos@jhcloos.com> E9E9 F828 61A4 6EA9 0F2B 63E7 997A 9F17 ED7D AEA6 -----BEGIN PGP SIGNATURE----- Version: GnuPG v0.9.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE27VwCmXqfF+19rqYRAm1wAKC+yEIjLVDvfw1ZivutxFUmp5uOxQCgt/vf O65FH3z0ypFtaOWiktpYD2Q= =Ku2z -----END PGP SIGNATURE----- ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-15 19:14 ` James H. Cloos Jr. @ 1999-03-15 19:41 ` Michal Jaegermann 1999-03-15 21:46 ` Matti Aarnio 1999-03-16 0:34 ` Bob McElrath 1 sibling, 1 reply; 50+ messages in thread From: Michal Jaegermann @ 1999-03-15 19:41 UTC (permalink / raw) To: axp-list James H. Cloos Jr. wrote: > > >>>>> "Jay" == Jay Estabrook <Jay.Estabrook@digital.com> writes: > > Jay> On Alpha, in addition to the direct-map DMA windows which are currently > Jay> used, one can define what we call "scatter-gather" DMA windows. The range of > Jay> PCI addresses that fall into one of these windows are re-directed to host > Jay> memory via a page table, where the address in a PTE can be *any* page in the > Jay> possible installed memory - no bounce buffers needed... :-) > > How much effort would be required to implement this scheme? On ftp://ftp.tux.org/pub/roudier/misc-stuff/ one can find some initial version of scsi-scbuf.... A header comment says: Simple scattered buffer management for Linux SCSI A question to people who looked at these issues closer: is this something going into a right direction? Michal ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-15 19:41 ` Michal Jaegermann @ 1999-03-15 21:46 ` Matti Aarnio 1999-03-16 1:42 ` Richard Henderson 1999-03-16 6:04 ` Mike 0 siblings, 2 replies; 50+ messages in thread From: Matti Aarnio @ 1999-03-15 21:46 UTC (permalink / raw) To: axp-list Michal Jaegermann <michal@ellpspace.math.ualberta.ca> wrote: > On ftp://ftp.tux.org/pub/roudier/misc-stuff/ one can find some > initial version of scsi-scbuf.... A header comment says: > > Simple scattered buffer management for Linux SCSI > > A question to people who looked at these issues closer: is this > something going into a right direction? No, that isn't the same thing. In fact the Alpha system chipset documentation (LCA, CIA, ALCOR, etc..) while speaking of "scatter- gather" do also note that it is not *quite* the same as what you would consider e.g. in SCSI operation: "In peripheral components architecture, the term scatter-gather is not an address translation scheme but instead is used to signify a DMA transfer list. An element of this transfer list contains the DMA address and the number of data items to transfer. The DMA device fetches each item of the list until the list is empty. Many of the PCI devices, such as the PCI-to- EISA bridge, support this form of scatter-gather process." A thing closer to what we are speaking of is SPARC IOMMU. > Michal /Matti Aarnio <matti.aarnio@sonera.fi> ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-15 21:46 ` Matti Aarnio @ 1999-03-16 1:42 ` Richard Henderson 1999-03-16 6:04 ` Mike 1 sibling, 0 replies; 50+ messages in thread From: Richard Henderson @ 1999-03-16 1:42 UTC (permalink / raw) To: axp-list On Mon, Mar 15, 1999 at 11:46:35PM +0200, Matti Aarnio wrote: > A thing closer to what we are speaking of is SPARC IOMMU. No coincidentally, DaveM has quite a number of things we'd need to be able to handle scatter-gather lists properly. Of course, it does all require driver changes, but imo this is still a Good Thing. r~ ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-15 21:46 ` Matti Aarnio 1999-03-16 1:42 ` Richard Henderson @ 1999-03-16 6:04 ` Mike 1999-03-16 6:25 ` Ron Farrer 1 sibling, 1 reply; 50+ messages in thread From: Mike @ 1999-03-16 6:04 UTC (permalink / raw) To: axp-list Question to everyone on the list: I finally have my multia ready to go. I'm looking to install redhat on it, however I'm having problems finding documentation (er.. *GOOD* documentation) on how to go about it. Can someone point me to a UDB/Multia-specific install guide? Thanks, Mike ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-16 6:04 ` Mike @ 1999-03-16 6:25 ` Ron Farrer 1999-03-16 6:28 ` Mike 0 siblings, 1 reply; 50+ messages in thread From: Ron Farrer @ 1999-03-16 6:25 UTC (permalink / raw) To: axp-list On Mon, 15 Mar 1999, Mike wrote: > Question to everyone on the list: > > I finally have my multia ready to go. I'm looking to install redhat on it, > however I'm having problems finding documentation (er.. *GOOD* > documentation) on how to go about it. Can someone point me to a > UDB/Multia-specific install guide? > > Thanks, > > Mike Have a look at http://www.alphalinux.org/docs/udb-multia.shtml HTH, Ron Farrer ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-16 6:25 ` Ron Farrer @ 1999-03-16 6:28 ` Mike 0 siblings, 0 replies; 50+ messages in thread From: Mike @ 1999-03-16 6:28 UTC (permalink / raw) To: axp-list >Have a look at http://www.alphalinux.org/docs/udb-multia.shtml > > >HTH, > >Ron Farrer Unfortunately the only mutlia-specific instructions listed on their site are from cpumicromart.com .. they have since redesigned their site and I've yet to find where they are hiding the multia-linux install instructions on there.. I remember searching a few weeks ago and found a very detailed FAQ on installing linux on a multia, but have been unable to relocate it. Thanks for trying, Mike ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-15 19:14 ` James H. Cloos Jr. 1999-03-15 19:41 ` Michal Jaegermann @ 1999-03-16 0:34 ` Bob McElrath 1999-03-16 5:12 ` Jay.Estabrook 1 sibling, 1 reply; 50+ messages in thread From: Bob McElrath @ 1999-03-16 0:34 UTC (permalink / raw) To: James H. Cloos Jr.; +Cc: axp-list, debian-alpha, linux-kernel On 15 Mar 1999, James H. Cloos Jr. wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > >>>>> "Jay" == Jay Estabrook <Jay.Estabrook@digital.com> writes: > > Jay> On Alpha, in addition to the direct-map DMA windows which are currently > Jay> used, one can define what we call "scatter-gather" DMA windows. The range of > Jay> PCI addresses that fall into one of these windows are re-directed to host > Jay> memory via a page table, where the address in a PTE can be *any* page in the > Jay> possible installed memory - no bounce buffers needed... :-) > > I suspect this is what the original poster was referring to. In any > case, for 2.3 at least, this would be the best target to shoot for, IMO. > > How much effort would be required to implement this scheme? If the > `scatter-gather' were set up at device resolution, rather than page > resolution, would the drivers even require modification? Yes. It still requires that a driver allocate a section of memory that it is going to be using for PCI communication. There's no way around this. I (the original poster) don't know if a scatter-gather solution is required (it is supported by alpha hardware, I don't know about others). It may be possible to do it without scatter-gather support in hardware. At any rate, it looks like all device drivers that are going to be using PCI transfers will have to do something like: bus_alloc(<buffer address>, <size>); out(virt_to_bus(<buffer address>), HARDWARE_DO_SOMETHING_PORT); [...] bus_dealloc(<buffer address>); virt_to_bus is currently implemented, but cannot on the fly determine how to reallocate mappings so as to not clobber another device, unless it is told (via my bus_alloc or something similar) who is using what regions of the PCI address space. Note that using this bus_alloc/bus_dealloc implementation allows the driver to keep several buffers. Also note that giving the hardware a different address within the buffer should work fine too. (out(virt_to_bus(<buffer address> + 0x4000), HARDWARE_DO_SOMETHING_PORT) etc.) On alpha scatter-gather is simply an address translation scheme that allows small granularity (8kb). I don't know how much kernel support beyond bus_alloc/virt_to_bus/bus_dealloc would be required to implement bounce buffers using the scatter-gather mappings. Perhaps someone who understands bounce buffers would care to comment? (I'm still not sure what they are...) I wonder if it would be possible to take a poll of hardware owners to determine which chipsets support scatter-gather. I don't know if this is part of the PCI spec, or a hack implemented by Digital and Sun. Will Merced chipsets support scatter-gather? At any rate, a generic bus_alloc/bus_dealloc should be able to hide whatever memory->bus remapping the hardware supports...whether scatter-gather exists on all chipsets or not. Most importantly: if bounce buffers are required to access memory >1GB from PCI, can it be done with a simple bus_alloc/virt_to_bus/bus_dealloc? Or must we implement a more complex solution that can handle both cases? -- Bob Bob McElrath (rsmcelrath@students.wisc.edu) Univ. of Wisconsin at Madison ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-16 0:34 ` Bob McElrath @ 1999-03-16 5:12 ` Jay.Estabrook 1999-03-16 13:09 ` Greg Lindahl 0 siblings, 1 reply; 50+ messages in thread From: Jay.Estabrook @ 1999-03-16 5:12 UTC (permalink / raw) To: axp-list, linux-kernel, debian-alpha >>> Bob McElrath said: > > I (the original poster) don't know if a scatter-gather solution is required > (it is supported by alpha hardware, I don't know about others). It may be > possible to do it without scatter-gather support in hardware. On Alpha, a scatter-gather solution is the *only* way to allow all devices direct access to all of memory. Without it, one is forced to employ bounce buffers. > On alpha scatter-gather is simply an address translation scheme that allows > small granularity (8kb). I don't know how much kernel support beyond > bus_alloc/virt_to_bus/bus_dealloc would be required to implement bounce > buffers using the scatter-gather mappings. Perhaps someone who understands > bounce buffers would care to comment? (I'm still not sure what they are... ) Bounce buffers are buffers in memory at locations that can be accessed directly by devices, in a system which has additional memory which CANNOT be directly accessed by those devices because of their addressing limitations. This has been most commonly encountered with "true" ISA devices, which have a memory address limitation of 16Mb (24 bits). In a machine which has more than 16Mb of memory, a device driver could allocate a buffer in the low 16Mb of the address space, do the device DMA to that buffer, and then copy the data out of that buffer to a memory location above 16Mb, hence the name "bounce buffer". And one would not use SG mapping to implement bounce buffers; SG mapping eliminates the need for bounce buffers. > I wonder if it would be possible to take a poll of hardware owners to > determine which chipsets support scatter-gather. I don't know if this is > part of the PCI spec, or a hack implemented by Digital and Sun. It is NOT part of the PCI spec; it is a platform specific feature, implemented (differently) on the ALPHA and SPARC, and probably others. > Will Merced chipsets support scatter-gather? No idea, but this would prolly be covered by an NDA at this time, anyway... ;-} > At any rate, a generic > bus_alloc/bus_dealloc should be able to hide whatever memory->bus remapping > the hardware supports...whether scatter-gather exists on all chipsets or > not. If correctly designed. > Most importantly: if bounce buffers are required to access memory >1GB from > PCI, can it be done with a simple bus_alloc/virt_to_bus/bus_dealloc? Or > must we implement a more complex solution that can handle both cases? Well, let examine it... Case 1: bus_alloc where direct access is possible without SG mapping, is simply the equivalent of virt_to_bus now. bus_dealloc is a no-op. Case 2: bus_alloc where SG mapping must be used to directly access memory, returns the bus address (in the SG map) for the desired destination. bus_dealloc will release the SG mapping resources used. Case 3: bus_alloc where bounce buffers are required, simply returns the bus address of an allocated bounce buffer. bus_dealloc would copy the bounce buffer to the desired destination, and free the bounce buffer. A bit overly simplistic, but did I miss/overlook anything? Does this seem reasonable? --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 ------------------------------------------------------------------------------- ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-16 5:12 ` Jay.Estabrook @ 1999-03-16 13:09 ` Greg Lindahl 1999-03-16 18:08 ` Jay.Estabrook 0 siblings, 1 reply; 50+ messages in thread From: Greg Lindahl @ 1999-03-16 13:09 UTC (permalink / raw) To: axp-list > In a machine which has more > than 16Mb of memory, a device driver could allocate a buffer in the low 16Mb > of the address space, do the device DMA to that buffer, and then copy the > data out of that buffer to a memory location above 16Mb, hence the name > "bounce buffer". This is not how the current SCSI system does it (linux/drivers/scsi/sd.c). For writes from an un-DMAable buffer, it allocates in low memory, copies, and then writes. If I'm reading the code correctly, for reads, the code simply allocates a buffer in DMAable memory. No copy, no use of high memory. This has the bad side-effect of limiting your disk buffers to that area in memory, and increases pressure on that memory. But it doesn't waste any time copying. It would be fairly simple to extend this code to use a bounce buffer if the system was running low on DMAable memory. -- g ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-16 13:09 ` Greg Lindahl @ 1999-03-16 18:08 ` Jay.Estabrook 0 siblings, 0 replies; 50+ messages in thread From: Jay.Estabrook @ 1999-03-16 18:08 UTC (permalink / raw) To: axp-list >>> Greg Lindahl said: > > This is not how the current SCSI system does it > (linux/drivers/scsi/sd.c). Sorry for the misinformation, I didn't look at the details... :-\ > For writes from an un-DMAable buffer, it > allocates in low memory, copies, and then writes. If I'm reading the > code correctly, for reads, the code simply allocates a buffer in > DMAable memory. No copy, no use of high memory. This has the bad > side-effect of limiting your disk buffers to that area in memory, and > increases pressure on that memory. Indeed; not as bad pressure as on the low 16Mb on an ISA machine, but pressure none the less. > But it doesn't waste any time > copying. It would be fairly simple to extend this code to use a bounce > buffer if the system was running low on DMAable memory. But it still doesn't handle direct read to a user-defined buffer in non-DMAable space, does it? --Jay++ ----------------------------------------------------------------------------- American Non Sequitur Society: we don't make sense, but we do like pizza... Jay A Estabrook Alpha Motherboards - LINUX Project Compaq Computer Corp. (508) 841-3241 or (DTN) 237-3241 334 South Street, Shrewsbury, MA 01545 Jay.Estabrook@digital.com ----------------------------------------------------------------------------- ^ permalink raw reply [flat|nested] 50+ messages in thread
* > 1GB on alpha. Patch to 1TB?
@ 1999-03-11 5:57 Bob McElrath
1999-03-11 6:13 ` Greg Lindahl
1999-03-13 18:45 ` Richard Henderson
0 siblings, 2 replies; 50+ messages in thread
From: Bob McElrath @ 1999-03-11 5:57 UTC (permalink / raw)
To: debian-alpha, axp-list, Linux Kernel List
It appears that Linux on the alpha is limited to 1GB of physical RAM. This
is bad. It really seems silly to be limited to 1GB of RAM on a 64-bit
processor.
So I'm purusing the specs on the 21172 chip (the LX/UX/SX memory and PCI
controller chip, aka Pyxis), and I see the following statement:
"This scheme allows a NATURALLY ALIGNED 1MB to 4GB PCI window to be placed
anywhere in the first 1TB of the 64-bit address space." [21172 Technical
Reference Manual, page 6-34]
The modification that needs to be made is in making PCI memory "windows" and
in the functions virt_to_bus and bus_to_virt (which map physical addresses
to bus addresses and vice versa -- defined in
include/asm-alpha/core_pyxis.h). From the file
arch/alpha/kernel/core_pyxis.c:
* Window 0 goes at 1 GB and is 1 GB large.
The other "windows" are not used.
It seems simple to me to modify these two files to support up to 1TB memory
on the alpha, as opposed to the hard-coded limit of 1GB now. It appears the
21172 will only decode 40 bits of address, not 64, but that's 1TB...
Documentation on this can be found at:
http://ftp.digital.com/pub/Digital/info/semiconductor/literature/dsc-library.html
I cannot fix this myself (I have only a mere 256 MB of RAM), but send this
in the hopes that someone with enough RAM to test it is willing to fix it.
That is, unless some kind soul wants to donate a few gig to me. ;)
-- Bob
Bob McElrath (rsmcelrath@students.wisc.edu) Univ. of Wisconsin at Madison
^ permalink raw reply [flat|nested] 50+ messages in thread* Re: > 1GB on alpha. Patch to 1TB? 1999-03-11 5:57 Bob McElrath @ 1999-03-11 6:13 ` Greg Lindahl 1999-03-11 7:14 ` Gerhard Schneider ` (2 more replies) 1999-03-13 18:45 ` Richard Henderson 1 sibling, 3 replies; 50+ messages in thread From: Greg Lindahl @ 1999-03-11 6:13 UTC (permalink / raw) To: axp-list; +Cc: debian-alpha, linux-kernel > It appears that Linux on the alpha is limited to 1GB of physical RAM. This > is bad. It really seems silly to be limited to 1GB of RAM on a 64-bit > processor. It is entertaining that you posted this to axp-list -- Bjorn Bjornsson posted a patch yesterday on axp-list to get 2GB on his AlphaServer 800. A similar patch should suffice on other platforms, and may take us up to 4GB, where the PCI address limit dictates bounce buffers... I reproduce his posting and patch below. I would love to see 264DP systems with 4-8 gigs of ram. They have 16 dimm slots. -- greg From: "Bjorn R. Bjornsson" <brb@halo.hi.is> Subject: More than 1GB RAM with AlphaLinux (was ... 4-8GB RAM) To: axp-list@redhat.com Date: Tue, 9 Mar 1999 22:05:13 +0000 (GMT) If I read the code correctly, then few of the Alpha systems support more than 1GB RAM running Linux with an unmodified kernel. However it should be fairly straightforward to support more than 1GB of physical RAM on most Alpha systems, although I must admit it took me quite some time to get an AlphaServer 800 (aka Corelle) to run with more than 1GB. PCI limitations ought not to show up until you try go past 4GB. Following is a patch to linux/include/asm-alpha/cia_core.h to allow the AlphaServer 800 to support 2GB of RAM (I'm also including a uu-encoded version of the patch below). --- linux-2.2.3/include/asm-alpha/core_cia.h Wed Jan 13 18:42:49 1999 +++ linux-2.2.3-brbkludge/include/asm-alpha/core_cia.h Tue Mar 9 21:25:01 1999 @@ -77,14 +77,49 @@ #define CIA_MEM_R2_MASK 0x07ffffff /* SPARSE Mem region 2 mask is 27 bits */ #define CIA_MEM_R3_MASK 0x03ffffff /* SPARSE Mem region 3 mask is 26 bits */ +/* + * Kludge to enable 2GB RAM on Alphaserver 800 (Corelle). + * The AlphaLinux firmware/chipset/pci code is in need of a + * bit of rewrite, but this kludge is quick, dirty and works. + * + * It is imperative for these changes to work that that + * the SRM initialized PCI configuration is not preserved + * at boot time, ie. say NO to 'Use SRM PCI setup' during + * kernel config (On the AlphaServer 800, SRM always comes + * up with a DMA_WIN_BASE at 1GB * and DMA_WIN_SIZE of 1GB, + * regardless of the amount of memory). + * + * Similar KLUDGES should work for other Alpha systems, although + * the SX164 should support 2GB without changes. + * Also I see no reason why, setting the dma window at 4GB and + * size of 4GB, would not enable the Corelle to run with 4GB of + * RAM. + * + * For further info contact: Bjorn R. Bjornsson, brb@halo.hi.is + */ +#define BRB_2GB_KLUDGE +#ifdef BRB_2GB_KLUDGE +#define CIA_DMA_WIN_BASE_DEFAULT 0x80000000 /* fixed, 2G @ 2G */ +#define CIA_DMA_WIN_SIZE_DEFAULT 0x80000000 /* fixed, 2G @ 2G */ +#else #define CIA_DMA_WIN_BASE_DEFAULT (1024*1024*1024) #define CIA_DMA_WIN_SIZE_DEFAULT (1024*1024*1024) +#endif + #if defined(CONFIG_ALPHA_GENERIC) || defined(CONFIG_ALPHA_SRM_SETUP) #define CIA_DMA_WIN_BASE alpha_mv.dma_win_base #define CIA_DMA_WIN_SIZE alpha_mv.dma_win_size #else +/* + * The next source line used to read: + * #define CIA_DMA_WIN_BASE CIA_DMA_WIN_SIZE_DEFAULT + * + * Which is almost certainly a typo, but is literally a Freudian + * slip, in view of the chipset spec. + */ +#define CIA_DMA_WIN_BASE CIA_DMA_WIN_BASE_DEFAULT #define CIA_DMA_WIN_SIZE CIA_DMA_WIN_SIZE_DEFAULT #endif @@ -553,6 +588,12 @@ #define __outw cia_outw #define __outl cia_outl +#ifdef BRB_2GB_KLUDGE +#define __readb cia_readb +#define __readw cia_readw +#define __writeb cia_writeb +#define __writew cia_writew +#else #ifdef CONFIG_ALPHA_SRM_SETUP #define __readb cia_srm_readb #define __readw cia_srm_readw @@ -563,6 +604,7 @@ #define __readw cia_readw #define __writeb cia_writeb #define __writew cia_writew +#endif #endif #define __readl cia_readl Here is the uuencoded version: begin 644 AS800-2GB-patch M+2TM(&QI;G5X+3(N,BXS+VEN8VQU9&4O87-M+6%L<&AA+V-O<F5?8VEA+F@) M5V5D($IA;B`Q,R`Q.#HT,CHT.2`Q.3DY"BLK*R!L:6YU>"TR+C(N,RUB<F)K M;'5D9V4O:6YC;'5D92]A<VTM86QP:&$O8V]R95]C:6$N:`E4=64@36%R("`Y M(#(Q.C(U.C`Q(#$Y.3D*0$`@+3<W+#$T("LW-RPT.2!`0`H@(V1E9FEN92!# M24%?345-7U(R7TU!4TL@,'@P-V9F9F9F9B`@+RH@4U!!4E-%($UE;2!R96=I M;VX@,B!M87-K(&ES(#(W(&)I=',@*B\*("-D969I;F4@0TE!7TU%35]2,U]- M05-+(#!X,#-F9F9F9F8@("\J(%-005)312!-96T@<F5G:6]N(#,@;6%S:R!I M<R`R-B!B:71S("HO"B`**R\J"BL@*B!+;'5D9V4@=&\@96YA8FQE(#)'0B!2 M04T@;VX@06QP:&%S97)V97(@.#`P("A#;W)E;&QE*2X**R`J(%1H92!!;'!H M84QI;G5X(&9I<FUW87)E+V-H:7!S970O<&-I(&-O9&4@:7,@:6X@;F5E9"!O M9B!A"BL@*B!B:70@;V8@<F5W<FET92P@8G5T('1H:7,@:VQU9&=E(&ES('%U M:6-K+"!D:7)T>2!A;F0@=V]R:W,N"BL@*@HK("H@270@:7,@:6UP97)A=&EV M92!F;W(@=&AE<V4@8VAA;F=E<R!T;R!W;W)K('1H870@=&AA=`HK("H@=&AE M(%-232!I;FET:6%L:7IE9"!00TD@8V]N9FEG=7)A=&EO;B!I<R!N;W0@<')E M<V5R=F5D"BL@*B!A="!B;V]T('1I;64L(&EE+B!S87D@3D\@=&\@)U5S92!3 M4DT@4$-)('-E='5P)R!D=7)I;F<**R`J(&ME<FYE;"!C;VYF:6<@*$]N('1H M92!!;'!H85-E<G9E<B`X,#`L(%-232!A;'=A>7,@8V]M97,**R`J('5P('=I M=&@@82!$34%?5TE.7T)!4T4@870@,4="("H@86YD($1-05]724Y?4TE:12!O M9B`Q1T(L"BL@*B!R96=A<F1L97-S(&]F('1H92!A;6]U;G0@;V8@;65M;W)Y M*2X**R`J"BL@*B!3:6UI;&%R($M,541'15,@<VAO=6QD('=O<FL@9F]R(&]T M:&5R($%L<&AA('-Y<W1E;7,L(&%L=&AO=6=H"BL@*B!T:&4@4U@Q-C0@<VAO M=6QD('-U<'!O<G0@,D="('=I=&AO=70@8VAA;F=E<RX**R`J($%L<V\@22!S M964@;F\@<F5A<V]N('=H>2P@<V5T=&EN9R!T:&4@9&UA('=I;F1O=R!A="`T M1T(@86YD"BL@*B!S:7IE(&]F(#1'0BP@=V]U;&0@;F]T(&5N86)L92!T:&4@ M0V]R96QL92!T;R!R=6X@=VET:"`T1T(@;V8**R`J(%)!32X**R`J"BL@*B!& M;W(@9G5R=&AE<B!I;F9O(&-O;G1A8W0Z($)J;W)N(%(N($)J;W)N<W-O;BP@ M8G)B0&AA;&\N:&DN:7,**R`J+PHK(V1E9FEN92!"4D)?,D="7TM,541'10HK M(VEF9&5F($)20E\R1T)?2TQ51$=%"BLC9&5F:6YE($-)05]$34%?5TE.7T)! M4T5?1$5&055,5"`@("`P>#@P,#`P,#`P("`@("`@+RH@9FEX960L(#)'($`@ M,D<@*B\**R-D969I;F4@0TE!7T1-05]724Y?4TE:15]$149!54Q4("`@(#!X M.#`P,#`P,#`@("`@("`O*B!F:7AE9"P@,D<@0"`R1R`J+PHK(V5L<V4*("-D M969I;F4@0TE!7T1-05]724Y?0D%315]$149!54Q4"2@Q,#(T*C$P,C0J,3`R M-"D*("-D969I;F4@0TE!7T1-05]724Y?4TE:15]$149!54Q4"2@Q,#(T*C$P M,C0J,3`R-"D**R-E;F1I9@HK"B`*("-I9B!D969I;F5D*$-/3D9)1U]!3%!( M05]'14Y%4DE#*2!\?"!D969I;F5D*$-/3D9)1U]!3%!(05]34DU?4T5455`I M"B`C9&5F:6YE($-)05]$34%?5TE.7T)!4T4)"6%L<&AA7VUV+F1M85]W:6Y? M8F%S90H@(V1E9FEN92!#24%?1$U!7U=)3E]325I%"0EA;'!H85]M=BYD;6%? M=VEN7W-I>F4*("-E;'-E"BLO*@HK("H@5&AE(&YE>'0@<V]U<F-E(&QI;F4@ M=7-E9"!T;R!R96%D.@HK("H*("-D969I;F4@0TE!7T1-05]724Y?0D%310D) M0TE!7T1-05]724Y?4TE:15]$149!54Q4"BL@*@HK("H@5VAI8V@@:7,@86QM M;W-T(&-E<G1A:6YL>2!A('1Y<&\L(&)U="!I<R!L:71E<F%L;'D@82!&<F5U M9&EA;@HK("H@<VQI<"P@:6X@=FEE=R!O9B!T:&4@8VAI<'-E="!S<&5C+@HK M("HO"BLC9&5F:6YE($-)05]$34%?5TE.7T)!4T4)"4-)05]$34%?5TE.7T)! M4T5?1$5&055,5`H@(V1E9FEN92!#24%?1$U!7U=)3E]325I%"0E#24%?1$U! M7U=)3E]325I%7T1%1D%53%0*("-E;F1I9@H@"D!`("TU-3,L-B`K-3@X+#$R M($!`"B`C9&5F:6YE(%]?;W5T=PD)8VEA7V]U='<*("-D969I;F4@7U]O=71L M"0EC:6%?;W5T;`H@"BLC:69D968@0E)"7S)'0E]+3%5$1T4**R-D969I;F4@ M7U]R96%D8@D)8VEA7W)E861B"BLC9&5F:6YE(%]?<F5A9'<)"6-I85]R96%D M=PHK(V1E9FEN92!?7W=R:71E8@EC:6%?=W)I=&5B"BLC9&5F:6YE(%]?=W)I M=&5W"6-I85]W<FET97<**R-E;'-E"B`C:69D968@0T].1DE'7T%,4$A!7U-2 M35]315154`H@(V1E9FEN92!?7W)E861B"0EC:6%?<W)M7W)E861B"B`C9&5F M:6YE(%]?<F5A9'<)"6-I85]S<FU?<F5A9'<*0$`@+34V,RPV("LV,#0L-R!` M0`H@(V1E9FEN92!?7W)E861W"0EC:6%?<F5A9'<*("-D969I;F4@7U]W<FET M96()8VEA7W=R:71E8@H@(V1E9FEN92!?7W=R:71E=PEC:6%?=W)I=&5W"BLC L96YD:68*("-E;F1I9@H@"B`C9&5F:6YE(%]?<F5A9&P)"6-I85]R96%D;`H` ` end Bjorn R. Bjornsson brb@halo.hi.is ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-11 6:13 ` Greg Lindahl @ 1999-03-11 7:14 ` Gerhard Schneider 1999-03-11 17:17 ` Maurice Hilarius 1999-03-11 20:03 ` Greg Lindahl 1999-03-11 16:50 ` Ron Farrer 1999-03-12 0:47 ` Steve Frampton 2 siblings, 2 replies; 50+ messages in thread From: Gerhard Schneider @ 1999-03-11 7:14 UTC (permalink / raw) To: axp-list > > I would love to see 264DP systems with 4-8 gigs of ram. They have 16 > dimm slots. > I don't know where the problem should be. The XP1000 (264SP or so) supports 8x256MB modules with 512MB modules comming in Q3 or so. If I'm right it's absolutely the same 200pin memory as in the 264DP. In Austria you're able to buy 256MB modules -> 4GB now.. Gerhard Schneider -- Gerhard Schneider e-Mail: gs@ilfb.tuwien.ac.at Institute of Light Weight Structures (E317) Tel.: +43 1 58801 31716 Vienna University of Technology / Austria Fax: +43 1 58801 31799 A-1040 Wien, Gusshausstrasse 27-29 http://ilfb.tuwien.ac.at/~gs/ ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-11 7:14 ` Gerhard Schneider @ 1999-03-11 17:17 ` Maurice Hilarius 1999-03-11 20:03 ` Greg Lindahl 1 sibling, 0 replies; 50+ messages in thread From: Maurice Hilarius @ 1999-03-11 17:17 UTC (permalink / raw) To: axp-list With regards to your message at 08:14 AM 03-11-99 +0100, Gerhard Schneider. Where you stated: >> >> I would love to see 264DP systems with 4-8 gigs of ram. They have 16 >> dimm slots. >> > >I don't know where the problem should be. > >The XP1000 (264SP or so) supports 8x256MB modules with 512MB modules comming >in Q3 or so. If I'm right it's absolutely the same 200pin memory as in the >264DP. >In Austria you're able to buy 256MB modules -> 4GB now.. > I think he refers to the fact that until _ver_ recently we could only use 1GB in Alpha Linux. However that seems to be the target of the working of a few people as we speak. Currently we can supply a DP264 (Goldrush) based workstation with up to 4GB of SDRAM. Best regards, Maurice W. Hilarius NEW! Telephone: 01-780-456-9771 Hard Data Ltd. NEW! FAX: 01-780-456-9772 11060 - 166 Avenue email:maurice@harddata.com Edmonton, AB, Canada - T5X 1Y3 http://www.harddata.com ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-11 7:14 ` Gerhard Schneider 1999-03-11 17:17 ` Maurice Hilarius @ 1999-03-11 20:03 ` Greg Lindahl 1 sibling, 0 replies; 50+ messages in thread From: Greg Lindahl @ 1999-03-11 20:03 UTC (permalink / raw) To: axp-list > The XP1000 (264SP or so) supports 8x256MB modules with 512MB modules comming > in Q3 or so. Hm, I was told it only had 4 slots, but the Compaq webpages say it takes 8. Spiffy. -- greg ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-11 6:13 ` Greg Lindahl 1999-03-11 7:14 ` Gerhard Schneider @ 1999-03-11 16:50 ` Ron Farrer 1999-03-11 17:19 ` Maurice Hilarius 1999-03-12 0:47 ` Steve Frampton 2 siblings, 1 reply; 50+ messages in thread From: Ron Farrer @ 1999-03-11 16:50 UTC (permalink / raw) To: axp-list; +Cc: debian-alpha, linux-kernel On Thu, 11 Mar 1999, Greg Lindahl wrote: > I would love to see 264DP systems with 4-8 gigs of ram. They have 16 > dimm slots. Looking at the "AlphaPC 264DP Technical Reference Maunual", it says memory configurations of 128MB - 4GB are supported. Why only 4GB, is it just that larger DIMMs where not available at the time?? Just curious, Ron Farrer ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-11 16:50 ` Ron Farrer @ 1999-03-11 17:19 ` Maurice Hilarius 1999-03-11 17:39 ` Ron Farrer 0 siblings, 1 reply; 50+ messages in thread From: Maurice Hilarius @ 1999-03-11 17:19 UTC (permalink / raw) To: axp-list With regards to your message at 08:50 AM 03-11-99 -0800, Ron Farrer. Where you stated: > >On Thu, 11 Mar 1999, Greg Lindahl wrote: > >> I would love to see 264DP systems with 4-8 gigs of ram. They have 16 >> dimm slots. > >Looking at the "AlphaPC 264DP Technical Reference Maunual", it says memory >configurations of 128MB - 4GB are supported. Why only 4GB, is it just that >larger DIMMs where not available at the time?? > Currently the 256MB SODIMM is the largest shipping. As the DP264 has 8 slots per CPU for RAM, this means a maximum of 16x.25GB per CPU. Which yields 2GB, and with 2CPUs 4GB. Best regards, Maurice W. Hilarius NEW! Telephone: 01-780-456-9771 Hard Data Ltd. NEW! FAX: 01-780-456-9772 11060 - 166 Avenue email:maurice@harddata.com Edmonton, AB, Canada - T5X 1Y3 http://www.harddata.com ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-11 17:19 ` Maurice Hilarius @ 1999-03-11 17:39 ` Ron Farrer 1999-03-11 18:17 ` Maurice Hilarius 0 siblings, 1 reply; 50+ messages in thread From: Ron Farrer @ 1999-03-11 17:39 UTC (permalink / raw) To: axp-list On Thu, 11 Mar 1999, Maurice Hilarius wrote: > With regards to your message at 08:50 AM 03-11-99 -0800, Ron Farrer. Where > you stated: > > > >On Thu, 11 Mar 1999, Greg Lindahl wrote: > > > >> I would love to see 264DP systems with 4-8 gigs of ram. They have 16 > >> dimm slots. > > > >Looking at the "AlphaPC 264DP Technical Reference Maunual", it says memory > >configurations of 128MB - 4GB are supported. Why only 4GB, is it just that > >larger DIMMs where not available at the time?? > > > Currently the 256MB SODIMM is the largest shipping. > > As the DP264 has 8 slots per CPU for RAM, this means a maximum of 16x.25GB > per CPU. > Which yields 2GB, and with 2CPUs 4GB. Okay, but would it go beyond 4GB if you could you could use > 256MB DIMMs? i.e. the Viking spec sheet says 1GB due in Q1 1999, so if you *could* use 1GB DIMMs could you get 16GB or is there a hard limit some place?? Regards, Ron Farrer ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-11 17:39 ` Ron Farrer @ 1999-03-11 18:17 ` Maurice Hilarius 1999-03-11 18:31 ` Ron Farrer 0 siblings, 1 reply; 50+ messages in thread From: Maurice Hilarius @ 1999-03-11 18:17 UTC (permalink / raw) To: axp-list With regards to your message at 09:39 AM 03-11-99 -0800, Ron Farrer. Where you stated: > >On Thu, 11 Mar 1999, Maurice Hilarius wrote: > >> With regards to your message at 08:50 AM 03-11-99 -0800, Ron Farrer. Where >> you stated: >> > >> >On Thu, 11 Mar 1999, Greg Lindahl wrote: >> > >> >> I would love to see 264DP systems with 4-8 gigs of ram. They have 16 >> >> dimm slots. >> > >> >Looking at the "AlphaPC 264DP Technical Reference Maunual", it says memory >> >configurations of 128MB - 4GB are supported. Why only 4GB, is it just that >> >larger DIMMs where not available at the time?? >> > >> Currently the 256MB SODIMM is the largest shipping. >> >> As the DP264 has 8 slots per CPU for RAM, this means a maximum of 16x.25GB >> per CPU. >> Which yields 2GB, and with 2CPUs 4GB. > >Okay, but would it go beyond 4GB if you could you could use > 256MB >DIMMs? i.e. the Viking spec sheet says 1GB due in Q1 1999, so if you >*could* use 1GB DIMMs could you get 16GB or is there a hard limit some >place?? > > Lots of people *claim* a 512MB or 1Gb "real soon now (tm)" We shall see. Don't get me wrong, it will happen sooner or later. It will also be expensive. You can't just slap on more chips, this needs bigger RAMs, which are at a verylimited supply and high cost, at least for now. Viking and others are telling us "April" Best regards, Maurice W. Hilarius NEW! Telephone: 01-780-456-9771 Hard Data Ltd. NEW! FAX: 01-780-456-9772 11060 - 166 Avenue email:maurice@harddata.com Edmonton, AB, Canada - T5X 1Y3 http://www.harddata.com ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-11 18:17 ` Maurice Hilarius @ 1999-03-11 18:31 ` Ron Farrer 0 siblings, 0 replies; 50+ messages in thread From: Ron Farrer @ 1999-03-11 18:31 UTC (permalink / raw) To: axp-list On Thu, 11 Mar 1999, Maurice Hilarius wrote: > With regards to your message at 09:39 AM 03-11-99 -0800, Ron Farrer. Where > you stated: > >Okay, but would it go beyond 4GB if you could you could use > 256MB > >DIMMs? i.e. the Viking spec sheet says 1GB due in Q1 1999, so if you > >*could* use 1GB DIMMs could you get 16GB or is there a hard limit some > >place?? > > > > > Lots of people *claim* a 512MB or 1Gb "real soon now (tm)" > We shall see. > Don't get me wrong, it will happen sooner or later. It will also be expensive. > You can't just slap on more chips, this needs bigger RAMs, which are at a > verylimited supply and high cost, at least for now. > > Viking and others are telling us "April" Okay that's all fine and dandy, but that still doesn't answer my question... *Can* the 264DP go past 4GB??? Regards, Ron Farrer ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-11 6:13 ` Greg Lindahl 1999-03-11 7:14 ` Gerhard Schneider 1999-03-11 16:50 ` Ron Farrer @ 1999-03-12 0:47 ` Steve Frampton 1999-03-12 1:01 ` Larry Snyder 2 siblings, 1 reply; 50+ messages in thread From: Steve Frampton @ 1999-03-12 0:47 UTC (permalink / raw) To: axp-list On Thu, 11 Mar 1999, Greg Lindahl wrote: > I would love to see 264DP systems with 4-8 gigs of ram. They have 16 > dimm slots. Are you guys nuts? Why, just a few years ago Billy told us, "640 K was helluva lot". ;-) --------------< LINUX: The choice of a GNU generation. >-------------- Steve Frampton <3srf@qlink.queensu.ca> http://qlink.queensu.ca/~3srf ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-12 0:47 ` Steve Frampton @ 1999-03-12 1:01 ` Larry Snyder 1999-03-12 1:31 ` mgraffam 0 siblings, 1 reply; 50+ messages in thread From: Larry Snyder @ 1999-03-12 1:01 UTC (permalink / raw) To: axp-list Steve Frampton <frampton@alcdsb.on.ca> wrote: > On Thu, 11 Mar 1999, Greg Lindahl wrote: > > > I would love to see 264DP systems with 4-8 gigs of ram. They have 16 > > dimm slots. > > Are you guys nuts? Why, just a few years ago Billy told us, "640 K was > helluva lot". > > ;-) ...and a few years prior TJ Watson said 16K of core would be fine and the world market for computing devices was 5. Marketing folks. Ya just gotta love 'em. find / -name /dev/clue -install {} \; -ls- > > --------------< LINUX: The choice of a GNU generation. >-------------- > Steve Frampton <3srf@qlink.queensu.ca> http://qlink.queensu.ca/~3srf > > -- > To unsubscribe: send e-mail to axp-list-request@redhat.com with > 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-12 1:01 ` Larry Snyder @ 1999-03-12 1:31 ` mgraffam 1999-03-12 4:51 ` Izaak Bozof 0 siblings, 1 reply; 50+ messages in thread From: mgraffam @ 1999-03-12 1:31 UTC (permalink / raw) To: Larry Snyder; +Cc: axp-list On Thu, 11 Mar 1999, Larry Snyder wrote: > Steve Frampton <frampton@alcdsb.on.ca> wrote: > > Are you guys nuts? Why, just a few years ago Billy told us, "640 K was > > helluva lot". > ...and a few years prior TJ Watson said 16K of core would be fine and > the world market for computing devices was 5. Yeah, these sorts of quotes always make me laugh. Of course, in the contexts they were said in, they are pretty accurate.. (Gate's statement less so, as the computing revolution was in pretty good swing then, but still) no one could have predicted the explosion of computing.. and certainly the very-early computing pioneers would have only dreamed of having even a fraction of the storage and memory capacity that we have today. The sentiment of Watson's remark is actually on the money.. considering the prohibitive cost and size of the computer back then, there was indeed a small market. This small market exists even today .. few places need a supercomputer. Indeed.. few places today even need a computational brain; computers are used more for delivering information than computation. Michael J. Graffam (mgraffam@idsi.net) "..subordination of one sex to the other is wrong in itself, and now one of the chief hindrances to human improvement.." John Stuart Mill "The Subjection of Women" ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-12 1:31 ` mgraffam @ 1999-03-12 4:51 ` Izaak Bozof 0 siblings, 0 replies; 50+ messages in thread From: Izaak Bozof @ 1999-03-12 4:51 UTC (permalink / raw) To: axp-list, Larry Snyder <OFF TOPIC> The same could be said for a lot of people, don't you think? :-) </OFF TOPIC> couldn't help it! At 08:31 PM 3/11/99 -0500, mgraffam@idsi.net wrote: > >Indeed.. few places today even need a computational brain; computers are >used more for delivering information than computation. ______________________________________ Izaak Berzovsky izaak@earthlink.net G-d is my co-pilot, but the devil is my bombardier! ______________________________________ ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-11 5:57 Bob McElrath 1999-03-11 6:13 ` Greg Lindahl @ 1999-03-13 18:45 ` Richard Henderson 1999-03-13 18:50 ` Matthew Jacob ` (2 more replies) 1 sibling, 3 replies; 50+ messages in thread From: Richard Henderson @ 1999-03-13 18:45 UTC (permalink / raw) To: axp-list, debian-alpha, Linux Kernel List; +Cc: torvalds [-- Attachment #1: Type: text/plain, Size: 651 bytes --] On Wed, Mar 10, 1999 at 11:57:38PM -0600, Bob McElrath wrote: > It seems simple to me to modify these two files to support up to 1TB memory > on the alpha, as opposed to the hard-coded limit of 1GB now. It appears the > 21172 will only decode 40 bits of address, not 64, but that's 1TB... With 32-bit PCI devices, it is difficult to get past 2GB RAM. More than that requires either bounce buffers or that PCI windows be adjusted at runtime to cope with the various outstanding DMA requests. Which would be cool, but i think fairly tricky to modify all the drivers to get right. However, there's no reason we can't support 2GB instead of 1. r~ [-- Attachment #2: d-axp-223 --] [-- Type: text/plain, Size: 3953 bytes --] diff -rup 2.2.3/arch/alpha/kernel/core_cia.c 2.2.3-axp/arch/alpha/kernel/core_cia.c --- 2.2.3/arch/alpha/kernel/core_cia.c Sun Sep 6 10:34:33 1998 +++ 2.2.3-axp/arch/alpha/kernel/core_cia.c Sat Mar 13 10:09:24 1999 @@ -535,8 +535,6 @@ cia_init_arch(unsigned long *mem_start, * Set up the PCI->physical memory translation windows. * For now, windows 1,2 and 3 are disabled. In the future, * we may want to use them to do scatter/gather DMA. - * - * Window 0 goes at 1 GB and is 1 GB large. */ *(vuip)CIA_IOC_PCI_W0_BASE = 1U | (CIA_DMA_WIN_BASE_DEFAULT & 0xfff00000U); diff -rup 2.2.3/arch/alpha/kernel/core_pyxis.c 2.2.3-axp/arch/alpha/kernel/core_pyxis.c --- 2.2.3/arch/alpha/kernel/core_pyxis.c Mon Oct 12 11:40:12 1998 +++ 2.2.3-axp/arch/alpha/kernel/core_pyxis.c Sat Mar 13 10:09:35 1999 @@ -427,8 +427,6 @@ pyxis_native_window_setup(void) * Set up the PCI->physical memory translation windows. * For now, windows 1,2 and 3 are disabled. In the future, we may * want to use them to do scatter/gather DMA. - * - * Window 0 goes at 1 GB and is 1 GB large. */ *(vuip)PYXIS_W0_BASE = 1U | (PYXIS_DMA_WIN_BASE_DEFAULT & 0xfff00000U); diff -rup 2.2.3/include/asm-alpha/core_cia.h 2.2.3-axp/include/asm-alpha/core_cia.h --- 2.2.3/include/asm-alpha/core_cia.h Wed Jan 13 10:42:49 1999 +++ 2.2.3-axp/include/asm-alpha/core_cia.h Sat Mar 13 10:20:59 1999 @@ -77,14 +77,14 @@ #define CIA_MEM_R2_MASK 0x07ffffff /* SPARSE Mem region 2 mask is 27 bits */ #define CIA_MEM_R3_MASK 0x03ffffff /* SPARSE Mem region 3 mask is 26 bits */ -#define CIA_DMA_WIN_BASE_DEFAULT (1024*1024*1024) -#define CIA_DMA_WIN_SIZE_DEFAULT (1024*1024*1024) +#define CIA_DMA_WIN_BASE_DEFAULT (2UL*1024*1024*1024) +#define CIA_DMA_WIN_SIZE_DEFAULT (2UL*1024*1024*1024) #if defined(CONFIG_ALPHA_GENERIC) || defined(CONFIG_ALPHA_SRM_SETUP) #define CIA_DMA_WIN_BASE alpha_mv.dma_win_base #define CIA_DMA_WIN_SIZE alpha_mv.dma_win_size #else -#define CIA_DMA_WIN_BASE CIA_DMA_WIN_SIZE_DEFAULT +#define CIA_DMA_WIN_BASE CIA_DMA_WIN_BASE_DEFAULT #define CIA_DMA_WIN_SIZE CIA_DMA_WIN_SIZE_DEFAULT #endif diff -rup 2.2.3/include/asm-alpha/core_pyxis.h 2.2.3-axp/include/asm-alpha/core_pyxis.h --- 2.2.3/include/asm-alpha/core_pyxis.h Sun Dec 27 15:21:50 1998 +++ 2.2.3-axp/include/asm-alpha/core_pyxis.h Sat Mar 13 10:20:42 1999 @@ -74,8 +74,8 @@ #define PYXIS_MEM_R2_MASK 0x07ffffff /* SPARSE Mem region 2 mask is 27 bits */ #define PYXIS_MEM_R3_MASK 0x03ffffff /* SPARSE Mem region 3 mask is 26 bits */ -#define PYXIS_DMA_WIN_BASE_DEFAULT (1024*1024*1024) -#define PYXIS_DMA_WIN_SIZE_DEFAULT (1024*1024*1024) +#define PYXIS_DMA_WIN_BASE_DEFAULT (2UL*1024*1024*1024) +#define PYXIS_DMA_WIN_SIZE_DEFAULT (2UL*1024*1024*1024) #if defined(CONFIG_ALPHA_GENERIC) || defined(CONFIG_ALPHA_SRM_SETUP) #define PYXIS_DMA_WIN_BASE alpha_mv.dma_win_base diff -rup 2.2.3/include/asm-alpha/semaphore-helper.h 2.2.3-axp/include/asm-alpha/semaphore-helper.h --- 2.2.3/include/asm-alpha/semaphore-helper.h Sat Mar 13 10:43:40 1999 +++ 2.2.3-axp/include/asm-alpha/semaphore-helper.h Sat Mar 13 10:22:20 1999 @@ -90,9 +90,9 @@ waking_non_zero_interruptible(struct sem "1: ldq_l %1,%4\n" " lda %0,0\n" " addq %1,1,%2\n" - " ldah %3,0x8000(%1)\n" + " ldah %3,-32768(%1)\n" " cmovne %5,%6,%0\n" - " ldah %3,0x8000(%3)\n" + " ldah %3,-32768(%3)\n" " cmovge %1,1,%0\n" " cmovne %5,%2,%1\n" " cmovge %2,%3,%1\n" diff -rup 2.2.3/include/asm-alpha/semaphore.h 2.2.3-axp/include/asm-alpha/semaphore.h --- 2.2.3/include/asm-alpha/semaphore.h Sat Mar 13 10:43:40 1999 +++ 2.2.3-axp/include/asm-alpha/semaphore.h Sat Mar 13 10:21:46 1999 @@ -141,8 +141,8 @@ extern inline int down_trylock(struct se " subq %1,1,%1\n" " blt %2,2f\n" " blt %1,2f\n" - " ldah %1,0x8000(%1)\n" - " ldah %1,0x8000(%1)\n" + " ldah %1,-32768(%1)\n" + " ldah %1,-32768(%1)\n" " lda %0,1\n" " stq_c %1,%3\n" " beq %1,3f\n" ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-13 18:45 ` Richard Henderson @ 1999-03-13 18:50 ` Matthew Jacob 1999-03-13 23:58 ` Stephen Williams 1999-03-13 19:16 ` Dave Gilbert 1999-03-13 23:57 ` Stephen Williams 2 siblings, 1 reply; 50+ messages in thread From: Matthew Jacob @ 1999-03-13 18:50 UTC (permalink / raw) To: axp-list; +Cc: debian-alpha, Linux Kernel List, torvalds There are a growing number of 64 bit PCI implementations. Alpha has quite a chunk of this, and so does UltraSparc. Is there a framework in place or a notion of how the Linux PCI stuff ought to cope with this yet? On Sat, 13 Mar 1999, Richard Henderson wrote: > On Wed, Mar 10, 1999 at 11:57:38PM -0600, Bob McElrath wrote: > > It seems simple to me to modify these two files to support up to 1TB memory > > on the alpha, as opposed to the hard-coded limit of 1GB now. It appears the > > 21172 will only decode 40 bits of address, not 64, but that's 1TB... > > With 32-bit PCI devices, it is difficult to get past 2GB RAM. More > than that requires either bounce buffers or that PCI windows be > adjusted at runtime to cope with the various outstanding DMA requests. > Which would be cool, but i think fairly tricky to modify all the > drivers to get right. > > However, there's no reason we can't support 2GB instead of 1. > > > r~ > ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-13 18:50 ` Matthew Jacob @ 1999-03-13 23:58 ` Stephen Williams 1999-03-14 21:04 ` Matthew Jacob 0 siblings, 1 reply; 50+ messages in thread From: Stephen Williams @ 1999-03-13 23:58 UTC (permalink / raw) To: axp-list mjacob@feral.com said: > There are a growing number of 64 bit PCI implementations. Alpha has > quite a chunk of this, and so does UltraSparc. I want a 64bit PCI video card! Know where I might find one? -- Steve Williams "The woods are lovely, dark and deep. steve@icarus.com But I have promises to keep, steve@picturel.com and lines to code before I sleep, http://www.picturel.com And lines to code before I sleep." ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-13 23:58 ` Stephen Williams @ 1999-03-14 21:04 ` Matthew Jacob 0 siblings, 0 replies; 50+ messages in thread From: Matthew Jacob @ 1999-03-14 21:04 UTC (permalink / raw) To: axp-list Nope. On Sat, 13 Mar 1999, Stephen Williams wrote: > > mjacob@feral.com said: > > There are a growing number of 64 bit PCI implementations. Alpha has > > quite a chunk of this, and so does UltraSparc. > > I want a 64bit PCI video card! Know where I might find one? > -- > Steve Williams "The woods are lovely, dark and deep. > steve@icarus.com But I have promises to keep, > steve@picturel.com and lines to code before I sleep, > http://www.picturel.com And lines to code before I sleep." > > > -- > To unsubscribe: send e-mail to axp-list-request@redhat.com with > 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com > ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-13 18:45 ` Richard Henderson 1999-03-13 18:50 ` Matthew Jacob @ 1999-03-13 19:16 ` Dave Gilbert 1999-03-13 23:57 ` Stephen Williams 2 siblings, 0 replies; 50+ messages in thread From: Dave Gilbert @ 1999-03-13 19:16 UTC (permalink / raw) To: axp-list; +Cc: debian-alpha, Linux Kernel List, torvalds On Sat, 13 Mar 1999, Richard Henderson wrote: > With 32-bit PCI devices, it is difficult to get past 2GB RAM. More > than that requires either bounce buffers or that PCI windows be > adjusted at runtime to cope with the various outstanding DMA requests. > Which would be cool, but i think fairly tricky to modify all the > drivers to get right. > > However, there's no reason we can't support 2GB instead of 1. While that's true Richard, it is something which is going to have to be done and probably fairly soon. 2GB machines are not too unusual these days and that means 4GB machines will be not unusual in a year. But 64 bit PCI cards seem to be slow in appearing in any large numbers so we have to presume that we will get large memory systems with 32 bit PCI devices in (even if they are just things like graphics cards - althogh I wouldnt mind a 64bit PCI graphics card for my Alpha....) Similar problems afflict Linux systems running on processors on PCI cards who want to see a reasonable section of the host memory and yet allow their own memory to be visible to the host. Dave -------------------------------------------------------------------- / Dr. David Alan Gilbert | Running Linux on | Happy \ \ gro.gilbert @ treblig.org | Alpha, ARM and SPARC | In Hex / \____________________________|___ http://www.treblig.demon.co.uk __/ ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-13 18:45 ` Richard Henderson 1999-03-13 18:50 ` Matthew Jacob 1999-03-13 19:16 ` Dave Gilbert @ 1999-03-13 23:57 ` Stephen Williams 1999-03-14 3:18 ` Matti Aarnio 1999-03-14 3:21 ` Richard Henderson 2 siblings, 2 replies; 50+ messages in thread From: Stephen Williams @ 1999-03-13 23:57 UTC (permalink / raw) To: axp-list rth@twiddle.net said: > With 32-bit PCI devices, it is difficult to get past 2GB RAM. More > than that requires either bounce buffers or that PCI windows be > adjusted at runtime to cope with the various outstanding DMA requests. > The problem is buffer allocation. I hate to bring up the other guys, but that works under NT by taking as a parameter to the allocation function a mask of the significant bits of address that the device can handle. This handles crummy ISA devices and 32bit PCI devices, and anything in between. The interface is really simple and should be able to handle the problem quite easily. -- Steve Williams "The woods are lovely, dark and deep. steve@icarus.com But I have promises to keep, steve@picturel.com and lines to code before I sleep, http://www.picturel.com And lines to code before I sleep." ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-13 23:57 ` Stephen Williams @ 1999-03-14 3:18 ` Matti Aarnio 1999-03-15 22:47 ` Greg Lindahl 1999-03-14 3:21 ` Richard Henderson 1 sibling, 1 reply; 50+ messages in thread From: Matti Aarnio @ 1999-03-14 3:18 UTC (permalink / raw) To: axp-list Stephen Williams <steve@icarus.com> respondeth: > rth@twiddle.net said: > > With 32-bit PCI devices, it is difficult to get past 2GB RAM. More > > than that requires either bounce buffers or that PCI windows be > > adjusted at runtime to cope with the various outstanding DMA requests. > > The problem is buffer allocation. Yes, very much, but at selected hardware platforms we can also do scatter-gather mapping from PCI thru a selected size window to the global cacheable memory of the processor -- reading 21172 a.k.a. "CIA" chip document (21172tm.pdf) discusses this matter quite deeply, and gives some recommendations. At that document, talk about scatter-gather begins at part 6.4.3 (page 208, or 6-36) Part 6.4.4 gives some mapping recommendations.. That manual is also the reason why CIA does 1G Direct-DMA mapping window at Linux, even though 2G is possible. Likely the other chipsets can do similar things too. > I hate to bring up the other guys, but that works under NT by taking as > a parameter to the allocation function a mask of the significant bits > of address that the device can handle. This handles crummy ISA devices > and 32bit PCI devices, and anything in between. GFP_DMA, GFP_DMA32, etc ? Either way, code needs some work.. > The interface is really simple and should be able to handle the problem > quite easily. > Steve Williams "The woods are lovely, dark and deep. > steve@icarus.com But I have promises to keep, /Matti Aarnio <matti.aarnio@sonera.fi> ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-14 3:18 ` Matti Aarnio @ 1999-03-15 22:47 ` Greg Lindahl 1999-03-15 23:02 ` Matti Aarnio 0 siblings, 1 reply; 50+ messages in thread From: Greg Lindahl @ 1999-03-15 22:47 UTC (permalink / raw) To: axp-list > Part 6.4.4 gives some mapping recommendations.. > That manual is also the reason why CIA does 1G Direct-DMA > mapping window at Linux, even though 2G is possible. I read this part and I don't see why 1G was chosen even though 2G is possible. Can you enlighten us? -- greg ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-15 22:47 ` Greg Lindahl @ 1999-03-15 23:02 ` Matti Aarnio 1999-03-16 5:25 ` Jay.Estabrook 0 siblings, 1 reply; 50+ messages in thread From: Matti Aarnio @ 1999-03-15 23:02 UTC (permalink / raw) To: axp-list Greg Lindahl <lindahl@cs.virginia.edu> asked: > > Part 6.4.4 gives some mapping recommendations.. > > That manual is also the reason why CIA does 1G Direct-DMA > > mapping window at Linux, even though 2G is possible. > > I read this part and I don't see why 1G was chosen even though 2G is > possible. Can you enlighten us? The part in question: "6.4.4 Suggested Use of a PCI Window Figure 6 21 shows a power-up PCI window assignment (as configured by firmware) and Table 6 14 lists the details. PCI window 0 was chosen for the 8MB to 16MB EISA region because this window incorporates the mem_cs_l logic. PCI window 3 was not used as it incorporates the DAC cycle logic. PCI window 1 was chosen arbitrarily for the 1GB, direct- mapped region, and PCI window 2 is not assigned." I have some faint recollections about this issue with gentlemen back at Digital some 3-4 years ago, but no, I can't quote them anymore. For some reason the CIA document writers have decided to suggest: "PCI window 1 was chosen arbitarily for the 1G..." It does indeed seem possible to use e.g. 2GB window at 2GB base. Using it at 0 base isn't feasible due to various PCI- bus resident gadgets, most importantly things under 1MB mark (things like VGA display memories..) Oh yes, system rom writers (ARC and SRM) seem to do this 1G@1G initialization too, and therefore all mappings doing things differently must just scrap the setup given by the ARC or SRM which booted the machine. It is most certainly doable, but a bit -- drastic. So at the moment going up to 2GB main memory is fairly trivial in suitable machines, anything above it is a challenge... (... but those we do love, don't we ? ) > -- greg /Matti Aarnio <matti.aarnio@sonera.fi> ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-15 23:02 ` Matti Aarnio @ 1999-03-16 5:25 ` Jay.Estabrook 0 siblings, 0 replies; 50+ messages in thread From: Jay.Estabrook @ 1999-03-16 5:25 UTC (permalink / raw) To: axp-list >>> Matti Aarnio said: > > For some reason the CIA document writers have decided to > suggest: "PCI window 1 was chosen arbitarily for the 1G..." I think at the time that that was written, the technology for memory chips that would permit more than that size were a generation (or more) in the future... ;-} > It does indeed seem possible to use e.g. 2GB window at 2GB > base. Using it at 0 base isn't feasible due to various PCI- > bus resident gadgets, most importantly things under 1MB mark > (things like VGA display memories..) Correct. > So at the moment going up to 2GB main memory is fairly trivial > in suitable machines, anything above it is a challenge... > (... but those we do love, don't we ? ) Also correct... :-) --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 ------------------------------------------------------------------------------- ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-13 23:57 ` Stephen Williams 1999-03-14 3:18 ` Matti Aarnio @ 1999-03-14 3:21 ` Richard Henderson 1999-03-14 5:51 ` Stephen Williams 1999-03-14 18:23 ` Greg Lindahl 1 sibling, 2 replies; 50+ messages in thread From: Richard Henderson @ 1999-03-14 3:21 UTC (permalink / raw) To: axp-list On Sat, Mar 13, 1999 at 03:57:48PM -0800, Stephen Williams wrote: > > With 32-bit PCI devices, it is difficult to get past 2GB RAM. More > > than that requires either bounce buffers or that PCI windows be > > adjusted at runtime to cope with the various outstanding DMA requests. > > > > The problem is buffer allocation. Read "bounce buffers". We do already prefer `dma-able' pages for dma tasks. There is a kmalloc flag just for that. No matter what you do though, at some point it will so happen that the data is required at some high physical address. There are two ways to get the data there -- either through an intermediate buffer in a page frame the device can actually see, as you note NT does. Alternately, we can adjust the DMA window so that physical addresses 0x100000000 through 0x13FFFFFFF (4GB - 5GB) are visible at PCI addresses 0xC0000000 through 0xFFFFFFFF (3GB - 4GB). At which point we do not have to copy data around in kernel space, which is a real win. The trick of course being that there are only N dma windows, and they must service all outstanding dma requests simultaneously, and otherwise the request must queue or fall back to a bounce buffer. > The interface is really simple and should be able to handle the problem > quite easily. But is not necessarily the best way. r~ ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-14 3:21 ` Richard Henderson @ 1999-03-14 5:51 ` Stephen Williams 1999-03-14 17:59 ` Greg Lindahl 1999-03-14 18:23 ` Greg Lindahl 1 sibling, 1 reply; 50+ messages in thread From: Stephen Williams @ 1999-03-14 5:51 UTC (permalink / raw) To: axp-list On Sat, Mar 13, 1999 at 03:57:48PM -0800, Stephen Williams wrote: > > With 32-bit PCI devices, it is difficult to get past 2GB RAM. More > > than that requires either bounce buffers or that PCI windows be > > adjusted at runtime to cope with the various outstanding DMA requests. > > > > The problem is buffer allocation. rth@twiddle.net said: > Read "bounce buffers". No. I would rather just allocate memory that has the properties that the device needs, and these silly (and many not-so-silly) cards want memory that can be address with only 16 bits, or 32 bits, ... etc. I would rather not be bouncing the data from buffer to buffer if I can avoid it, and frankly, I think an allocator can be fixed up to handle the problem at hand. *Especially* a buddy system allocator. matti.aarnio@sonera.fi said: > GFP_DMA, GFP_DMA32, etc ? Yuck! -- Steve Williams "The woods are lovely, dark and deep. steve@icarus.com But I have promises to keep, steve@picturel.com and lines to code before I sleep, http://www.picturel.com And lines to code before I sleep." ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-14 5:51 ` Stephen Williams @ 1999-03-14 17:59 ` Greg Lindahl 1999-03-14 20:45 ` Stephen Williams 0 siblings, 1 reply; 50+ messages in thread From: Greg Lindahl @ 1999-03-14 17:59 UTC (permalink / raw) To: axp-list > No. I would rather just allocate memory that has the properties that > the device needs, and these silly (and many not-so-silly) cards want > memory that can be address with only 16 bits, or 32 bits, ... etc. > > I would rather not be bouncing the data from buffer to buffer if I > can avoid it, and frankly, I think an allocator can be fixed up to > handle the problem at hand. I have a card which dma's to a buffer allocated in normal user programs. You mean I have to change all my user code (Fortran MPI) because of _your_ preferences? No, the solution should be general. -- greg ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-14 17:59 ` Greg Lindahl @ 1999-03-14 20:45 ` Stephen Williams 1999-03-14 20:50 ` Greg Lindahl 0 siblings, 1 reply; 50+ messages in thread From: Stephen Williams @ 1999-03-14 20:45 UTC (permalink / raw) To: axp-list lindahl@cs.virginia.edu said: > I have a card which dma's to a buffer allocated in normal user > programs. You mean I have to change all my user code (Fortran MPI) > because of _your_ preferences? No, the solution should be general. What are you talking about? Of course not. If the driver does direct DMA to user pages, then the driver is compelled to add any bounce buffers that are needed to do the job if the user page is out of the range of the device. The driver should be able to ask for buffer space in the first 2Gig if that is all the device can handle. -- Steve Williams "The woods are lovely, dark and deep. steve@icarus.com But I have promises to keep, steve@picturel.com and lines to code before I sleep, http://www.picturel.com And lines to code before I sleep." ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-14 20:45 ` Stephen Williams @ 1999-03-14 20:50 ` Greg Lindahl 1999-03-14 21:19 ` Stephen Williams 0 siblings, 1 reply; 50+ messages in thread From: Greg Lindahl @ 1999-03-14 20:50 UTC (permalink / raw) To: axp-list > > I have a card which dma's to a buffer allocated in normal user > > programs. You mean I have to change all my user code (Fortran MPI) > > because of _your_ preferences? No, the solution should be general. > > What are you talking about? Of course not. > > If the driver does direct DMA to user pages, then the driver is compelled > to add any bounce buffers that are needed to do the job if the user page > is out of the range of the device. > > The driver should be able to ask for buffer space in the first 2Gig if > that is all the device can handle. The driver isn't allocating the buffer space, except for bounce buffers. In the scheme you have outlined, this device will never be efficiently supported. Why leave yourself fenced into a corner when making a fresh design? -- g ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-14 20:50 ` Greg Lindahl @ 1999-03-14 21:19 ` Stephen Williams 1999-03-14 21:44 ` Greg Lindahl 1999-03-15 9:59 ` Matti Aarnio 0 siblings, 2 replies; 50+ messages in thread From: Stephen Williams @ 1999-03-14 21:19 UTC (permalink / raw) To: axp-list lindahl@cs.virginia.edu said: > The driver isn't allocating the buffer space, except for bounce > buffers. In the scheme you have outlined, this device will never be > efficiently supported. ??! And how are the bounce buffers allocated? I must be missing something. If the driver doesn't allocate buffer space, the buffer allocation won't affect it, right? If the driver does direct DMA to a user buffer, and the user's page is in physical memory out of range of the device addressing capabilities, then something is going to have to change. Either the hardware is extended by magic motherboard support, or the driver allocates a buffer that the device *can* write to. What else can be done? This is true now and has nothing to do with my allocator interface suggestion. I'm just suggesting that if the driver must allocate buffer space that the device can access, the kernel allocator should provide a means for the driver to make that request. Currently, there is the GFP_DMA flag, but I'm suggesting generalizing that by simply saying to the allocator how many bits of address the device has. That's 32 bits in the case of most PCI devices. (Many do support DAC that gets one up to 64 at the expense of a bus cycle.) -- Steve Williams "The woods are lovely, dark and deep. steve@icarus.com But I have promises to keep, steve@picturel.com and lines to code before I sleep, http://www.picturel.com And lines to code before I sleep." ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-14 21:19 ` Stephen Williams @ 1999-03-14 21:44 ` Greg Lindahl 1999-03-15 9:59 ` Matti Aarnio 1 sibling, 0 replies; 50+ messages in thread From: Greg Lindahl @ 1999-03-14 21:44 UTC (permalink / raw) To: axp-list > I'm just suggesting that if the driver must allocate buffer space that > the device can access, the kernel allocator should provide a means for > the driver to make that request. That's easy. No one disagrees with that. I was merely explaining how that doesn't solve everyone's problem. -- g ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-14 21:19 ` Stephen Williams 1999-03-14 21:44 ` Greg Lindahl @ 1999-03-15 9:59 ` Matti Aarnio 1999-03-15 16:52 ` Stephen Williams 1 sibling, 1 reply; 50+ messages in thread From: Matti Aarnio @ 1999-03-15 9:59 UTC (permalink / raw) To: axp-list Stephen Williams <steve@icarus.com> wrote: > lindahl@cs.virginia.edu said: > > The driver isn't allocating the buffer space, except for bounce > > buffers. In the scheme you have outlined, this device will never be > > efficiently supported. > > ??! > > And how are the bounce buffers allocated? I must be missing something. > > If the driver doesn't allocate buffer space, the buffer allocation > won't affect it, right? > > If the driver does direct DMA to a user buffer, and the user's page is > in physical memory out of range of the device addressing capabilities, > then something is going to have to change. Either the hardware is extended > by magic motherboard support, or the driver allocates a buffer that the > device *can* write to. > > What else can be done? This is true now and has nothing to do with my > allocator interface suggestion. I would like to add a layer of that "magic" motherboard support, which in case of Alpha systems means IO-bus specific scatter- gather address mapping from a fairly small window (usually around 8 M to the entire system memory. If the system does not need to care about ISA-bus things, a much larger window of temporary mappings can be used. Needed mapping space is about 1/1000 or 1/500 of the memory window used for the mapping. Maybe management datasets will need to double the space expenditure, but if you can manage maps to e.g. 8G memory with mere 32kB datasets, why would you not do it?) What would it need ? When a physical address is to be added into a driver pointers, that address should be mapped either thru a direct-map window, or a scatter-gather window. (In most chipsets there seem to be only one scatter-gather window mechanism, even though any of the usually four address windows can be used for it.) For ephemeral mappings a fast lookup mechanisms are needed to find next free entry, and to find possibly existing mapping already covering given memory address. Also a fast way to move used (and no longer needed) mapping slot into a free list is needed. It is likely that e.g. for skbuf content pointers several skbuffs will reside in the same 8kB page, and thus a definite 'in use count' is needed at each mapping slot. Once the basic mapping machinery exists, the way to modify the drivers would simply be something like: busaddr = BUSSGMAPPER(memaddress); where the macro hides away most of the painfull details.. ... for that matter, in fact that 'BUSSGMAPPER()' can be called 'virt_to_bus()', in which case we wont need to touch into most of the driver source -- except that all SG mapping RELEASES still need doing at some point, e.g.: 'bus_map_release(busaddr);' Hmm... but still there is lack of call parameter above, at what IO-bus the given device is operating must be given above, thus likely changeing the current: virt_to_bus(memaddress) to something like: virt_to_bus(memaddress,dev->bus) Admittedly in most cases especially the 'pci_bus' thing refers to a bridged segment under the same pci/memory controller, but getting the system to run at e.g. DEC 8400 system requires support for multiple IO-bus controller modules. Possibly the PCI-bus index will do it thru some additional mapping. However do note that we will need quite often also separate bus-entries for all instances of ISA limited bus-master devices. > I'm just suggesting that if the driver must allocate buffer space that > the device can access, the kernel allocator should provide a means for > the driver to make that request. Currently, there is the GFP_DMA flag, > but I'm suggesting generalizing that by simply saying to the allocator > how many bits of address the device has. That's 32 bits in the case of > most PCI devices. (Many do support DAC that gets one up to 64 at the > expense of a bus cycle.) Hmm... Yes, these measures (e.g. GFP_DMAPCI32) may be needed for systems which don't have 'magic motherboard support'. (Which covers all of intel systems, I think..) > -- > Steve Williams "The woods are lovely, dark and deep. > steve@icarus.com But I have promises to keep, /Matti Aarnio <matti.aarnio@sonera.fi> ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-15 9:59 ` Matti Aarnio @ 1999-03-15 16:52 ` Stephen Williams 1999-03-15 17:03 ` Matthew Jacob 0 siblings, 1 reply; 50+ messages in thread From: Stephen Williams @ 1999-03-15 16:52 UTC (permalink / raw) To: axp-list matti.aarnio@sonera.fi said: > I would like to add a layer of that "magic" motherboard support, > which in case of Alpha systems means IO-bus specific scatter- > gather address mapping from a fairly small window (usually around > 8 M to the entire system memory. I would like to know about the chips on the motherboard that do this. I might have cause to build such things into hardware of my own. Part numbers? ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-15 16:52 ` Stephen Williams @ 1999-03-15 17:03 ` Matthew Jacob 0 siblings, 0 replies; 50+ messages in thread From: Matthew Jacob @ 1999-03-15 17:03 UTC (permalink / raw) To: axp-list On Mon, 15 Mar 1999, Stephen Williams wrote: > > matti.aarnio@sonera.fi said: > > I would like to add a layer of that "magic" motherboard support, > > which in case of Alpha systems means IO-bus specific scatter- > > gather address mapping from a fairly small window (usually around > > 8 M to the entire system memory. > > I would like to know about the chips on the motherboard that do this. > I might have cause to build such things into hardware of my own. > Part numbers? > This would be nearly all of the digital PCi chipsets. ^ permalink raw reply [flat|nested] 50+ messages in thread
* Re: > 1GB on alpha. Patch to 1TB? 1999-03-14 3:21 ` Richard Henderson 1999-03-14 5:51 ` Stephen Williams @ 1999-03-14 18:23 ` Greg Lindahl 1 sibling, 0 replies; 50+ messages in thread From: Greg Lindahl @ 1999-03-14 18:23 UTC (permalink / raw) To: axp-list > We do already prefer `dma-able' pages for dma tasks. There is a kmalloc > flag just for that. No matter what you do though, at some point it will > so happen that the data is required at some high physical address. One trivial example would be a system with 8 gigs in which it makes sense to have more than 4 gigs used for disk cache. Another example is a driver that DMAs to user-allocated buffers. A third example is any system which has more than 4 gigs of ram; although we prefer dma-able pages for dma tasks, there's no way you can *guarantee* that you can get a dma-able page when you want a buffer; you might have to copy a page to high memory. > Alternately, we can adjust the DMA window so that physical addresses > 0x100000000 through 0x13FFFFFFF (4GB - 5GB) are visible at PCI addresses > 0xC0000000 through 0xFFFFFFFF (3GB - 4GB). At which point we do not have > to copy data around in kernel space, which is a real win. Doesn't this require some driver modifications? We need to keep this in mind, too, in our solution. This solution is probably the highest performance. Another intermediate solution is to prefer dma-able pages and have every driver know how to employ a bounce buffer if the destination is not dma-able. This requires modifying every driver. The third solution is to use windows in clever ways. That requires modifying every driver, and we'd probably have to also require bounce buffer capability since you can run out of DMA windows, or there could be architecture which has no windows. -- greg ^ permalink raw reply [flat|nested] 50+ messages in thread
end of thread, other threads:[~1999-03-16 18:23 UTC | newest]
Thread overview: 50+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-03-11 20:28 > 1GB on alpha. Patch to 1TB? Anders Blicher Petersen
[not found] <19990315002405.A2138@alpha.franken.de>
1999-03-15 0:54 ` Jay.Estabrook
[not found] <199903132048.VAA11627@sunsite.mff.cuni.cz>
1999-03-13 21:17 ` Matthew Jacob
1999-03-14 16:02 ` Jay.Estabrook
1999-03-15 19:14 ` James H. Cloos Jr.
1999-03-15 19:41 ` Michal Jaegermann
1999-03-15 21:46 ` Matti Aarnio
1999-03-16 1:42 ` Richard Henderson
1999-03-16 6:04 ` Mike
1999-03-16 6:25 ` Ron Farrer
1999-03-16 6:28 ` Mike
1999-03-16 0:34 ` Bob McElrath
1999-03-16 5:12 ` Jay.Estabrook
1999-03-16 13:09 ` Greg Lindahl
1999-03-16 18:08 ` Jay.Estabrook
-- strict thread matches above, loose matches on Subject: below --
1999-03-11 5:57 Bob McElrath
1999-03-11 6:13 ` Greg Lindahl
1999-03-11 7:14 ` Gerhard Schneider
1999-03-11 17:17 ` Maurice Hilarius
1999-03-11 20:03 ` Greg Lindahl
1999-03-11 16:50 ` Ron Farrer
1999-03-11 17:19 ` Maurice Hilarius
1999-03-11 17:39 ` Ron Farrer
1999-03-11 18:17 ` Maurice Hilarius
1999-03-11 18:31 ` Ron Farrer
1999-03-12 0:47 ` Steve Frampton
1999-03-12 1:01 ` Larry Snyder
1999-03-12 1:31 ` mgraffam
1999-03-12 4:51 ` Izaak Bozof
1999-03-13 18:45 ` Richard Henderson
1999-03-13 18:50 ` Matthew Jacob
1999-03-13 23:58 ` Stephen Williams
1999-03-14 21:04 ` Matthew Jacob
1999-03-13 19:16 ` Dave Gilbert
1999-03-13 23:57 ` Stephen Williams
1999-03-14 3:18 ` Matti Aarnio
1999-03-15 22:47 ` Greg Lindahl
1999-03-15 23:02 ` Matti Aarnio
1999-03-16 5:25 ` Jay.Estabrook
1999-03-14 3:21 ` Richard Henderson
1999-03-14 5:51 ` Stephen Williams
1999-03-14 17:59 ` Greg Lindahl
1999-03-14 20:45 ` Stephen Williams
1999-03-14 20:50 ` Greg Lindahl
1999-03-14 21:19 ` Stephen Williams
1999-03-14 21:44 ` Greg Lindahl
1999-03-15 9:59 ` Matti Aarnio
1999-03-15 16:52 ` Stephen Williams
1999-03-15 17:03 ` Matthew Jacob
1999-03-14 18:23 ` Greg Lindahl
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox