From MAILER-DAEMON Wed Apr 13 10:11:24 2011
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1QA0my-0001Zf-7b
	for mharc-dmidecode-devel@gnu.org; Wed, 13 Apr 2011 10:11:24 -0400
Received: from eggs.gnu.org ([140.186.70.92]:49046)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <khali@linux-fr.org>) id 1QA0mr-0001Y8-3G
	for dmidecode-devel@nongnu.org; Wed, 13 Apr 2011 10:11:22 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <khali@linux-fr.org>) id 1QA0mk-0000fo-AM
	for dmidecode-devel@nongnu.org; Wed, 13 Apr 2011 10:11:17 -0400
Received: from zone0.gcu-squad.org ([212.85.147.21]:18595
	helo=services.gcu-squad.org) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <khali@linux-fr.org>) id 1QA0mk-0000ae-5v
	for dmidecode-devel@nongnu.org; Wed, 13 Apr 2011 10:11:10 -0400
Received: from jdelvare.pck.nerim.net ([62.212.121.182] helo=endymion.delvare)
	by services.gcu-squad.org (GCU Mailer Daemon) with esmtpsa id
	1QA1tt-0001Mj-Kt (TLSv1:AES128-SHA:128)
	(envelope-from <khali@linux-fr.org>)
	for dmidecode-devel@nongnu.org; Wed, 13 Apr 2011 17:22:37 +0200
Date: Wed, 13 Apr 2011 16:10:54 +0200
From: Jean Delvare <khali@linux-fr.org>
To: dmidecode-devel@nongnu.org
Message-ID: <20110413161054.18f94d99@endymion.delvare>
X-Mailer: Claws Mail 3.7.5 (GTK+ 2.20.1; x86_64-unknown-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: OpenBSD 3.0-3.9
X-Received-From: 212.85.147.21
Subject: [dmidecode] [PATCH] SMBIOS 2.7.1 support
X-BeenThere: dmidecode-devel@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: dmidecode-devel@nongnu.org
List-Id: <dmidecode-devel.nongnu.org>
List-Unsubscribe: <http://lists.nongnu.org/mailman/options/dmidecode-devel>,
	<mailto:dmidecode-devel-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/dmidecode-devel>
List-Post: <mailto:dmidecode-devel@nongnu.org>
List-Help: <mailto:dmidecode-devel-request@nongnu.org?subject=help>
List-Subscribe: <http://lists.nongnu.org/mailman/listinfo/dmidecode-devel>,
	<mailto:dmidecode-devel-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 13 Apr 2011 14:11:22 -0000

Add support for SMBIOS 2.7.1:
* 6 new AMD processor families
* 1 new cache associativity value
* PCI Express 3 slot types
---
I'll commit this shortly if there is no objection. If anyone has access
to a system using any of the new values, please test and report.

 dmidecode.c |   38 +++++++++++++++++++++++++++++++-------
 1 file changed, 31 insertions(+), 7 deletions(-)

--- dmidecode.orig/dmidecode.c	2011-01-25 17:10:05.000000000 +0100
+++ dmidecode/dmidecode.c	2011-04-13 16:05:24.000000000 +0200
@@ -707,6 +707,8 @@ static const char *dmi_processor_family(
 		{ 0x3A, "Athlon II Dual-Core M" },
 		{ 0x3B, "Opteron 6100" },
 		{ 0x3C, "Opteron 4100" },
+		{ 0x3D, "Opteron 6200" },
+		{ 0x3E, "Opteron 4200" },
 
 		{ 0x40, "MIPS" },
 		{ 0x41, "MIPS R4000" },
@@ -714,6 +716,10 @@ static const char *dmi_processor_family(
 		{ 0x43, "MIPS R4400" },
 		{ 0x44, "MIPS R4600" },
 		{ 0x45, "MIPS R10000" },
+		{ 0x46, "C-Series" },
+		{ 0x47, "E-Series" },
+		{ 0x48, "S-Series" },
+		{ 0x49, "G-Series" },
 
 		{ 0x50, "SPARC" },
 		{ 0x51, "SuperSPARC" },
@@ -997,7 +1003,8 @@ static void dmi_processor_id(u8 type, co
 		sig = 1;
 	else if ((type >= 0x18 && type <= 0x1D) /* AMD */
 	      || type == 0x1F /* AMD */
-	      || (type >= 0x38 && type <= 0x3C) /* AMD */
+	      || (type >= 0x38 && type <= 0x3E) /* AMD */
+	      || (type >= 0x46 && type <= 0x49) /* AMD */
 	      || (type >= 0x83 && type <= 0x8F) /* AMD */
 	      || (type >= 0xB6 && type <= 0xB7) /* AMD */
 	      || (type >= 0xE6 && type <= 0xEF)) /* AMD */
@@ -1143,10 +1150,20 @@ static const char *dmi_processor_upgrade
 		"Socket LGA1156",
 		"Socket LGA1567",
 		"Socket PGA988A",
-		"Socket BGA1288" /* 0x20 */
+		"Socket BGA1288",
+		"Socket rPGA988B",
+		"Socket BGA1023",
+		"Socket BGA1024",
+		"Socket BGA1155",
+		"Socket LGA1356",
+		"Socket LGA2011",
+		"Socket FS1",
+		"Socket FS2",
+		"Socket FM1",
+		"Socket FM2" /* 0x2A */
 	};
 
-	if (code >= 0x01 && code <= 0x20)
+	if (code >= 0x01 && code <= 0x2A)
 		return upgrade[code - 0x01];
 	return out_of_spec;
 }
@@ -1493,10 +1510,11 @@ static const char *dmi_cache_associativi
 		"24-way Set-associative",
 		"32-way Set-associative",
 		"48-way Set-associative",
-		"64-way Set-associative" /* 0x0D */
+		"64-way Set-associative",
+		"20-way Set-associative" /* 0x0E */
 	};
 
-	if (code >= 0x01 && code <= 0x0D)
+	if (code >= 0x01 && code <= 0x0E)
 		return type[code - 0x01];
 	return out_of_spec;
 }
@@ -1660,12 +1678,18 @@ static const char *dmi_slot_type(u8 code
 		"PCI Express 2 x2",
 		"PCI Express 2 x4",
 		"PCI Express 2 x8",
-		"PCI Express 2 x16", /* 0xB0 */
+		"PCI Express 2 x16",
+		"PCI Express 3",
+		"PCI Express 3 x1",
+		"PCI Express 3 x2",
+		"PCI Express 3 x4",
+		"PCI Express 3 x8",
+		"PCI Express 3 x16" /* 0xB6 */
 	};
 
 	if (code >= 0x01 && code <= 0x13)
 		return type[code - 0x01];
-	if (code >= 0xA0 && code <= 0xB0)
+	if (code >= 0xA0 && code <= 0xB6)
 		return type_0xA0[code - 0xA0];
 	return out_of_spec;
 }


-- 
Jean Delvare


