From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 15957 invoked from network); 24 Aug 1999 01:29:42 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 24 Aug 1999 01:29:42 -0000 Received: from piglet.twiddle.net (root@piglet.twiddle.net [207.104.6.26]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id VAA21781 for ; Mon, 23 Aug 1999 21:29:41 -0400 Received: (from rth@localhost) by piglet.twiddle.net (8.8.7/8.8.7) id SAA23768; Mon, 23 Aug 1999 18:09:34 -0700 Date: Mon, 23 Aug 1999 18:09:34 -0700 From: Richard Henderson To: axp-list@redhat.com Cc: torvalds@transmeta.com Subject: Re: Linux 2.3.X on Alpha.. Message-ID: <19990823180934.A23618@twiddle.net> References: <37C174FC.ABAC179@zk3.dec.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=YZ5djTAD1cGYuMQK X-Mailer: Mutt 0.95.5i In-Reply-To: <37C174FC.ABAC179@zk3.dec.com>; from Peter Rival on Mon, Aug 23, 1999 at 12:21:17PM -0400 --YZ5djTAD1cGYuMQK Content-Type: text/plain; charset=us-ascii 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~ --YZ5djTAD1cGYuMQK Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=z-mcpcia 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); --YZ5djTAD1cGYuMQK--