diff options
| author | Yazen Ghannam <Yazen.Ghannam@amd.com> | 2016-11-17 17:57:28 -0500 |
|---|---|---|
| committer | Borislav Petkov <bp@suse.de> | 2016-11-21 03:31:59 -0500 |
| commit | 1e8096bb2031c53b6bf3adc7667b4b2bdf2a1ac6 (patch) | |
| tree | 68e40ab29b0fa5931d1d35749a7b00333a2114dc /include/linux/edac.h | |
| parent | 27bda205ba93c02d8b5dcd1d5c2acc84d889ca6a (diff) | |
EDAC: Add LRDDR4 DRAM type
AMD Fam17h systems can support Load-Reduced DDR4 DIMMs. So add this new
type to edac.h in preparation for the Fam17h EDAC update. Also, let's
fix a format issue with the LRDDR3 line while we're here.
Signed-off-by: Yazen Ghannam <Yazen.Ghannam@amd.com>
Cc: Aravind Gopalakrishnan <aravindksg.lkml@gmail.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/1479423463-8536-3-git-send-email-Yazen.Ghannam@amd.com
Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'include/linux/edac.h')
| -rw-r--r-- | include/linux/edac.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/edac.h b/include/linux/edac.h index 9e0d78966552..bf2bf87bb2f9 100644 --- a/include/linux/edac.h +++ b/include/linux/edac.h | |||
| @@ -192,10 +192,11 @@ static inline char *mc_event_error_type(const unsigned int err_type) | |||
| 192 | * @MEM_DDR3: DDR3 RAM | 192 | * @MEM_DDR3: DDR3 RAM |
| 193 | * @MEM_RDDR3: Registered DDR3 RAM | 193 | * @MEM_RDDR3: Registered DDR3 RAM |
| 194 | * This is a variant of the DDR3 memories. | 194 | * This is a variant of the DDR3 memories. |
| 195 | * @MEM_LRDDR3 Load-Reduced DDR3 memory. | 195 | * @MEM_LRDDR3: Load-Reduced DDR3 memory. |
| 196 | * @MEM_DDR4: Unbuffered DDR4 RAM | 196 | * @MEM_DDR4: Unbuffered DDR4 RAM |
| 197 | * @MEM_RDDR4: Registered DDR4 RAM | 197 | * @MEM_RDDR4: Registered DDR4 RAM |
| 198 | * This is a variant of the DDR4 memories. | 198 | * This is a variant of the DDR4 memories. |
| 199 | * @MEM_LRDDR4: Load-Reduced DDR4 memory. | ||
| 199 | */ | 200 | */ |
| 200 | enum mem_type { | 201 | enum mem_type { |
| 201 | MEM_EMPTY = 0, | 202 | MEM_EMPTY = 0, |
| @@ -218,6 +219,7 @@ enum mem_type { | |||
| 218 | MEM_LRDDR3, | 219 | MEM_LRDDR3, |
| 219 | MEM_DDR4, | 220 | MEM_DDR4, |
| 220 | MEM_RDDR4, | 221 | MEM_RDDR4, |
| 222 | MEM_LRDDR4, | ||
| 221 | }; | 223 | }; |
| 222 | 224 | ||
| 223 | #define MEM_FLAG_EMPTY BIT(MEM_EMPTY) | 225 | #define MEM_FLAG_EMPTY BIT(MEM_EMPTY) |
| @@ -239,6 +241,7 @@ enum mem_type { | |||
| 239 | #define MEM_FLAG_RDDR3 BIT(MEM_RDDR3) | 241 | #define MEM_FLAG_RDDR3 BIT(MEM_RDDR3) |
| 240 | #define MEM_FLAG_DDR4 BIT(MEM_DDR4) | 242 | #define MEM_FLAG_DDR4 BIT(MEM_DDR4) |
| 241 | #define MEM_FLAG_RDDR4 BIT(MEM_RDDR4) | 243 | #define MEM_FLAG_RDDR4 BIT(MEM_RDDR4) |
| 244 | #define MEM_FLAG_LRDDR4 BIT(MEM_LRDDR4) | ||
| 242 | 245 | ||
| 243 | /** | 246 | /** |
| 244 | * enum edac-type - Error Detection and Correction capabilities and mode | 247 | * enum edac-type - Error Detection and Correction capabilities and mode |
