[patch] MCA contig memory fix

From: Russ Anderson <rja_at_sgi.com>
Date: 2005-01-18 07:03:30
Ashok Raj uncovered a problem while testing the MCA code
on a tiger box with contig memory.  The virtual address 
was getting saved instead of the physical address of the
MCA save area.  This patch fixes that problem.

Signed-off-by: Russ Anderson <rja@sgi.com>

-------------------------------------------------------
Index: 2.6.11/arch/ia64/mm/contig.c
===================================================================
--- 2.6.11.orig/arch/ia64/mm/contig.c	2005-01-10 15:39:36.531197800 -0600
+++ 2.6.11/arch/ia64/mm/contig.c	2005-01-14 14:15:32.800575500 -0600
@@ -195,7 +195,7 @@
 			__per_cpu_offset[cpu] = (char *) cpu_data - __per_cpu_start;
 			cpu_data += PERCPU_PAGE_SIZE;
 			per_cpu(local_per_cpu_offset, cpu) = __per_cpu_offset[cpu];
-			__per_cpu_mca[cpu] = (unsigned long)mca_data;
+			__per_cpu_mca[cpu] = (unsigned long)__pa(mca_data);
 			mca_data += PERCPU_MCA_SIZE;
 		}
 	}

-- 
Russ Anderson, OS RAS/Partitioning Project Lead  
SGI - Silicon Graphics Inc          rja@sgi.com
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Mon Jan 17 15:04:54 2005

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:34 EST