Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Richard Henderson <rth@twiddle.net>
To: axp-list@redhat.com, debian-alpha@lists.debian.org,
	Linux Kernel List <linux-kernel@vger.rutgers.edu>
Cc: torvalds@transmeta.com
Subject: Re: > 1GB on alpha.  Patch to 1TB?
Date: Sat, 13 Mar 1999 10:45:38 -0800	[thread overview]
Message-ID: <19990313104538.A11584@twiddle.net> (raw)
In-Reply-To: <Pine.LNX.4.04.9903102339180.1086-100000@draal.physics.wisc.edu>; from Bob McElrath on Wed, Mar 10, 1999 at 11:57:38PM -0600

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

  parent reply	other threads:[~1999-03-13 18:53 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-11  5:57 > 1GB on alpha. Patch to 1TB? 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 [this message]
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
  -- strict thread matches above, loose matches on Subject: below --
1999-03-11 20:28 Anders Blicher Petersen
     [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
     [not found] <19990315002405.A2138@alpha.franken.de>
1999-03-15  0:54 ` Jay.Estabrook
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