Re: efi_memmapwalk re-write (please test)

From: Martin Hicks <mort_at_sgi.com>
Date: 2005-09-08 05:17:17
On Wed, Sep 07, 2005 at 03:16:24PM -0400, Martin Hicks wrote:
> 
> Attached is a very small patch to find the uncached memory on SN2.
> 

and the patch this time...

mh

-- 
Martin Hicks   ||   Silicon Graphics Inc.   ||   mort@sgi.com


Index: linux-2.6.13/arch/ia64/kernel/efi.c
===================================================================
--- linux-2.6.13.orig/arch/ia64/kernel/efi.c	2005-09-07 07:46:05.000000000 -0700
+++ linux-2.6.13/arch/ia64/kernel/efi.c	2005-09-07 07:47:41.000000000 -0700
@@ -831,7 +831,8 @@ efi_memmap_init(unsigned long *s, unsign
 	for (p = efi_map_start; p < efi_map_end; pmd = md, p += efi_desc_size) {
 		md = p;
 		if (!efi_wb(md)) {
-			if (efi_uc(md) && md->type == EFI_CONVENTIONAL_MEMORY) {
+			if (efi_uc(md) && (md->type == EFI_CONVENTIONAL_MEMORY ||
+				    	   md->type == EFI_BOOT_SERVICES_DATA)) {
 				k->attribute = EFI_MEMORY_UC;
 				k->start = md->phys_addr;
 				k->num_pages = md->num_pages;
-
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 Thu Sep 08 05:17:23 2005

This archive was generated by hypermail 2.1.8 : 2005-09-08 05:18:00 EST