[PATCH] PPC64: Trivial Cleanup: EEH_REGION

Linas Vepstas linas at austin.ibm.com
Wed Jan 12 09:27:08 EST 2005


Hi Paul, 

Please forward upstream if you agree.

This is a dumb, dorky cleanup patch:
Per last round of emails, the concept of EEH _REGION is gone, 
but a few  stubs remained.  This patch removes them.

Note there is some funny business in the SLB code that 
I did not understand, and so I left that alone.  
I'm guessing that it should be cut out as well.

Signed-off-by: Linas Vepstas <linas at linas.org>

--linas


-------------- next part --------------
===== arch/ppc64/mm/hash_utils.c 1.55 vs edited =====
--- 1.55/arch/ppc64/mm/hash_utils.c	2004-10-28 02:39:49 -05:00
+++ edited/arch/ppc64/mm/hash_utils.c	2005-01-10 16:58:40 -06:00
@@ -295,12 +295,6 @@ int hash_page(unsigned long ea, unsigned
 		vsid = get_kernel_vsid(ea);
 		break;
 #if 0
-	case EEH_REGION_ID:
-		/*
-		 * Should only be hit if there is an access to MMIO space
-		 * which is protected by EEH.
-		 * Send the problem up to do_page_fault 
-		 */
 	case KERNEL_REGION_ID:
 		/*
 		 * Should never get here - entire 0xC0... region is bolted.
===== arch/ppc64/mm/slb.c 1.3 vs edited =====
--- 1.3/arch/ppc64/mm/slb.c	2004-09-03 04:08:16 -05:00
+++ edited/arch/ppc64/mm/slb.c	2005-01-10 17:03:36 -06:00
@@ -75,6 +75,8 @@ static void slb_flush_and_rebolt(void)
 		     : "memory");
 }
 
+#define EEHREGIONBASE   ASM_CONST(0xA000000000000000)
+
 /* Flush all user entries from the segment table of the current processor. */
 void switch_slb(struct task_struct *tsk, struct mm_struct *mm)
 {
===== include/asm-ppc64/page.h 1.36 vs edited =====
--- 1.36/include/asm-ppc64/page.h	2004-10-28 02:39:49 -05:00
+++ edited/include/asm-ppc64/page.h	2005-01-10 16:59:50 -06:00
@@ -203,10 +203,8 @@ extern int page_is_ram(unsigned long pfn
 #define KERNELBASE      PAGE_OFFSET
 #define VMALLOCBASE     ASM_CONST(0xD000000000000000)
 #define IOREGIONBASE    ASM_CONST(0xE000000000000000)
-#define EEHREGIONBASE   ASM_CONST(0xA000000000000000)
 
 #define IO_REGION_ID       (IOREGIONBASE>>REGION_SHIFT)
-#define EEH_REGION_ID      (EEHREGIONBASE>>REGION_SHIFT)
 #define VMALLOC_REGION_ID  (VMALLOCBASE>>REGION_SHIFT)
 #define KERNEL_REGION_ID   (KERNELBASE>>REGION_SHIFT)
 #define USER_REGION_ID     (0UL)


More information about the Linuxppc64-dev mailing list