[Cbe-oss-dev] [PATCH 1/2] edac: Add Cell XDR memory definition

Benjamin Herrenschmidt benh at kernel.crashing.org
Wed Oct 3 16:29:49 EST 2007


This patch adds the definitions for the Rambus XDR memory type
used by the Cell processor. It's a pre-requisite for the followup
Cell EDAC patch.

Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
---

 drivers/edac/edac_core.h     |    4 +++-
 drivers/edac/edac_mc_sysfs.c |    3 ++-
 2 files changed, 5 insertions(+), 2 deletions(-)

Index: linux-work/drivers/edac/edac_core.h
===================================================================
--- linux-work.orig/drivers/edac/edac_core.h	2007-10-03 14:16:14.000000000 +1000
+++ linux-work/drivers/edac/edac_core.h	2007-10-03 14:16:47.000000000 +1000
@@ -138,6 +138,7 @@ enum mem_type {
 	MEM_DDR2,		/* DDR2 RAM */
 	MEM_FB_DDR2,		/* fully buffered DDR2 */
 	MEM_RDDR2,		/* Registered DDR2 RAM */
+	MEM_XDR,		/* Rambus XDR */
 };
 
 #define MEM_FLAG_EMPTY		BIT(MEM_EMPTY)
@@ -153,7 +154,8 @@ enum mem_type {
 #define MEM_FLAG_RMBS		BIT(MEM_RMBS)
 #define MEM_FLAG_DDR2           BIT(MEM_DDR2)
 #define MEM_FLAG_FB_DDR2        BIT(MEM_FB_DDR2)
-#define MEM_FLAG_RDDR2          BIT(MEM_RDDR2)
+#define MEM_FLAG_RDDR2          BIT(MEM_RDDR2
+#define MEM_FLAG_XDR            BIT(MEM_XDR)
 
 /* chipset Error Detection and Correction capabilities and mode */
 enum edac_type {
Index: linux-work/drivers/edac/edac_mc_sysfs.c
===================================================================
--- linux-work.orig/drivers/edac/edac_mc_sysfs.c	2007-10-03 14:17:06.000000000 +1000
+++ linux-work/drivers/edac/edac_mc_sysfs.c	2007-10-03 14:17:12.000000000 +1000
@@ -73,7 +73,8 @@ static const char *mem_types[] = {
 	[MEM_RMBS] = "RMBS",
 	[MEM_DDR2] = "Unbuffered-DDR2",
 	[MEM_FB_DDR2] = "FullyBuffered-DDR2",
-	[MEM_RDDR2] = "Registered-DDR2"
+	[MEM_RDDR2] = "Registered-DDR2",
+	[MEM_RDDR2] = "XDR"
 };
 
 static const char *dev_types[] = {



More information about the cbe-oss-dev mailing list