Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753546AbYGXQuY (ORCPT ); Thu, 24 Jul 2008 12:50:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751937AbYGXQuL (ORCPT ); Thu, 24 Jul 2008 12:50:11 -0400 Received: from mga14.intel.com ([143.182.124.37]:63907 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751016AbYGXQuJ (ORCPT ); Thu, 24 Jul 2008 12:50:09 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.31,247,1215414000"; d="scan'208";a="24392388" X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C8EDAD.52089C68" Subject: [PATCH] acpi - Add support for AddressRangeUnusuable ACPI memory type Date: Thu, 24 Jul 2008 09:49:57 -0700 Message-ID: X-MS-Has-Attach: yes X-MS-TNEF-Correlator: Thread-Topic: [PATCH] acpi - Add support for AddressRangeUnusuable ACPI memory type Thread-Index: AcjtrU31ixShJhX5SeCWQIKDlr/hkg== From: "Cihula, Joseph" To: , Cc: "Kleen, Andi" , "Wang, Shane" , "Wei, Gang" , "Brown, Len" X-OriginalArrivalTime: 24 Jul 2008 16:50:04.0714 (UTC) FILETIME=[525EF8A0:01C8EDAD] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 5332 Lines: 128 This is a multi-part message in MIME format. ------_=_NextPart_001_01C8EDAD.52089C68 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Add support for the E820_UNUSABLE memory type, which is defined in Revision 3.0b (Oct. 10, 2006) of the ACPI Specification on p. 394 Table 14-1: AddressRangeUnusuable This range of address contains memory in which errors have been detected. This range must not be used by the OSPM. This patch applies cleanly to 2.6.26. Signed-off-by: Joseph Cihula Signed-off-by: Shane Wang Signed-off-by: Gang Wei --- linux-2.6.26/arch/x86/kernel/e820_32.c 2008-07-13 14:51:29.000000000 -0700 +++ linux-2.6.26-acpi/arch/x86/kernel/e820_32.c 2008-07-23 13:25:44.000000000 -0700 @@ -198,6 +198,7 @@ case E820_RAM: res->name =3D "System RAM"; break; case E820_ACPI: res->name =3D "ACPI Tables"; break; case E820_NVS: res->name =3D "ACPI Non-volatile Storage"; break; + case E820_UNUSABLE: res->name =3D "Unusable memory"; break; default: res->name =3D "reserved"; } res->start =3D e820.map[i].addr; @@ -604,6 +605,9 @@ case E820_NVS: printk("(ACPI NVS)\n"); break; + case E820_UNUSABLE: + printk("(unusable)\n"); + break; default: printk("type %u\n", e820.map[i].type); break; } --- linux-2.6.26/arch/x86/kernel/e820_64.c 2008-07-13 14:51:29.000000000 -0700 +++ linux-2.6.26-acpi/arch/x86/kernel/e820_64.c 2008-07-23 13:27:29.000000000 -0700 @@ -336,6 +336,7 @@ case E820_RAM: res->name =3D "System RAM"; break; case E820_ACPI: res->name =3D "ACPI Tables"; break; case E820_NVS: res->name =3D "ACPI Non-volatile Storage"; break; + case E820_UNUSABLE: res->name =3D "Unusable memory"; break; default: res->name =3D "reserved"; } res->start =3D e820.map[i].addr; @@ -495,6 +496,9 @@ case E820_NVS: printk(KERN_CONT "(ACPI NVS)\n"); break; + case E820_UNUSABLE: + printk("(unusable)\n"); + break; default: printk(KERN_CONT "type %u\n", e820.map[i].type); break; --- linux-2.6.26/include/asm-x86/e820.h 2008-07-13 14:51:29.000000000 -0700 +++ linux-2.6.26-acpi/include/asm-x86/e820.h 2008-07-23 13:25:44.000000000 -0700 @@ -8,6 +8,7 @@ #define E820_RESERVED 2 #define E820_ACPI 3 #define E820_NVS 4 +#define E820_UNUSABLE 5 =20 #ifndef __ASSEMBLY__ struct e820entry { <>=20 ------_=_NextPart_001_01C8EDAD.52089C68 Content-Type: application/octet-stream; name="linux-acpi-2.6.26.patch" Content-Transfer-Encoding: base64 Content-Description: linux-acpi-2.6.26.patch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CAtMDcwMApAQCAtOCw2ICs4LDcgQEAK ICNkZWZpbmUgRTgyMF9SRVNFUlZFRAkyCiAjZGVmaW5lIEU4MjBfQUNQSQkzCiAjZGVmaW5lIEU4 MjBfTlZTCTQKKyNkZWZpbmUgRTgyMF9VTlVTQUJMRQk1CiAKICNpZm5kZWYgX19BU1NFTUJMWV9f CiBzdHJ1Y3QgZTgyMGVudHJ5IHsK ------_=_NextPart_001_01C8EDAD.52089C68-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/