Skip to content

Commit 1d5f726

Browse files
ozbenhLinus Torvalds
authored andcommitted
drivers-edac: add Cell XDR memory types
Add 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@kernel.crashing.org> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk Signed-off-by: Doug Thompson <dougthompson@xmission.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent c2ae24c commit 1d5f726

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎drivers/edac/edac_core.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ enum mem_type {
136136
MEM_DDR2, /* DDR2 RAM */
137137
MEM_FB_DDR2, /* fully buffered DDR2 */
138138
MEM_RDDR2, /* Registered DDR2 RAM */
139+
MEM_XDR, /* Rambus XDR */
139140
};
140141

141142
#define MEM_FLAG_EMPTY BIT(MEM_EMPTY)
@@ -152,6 +153,7 @@ enum mem_type {
152153
#define MEM_FLAG_DDR2 BIT(MEM_DDR2)
153154
#define MEM_FLAG_FB_DDR2 BIT(MEM_FB_DDR2)
154155
#define MEM_FLAG_RDDR2 BIT(MEM_RDDR2)
156+
#define MEM_FLAG_XDR BIT(MEM_XDR)
155157

156158
/* chipset Error Detection and Correction capabilities and mode */
157159
enum edac_type {

‎drivers/edac/edac_mc_sysfs.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ static const char *mem_types[] = {
7373
[MEM_RMBS] = "RMBS",
7474
[MEM_DDR2] = "Unbuffered-DDR2",
7575
[MEM_FB_DDR2] = "FullyBuffered-DDR2",
76-
[MEM_RDDR2] = "Registered-DDR2"
76+
[MEM_RDDR2] = "Registered-DDR2",
77+
[MEM_XDR] = "XDR"
7778
};
7879

7980
static const char *dev_types[] = {

0 commit comments

Comments
 (0)