I2-R10k patchset - help needed
Subsystems (7)
Hallo everybody,
I am trying to get the current git tree running on an I2 R10k, so I applied Peter Fürsts patches from
http://home.alphastar.de/fuerst/download.html
to it. As these are against 2.6.12-rc2, I got a bunch of rejects, which I have resolved manually, but I am stuck with the patch for include/asm-mips/stackframe.h.
I would be very grateful if somebody could take a look into this and provide an updated patch against the current kernel sources. Attached to this mail is both my version of Peter Fürsts "collected.diff" (applies cleanly against current git but without the stackframe.h-patch) as well as the original stackframe.h patch.
Regards,
Karsten
Signature · 4 lines
#include <standard_disclaimer> Nach Paragraph 28 Abs. 3 Bundesdatenschutzgesetz widerspreche ich der Nutzung oder Uebermittlung meiner Daten fuer Werbezwecke oder fuer die Markt- oder Meinungsforschung.
arch/mips/Kconfig +32 -2
@@ -527,6 +527,25 @@ workstations. To compile a Linux kernel that runs on these, say Y here. +config SGI_IP28 + bool "Support for SGI IP28 (Indigo2 R10k) (EXPERIMENTAL)" + depends EXPERIMENTAL + select ARC + select ARC64 + select DMA_NONCOHERENT + select IRQ_CPU + select SWAP_IO_SPACE + select HW_HAS_EISA + select CPU_R10000 + select XKPHYS_KERNEL + select BUILD_ELF64 + select BOOT_ELF64 + select SYS_SUPPORTS_64BIT_KERNEL + select SYS_SUPPORTS_BIG_ENDIAN + help + This is the SGI Indigo2 with R10000 processor. To compile a Linux + kernel that runs on these, say Y here. + config SGI_IP32 bool "Support for SGI IP32 (O2) (EXPERIMENTAL)" depends on EXPERIMENTAL
@@ -942,7 +961,7 @@ config ARC_CONSOLE bool "ARC console support" - depends on SGI_IP22 || SNI_RM200_PCI + depends on SGI_IP22 || SNI_RM200_PCI || SGI_IP28 config ARC_MEMORY bool
@@ -951,7 +970,7 @@ config ARC_PROMLIB bool - depends on MACH_JAZZ || SNI_RM200_PCI || SGI_IP22 || SGI_IP32 + depends on MACH_JAZZ || SNI_RM200_PCI || SGI_IP22 || SGI_IP28 || SGI_IP32 default y config ARC64
@@ -1319,6 +1338,14 @@ bool "Support for 64-bit physical address space" depends on (CPU_R4X00 || CPU_R5000 || CPU_RM7000 || CPU_RM9000 || CPU_R10000 || CPU_SB1 || CPU_MIPS32_R1 || CPU_MIPS64_R1) && 32BIT +config XKPHYS_KERNEL + bool "Allow kernel to run from 64-bit segments" + depends on MIPS64 + help + This option allows to locate the kernel in 64-bit unmapped memory + space (xkphys). This is required for Octane (IP30) or Indigo2 R10k + (IP28) machines. + config CPU_ADVANCED bool "Override CPU Options" depends on 32BIT
@@ -1643,6 +1670,9 @@ and the task is only allowed to execute a few safe syscalls defined by each seccomp mode. +# Revision 1.145, Tue Apr 19 00:00:45 2005 +# Jun/Dec 2004 - IP28 + If unsure, say Y. Only embedded should say N here. config PM
arch/mips/kernel/gdb-low.S +12 -0
@@ -52,7 +52,11 @@ /* * Called from user mode, go somewhere else. */ +#ifdef CONFIG_XKPHYS_KERNEL + dla k1, saved_vectors +#else lui k1, %hi(saved_vectors) +#endif mfc0 k0, CP0_CAUSE andi k0, k0, 0x7c add k1, k1, k0
@@ -61,7 +65,11 @@ nop 1: move k0, sp +#ifdef CONFIG_MIPS64 + dsubu sp, k1, GDB_FR_SIZE*2 # see comment above +#else subu sp, k1, GDB_FR_SIZE*2 # see comment above +#endif LONG_S k0, GDB_FR_REG29(sp) LONG_S $2, GDB_FR_REG2(sp)
@@ -368,3 +376,7 @@ kgdbfault: li v0, -EFAULT jr ra .end kgdbfault +/* + * Revision 1.17, Mon Nov 17 17:19:39 2003 + * Wed May 12 21:21:49 2004 xkphys kernel addresses + */
arch/mips/kernel/setup.c +14 -8
@@ -302,7 +302,7 @@* Partially used pages are not usable - thus * we are rounding upwards. */ - start_pfn =PFN_UP (CPHYSADDR (reserved_end)); + start_pfn =PFN_UP (kernel_physaddr (reserved_end));#ifndef CONFIG_SGI_IP27 /* Find the highest page frame number we have available. */
@@ -426,11 +426,11 @@printk ("Initial ramdisk at: 0x%p (%lu bytes)\n" , (void *)initrd_start, initrd_size); -if (CPHYSADDR (initrd_end) >PFN_PHYS (max_low_pfn)) { +if (kernel_physaddr (initrd_end) >PFN_PHYS (max_low_pfn)) {printk ("initrd extends beyond end of memory " "(0x%0*Lx > 0x%0*Lx)\ndisabling initrd\n" ,sizeof (long ) *2 , - (unsigned long long )CPHYSADDR (initrd_end), + (unsigned long long )kernel_physaddr (initrd_end),sizeof (long ) *2 , (unsigned long long )PFN_PHYS (max_low_pfn)); initrd_start = initrd_end =0 ;
@@ -438,7 +438,7 @@ }if (initrd_reserve_bootmem) -reserve_bootmem (CPHYSADDR (initrd_start), initrd_size); +reserve_bootmem (kernel_physaddr (initrd_start), initrd_size); }#endif /* CONFIG_BLK_DEV_INITRD */ }
@@ -452,10 +452,10 @@* The 64bit code in 32bit object format trick can't represent * 64bit wide relocations for linker script symbols. */ - code_resource.start =CPHYSADDR (&_text); - code_resource.end =CPHYSADDR (&_etext) -1 ; - data_resource.start =CPHYSADDR (&_etext); - data_resource.end =CPHYSADDR (&_edata) -1 ; + code_resource.start =kernel_physaddr (&_text); + code_resource.end =kernel_physaddr (&_etext) -1 ; + data_resource.start =kernel_physaddr (&_etext); + data_resource.end =kernel_physaddr (&_edata) -1 ;#else code_resource.start =virt_to_phys (&_text); code_resource.end =virt_to_phys (&_etext) -1 ;
@@ -559,3 +559,9 @@ }__setup ("nodsp" , dsp_disable); + +/* +* Revision 1.179, Tue Apr 19 00:06:09 2005 +* Apr 2004/2005 pf - xkphys kernel addresses +*/ +
arch/mips/lib/memcpy.S +22 -0
@@ -17,6 +17,14 @@ #include <asm/asm-offsets.h> #include <asm/regdef.h> +#ifdef CONFIG_SGI_IP28 +/* Inhibit speculative stores to volatile (e.g.DMA) or invalid addresses. */ +# include <asm/cacheops.h> +# define R10KCBARRIER(addr) cache Cache_Barrier, addr; +#else +# define R10KCBARRIER(addr) +#endif + #define dst a0 #define src a1 #define len a2
@@ -180,6 +188,7 @@ */ #define rem t8 + R10KCBARRIER(0(ra)) /* hopefully inhibits speculative store prefetch */ /* * The "issue break"s below are very approximate. * Issue delays for dcache fills will perturb the schedule, as will
@@ -212,6 +221,7 @@ PREF( 1, 3*32(dst) ) .align 4 1: + R10KCBARRIER(0(ra)) /* ra must be valid anyway */ EXC( LOAD t0, UNIT(0)(src), l_exc) EXC( LOAD t1, UNIT(1)(src), l_exc_copy) EXC( LOAD t2, UNIT(2)(src), l_exc_copy)
@@ -253,6 +263,7 @@ EXC( LOAD t3, UNIT(3)(src), l_exc_copy) SUB len, len, 4*NBYTES ADD src, src, 4*NBYTES + R10KCBARRIER(0(ra)) EXC( STORE t0, UNIT(0)(dst), s_exc_p4u) EXC( STORE t1, UNIT(1)(dst), s_exc_p3u) EXC( STORE t2, UNIT(2)(dst), s_exc_p2u)
@@ -266,6 +277,7 @@ beq rem, len, copy_bytes nop 1: + R10KCBARRIER(0(ra)) EXC( LOAD t0, 0(src), l_exc) ADD src, src, NBYTES SUB len, len, NBYTES
@@ -311,6 +323,7 @@ EXC( LDREST t3, REST(0)(src), l_exc_copy) SUB t2, t2, t1 # t2 = number of bytes copied xor match, t0, t1 + R10KCBARRIER(0(ra)) EXC( STFIRST t3, FIRST(0)(dst), s_exc) beq len, t2, done SUB len, len, t2
@@ -331,6 +344,7 @@ * It's OK to load FIRST(N+1) before REST(N) because the two addresses * are to the same unit (unless src is aligned, but it's not). */ + R10KCBARRIER(0(ra)) EXC( LDFIRST t0, FIRST(0)(src), l_exc) EXC( LDFIRST t1, FIRST(1)(src), l_exc_copy) SUB len, len, 4*NBYTES
@@ -359,6 +373,7 @@ beq rem, len, copy_bytes nop 1: + R10KCBARRIER(0(ra)) EXC( LDFIRST t0, FIRST(0)(src), l_exc) EXC( LDREST t0, REST(0)(src), l_exc_copy) ADD src, src, NBYTES
@@ -372,6 +387,7 @@ nop copy_bytes: /* 0 < len < NBYTES */ + R10KCBARRIER(0(ra)) #define COPY_BYTE(N) \ EXC( lb t0, N(src), l_exc); \ SUB len, len, 1; \
@@ -484,6 +500,7 @@ ADD a1, a2 # src = src + len r_end_bytes: + R10KCBARRIER(0(ra)) lb t0, -1(a1) SUB a2, a2, 0x1 sb t0, -1(a0)
@@ -496,6 +513,7 @@ move a2, zero r_end_bytes_up: + R10KCBARRIER(0(ra)) lb t0, (a1) SUB a2, a2, 0x1 sb t0, (a0)
@@ -506,3 +524,7 @@ jr ra move a2, zero END(__rmemcpy) +/* + * Revision 1.18, Sat Jul 26 12:00:12 2003 + * Sat Aug 7 01:11:52 2004 pf - r10k cache barrier + */
arch/mips/lib/strncpy_user.S +14 -0
@@ -5,11 +5,20 @@ * * Copyright (c) 1996, 1999 by Ralf Baechle */ +#include <linux/config.h> #include <linux/errno.h> #include <asm/asm.h> #include <asm/asm-offsets.h> #include <asm/regdef.h> +#ifdef CONFIG_SGI_IP28 +/* Inhibit speculative stores to volatile (e.g.DMA) or invalid addresses. */ +# include <asm/cacheops.h> +# define R10KCBARRIER(addr) cache Cache_Barrier, addr; +#else +# define R10KCBARRIER(addr) +#endif + #define EX(insn,reg,addr,handler) \ 9: insn reg, addr; \ .section __ex_table,"a"; \
@@ -38,6 +47,7 @@ .set noreorder 1: EX(lbu, t0, (v1), fault) PTR_ADDIU v1, 1 + R10KCBARRIER(0(ra)) beqz t0, 2f sb t0, (a0) PTR_ADDIU v0, 1
@@ -56,3 +66,7 @@ .section __ex_table,"a" PTR 1b, fault .previous +/* + * Revision 1.9, Wed Nov 19 14:03:13 2003 + * Wed Aug 11 02:21:01 2004 pf - r10k cache barrier + */
arch/mips/lib-64/memset.S +18 -0
@@ -6,10 +6,19 @@ * Copyright (C) 1998, 1999, 2000 by Ralf Baechle * Copyright (C) 1999, 2000 Silicon Graphics, Inc. */ +#include <linux/config.h> #include <asm/asm.h> #include <asm/asm-offsets.h> #include <asm/regdef.h> +#ifdef CONFIG_SGI_IP28 +/* Inhibit speculative stores to volatile (e.g.DMA) or invalid addresses. */ +# include <asm/cacheops.h> +# define R10KCBARRIER(addr) cache Cache_Barrier, addr; +#else +# define R10KCBARRIER(addr) +#endif + #define EX(insn,reg,addr,handler) \ 9: insn reg, addr; \ .section __ex_table,"a"; \
@@ -57,6 +66,7 @@ beqz t0, 1f PTR_SUBU t0, LONGSIZE /* alignment in bytes */ + R10KCBARRIER(0(ra)) #ifdef __MIPSEB__ EX(sdl, a1, (a0), first_fixup) /* make dword aligned */ #endif
@@ -74,11 +84,13 @@ PTR_ADDU t1, a0 /* end address */ .set reorder 1: PTR_ADDIU a0, 64 + R10KCBARRIER(0(ra)) f_fill64 a0, -64, a1, fwd_fixup bne t1, a0, 1b .set noreorder memset_partial: + R10KCBARRIER(0(ra)) PTR_LA t1, 2f /* where to start */ .set noat dsrl AT, t0, 1
@@ -96,6 +108,7 @@ beqz a2, 1f PTR_ADDU a0, a2 /* What's left */ + R10KCBARRIER(0(ra)) #ifdef __MIPSEB__ EX(sdr, a1, -1(a0), last_fixup) #endif
@@ -110,6 +123,7 @@ PTR_ADDU t1, a0, a2 1: PTR_ADDIU a0, 1 /* fill bytewise */ + R10KCBARRIER(0(ra)) bne t1, a0, 1b sb a1, -1(a0)
@@ -140,3 +154,7 @@ last_fixup: jr ra andi v1, a2, LONGMASK +/* + * Revision 1.1, Mon Jul 21 00:11:39 2003 + * Wed Aug 11 01:52:59 2004 pf - r10k cache barrier + */
arch/mips/Makefile +16 -0
@@ -628,6 +628,19 @@ endif # +# SGI IP28 (Indigo2 R10k) +# +# Set the load address to >= 0xa800000020080000 if you want to leave space for +# symmon, 0xa800000020004000 for production kernels ? Note that the value must +# be 16kb aligned or the handling of the current variable will break. +# Simplified: what IP22 does at 128MB+ in ksegN, IP28 does at 512MB+ in xkphys +# +#core-$(CONFIG_SGI_IP28) += arch/mips/sgi-ip22/ arch/mips/arc/arc_con.o +core-$(CONFIG_SGI_IP28) += arch/mips/sgi-ip22/ +cflags-$(CONFIG_SGI_IP28) += -mip28-cache-barrier -Iinclude/asm-mips/mach-ip28 +load-$(CONFIG_SGI_IP28) += 0xa800000020004000 + +# # SGI-IP32 (O2) # # Set the load address to >= 80069000 if you want to leave space for symmon,
@@ -814,3 +827,6 @@ CLEAN_FILES += vmlinux.32 \ vmlinux.64 \ vmlinux.ecoff + +# Revision 1.193, Tue Apr 19 00:00:49 2005 +# Jun/Dec 2004 - IP28
arch/mips/mm/c-r4k.c +35 -1
@@ -712,6 +712,27 @@ bc_inv(addr, size); } + +#ifdef CONFIG_CPU_R10000 +static void r10k_dma_cache_inv (unsigned long addr,unsigned long size) +{ +unsigned long sc_lsize = current_cpu_data.scache.linesz; +unsigned long end, a; + +/* Catch bad driver code */ +BUG_ON (size ==0 ); +//BUG_ON(!cpu_has_subset_pcaches); + + a = addr & ~(sc_lsize -1 ); + end = (addr + size -1 ) & ~(sc_lsize -1 ); +while (1 ) { +invalidate_scache_line (a);/* Hit_Invalidate_SD/S */ +if (a == end) +break ; + a += sc_lsize; + } +} +#endif /* CONFIG_CPU_R10000 */ #endif /* CONFIG_DMA_NONCOHERENT */ /*
@@ -1269,7 +1290,16 @@#ifdef CONFIG_DMA_NONCOHERENT _dma_cache_wback_inv = r4k_dma_cache_wback_inv; _dma_cache_wback = r4k_dma_cache_wback_inv; - _dma_cache_inv = r4k_dma_cache_inv; +switch (current_cpu_data.cputype) { +#ifdef CONFIG_CPU_R10000 +case CPU_R10000 : +case CPU_R12000 : + _dma_cache_inv = r10k_dma_cache_inv; +break ; +#endif +default : + _dma_cache_inv = r4k_dma_cache_inv; + }#endif build_clear_page ();
@@ -1277,3 +1307,7 @@local_r4k___flush_cache_all (NULL );coherency_setup (); } +/* +* Revision 1.107, Tue Apr 19 00:06:40 2005 +* Sat Apr 9 00:06:16 2005 pf - r10k_dma_cache_inv (really dma invalidate) +*/
arch/mips/mm/init.c +9 -3
@@ -225,6 +225,7 @@if (PageReserved (mem_map+tmp)) reservedpages++; } + num_physpages = ram;#ifdef CONFIG_HIGHMEM for (tmp = highstart_pfn; tmp < highend_pfn; tmp++) {
@@ -241,6 +242,7 @@set_page_count (page,1 );__free_page (page); totalhigh_pages++; + ++num_physpages; } totalram_pages += totalhigh_pages;#endif
@@ -266,8 +268,8 @@ {#ifdef CONFIG_64BIT /* Switch from KSEG0 to XKPHYS addresses */ - start = (unsigned long )phys_to_virt (CPHYSADDR (start)); - end = (unsigned long )phys_to_virt (CPHYSADDR (end)); + start = (unsigned long )phys_to_virt (kernel_physaddr (start)); + end = (unsigned long )phys_to_virt (kernel_physaddr (end));#endif if (start < end) printk(KERN_INFO "Freeing initrd memory: %ldk freed\n",
@@ -293,7 +295,7 @@ addr = (unsigned long ) &__init_begin;while (addr < (unsigned long ) &__init_end) {#ifdef CONFIG_64BIT - page =PAGE_OFFSET |CPHYSADDR (addr); + page =PAGE_OFFSET |kernel_physaddr (addr);#else page = addr;#endif
@@ -307,3 +309,7 @@printk (KERN_INFO "Freeing unused kernel memory: %ldk freed\n" , freed >>10 ); } +/* +* Revision 1.75, Tue Apr 19 00:06:47 2005 +* Jun 2004 pf - XKPHYS +*/
arch/mips/sgi-ip22/ip22-mc.c +149 -2
207 lines not on this page · raw message
arch/mips/sgi-ip22/ip22-setup.c +28 -0
@@ -119,6 +119,34 @@ } }#endif +#if defined(CONFIG_FB_IMPACT ) || defined(CONFIG_SGI_IP28 ) + { +/* Get graphics info before it is overwritten... +* E.g. @ 9000000020f02f78: ffffffff9fc6d770,900000001f000000 +*/ + ULONG* (*__vec)(void) = (typeof(__vec)) +#ifdef CONFIG_ARC64 + ((ULONG *)PROMBLOCK ->pvector)[8 ]; +#else + (long ) ((int *)PROMBLOCK ->pvector)[8 ]; +#endif +ULONG *gfxinfo = (*__vec)(); +ULONG a = gfxinfo[1 ]; + +if ((a &0xffffffff80000000L ) ==0xffffffff80000000L ) + sgi_gfxaddr = a & (6L <<28 ) ?0 :CPHYSADDR (a);/* CKSEG[01] */ +else if ((a & (1L <<63 )) && (a &0xb80000001fffffffL ) == a) + sgi_gfxaddr =XPHYSADDR (a);/* lower 512MB of XKPHYS */ +else /* rubbish... */ + sgi_gfxaddr =0 ; +if (sgi_gfxaddr <0x1f000000 ) + sgi_gfxaddr =0 ; + +printk (KERN_DEBUG "ARCS gfx info @ %08lx: %08lx,%08lx\n" , + gfxinfo, gfxinfo[0 ], gfxinfo[1 ]); +printk (KERN_INFO "SGI graphics system @ 0x%08lx\n" , sgi_gfxaddr); + } +#endif #if defined(CONFIG_VT ) && defined(CONFIG_SGI_NEWPORT_CONSOLE ) {
arch/mips/sgi-ip22/ip28-berr.c +600 -0
600 lines not on this page · raw message
arch/mips/sgi-ip22/Makefile +5 -1
@@ -3,9 +3,13 @@ # under Linux. # -obj-y += ip22-mc.o ip22-hpc.o ip22-int.o ip22-irq.o ip22-berr.o \ +obj-y += ip22-mc.o ip22-hpc.o ip22-int.o ip22-irq.o \ ip22-time.o ip22-nvram.o ip22-reset.o ip22-setup.o +obj-$(CONFIG_SGI_IP28) += ip28-berr.o +obj-$(CONFIG_SGI_IP22) += ip22-berr.o obj-$(CONFIG_EISA) += ip22-eisa.o EXTRA_AFLAGS := $(CFLAGS) + +# Revision 1.19, Tue Nov 18 05:15:20 2003
drivers/char/Kconfig +1 -1
@@ -762,7 +762,7 @@ config SGI_DS1286 tristate "SGI DS1286 RTC support" - depends on SGI_IP22 + depends on (SGI_IP22 || SGI_IP28) help If you say Y here and create a character special file /dev/rtc with major number 10 and minor number 135 using mknod ("man mknod"), you
drivers/char/tty_io.c +6 -0
@@ -744,6 +744,7 @@void tty_wakeup (struct tty_struct *tty) { +if (tty) {struct tty_ldisc *ld;if (test_bit (TTY_DO_WRITE_WAKEUP , &tty->flags)) {
@@ -755,6 +756,7 @@ } }wake_up_interruptible (&tty->write_wait); + } }EXPORT_SYMBOL_GPL (tty_wakeup);
@@ -3014,3 +3016,7 @@return 0 ; }module_init (tty_init); +/* +* Revision 1.133, Tue Apr 19 00:39:02 2005 +* Wed Jan 5 02:16:41 2005 +*/
drivers/char/watchdog/Kconfig +1 -1
@@ -427,7 +427,7 @@ config INDYDOG tristate "Indy/I2 Hardware Watchdog" - depends on WATCHDOG && SGI_IP22 + depends on WATCHDOG && (SGI_IP22 || SGI_IP28) help Hardwaredriver for the Indy's/I2's watchdog. This is a watchdog timer that will reboot the machine after a 60 second
drivers/input/serio/i8042.c +6 -0
@@ -656,7 +656,13 @@if (i8042_command (¶m,I8042_CMD_AUX_ENABLE ))return -1 ; if (i8042_command(¶m, I8042_CMD_CTL_RCTR) || (param & I8042_CTR_AUXDIS)) +#ifdef CONFIG_SGI_IP28 +/* Seems we need to invert the CTR_AUXDIS-test on this machine: +* CMD_AUX_DISABLE -> rctr 0xcf, CMD_AUX_ENABLE -> rctr 0xef */ +printk (KERN_WARNING "Failed to enable AUX port, but continuing anyway... ;)\n" ); +#else return -1 ; +#endif /* * Disable the interface.
drivers/input/serio/i8042.h +5 -1
@@ -17,7 +17,7 @@#if defined(CONFIG_MACH_JAZZ )#include "i8042-jazzio.h" -#elif defined(CONFIG_SGI_IP22 ) +#elif defined(CONFIG_SGI_IP22 ) || defined(CONFIG_SGI_IP28 )#include "i8042-ip22io.h" #elif defined(CONFIG_PPC )#include "i8042-ppcio.h"
@@ -131,3 +131,7 @@#endif #endif /* _I8042_H */ +/* +* Revision 1.10, Tue Apr 19 00:50:01 2005 +* Tue Dec 7 19:43:43 2004 - IP28 +*/
drivers/net/Kconfig +1 -1
@@ -1728,7 +1728,7 @@ config SGISEEQ tristate "SGI Seeq ethernet controller support" - depends on NET_ETHERNET && SGI_IP22 + depends on NET_ETHERNET && (SGI_IP22 || SGI_IP26 || SGI_IP28) help Say Y here if you have an Seeq based Ethernet network card. This is used in many Silicon Graphics machines.
drivers/scsi/Kconfig +1 -1
@@ -249,7 +249,7 @@ config SGIWD93_SCSI tristate "SGI WD93C93 SCSI Driver" - depends on SGI_IP22 && SCSI + depends on (SGI_IP22 || SGI_IP26 || SGI_IP28) && SCSI help If you have a Western Digital WD93 SCSI controller on an SGI MIPS system, say Y. Otherwise, say N.
drivers/scsi/wd33c93.c +1 -1
@@ -1460,7 +1460,7 @@const wd33c93_regs regs = hostdata->regs;uchar sr; -#ifdef CONFIG_SGI_IP22 +#if defined(CONFIG_SGI_IP22 ) || defined(CONFIG_SGI_IP28 ) {int busycount =0 ;extern void sgiwd93_reset (unsigned long );
drivers/serial/ip22zilog.c +1 -1
@@ -1015,9 +1015,9 @@spin_lock_irqsave (&up->port.lock, flags);for (i =0 ; i < count; i++, s++) { -ip22zilog_put_char (channel, *s);if (*s ==10 )ip22zilog_put_char (channel,13 ); +ip22zilog_put_char (channel, *s); }udelay (2 );spin_unlock_irqrestore (&up->port.lock, flags);
drivers/serial/Kconfig +5 -3
@@ -555,16 +555,18 @@ config SERIAL_IP22_ZILOG tristate "IP22 Zilog8530 serial support" - depends on SGI_IP22 + depends on (SGI_IP22 || SGI_IP28) select SERIAL_CORE + default y if SGI_IP28 help - This driver supports the Zilog8530 serial ports found on SGI IP22 + This driver supports the Zilog8530 serial ports found on SGI IP22-IP28 systems. Say Y or M if you want to be able to these serial ports. config SERIAL_IP22_ZILOG_CONSOLE - bool "Console on IP22 Zilog8530 serial port" + bool "Console on IP22/28 Zilog8530 serial port" depends on SERIAL_IP22_ZILOG=y select SERIAL_CORE_CONSOLE + default y if SGI_IP28 config V850E_UART bool "NEC V850E on-chip UART support"
drivers/video/impact.c +906 -0
906 lines not on this page · raw message
drivers/video/Kconfig +10 -0
@@ -568,6 +568,14 @@ This is the amount of memory reserved for the framebuffer, which can be any value between 1MB and 8MB. +config FB_IMPACT + tristate "SGI Octane ImpactSR / Indigo2 Impact graphics support" + depends on FB && (SGI_IP22 || SGI_IP26 || SGI_IP28 || SGI_IP30) + select FB_SOFT_CURSOR + help + SGI Octane ImpactSR (SI/SSI/MXI/SE/SSE/MXE) graphics card support. + SGI Indigo2 Impact (SI/HI/MI) graphics card support. + config BUS_I2C bool depends on (FB = y) && VISWS
@@ -1609,3 +1617,5 @@ endmenu + +# Revision 1.36, Tue Apr 19 20:56:41 2005
drivers/video/logo/Kconfig +1 -1
@@ -40,7 +40,7 @@ config LOGO_SGI_CLUT224 bool "224-color SGI Linux logo" - depends on LOGO && (SGI_IP22 || SGI_IP27 || SGI_IP32 || X86_VISWS) + depends on LOGO && (SGI_IP22 || SGI_IP27 || SGI_IP28 || SGI_IP32 || X86_VISWS) default y config LOGO_SUN_CLUT224
drivers/video/Makefile +3 -0
@@ -94,6 +94,7 @@ obj-$(CONFIG_FB_MAXINE) += maxinefb.o obj-$(CONFIG_FB_TX3912) += tx3912fb.o obj-$(CONFIG_FB_S1D13XXX) += s1d13xxxfb.o +obj-$(CONFIG_FB_IMPACT) += impact.o obj-$(CONFIG_FB_IMX) += imxfb.o obj-$(CONFIG_FB_SMIVGX) += smivgxfb.o obj-$(CONFIG_FB_S3C2410) += s3c2410fb.o
@@ -105,3 +106,5 @@ # the test framebuffer is last obj-$(CONFIG_FB_VIRTUAL) += vfb.o + +# Revision 1.89, Tue Apr 19 20:56:41 2005
fs/partitions/Kconfig +1 -1
@@ -188,7 +188,7 @@ config SGI_PARTITION bool "SGI partition support" if PARTITION_ADVANCED - default y if (SGI_IP22 || SGI_IP27 || ((MACH_JAZZ || SNI_RM200_PCI) && !CPU_LITTLE_ENDIAN)) + default y if (SGI_IP22 || SGI_IP27 || SGI_IP28 || ((MACH_JAZZ || SNI_RM200_PCI) && !CPU_LITTLE_ENDIAN)) help Say Y here if you would like to be able to read the hard disk partition table format used by SGI machines.
include/asm-mips/addrspace.h +22 -8
@@ -53,6 +53,16 @@#ifdef CONFIG_64BIT +static inline unsigned long kernel_physaddr (unsigned long kva) +{ +if ((kva&0xffffffff80000000UL )==0xffffffff80000000UL ) +return CPHYSADDR (kva); +return XPHYSADDR (kva); +} +#else +#define kernel_physaddr CPHYSADDR +#endif +/* * Memory segments (64bit kernel mode addresses) * The compatibility segments use the full 64-bit sign extended value. Note
@@ -108,14 +118,14 @@/* * Cache modes for XKPHYS address conversion macros */ -#define K_CALG_COH_EXCL1_NOL2 0 -#define K_CALG_COH_SHRL1_NOL2 1 -#define K_CALG_UNCACHED 2 -#define K_CALG_NONCOHERENT 3 -#define K_CALG_COH_EXCL 4 -#define K_CALG_COH_SHAREABLE 5 -#define K_CALG_NOTUSED 6 -#define K_CALG_UNCACHED_ACCEL 7 +#define K_CALG_COH_EXCL1_NOL2 0L +#define K_CALG_COH_SHRL1_NOL2 1L +#define K_CALG_UNCACHED 2L +#define K_CALG_NONCOHERENT 3L +#define K_CALG_COH_EXCL 4L +#define K_CALG_COH_SHAREABLE 5L +#define K_CALG_NOTUSED 6L +#define K_CALG_UNCACHED_ACCEL 7L/* * 64-bit address conversions
@@ -199,3 +209,7 @@#define PHYS_TO_K0 (x) (_ACAST64_ (x) | CAC_BASE)#endif /* _ASM_ADDRSPACE_H */ +/* +* Revision 1.15, Mon Dec 27 03:16:18 2004 +* Jun/Dec 2004 +*/
include/asm-mips/dma.h +8 -1
@@ -83,10 +83,13 @@* Deskstations or Acer PICA but not the much more versatile DMA logic used * for the local devices on Acer PICA or Magnums. */ -#ifdef CONFIG_SGI_IP22 +#if defined(CONFIG_SGI_IP22 )/* Horrible hack to have a correct DMA window on IP22 */ #include <asm/sgi/mc.h> #define MAX_DMA_ADDRESS (PAGE_OFFSET + SGIMC_SEG0_BADDR + 0x01000000) +#elif defined(CONFIG_SGI_IP28 ) +#include <asm/sgi/mc.h> +#define MAX_DMA_ADDRESS (PAGE_OFFSET + SGIMC_SEG1_BADDR + 0x01000000)#else #define MAX_DMA_ADDRESS (PAGE_OFFSET + 0x01000000)#endif
@@ -311,3 +314,7 @@#endif #endif /* _ASM_DMA_H */ +/* +* Revision 1.14, Tue Jul 29 03:21:47 2003 +* Sun Jun 13 01:04:27 2004 - IP28 +*/
include/asm-mips/io.h +1 -1
@@ -63,7 +63,7 @@# define ioswabb (x) (x)# define mem_ioswabb (x) (x) -# ifdef CONFIG_SGI_IP22 +# if defined(CONFIG_SGI_IP22 ) || defined(CONFIG_SGI_IP28 )/* * IP22 seems braindead enough to swap 16bits values in hardware, but * not 32bits. Go figure... Can't tell without documentation.
include/asm-mips/mach-ip28/cpu-feature-overrides.h +41 -0
41 lines not on this page · raw message
include/asm-mips/mach-ip28/ds1286.h +4 -0
@@ -0,0 +1,4 @@ +#ifndef __ASM_MACH_IP28_DS1286_H +#define __ASM_MACH_IP28_DS1286_H +#include <asm/mach-ip22/ds1286.h> +#endif /* __ASM_MACH_IP28_DS1286_H */
include/asm-mips/mach-ip28/spaces.h +29 -0
@@ -0,0 +1,29 @@ +/* +* This file is subject to the terms and conditions of the GNU General Public +* License. See the file "COPYING" in the main directory of this archive +* for more details. +* +* Copyright (C) 1994 - 1999, 2000, 03, 04 Ralf Baechle +* Copyright (C) 2000, 2002 Maciej W. Rozycki +* Copyright (C) 1990, 1999, 2000 Silicon Graphics, Inc. +* 2004 pf +*/ +#ifndef _ASM_MACH_IP28_SPACES_H +#define _ASM_MACH_IP28_SPACES_H + +#include <linux/config.h> + +#define CAC_BASE 0xa800000000000000 +#define IO_BASE 0x9000000000000000 +#define UNCAC_BASE 0x9000000000000000 +#define MAP_BASE 0xc000000000000000 + +#define TO_PHYS (x) ( ((x) & TO_PHYS_MASK)) +#define TO_CAC (x) (CAC_BASE | ((x) & TO_PHYS_MASK)) +#define TO_UNCAC (x) (UNCAC_BASE | ((x) & TO_PHYS_MASK)) + +#define PAGE_OFFSET CAC_BASE + +#define HIGHMEM_START (~0UL) + +#endif /* _ASM_MACH_IP28_SPACES_H */
include/asm-mips/sgi/ioc.h +6 -2
@@ -138,8 +138,8 @@u8 _sysid[3 ];volatile u8 sysid;#define SGIOC_SYSID_FULLHOUSE 0x01 -#define SGIOC_SYSID_BOARDREV (x) ((x & 0xe0) > 5) -#define SGIOC_SYSID_CHIPREV (x) ((x & 0x1e) > 1) +#define SGIOC_SYSID_BOARDREV (x) (((x) & 0x1e) >> 1) +#define SGIOC_SYSID_CHIPREV (x) (((x) & 0xe0) >> 5)u32 _unused2;u8 _read[3 ];volatile u8 read;
@@ -198,3 +198,7 @@extern struct sgint_regs *sgint;#endif +/* +* Revision 1.8, Sat Sep 25 14:20:00 2004 +* May 2004 pf - SYSID +*/
include/asm-mips/sgi/mc.h +6 -0
@@ -227,5 +227,11 @@#define SGIMC_SEG1_SIZE_IP26_IP28 0x20000000/* 512MB */ extern void sgimc_init (void ); +extern unsigned long ip2628_enable_ucmem (void ); +extern void ip2628_return_ucmem (unsigned long );#endif /* _SGI_MC_H */ +/* +* Revision 1.4, Mon Jun 16 13:54:54 2003 +* Wed Jun 16 13:54:54 2004 pf - IP28 +*/
include/asm-mips/stackframe.h +4 -0
@@ -351,3 +351,7 @@ .endm#endif /* _ASM_STACKFRAME_H */ +/* +* Revision 1.37, Tue Apr 19 21:26:28 2005 +* May 2004 pf - xkphys kernel addresses +*/
Binärdateien linux-git/include/asm-mips/.stackframe.h.rej.swp and linux-git-mit-R10k-patches/include/asm-mips/.stackframe.h.rej.swp sind verschieden.
include/asm-mips/war.h +8 -0
@@ -194,6 +194,10 @@#ifdef CONFIG_SGI_IP27 #define R10000_LLSC_WAR 1#endif +/* Branch-likely and friends won't hurt a weird uniprocessor system either */ +#ifdef CONFIG_SGI_IP28 +#define R10000_LLSC_WAR 1 +#endif /* * Workarounds default to off
@@ -236,3 +240,7 @@#endif #endif /* _ASM_WAR_H */ +/* +* Revision 1.19, Tue Aug 17 17:49:44 2004 +* Sun Dec 5 23:28:19 2004 - ip28 cache barrier +*/
include/linux/fb.h +4 -0
@@ -118,6 +118,7 @@#define FB_ACCEL_NEOMAGIC_NM2230 96/* NeoMagic NM2230 */ #define FB_ACCEL_NEOMAGIC_NM2360 97/* NeoMagic NM2360 */ #define FB_ACCEL_NEOMAGIC_NM2380 98/* NeoMagic NM2380 */ +#define FB_ACCEL_SGI_IMPACT 333/* SGI IMPACT graphics */ #define FB_ACCEL_SAVAGE4 0x80/* S3 Savage4 */ #define FB_ACCEL_SAVAGE3D 0x81/* S3 Savage3D */
@@ -948,3 +949,6 @@#endif /* __KERNEL__ */ #endif /* _LINUX_FB_H */ +/* +* Revision 1.55, Tue Apr 19 21:33:27 2005 +*/
include/video/impact.h +181 -0
181 lines not on this page · raw message
sound/oss/Kconfig +3 -3
@@ -199,10 +199,10 @@ config SOUND_HAL2 tristate "SGI HAL2 sound (EXPERIMENTAL)" - depends on SOUND_PRIME && SGI_IP22 && EXPERIMENTAL + depends on SOUND_PRIME && (SGI_IP22 || SGI_IP28) && EXPERIMENTAL help - Say Y or M if you have an SGI Indy system and want to be able to - use it's on-board A2 audio system + Say Y or M if you have an SGI Indy or Indigo2 system and want to + be able to use it's on-board A2 audio system config SOUND_IT8172 tristate "IT8172G Sound"
include/asm-mips/stackframe.h +29 -0
@@ -107,12 +107,37 @@ .endm #else .macro get_saved_sp /* Uniprocessor variation */ +# ifdef CONFIG_XKPHYS_KERNEL +/* +* Beware! +* 1) This is called, before $at is saved, so the +* assembler MUST NOT use $at. +* 2) k1 and any implicitely used k0 are not saved. Thus +* this MUST NOT be called with interrupts enabled. +* (applies as well to the ckseg version below) +*/ + .set push + .set noat + dla k1, kernelsp + LONG_L k1, (k1) + .set pop +# else lui k1, %hi(kernelsp) LONG_L k1, %lo(kernelsp)(k1) +# endif .endm .macro set_saved_sp stackp temp temp2 + /* + * Beware! This is called with interrupts enabled, so + * make sure the assembler generated code-sequence only + * uses registers ($at), that will be saved/restored + * (especially true for elf64-.. format). + */ + /* .set push */ + /* .set at */ LONG_S \stackp, kernelsp + /* .set pop */ .endm#endif
@@ -349,1 +374,5 @@#endif /* _ASM_STACKFRAME_H */ +/* +* Revision 1.37, Tue Apr 19 21:26:28 2005 +* May 2004 pf - xkphys kernel addresses +*/
Sorry that the last patches caused problems.
I know that i'm late, unfortunately i let me seduce myself to play around (this can take arbitrarely long :) with the DMA version of the Impact-Xserver (which forced some changes to the kernel-driver) :( At the latest tomorrow i'll deposit a new patch-set for 2.6.14 (a patch for stackframe.h is no longer contained/needed !) together with the enhanced Xserver Impact-sources.
Hope, this promise compensates for the frustration.
pf
Quoted 32 lines · Karsten Merker
Date: Sun, 16 Oct 2005 20:03:21 +0200
From: Karsten Merker <[email protected]>
Reply-To: [email protected]
To: [email protected]
Subject: I2-R10k patchset - help neededHallo everybody,
I am trying to get the current git tree running on an I2 R10k, so I applied Peter Fürsts patches from
http://home.alphastar.de/fuerst/download.html
to it. As these are against 2.6.12-rc2, I got a bunch of rejects, which I have resolved manually, but I am stuck with the patch for
include/asm-mips/stackframe.h.I would be very grateful if somebody could take a look into this and provide an updated patch against the current kernel sources. Attached to this mail is both my version of Peter Fürsts "collected.diff" (applies cleanly against current git but without the stackframe.h-patch) as well as the original
stackframe.hpatch.Regards,
KarstenSignature · 4 lines
#include <standard_disclaimer> Nach Paragraph 28 Abs. 3 Bundesdatenschutzgesetz widerspreche ich der Nutzung oder Uebermittlung meiner Daten fuer Werbezwecke oder fuer die Markt- oder Meinungsforschung.
Quoted 1 line · peter fuerst
Sorry that the last patches caused problems.
No problem, I am very happy that you worked on R10k support.
Quoted 3 lines
At the latest tomorrow i'll deposit a new patch-set for 2.6.14 (a patch for
stackframe.his no longer contained/needed !) together with the enhanced Xserver Impact-sources.
Thanks a lot.
Regards,
Karsten
Signature · 4 lines
#include <standard_disclaimer> Nach Paragraph 28 Abs. 3 Bundesdatenschutzgesetz widerspreche ich der Nutzung oder Uebermittlung meiner Daten fuer Werbezwecke oder fuer die Markt- oder Meinungsforschung.
Quoted 11 lines · Karsten Merker
Hallo everybody,
I am trying to get the current git tree running on an I2 R10k, so I applied Peter Fürsts patches from
http://home.alphastar.de/fuerst/download.html
to it. As these are against 2.6.12-rc2, I got a bunch of rejects, which I have resolved manually, but I am stuck with the patch for
include/asm-mips/stackframe.h.
Quoted 6 lines
I would be very grateful if somebody could take a look into this and provide an updated patch against the current kernel sources. Attached to this mail is both my version of Peter Fürsts "collected.diff" (applies cleanly against current git but without the stackframe.h-patch) as well as the original
stackframe.hpatch.
It took me a few mins staring at the stackframe.h patch to determine that the bits Peter was trying to apply were already present in a similar, but different form. Or atleast enough of it is to resolve whatever problem his patch attempts to correct, so I've omitted it in my runs.
Attached is the patch used in gentoo's mips-sources, which applies to 2.6.13.4 (untested against 2.6.14-*) with some minor offsets. Testing on 2.6.14 shouldn't be difficult, especially since the stackframe.h isn't needed anymore.
--Kumba
Signature · 4 lines
Gentoo/MIPS Team Lead Gentoo Foundation Board of Trustees "Such is oft the course of deeds that move the wheels of the world: small hands do them because they must, while the eyes of the great are elsewhere." --Elrond