[kernel] r11700 - in dists/trunk/linux-2.6/debian: . patches/bugfix/mips patches/series

Martin Michlmayr tbm at alioth.debian.org
Wed Jun 25 12:27:46 UTC 2008


Author: tbm
Date: Wed Jun 25 12:27:42 2008
New Revision: 11700

Log:
add MIPS fixes from Thomas Bogendoerfer


Added:
   dists/trunk/linux-2.6/debian/patches/bugfix/mips/ip22_cache_shift.patch
   dists/trunk/linux-2.6/debian/patches/bugfix/mips/ip32_fix_unexpected_irq_71.patch
Modified:
   dists/trunk/linux-2.6/debian/changelog
   dists/trunk/linux-2.6/debian/patches/series/1~experimental.1

Modified: dists/trunk/linux-2.6/debian/changelog
==============================================================================
--- dists/trunk/linux-2.6/debian/changelog	(original)
+++ dists/trunk/linux-2.6/debian/changelog	Wed Jun 25 12:27:42 2008
@@ -71,6 +71,9 @@
     on the request of Heinz Janssen.
   * [arm/orion5x] Add support for QNAP TS-409 and HP mv2120; thanks
     Sylver Bruneau.
+  * [mips] Add fixes from Thomas Bogendoerfer:
+    - IP22: Set MIPS_L1_CACHE_SHIFT to 7
+    - IP32: fix unexpected irq 71
 
   [ Ian Campbell ]
   * Readme.build updated on how to generate orig tarballs.

Added: dists/trunk/linux-2.6/debian/patches/bugfix/mips/ip22_cache_shift.patch
==============================================================================
--- (empty file)
+++ dists/trunk/linux-2.6/debian/patches/bugfix/mips/ip22_cache_shift.patch	Wed Jun 25 12:27:42 2008
@@ -0,0 +1,40 @@
+On Mon, Jun 23, 2008 at 04:20:16PM +0000, The Fungi wrote:
+> On Sun, Jun 22, 2008 at 02:24:42PM +0200, Martin Michlmayr wrote:
+> > I've built some kernel snapshots for mips and mipsel based on
+> > 2.6.26-rc7.  Please test them on your favourite MIPS machine
+> > and report success or failures to this list.
+> 
+> My Indy (CMN B006Y87, R4400 175MHz CPU) panics on the r4k-ip22
+> package shortly after boot:
+
+this might be due to the change in using a cache invalidate instead
+of writeback/invalidate and the 128 byte linesize of the second level
+cache on that R4k CPU modules. The patch below should fix that. 
+I have no R4400 IP22 handy, so I'd appriciate if someone could test
+the patch. If it works, I'll sent the patch to Ralf with proper S-O-B.
+
+Thomas.
+
+diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
+index e5a7c5d..24c5dee 100644
+--- a/arch/mips/Kconfig
++++ b/arch/mips/Kconfig
+@@ -1006,7 +1006,7 @@ config BOOT_ELF32
+ config MIPS_L1_CACHE_SHIFT
+ 	int
+ 	default "4" if MACH_DECSTATION
+-	default "7" if SGI_IP27 || SGI_IP28 || SNI_RM
++	default "7" if SGI_IP22 || SGI_IP27 || SGI_IP28 || SNI_RM
+ 	default "4" if PMC_MSP4200_EVAL
+ 	default "5"
+ 
+
+
+-- 
+Crap can work. Given enough thrust pigs will fly, but it's not necessary a
+good idea.                                                [ RFC1925, 2.3 ]
+
+
+-- 
+To UNSUBSCRIBE, email to debian-mips-REQUEST at lists.debian.org
+with a subject of "unsubscribe". Trouble? Contact listmaster at lists.debian.org

Added: dists/trunk/linux-2.6/debian/patches/bugfix/mips/ip32_fix_unexpected_irq_71.patch
==============================================================================
--- (empty file)
+++ dists/trunk/linux-2.6/debian/patches/bugfix/mips/ip32_fix_unexpected_irq_71.patch	Wed Jun 25 12:27:42 2008
@@ -0,0 +1,27 @@
+It's possible that the crime interrupt handler is called without
+pending interrupts (probably a hardware issue). To avoid irritating
+"unexpected irq 71" messages, we now just ignore the spurious crime
+interrupts.
+
+Signed-off-by: Thomas Bogendoerfer <tsbogend at alpha.franken.de>
+---
+
+ arch/mips/sgi-ip32/ip32-irq.c |    5 +++++
+ 1 files changed, 5 insertions(+), 0 deletions(-)
+
+diff --git a/arch/mips/sgi-ip32/ip32-irq.c b/arch/mips/sgi-ip32/ip32-irq.c
+index b0ea0e4..0d6b666 100644
+--- a/arch/mips/sgi-ip32/ip32-irq.c
++++ b/arch/mips/sgi-ip32/ip32-irq.c
+@@ -425,6 +425,11 @@ static void ip32_irq0(void)
+ 	BUILD_BUG_ON(MACEISA_SERIAL2_RDMAOR_IRQ - MACEISA_AUDIO_SW_IRQ != 31);
+ 
+ 	crime_int = crime->istat & crime_mask;
++
++	/* crime sometime delivers spurious interrupts, ignore them */
++	if (unlikely(crime_int == 0))
++		return;
++
+ 	irq = MACE_VID_IN1_IRQ + __ffs(crime_int);
+ 
+ 	if (crime_int & CRIME_MACEISA_INT_MASK) {

Modified: dists/trunk/linux-2.6/debian/patches/series/1~experimental.1
==============================================================================
--- dists/trunk/linux-2.6/debian/patches/series/1~experimental.1	(original)
+++ dists/trunk/linux-2.6/debian/patches/series/1~experimental.1	Wed Jun 25 12:27:42 2008
@@ -22,6 +22,8 @@
 + bugfix/sparc/drivers_net-broken.patch
 + bugfix/ia64/hardcode-arch-script-output.patch
 + bugfix/mips/disable-advansys.patch
++ bugfix/mips/ip32_fix_unexpected_irq_71.patch
++ bugfix/mips/ip22_cache_shift.patch
 + bugfix/arm/disable-dvb_b2c2_flexcop.patch
 + bugfix/arm/disable-dvb_budget.patch
 + bugfix/arm/disable-netxen_nic.patch



More information about the Kernel-svn-changes mailing list