Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Linux 2.3.X on Alpha..
@ 1999-08-23 15:35 Phillip Ezolt
  1999-08-23 16:21 ` Peter Rival
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Phillip Ezolt @ 1999-08-23 15:35 UTC (permalink / raw)
  To: axp-list

Has anyone got the 2.3.X kernels to work on an Alpha system? 

I just tried 2.3.15-pre2 on my AS500, and it hangs after aboot says "now
starting kernel".

If others have had success, I'll push forward...

--Phil

Compaq: Business Critical Servers Division/Benchmark Performance Engineering 
---------------- Alpha, The Fastest Processor on Earth --------------------
Phillip.Ezolt@compaq.com        |C|O|M|P|A|Q|        ezolt@perf.zko.dec.com




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Linux 2.3.X on Alpha..
  1999-08-23 15:35 Linux 2.3.X on Alpha Phillip Ezolt
@ 1999-08-23 16:21 ` Peter Rival
  1999-08-24  1:09   ` Richard Henderson
  1999-08-23 16:39 ` Heinz Ulrich Stille
  1999-08-24  8:34 ` Dr. David Gilbert
  2 siblings, 1 reply; 10+ messages in thread
From: Peter Rival @ 1999-08-23 16:21 UTC (permalink / raw)
  To: axp-list

Been there, done that, got the t-shirt ;)  I had it working on rawhides and
mikasas up to 2.3.13-rth1 (IIRC) and then had to give back the rawhide.  If you
just want 2.3.x, you could start there, although I'm positive there are some
nasty bugs.  I'm lazily sitting on 2.3.10 on my miata, with its own inherent
bugs.  I'd say you could just wait until either -pre3 or until rth puts out
another patch, one of which should fix the problem.  I think.  ;)

 - Pete

Phillip Ezolt wrote:

> Has anyone got the 2.3.X kernels to work on an Alpha system?
>
> I just tried 2.3.15-pre2 on my AS500, and it hangs after aboot says "now
> starting kernel".
>
> If others have had success, I'll push forward...
>
> --Phil
>
> Compaq: Business Critical Servers Division/Benchmark Performance Engineering
> ---------------- Alpha, The Fastest Processor on Earth --------------------
> Phillip.Ezolt@compaq.com        |C|O|M|P|A|Q|        ezolt@perf.zko.dec.com
>
> --
> 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] 10+ messages in thread

* Re: Linux 2.3.X on Alpha..
  1999-08-23 15:35 Linux 2.3.X on Alpha Phillip Ezolt
  1999-08-23 16:21 ` Peter Rival
@ 1999-08-23 16:39 ` Heinz Ulrich Stille
  1999-08-23 17:00   ` Peter Rival
  1999-08-24  8:34 ` Dr. David Gilbert
  2 siblings, 1 reply; 10+ messages in thread
From: Heinz Ulrich Stille @ 1999-08-23 16:39 UTC (permalink / raw)
  To: axp-list

On Mon, 23 Aug 1999, Phillip Ezolt wrote:
> I just tried 2.3.15-pre2 on my AS500, and it hangs after aboot says "now
> starting kernel".

Same here (on a Ruffian). I run 2.3.6 without problems, after that
there always is something broken.
For 2.2.8 and later you also need:

--- linux/arch/alpha/kernel/entry.S   Thu Jun 24 12:12:39 1999
+++ linux-2.3/arch/alpha/kernel/entry.S    Sun May 30 20:22:06 1999
@@ -525,8 +525,7 @@
        .prologue 0
        bsr     $1,do_switch_stack
        call_pal PAL_swpctx
-       lda     $16,-2($31)
-       call_pal PAL_tbi
+       unop
        bsr     $1,undo_switch_stack
        mov     $17,$0
        ret     $31,($26),1


MfG, Ulrich

---
It is well known that stone can think, because the whole of electronics is
based on the fact.                             T. Pratchett, "Equal Rites"



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Linux 2.3.X on Alpha..
  1999-08-23 16:39 ` Heinz Ulrich Stille
@ 1999-08-23 17:00   ` Peter Rival
  0 siblings, 0 replies; 10+ messages in thread
From: Peter Rival @ 1999-08-23 17:00 UTC (permalink / raw)
  To: axp-list

Heinz Ulrich Stille wrote:

> On Mon, 23 Aug 1999, Phillip Ezolt wrote:
> > I just tried 2.3.15-pre2 on my AS500, and it hangs after aboot says "now
> > starting kernel".
>
> Same here (on a Ruffian). I run 2.3.6 without problems, after that
> there always is something broken.
> For 2.2.8 and later you also need:
>
> --- linux/arch/alpha/kernel/entry.S   Thu Jun 24 12:12:39 1999
> +++ linux-2.3/arch/alpha/kernel/entry.S    Sun May 30 20:22:06 1999
> @@ -525,8 +525,7 @@
>         .prologue 0
>         bsr     $1,do_switch_stack
>         call_pal PAL_swpctx
> -       lda     $16,-2($31)
> -       call_pal PAL_tbi
> +       unop
>         bsr     $1,undo_switch_stack
>         mov     $17,$0
>         ret     $31,($26),1

Wasn't this the one that rth said shouldn't have to be used because it was
the "old" way of doing things?  IIRC, it was something to the effect of, "it
works, but it screws performance".  Dunno...maybe I'm losing my mind ;)  BTW,
2.2.11 works (fairly) nicely on rawhide and mikasa.

 - Pete


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Linux 2.3.X on Alpha..
  1999-08-23 16:21 ` Peter Rival
@ 1999-08-24  1:09   ` Richard Henderson
  1999-08-30 12:38     ` Peter Rival
  0 siblings, 1 reply; 10+ messages in thread
From: Richard Henderson @ 1999-08-24  1:09 UTC (permalink / raw)
  To: axp-list; +Cc: torvalds

[-- Attachment #1: Type: text/plain, Size: 368 bytes --]

On Mon, Aug 23, 1999 at 12:21:17PM -0400, Peter Rival wrote:
> Been there, done that, got the t-shirt ;)  I had it working on rawhides and
> mikasas up to 2.3.13-rth1 (IIRC) and then had to give back the rawhide...

Here's a patch needed to get 2.3.15-pre1 working on rawhide.

Not sure about the as500...  I should try on eb164 this evening
to verify CIA cores.


r~

[-- Attachment #2: z-mcpcia --]
[-- Type: text/plain, Size: 14863 bytes --]

diff -ruNp 2.3.15-1/arch/alpha/defconfig 2.3.15-axp/arch/alpha/defconfig
--- 2.3.15-1/arch/alpha/defconfig	Thu Feb 25 10:46:46 1999
+++ 2.3.15-axp/arch/alpha/defconfig	Sat Aug 21 00:35:14 1999
@@ -17,7 +17,6 @@ CONFIG_MODULES=y
 #
 # General setup
 #
-CONFIG_NATIVE=y
 CONFIG_ALPHA_GENERIC=y
 # CONFIG_ALPHA_ALCOR is not set
 # CONFIG_ALPHA_XL is not set
@@ -39,12 +38,12 @@ CONFIG_ALPHA_GENERIC=y
 # CONFIG_ALPHA_P2K is not set
 # CONFIG_ALPHA_RAWHIDE is not set
 # CONFIG_ALPHA_RUFFIAN is not set
+# CONFIG_ALPHA_RX164 is not set
 # CONFIG_ALPHA_SX164 is not set
 # CONFIG_ALPHA_SABLE is not set
 # CONFIG_ALPHA_TAKARA is not set
-# CONFIG_SMP is not set
 CONFIG_PCI=y
-CONFIG_ALPHA_NEED_ROUNDING_EMULATION=y
+# CONFIG_SMP is not set
 # CONFIG_PCI_QUIRKS is not set
 CONFIG_PCI_OLD_PROC=y
 CONFIG_NET=y
@@ -58,9 +57,10 @@ CONFIG_BINFMT_EM86=y
 # CONFIG_PARPORT is not set
 
 #
-# Plug and Play support
+# Plug and Play configuration
 #
 # CONFIG_PNP is not set
+# CONFIG_ISAPNP is not set
 
 #
 # Block devices
@@ -72,6 +72,7 @@ CONFIG_BLK_DEV_FD=y
 # Please see Documentation/ide.txt for help/info on IDE drives
 #
 # CONFIG_BLK_DEV_HD_ONLY is not set
+# CONFIG_BLK_CPQ_DA is not set
 
 #
 # Additional Block Devices
@@ -83,6 +84,7 @@ CONFIG_BLK_DEV_FD=y
 # CONFIG_BLK_DEV_XD is not set
 CONFIG_PARIDE_PARPORT=y
 # CONFIG_PARIDE is not set
+# CONFIG_BLK_DEV_IDE_MODES is not set
 # CONFIG_BLK_DEV_HD is not set
 
 #
@@ -107,7 +109,6 @@ CONFIG_INET=y
 # (it is safe to leave these untouched)
 #
 # CONFIG_INET_RARP is not set
-CONFIG_IP_NOSR=y
 CONFIG_SKB_LARGE=y
 
 #
@@ -141,6 +142,7 @@ CONFIG_SCSI_CONSTANTS=y
 # SCSI low-level drivers
 #
 # CONFIG_SCSI_7000FASST is not set
+# CONFIG_SCSI_ACARD is not set
 # CONFIG_SCSI_AHA152X is not set
 # CONFIG_SCSI_AHA1542 is not set
 # CONFIG_SCSI_AHA1740 is not set
@@ -148,23 +150,29 @@ CONFIG_SCSI_CONSTANTS=y
 # CONFIG_SCSI_ADVANSYS is not set
 # CONFIG_SCSI_IN2000 is not set
 # CONFIG_SCSI_AM53C974 is not set
+# CONFIG_SCSI_MEGARAID is not set
 # CONFIG_SCSI_BUSLOGIC is not set
 # CONFIG_SCSI_DTC3280 is not set
+# CONFIG_SCSI_EATA is not set
 # CONFIG_SCSI_EATA_DMA is not set
 # CONFIG_SCSI_EATA_PIO is not set
-# CONFIG_SCSI_EATA is not set
 # CONFIG_SCSI_FUTURE_DOMAIN is not set
 # CONFIG_SCSI_GDTH is not set
 # CONFIG_SCSI_GENERIC_NCR5380 is not set
+# CONFIG_SCSI_INITIO is not set
+# CONFIG_SCSI_INIA100 is not set
 # CONFIG_SCSI_NCR53C406A is not set
+# CONFIG_SCSI_SYM53C416 is not set
 # CONFIG_SCSI_NCR53C7xx is not set
 # CONFIG_SCSI_NCR53C8XX is not set
+# CONFIG_SCSI_SYM53C8XX is not set
 # CONFIG_SCSI_PAS16 is not set
 # CONFIG_SCSI_PCI2000 is not set
 # CONFIG_SCSI_PCI2220I is not set
 # CONFIG_SCSI_PSI240I is not set
 # CONFIG_SCSI_QLOGIC_FAS is not set
 CONFIG_SCSI_QLOGIC_ISP=y
+# CONFIG_SCSI_QLOGIC_FC is not set
 # CONFIG_SCSI_SEAGATE is not set
 # CONFIG_SCSI_DC390T is not set
 # CONFIG_SCSI_T128 is not set
@@ -175,9 +183,17 @@ CONFIG_SCSI_QLOGIC_ISP=y
 # Network device support
 #
 CONFIG_NETDEVICES=y
+
+#
+# ARCnet devices
+#
 # CONFIG_ARCNET is not set
 CONFIG_DUMMY=m
 # CONFIG_EQUALIZER is not set
+
+#
+# Ethernet (10 or 100Mbit)
+#
 CONFIG_NET_ETHERNET=y
 # CONFIG_NET_VENDOR_3COM is not set
 # CONFIG_LANCE is not set
@@ -194,14 +210,25 @@ CONFIG_DE4X5=y
 # CONFIG_EEXPRESS_PRO100 is not set
 # CONFIG_NE2K_PCI is not set
 # CONFIG_TLAN is not set
+# CONFIG_VIA_RHINE is not set
 # CONFIG_NET_POCKET is not set
 # CONFIG_FDDI is not set
-# CONFIG_DLCI is not set
 # CONFIG_PPP is not set
 # CONFIG_SLIP is not set
 # CONFIG_NET_RADIO is not set
+
+#
+# Token ring devices
+#
 # CONFIG_TR is not set
+
+#
+# Wan interfaces
+#
 # CONFIG_HOSTESS_SV11 is not set
+# CONFIG_COSA is not set
+# CONFIG_SEALEVEL_4021 is not set
+# CONFIG_DLCI is not set
 # CONFIG_WAN_DRIVERS is not set
 # CONFIG_LAPBETHER is not set
 # CONFIG_X25_ASY is not set
@@ -217,7 +244,7 @@ CONFIG_DE4X5=y
 # CONFIG_ISDN is not set
 
 #
-# CD-ROM drivers (not for SCSI or IDE/ATAPI drives)
+# Old CD-ROM drivers (not SCSI, not IDE)
 #
 # CONFIG_CD_NO_IDESCSI is not set
 
@@ -232,20 +259,30 @@ CONFIG_SERIAL=y
 # CONFIG_SERIAL_NONSTANDARD is not set
 CONFIG_UNIX98_PTYS=y
 CONFIG_UNIX98_PTY_COUNT=256
-CONFIG_MOUSE=y
-# CONFIG_ATIXL_BUSMOUSE is not set
+
+#
+# Mice
+#
 # CONFIG_BUSMOUSE is not set
-# CONFIG_MS_BUSMOUSE is not set
+CONFIG_MOUSE=y
 CONFIG_PSMOUSE=y
 # CONFIG_82C710_MOUSE is not set
 # CONFIG_PC110_PAD is not set
-# CONFIG_UMISC is not set
 # CONFIG_QIC02_TAPE is not set
 # CONFIG_WATCHDOG is not set
+# CONFIG_NVRAM is not set
 # CONFIG_RTC is not set
+
+#
+# Video For Linux
+#
 # CONFIG_VIDEO_DEV is not set
-# CONFIG_NVRAM is not set
+
+#
+# Joystick support
+#
 # CONFIG_JOYSTICK is not set
+# CONFIG_DTLK is not set
 
 #
 # Ftape, the floppy tape device driver
@@ -256,31 +293,43 @@ CONFIG_PSMOUSE=y
 # Filesystems
 #
 # CONFIG_QUOTA is not set
-# CONFIG_MINIX_FS is not set
-CONFIG_EXT2_FS=y
-CONFIG_ISO9660_FS=y
-# CONFIG_JOLIET is not set
+# CONFIG_AUTOFS_FS is not set
+# CONFIG_AFFS_FS is not set
+# CONFIG_HFS_FS is not set
 # CONFIG_FAT_FS is not set
 # CONFIG_MSDOS_FS is not set
 # CONFIG_UMSDOS_FS is not set
 # CONFIG_VFAT_FS is not set
+CONFIG_ISO9660_FS=y
+# CONFIG_JOLIET is not set
+# CONFIG_MINIX_FS is not set
+# CONFIG_NTFS_FS is not set
+# CONFIG_HPFS_FS is not set
 CONFIG_PROC_FS=y
+CONFIG_DEVPTS_FS=y
+# CONFIG_ROMFS_FS is not set
+CONFIG_EXT2_FS=y
+# CONFIG_SYSV_FS is not set
+# CONFIG_UFS_FS is not set
+
+#
+# Network File Systems
+#
+# CONFIG_CODA_FS is not set
 CONFIG_NFS_FS=y
-# CONFIG_NFSD is not set
 CONFIG_SUNRPC=y
 CONFIG_LOCKD=y
-# CONFIG_CODA_FS is not set
 # CONFIG_SMB_FS is not set
-# CONFIG_HPFS_FS is not set
-# CONFIG_NTFS_FS is not set
-# CONFIG_SYSV_FS is not set
-# CONFIG_AFFS_FS is not set
-# CONFIG_HFS_FS is not set
-# CONFIG_ROMFS_FS is not set
-# CONFIG_AUTOFS_FS is not set
-# CONFIG_UFS_FS is not set
-CONFIG_DEVPTS_FS=y
-# CONFIG_MAC_PARTITION is not set
+# CONFIG_NCP_FS is not set
+
+#
+# Partition Types
+#
+# CONFIG_PARTITION_ADVANCED is not set
+CONFIG_MSDOS_PARTITION=y
+CONFIG_OSF_PARTITION=y
+# CONFIG_SMD_DISKLABEL is not set
+# CONFIG_SGI_DISKLABEL is not set
 # CONFIG_NLS is not set
 
 #
diff -ruNp 2.3.15-1/arch/alpha/kernel/core_mcpcia.c 2.3.15-axp/arch/alpha/kernel/core_mcpcia.c
--- 2.3.15-1/arch/alpha/kernel/core_mcpcia.c	Fri Aug 13 11:53:50 1999
+++ 2.3.15-axp/arch/alpha/kernel/core_mcpcia.c	Sat Aug 21 15:13:11 1999
@@ -308,6 +308,10 @@ mcpcia_init_arch(unsigned long *mem_star
 
 	cpu = smp_processor_id();
 
+	/* We have 4 busses, each 32 bits wide.  */
+	ioport_resource.end = 0x3ffffffff;
+	iomem_resource.end = 0x3ffffffff;
+
 	/* First, find how many hoses we have.  */
 	for (h = 0; h < MCPCIA_MAX_HOSES; h++) {
 
@@ -648,10 +652,11 @@ mcpcia_machine_check(unsigned long vecto
 	wrmces(0x7);
 	mb();
 
-	process_mcheck_info(vector, la_ptr, regs, "MCPCIA",
-		            mcheck_expected(cpu));
-
-	if (vector != 0x620 && vector != 0x630) {
-		mcpcia_print_uncorrectable(mchk_logout);
+	if (mcheck_expected(cpu)) {
+		process_mcheck_info(vector, la_ptr, regs, "MCPCIA", 1);
+	} else {
+		process_mcheck_info(vector, la_ptr, regs, "MCPCIA", 0);
+		if (vector != 0x620 && vector != 0x630)
+			mcpcia_print_uncorrectable(mchk_logout);
 	}
 }
diff -ruNp 2.3.15-1/arch/alpha/kernel/core_tsunami.c 2.3.15-axp/arch/alpha/kernel/core_tsunami.c
--- 2.3.15-1/arch/alpha/kernel/core_tsunami.c	Fri Aug 13 11:53:50 1999
+++ 2.3.15-axp/arch/alpha/kernel/core_tsunami.c	Sat Aug 21 15:14:26 1999
@@ -362,8 +362,13 @@ tsunami_init_arch(unsigned long *mem_sta
 	/* Find how many hoses we have, and initialize them.  TSUNAMI
 	   and TYPHOON can have 2, but might only have 1 (DS10).  */
 	tsunami_init_one_pchip(TSUNAMI_pchip0, 0, mem_start);
-	if (TSUNAMI_cchip->csc.csr & 1L<<14)
-	    tsunami_init_one_pchip(TSUNAMI_pchip1, 1, mem_start);
+	if (TSUNAMI_cchip->csc.csr & 1L<<14) {
+		/* Two busses.  */
+        	ioport_resource.end = 0x1ffffffff;
+        	iomem_resource.end = 0x1ffffffff;
+
+		tsunami_init_one_pchip(TSUNAMI_pchip1, 1, mem_start);
+	}
 }
 
 static inline void
diff -ruNp 2.3.15-1/arch/alpha/vmlinux.lds 2.3.15-axp/arch/alpha/vmlinux.lds
--- 2.3.15-1/arch/alpha/vmlinux.lds	Wed Aug  4 15:48:00 1999
+++ 2.3.15-axp/arch/alpha/vmlinux.lds	Sat Aug 21 02:38:00 1999
@@ -59,4 +59,27 @@ SECTIONS
   .mdebug 0 : { *(.mdebug) }
   .note 0 : { *(.note) }
   .comment 0 : { *(.comment) }
+
+  /* DWARF 1 */
+  .debug          0 : { *(.debug) }
+  .line           0 : { *(.line) }
+  /* GNU DWARF 1 extensions */
+  .debug_srcinfo  0 : { *(.debug_srcinfo) }
+  .debug_sfnames  0 : { *(.debug_sfnames) }
+  /* DWARF 1.1 and DWARF 2 */
+  .debug_aranges  0 : { *(.debug_aranges) }
+  .debug_pubnames 0 : { *(.debug_pubnames) }
+  /* DWARF 2 */
+  .debug_info     0 : { *(.debug_info) }
+  .debug_abbrev   0 : { *(.debug_abbrev) }
+  .debug_line     0 : { *(.debug_line) }
+  .debug_frame    0 : { *(.debug_frame) }
+  .debug_str      0 : { *(.debug_str) }
+  .debug_loc      0 : { *(.debug_loc) }
+  .debug_macinfo  0 : { *(.debug_macinfo) }
+  /* SGI/MIPS DWARF 2 extensions */
+  .debug_weaknames 0 : { *(.debug_weaknames) }
+  .debug_funcnames 0 : { *(.debug_funcnames) }
+  .debug_typenames 0 : { *(.debug_typenames) }
+  .debug_varnames  0 : { *(.debug_varnames) }
 }
diff -ruNp 2.3.15-1/drivers/scsi/qlogicisp.c 2.3.15-axp/drivers/scsi/qlogicisp.c
--- 2.3.15-1/drivers/scsi/qlogicisp.c	Thu Aug  5 15:11:52 1999
+++ 2.3.15-axp/drivers/scsi/qlogicisp.c	Sat Aug 21 15:02:59 1999
@@ -1170,7 +1170,7 @@ static int isp1020_reset_hardware(struct
 
 static int isp1020_init(struct Scsi_Host *sh)
 {
-	u_long io_base;
+	u_long io_base, io_flags;
 	struct isp1020_hostdata *hostdata;
 	u_char revision;
 	u_int irq;
@@ -1188,7 +1188,9 @@ static int isp1020_init(struct Scsi_Host
 		printk("qlogicisp : error reading PCI configuration\n");
 		return 1;
 	}
+
 	io_base = pdev->resource[0].start;
+	io_flags = pdev->resource[0].flags;
 	irq = pdev->irq;
 
 	if (pdev->vendor != PCI_VENDOR_ID_QLOGIC) {
@@ -1212,9 +1214,8 @@ static int isp1020_init(struct Scsi_Host
 	pci_write_config_byte(pdev, PCI_LATENCY_TIMER, 64);
 #endif
 
-	if (command & PCI_COMMAND_IO && (io_base & 3) == 1)
-		io_base &= PCI_BASE_ADDRESS_IO_MASK;
-	else {
+	if (! ((command & PCI_COMMAND_IO)
+	       && (io_flags & PCI_BASE_ADDRESS_SPACE_IO))) {
 		printk("qlogicisp : i/o mapping is disabled\n");
 		return 1;
 	}
diff -ruNp 2.3.15-1/include/asm-alpha/core_mcpcia.h 2.3.15-axp/include/asm-alpha/core_mcpcia.h
--- 2.3.15-1/include/asm-alpha/core_mcpcia.h	Mon Aug 16 10:33:58 1999
+++ 2.3.15-axp/include/asm-alpha/core_mcpcia.h	Sat Aug 21 04:07:09 1999
@@ -314,12 +314,13 @@ __EXTERN_INLINE int mcpcia_is_ioaddr(uns
 __EXTERN_INLINE unsigned long mcpcia_srm_base(unsigned long addr)
 {
 	unsigned long mask, base;
-	unsigned long hose = (addr >> 32) & 3;
+	unsigned long hose = (addr >> 33) & 3;
 
 #if __DEBUG_IOREMAP
-	if (addr <= 0x1000000000) {
+	if (addr <= 0x4000000000) {
 		printk(KERN_CRIT "mcpcia: 0x%lx not ioremapped (%p)\n",
 		       addr, __builtin_return_address(0));
+		hose = (addr >> 32) & 3;
 	}
 #endif
 
@@ -389,13 +390,14 @@ __EXTERN_INLINE unsigned long mcpcia_rea
 	/* Note that MCPCIA_DENSE(hose) has no bits not masked here, and
 	   that the hose calculation is still correct.  */
 	unsigned long addr = in_addr & 0xffffffffUL;
-	unsigned long hose = (in_addr >> 32) & 3;
+	unsigned long hose = (in_addr >> 33) & 3;
 	unsigned long result, msb, work, temp;
 
 #if __DEBUG_IOREMAP
-	if (in_addr <= 0x1000000000) {
+	if (in_addr <= 0x4000000000) {
 		printk(KERN_CRIT "mcpcia: 0x%lx not ioremapped (%p)\n",
 		       addr, __builtin_return_address(0));
+		hose = (in_addr >> 32) & 3;
 	}
 #endif
 
@@ -413,13 +415,14 @@ __EXTERN_INLINE unsigned long mcpcia_rea
 	/* Note that MCPCIA_DENSE(hose) has no bits not masked here, and
 	   that the hose calculation is still correct.  */
 	unsigned long addr = in_addr & 0xffffffffUL;
-	unsigned long hose = (in_addr >> 32) & 3;
+	unsigned long hose = (in_addr >> 33) & 3;
 	unsigned long result, msb, work, temp;
 
 #if __DEBUG_IOREMAP
-	if (in_addr <= 0x1000000000) {
+	if (in_addr <= 0x4000000000) {
 		printk(KERN_CRIT "mcpcia: 0x%lx not ioremapped (%p)\n",
 		       addr, __builtin_return_address(0));
+		hose = (in_addr >> 32) & 3;
 	}
 #endif
 
@@ -437,13 +440,14 @@ __EXTERN_INLINE void mcpcia_writeb(unsig
 	/* Note that MCPCIA_DENSE(hose) has no bits not masked here, and
 	   that the hose calculation is still correct.  */
 	unsigned long addr = in_addr & 0xffffffffUL;
-	unsigned long hose = (in_addr >> 32) & 3;
+	unsigned long hose = (in_addr >> 33) & 3;
 	unsigned long msb, w;
 
 #if __DEBUG_IOREMAP
-	if (in_addr <= 0x1000000000) {
+	if (in_addr <= 0x4000000000) {
 		printk(KERN_CRIT "mcpcia: 0x%lx not ioremapped (%p)\n",
 		       addr, __builtin_return_address(0));
+		hose = (in_addr >> 32) & 3;
 	}
 #endif
 
@@ -460,13 +464,14 @@ __EXTERN_INLINE void mcpcia_writew(unsig
 	/* Note that MCPCIA_DENSE(hose) has no bits not masked here, and
 	   that the hose calculation is still correct.  */
 	unsigned long addr = in_addr & 0xffffffffUL;
-	unsigned long hose = (in_addr >> 32) & 3;
+	unsigned long hose = (in_addr >> 33) & 3;
 	unsigned long msb, w;
 
 #if __DEBUG_IOREMAP
-	if (in_addr <= 0x1000000000) {
+	if (in_addr <= 0x4000000000) {
 		printk(KERN_CRIT "mcpcia: 0x%lx not ioremapped (%p)\n",
-		       addr, __builtin_return_address(0));
+		       in_addr, __builtin_return_address(0));
+		hose = (in_addr >> 32) & 3;
 	}
 #endif
 
@@ -481,7 +486,7 @@ __EXTERN_INLINE void mcpcia_writew(unsig
 __EXTERN_INLINE unsigned long mcpcia_readl(unsigned long addr)
 {
 #if __DEBUG_IOREMAP
-	if (addr <= 0x1000000000) {
+	if (addr <= 0x4000000000) {
 		printk(KERN_CRIT "mcpcia: 0x%lx not ioremapped (%p)\n",
 		       addr, __builtin_return_address(0));
 		addr = mcpcia_ioremap(addr);
@@ -494,7 +499,7 @@ __EXTERN_INLINE unsigned long mcpcia_rea
 __EXTERN_INLINE unsigned long mcpcia_readq(unsigned long addr)
 {
 #if __DEBUG_IOREMAP
-	if (addr <= 0x1000000000) {
+	if (addr <= 0x4000000000) {
 		printk(KERN_CRIT "mcpcia: 0x%lx not ioremapped (%p)\n",
 		       addr, __builtin_return_address(0));
 		addr = mcpcia_ioremap(addr);
@@ -507,7 +512,7 @@ __EXTERN_INLINE unsigned long mcpcia_rea
 __EXTERN_INLINE void mcpcia_writel(unsigned int b, unsigned long addr)
 {
 #if __DEBUG_IOREMAP
-	if (addr <= 0x1000000000) {
+	if (addr <= 0x4000000000) {
 		printk(KERN_CRIT "mcpcia: 0x%lx not ioremapped (%p)\n",
 		       addr, __builtin_return_address(0));
 		addr = mcpcia_ioremap(addr);
@@ -520,7 +525,7 @@ __EXTERN_INLINE void mcpcia_writel(unsig
 __EXTERN_INLINE void mcpcia_writeq(unsigned long b, unsigned long addr)
 {
 #if __DEBUG_IOREMAP
-	if (addr <= 0x1000000000) {
+	if (addr <= 0x4000000000) {
 		printk(KERN_CRIT "mcpcia: 0x%lx not ioremapped (%p)\n",
 		       addr, __builtin_return_address(0));
 		addr = mcpcia_ioremap(addr);

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Linux 2.3.X on Alpha..
  1999-08-23 15:35 Linux 2.3.X on Alpha Phillip Ezolt
  1999-08-23 16:21 ` Peter Rival
  1999-08-23 16:39 ` Heinz Ulrich Stille
@ 1999-08-24  8:34 ` Dr. David Gilbert
  1999-08-24 14:48   ` Phillip Ezolt
  2 siblings, 1 reply; 10+ messages in thread
From: Dr. David Gilbert @ 1999-08-24  8:34 UTC (permalink / raw)
  To: axp-list

On Mon, 23 Aug 1999, Phillip Ezolt wrote:

> Has anyone got the 2.3.X kernels to work on an Alpha system? 
> 
> I just tried 2.3.15-pre2 on my AS500, and it hangs after aboot says "now
> starting kernel".
> 
> If others have had success, I'll push forward...

2.3.14 works a dream on my LX - I was forced to upgrade to see my Promise
controller.

Dave

/------------------------------------------------------------------\
| Dr. David Alan Gilbert | Work: dg@px.uk.com (+44-161-286-2000)   |
| -------- G7FHJ --------|---------------------------------------- |
| Home: dave@treblig.org   http://www.treblig.clara.net            |
\------------------------------------------------------------------/


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Linux 2.3.X on Alpha..
  1999-08-24  8:34 ` Dr. David Gilbert
@ 1999-08-24 14:48   ` Phillip Ezolt
  1999-08-24 16:41     ` Richard Henderson
  0 siblings, 1 reply; 10+ messages in thread
From: Phillip Ezolt @ 1999-08-24 14:48 UTC (permalink / raw)
  To: rth; +Cc: axp-list

Richard,
	Your 2.3.15-patch worked for my AS500.  Much thanks!

The TGA adapter still doesn't seem supported.  No linux consoles are shown.
SRM remains on the screen. 

However, I can telnet in, and that is all that I need for the preliminary 
testing.

Cheers,
--Phil

Compaq: Business Critical Servers Division/Benchmark Performance Engineering 
---------------- Alpha, The Fastest Processor on Earth --------------------
Phillip.Ezolt@compaq.com        |C|O|M|P|A|Q|        ezolt@perf.zko.dec.com




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Linux 2.3.X on Alpha..
  1999-08-24 14:48   ` Phillip Ezolt
@ 1999-08-24 16:41     ` Richard Henderson
  1999-08-24 17:26       ` Phillip Ezolt
  0 siblings, 1 reply; 10+ messages in thread
From: Richard Henderson @ 1999-08-24 16:41 UTC (permalink / raw)
  To: Phillip Ezolt; +Cc: axp-list

On Tue, Aug 24, 1999 at 10:48:55AM -0400, Phillip Ezolt wrote:
> The TGA adapter still doesn't seem supported.  No linux consoles are shown.
> SRM remains on the screen. 

Are you using 2.3.15-pre1 or pre2?  There was a bulk fb patch that
went in for pre2 that should have fixed things wrt tga...


r~


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Linux 2.3.X on Alpha..
  1999-08-24 16:41     ` Richard Henderson
@ 1999-08-24 17:26       ` Phillip Ezolt
  0 siblings, 0 replies; 10+ messages in thread
From: Phillip Ezolt @ 1999-08-24 17:26 UTC (permalink / raw)
  To: Richard Henderson; +Cc: axp-list

On Tue, 24 Aug 1999, Richard Henderson wrote:

> 
> Are you using 2.3.15-pre1 or pre2?  There was a bulk fb patch that
> went in for pre2 that should have fixed things wrt tga...
> 
> 
> r~
> 
> 

I am using 2.3.15-pre2 with your patch and a patch for khttpd. 

On my DS20, the resulting kernel now boots.  (The unpatched kernel did not..)

In order to get TGAfb to even compile with this kernel I had to fiddle with
the parameters to ioremap. (described below..) I could have done this wrong, 
and that might be the cause of my trouble. 

Random note:
It looks like the "#include <linux/tasks.h>" should be changed to 
"#include <linux/threads.h>" in /usr/src/linux/include/asm/smp.h 

--Phil

Compaq: Business Critical Servers Division/Benchmark Performance Engineering 
---------------- Alpha, The Fastest Processor on Earth --------------------
Phillip.Ezolt@compaq.com        |C|O|M|P|A|Q|        ezolt@perf.zko.dec.com



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Linux 2.3.X on Alpha..
  1999-08-24  1:09   ` Richard Henderson
@ 1999-08-30 12:38     ` Peter Rival
  0 siblings, 0 replies; 10+ messages in thread
From: Peter Rival @ 1999-08-30 12:38 UTC (permalink / raw)
  To: axp-list; +Cc: torvalds

Richard Henderson wrote:

> On Mon, Aug 23, 1999 at 12:21:17PM -0400, Peter Rival wrote:
> > Been there, done that, got the t-shirt ;)  I had it working on rawhides and
> > mikasas up to 2.3.13-rth1 (IIRC) and then had to give back the rawhide...
>
> Here's a patch needed to get 2.3.15-pre1 working on rawhide.
>
> Not sure about the as500...  I should try on eb164 this evening
> to verify CIA cores.
>

Hey, you wouldn't happen to have a version of this that works under
2.3.15-final, would you?  I scrounged up another rawhide (see...told ya it
wouldn't take me long ;) and wound up with a bunch of redefined symbols in pci.a
(just stuff from compat.c).  I did a quick fix on it this weekend, but my AS255
didn't like what came of it.

Anyway, we're hoping to be able to do some SPECWeb and/or LADDIS testing on this
system as it's already hooked into the network harness that our guys around here
use.  Any ideas on what got blown up in the final 2.3.15 release?  It looks like
Linus might have done another merge with mj maybe?  I'm in training for most of
the week, but if we get something to look at, I'm sure I can carve another chunk
of time out...Days are 28 hours, right? *groan*

 - Pete


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~1999-08-30 12:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-08-23 15:35 Linux 2.3.X on Alpha Phillip Ezolt
1999-08-23 16:21 ` Peter Rival
1999-08-24  1:09   ` Richard Henderson
1999-08-30 12:38     ` Peter Rival
1999-08-23 16:39 ` Heinz Ulrich Stille
1999-08-23 17:00   ` Peter Rival
1999-08-24  8:34 ` Dr. David Gilbert
1999-08-24 14:48   ` Phillip Ezolt
1999-08-24 16:41     ` Richard Henderson
1999-08-24 17:26       ` Phillip Ezolt

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