lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <D936D925018D154694D8A362EEB08920050E2B52@orsmsx416.amr.corp.intel.com>
Date:	Fri, 1 Aug 2008 10:50:23 -0700
From:	"Cihula, Joseph" <joseph.cihula@...el.com>
To:	<linux-kernel@...r.kernel.org>, <x86@...nel.org>,
	<linux-acpi@...r.kernel.org>
Cc:	"Kleen, Andi" <andi.kleen@...el.com>,
	"Wang, Shane" <shane.wang@...el.com>,
	"Wei, Gang" <gang.wei@...el.com>,
	"Brown, Len" <len.brown@...el.com>
Subject: [PATCH] acpi: Add support for AddressRangeUnusuable ACPI memory type

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 the tip of the current git tree (with the
merged 32/64b e820.c file).

Signed-off-by:  Joseph Cihula <joseph.cihula@...el.com>
Signed-off-by:  Shane Wang <shane.wang@...el.com>
Signed-off-by:  Gang Wei <gang.wei@...el.com>

diff -uprN linux.trees.git/arch/x86/kernel/e820.c
acpi-linux/arch/x86/kernel/e820.c
--- linux.trees.git/arch/x86/kernel/e820.c	2008-08-01
08:14:10.000000000 -0700
+++ acpi-linux/arch/x86/kernel/e820.c	2008-08-01 08:24:19.000000000
-0700
@@ -148,6 +148,9 @@ void __init e820_print_map(char *who)
 		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;
@@ -1260,6 +1263,7 @@ static inline const char *e820_type_to_s
 	case E820_RAM:	return "System RAM";
 	case E820_ACPI:	return "ACPI Tables";
 	case E820_NVS:	return "ACPI Non-volatile Storage";
+	case E820_UNUSABLE:	return "Unusable memory";
 	default:	return "reserved";
 	}
 }
diff -uprN linux.trees.git/include/asm-x86/e820.h
acpi-linux/include/asm-x86/e820.h
--- linux.trees.git/include/asm-x86/e820.h	2008-08-01
08:14:24.000000000 -0700
+++ acpi-linux/include/asm-x86/e820.h	2008-08-01 08:25:55.000000000
-0700
@@ -43,6 +43,7 @@
 #define E820_RESERVED	2
 #define E820_ACPI	3
 #define E820_NVS	4
+#define E820_UNUSABLE	5
 
 /* reserved RAM used by kernel itself */
 #define E820_RESERVED_KERN        128

Download attachment "linux-acpi-tip.patch" of type "application/octet-stream" (1208 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ