aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/edac.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2012-01-27 16:38:08 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-05-28 18:10:58 -0400
commit084a4fccef39ac7abb039511f32380f28d0b67e6 (patch)
tree0596612000c7ec3a848b10f7cc4acdb573218076 /include/linux/edac.h
parenta7d7d2e1a07e3811dc49af2962c940fd8bbb6c8f (diff)
edac: move dimm properties to struct dimm_info
On systems based on chip select rows, all channels need to use memories with the same properties, otherwise the memories on channels A and B won't be recognized. However, such assumption is not true for all types of memory controllers. Controllers for FB-DIMM's don't have such requirements. Also, modern Intel controllers seem to be capable of handling such differences. So, we need to get rid of storing the DIMM information into a per-csrow data, storing it, instead at the right place. The first step is to move grain, mtype, dtype and edac_mode to the per-dimm struct. Reviewed-by: Aristeu Rozanski <arozansk@redhat.com> Reviewed-by: Borislav Petkov <borislav.petkov@amd.com> Acked-by: Chris Metcalf <cmetcalf@tilera.com> Cc: Doug Thompson <norsk5@yahoo.com> Cc: Borislav Petkov <borislav.petkov@amd.com> Cc: Mark Gross <mark.gross@intel.com> Cc: Jason Uhlenkott <juhlenko@akamai.com> Cc: Tim Small <tim@buttersideup.com> Cc: Ranganathan Desikan <ravi@jetztechnologies.com> Cc: "Arvind R." <arvino55@gmail.com> Cc: Olof Johansson <olof@lixom.net> Cc: Egor Martovetsky <egor@pasemi.com> Cc: Michal Marek <mmarek@suse.cz> Cc: Jiri Kosina <jkosina@suse.cz> Cc: Joe Perches <joe@perches.com> Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Hitoshi Mitake <h.mitake@gmail.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: James Bottomley <James.Bottomley@parallels.com> Cc: "Niklas Söderlund" <niklas.soderlund@ericsson.com> Cc: Shaohui Xie <Shaohui.Xie@freescale.com> Cc: Josh Boyer <jwboyer@gmail.com> Cc: Mike Williams <mike@mikebwilliams.com> Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/linux/edac.h')
-rw-r--r--include/linux/edac.h21
1 files changed, 13 insertions, 8 deletions
diff --git a/include/linux/edac.h b/include/linux/edac.h
index 52bceca85e63..87aa07d2ee28 100644
--- a/include/linux/edac.h
+++ b/include/linux/edac.h
@@ -318,6 +318,13 @@ struct dimm_info {
318 unsigned memory_controller; 318 unsigned memory_controller;
319 unsigned csrow; 319 unsigned csrow;
320 unsigned csrow_channel; 320 unsigned csrow_channel;
321
322 u32 grain; /* granularity of reported error in bytes */
323 enum dev_type dtype; /* memory device type */
324 enum mem_type mtype; /* memory dimm type */
325 enum edac_type edac_mode; /* EDAC mode for this dimm */
326
327 u32 ce_count; /* Correctable Errors for this dimm */
321}; 328};
322 329
323/** 330/**
@@ -343,19 +350,17 @@ struct rank_info {
343}; 350};
344 351
345struct csrow_info { 352struct csrow_info {
346 unsigned long first_page; /* first page number in dimm */ 353 unsigned long first_page; /* first page number in csrow */
347 unsigned long last_page; /* last page number in dimm */ 354 unsigned long last_page; /* last page number in csrow */
355 u32 nr_pages; /* number of pages in csrow */
348 unsigned long page_mask; /* used for interleaving - 356 unsigned long page_mask; /* used for interleaving -
349 * 0UL for non intlv 357 * 0UL for non intlv
350 */ 358 */
351 u32 nr_pages; /* number of pages in csrow */ 359 int csrow_idx; /* the chip-select row */
352 u32 grain; /* granularity of reported error in bytes */ 360
353 int csrow_idx; /* the chip-select row */
354 enum dev_type dtype; /* memory device type */
355 u32 ue_count; /* Uncorrectable Errors for this csrow */ 361 u32 ue_count; /* Uncorrectable Errors for this csrow */
356 u32 ce_count; /* Correctable Errors for this csrow */ 362 u32 ce_count; /* Correctable Errors for this csrow */
357 enum mem_type mtype; /* memory csrow type */ 363
358 enum edac_type edac_mode; /* EDAC mode for this csrow */
359 struct mem_ctl_info *mci; /* the parent */ 364 struct mem_ctl_info *mci; /* the parent */
360 365
361 struct kobject kobj; /* sysfs kobject for this csrow */ 366 struct kobject kobj; /* sysfs kobject for this csrow */