public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] Remove limit on MCA recoveries
@ 2005-01-15 22:49 Russ Anderson
  2005-01-15 23:10 ` Keith Owens
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Russ Anderson @ 2005-01-15 22:49 UTC (permalink / raw)
  To: linux-ia64

The MCA recovery driver saves addresses memory errors
in an array.  The array has 32 entries.  The effect is 
that after 32 recoveries, the driver stops recovering.

This patch removes the page_isolate array.  Since the array
was only used to see if the page is already marked reserved,
check the reserved bit instead of the array.

Signed-off-by: Russ Anderson

-----------------------------------------
Index: 2.6.11/arch/ia64/kernel/mca_drv.c
=================================--- 2.6.11.orig/arch/ia64/kernel/mca_drv.c	2005-01-10 15:39:35.746124749 -0600
+++ 2.6.11/arch/ia64/kernel/mca_drv.c	2005-01-14 15:31:25.290081483 -0600
@@ -52,10 +52,6 @@
 	MCA_IS_GLOBAL = 1
 } mca_type_t;
 
-#define MAX_PAGE_ISOLATE 32
-
-static struct page *page_isolate[MAX_PAGE_ISOLATE];
-static int num_page_isolate = 0;
 
 typedef enum {
 	ISOLATE_NG = 0,
@@ -82,7 +78,6 @@
 static isolate_status_t
 mca_page_isolate(unsigned long paddr)
 {
-	int i;
 	struct page *p;
 
 	/* whether physical address is valid or not */
@@ -93,21 +88,15 @@
 	p = pfn_to_page(paddr>>PAGE_SHIFT);
 
 	/* check whether a page number have been already registered or not */
-	for( i = 0; i < num_page_isolate; i++ )
-		if( page_isolate[i] = p )
-			return ISOLATE_OK; /* already listed */
-
-	/* limitation check */
-	if( num_page_isolate = MAX_PAGE_ISOLATE ) 
-		return ISOLATE_NG;
+	if( PageReserved(p) )
+		return ISOLATE_OK; /* already listed */
 
 	/* kick pages having attribute 'SLAB' or 'Reserved' */
-	if( PageSlab(p) || PageReserved(p) ) 
+	if( PageSlab(p) ) 
 		return ISOLATE_NG;
 
 	/* add attribute 'Reserved' and register the page */
 	SetPageReserved(p);
-	page_isolate[num_page_isolate++] = p;
 
 	return ISOLATE_OK;
 }
-- 
Russ Anderson, OS RAS/Partitioning Project Lead  
SGI - Silicon Graphics Inc          rja@sgi.com

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

end of thread, other threads:[~2005-01-18 13:57 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-15 22:49 [patch] Remove limit on MCA recoveries Russ Anderson
2005-01-15 23:10 ` Keith Owens
2005-01-16  9:01 ` Matthias Fouquet-Lapar
2005-01-17  1:07 ` Hidetoshi Seto
2005-01-17 19:27 ` Russ Anderson
2005-01-17 21:07 ` Russ Anderson
2005-01-17 21:18 ` Keith Owens
2005-01-17 21:28 ` Luck, Tony
2005-01-17 21:28 ` Russ Anderson
2005-01-17 22:01 ` Russ Anderson
2005-01-18 13:57 ` Matthias Fouquet-Lapar

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