[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Fwd: [PATCH] oneliner in iommu.c



Just in case someone is not reading linux-sparc, I'm reposting 
this small patch. After this patch my SS20 boots 2.2.7 kernel and 
seems to be stable.


From: Pete Zaitcev <zaitcev@metabyte.com>
Subject: [PATCH] oneliner in iommu.c
To: sparclinux@vger.rutgers.edu
Date: Thu, 6 May 1999 22:43:08 -0700 (PDT)

JavaStation-1 hangs (loops) when bank 0 has 32MB and bank 1 has 8MB.
It turned out that when we insert the element into the sorted list
we also append it, and this makes a circular list.

Index: arch/sparc/mm/iommu.c
--- arch/sparc/mm/iommu.c       1998/04/15 14:58:37     1.9
+++ arch/sparc/mm/iommu.c       1999/05/07 05:32:04
@@ -118,6 +119,7 @@
                                if (ia[i].addr <= ia[l].addr) {
                                        ia[i].next = l;
                                        ia[m].next = i;
+                                       break;
                                }
                        if (l == -1)
                                ia[m].next = i;

What puzzles me is that 2.2.5 has exactly the same bug, but it works.
Anyone saw unusual behaviour on sun4m's recently?

--Pete



Reply to: