Mauro Carvalho Chehab
6e84d359b2
edac_mc: Cleanup per-dimm_info debug messages
The edac_mc_alloc() routine allocates one dimm_info device for all
possible memories, including the non-filled ones. The debug messages
there are somewhat confusing. So, cleans them, by moving the code
that prints the memory location to edac_mc, and using it on both
edac_mc_sysfs and edac_mc.
Also, only dumps information when DIMM/ranks are actually
filled.
After this patch, a dimm-based memory controller will print the debug
info as:
[ 1011.380027] EDAC DEBUG: edac_mc_dump_csrow: csrow->csrow_idx = 0
[ 1011.380029] EDAC DEBUG: edac_mc_dump_csrow: csrow = ffff8801169be000
[ 1011.380031] EDAC DEBUG: edac_mc_dump_csrow: csrow->first_page = 0x0
[ 1011.380032] EDAC DEBUG: edac_mc_dump_csrow: csrow->last_page = 0x0
[ 1011.380034] EDAC DEBUG: edac_mc_dump_csrow: csrow->page_mask = 0x0
[ 1011.380035] EDAC DEBUG: edac_mc_dump_csrow: csrow->nr_channels = 3
[ 1011.380037] EDAC DEBUG: edac_mc_dump_csrow: csrow->channels = ffff8801149c2840
[ 1011.380039] EDAC DEBUG: edac_mc_dump_csrow: csrow->mci = ffff880117426000
[ 1011.380041] EDAC DEBUG: edac_mc_dump_channel: channel->chan_idx = 0
[ 1011.380042] EDAC DEBUG: edac_mc_dump_channel: channel = ffff8801149c2860
[ 1011.380044] EDAC DEBUG: edac_mc_dump_channel: channel->csrow = ffff8801169be000
[ 1011.380046] EDAC DEBUG: edac_mc_dump_channel: channel->dimm = ffff88010fe90400
...
[ 1011.380095] EDAC DEBUG: edac_mc_dump_dimm: dimm0: channel 0 slot 0 mapped as virtual row 0, chan 0
[ 1011.380097] EDAC DEBUG: edac_mc_dump_dimm: dimm = ffff88010fe90400
[ 1011.380099] EDAC DEBUG: edac_mc_dump_dimm: dimm->label = 'CPU#0Channel#0_DIMM#0'
[ 1011.380101] EDAC DEBUG: edac_mc_dump_dimm: dimm->nr_pages = 0x40000
[ 1011.380103] EDAC DEBUG: edac_mc_dump_dimm: dimm->grain = 8
[ 1011.380104] EDAC DEBUG: edac_mc_dump_dimm: dimm->nr_pages = 0x40000
...
(a rank-based memory controller would print, instead of "dimm?", "rank?"
on the above debug info)
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-06-11 13:23:49 -03:00
..
2012-05-17 16:16:16 -07:00
2012-04-13 14:04:08 +01:00
2012-05-03 17:16:52 -07:00
2012-05-09 15:44:11 +01:00
2012-04-16 13:32:01 -04:00
2012-05-19 10:12:17 -07:00
2012-04-27 15:16:43 -04:00
2012-05-17 12:14:33 +03:00
2012-04-12 00:05:05 +02:00
2012-04-13 17:57:40 -07:00
2012-05-15 01:10:06 +00:00
2012-05-17 09:57:13 -07:00
2012-06-11 13:23:49 -03:00
2012-05-03 17:19:19 -07:00
2012-05-11 18:25:53 -06:00
2012-05-07 11:02:38 +01:00
2012-04-20 10:39:33 -07:00
2012-04-23 14:23:32 +03:00
2012-05-01 09:16:14 -07:00
2012-04-27 16:13:29 +02:00
2012-04-26 15:35:35 -07:00
2012-04-30 10:13:48 -07:00
2012-04-12 15:36:33 -07:00
2012-05-10 15:06:44 -07:00
2012-05-18 18:22:45 -07:00
2012-05-14 11:23:37 -07:00
2012-05-01 11:55:04 +02:00
2012-04-26 15:33:36 -07:00
2012-05-13 11:33:09 -07:00
2012-05-17 18:32:41 -04:00
2012-04-10 14:20:56 -06:00
2012-05-10 15:12:08 -07:00
2012-05-17 16:16:16 -07:00
2012-04-11 09:31:02 +02:00
2012-05-06 12:19:38 -07:00
2012-05-16 14:44:44 -04:00
2012-05-07 13:14:44 +01:00
2012-05-13 23:15:42 +03:00
2012-05-17 18:00:51 -07:00
2012-04-24 00:33:17 -04:00
2012-05-10 08:27:06 +01:00
2012-04-27 12:20:39 -06:00
2012-04-26 12:40:53 -07:00
2012-05-17 12:02:43 -07:00
2012-05-14 10:43:24 -07:00
2012-05-01 14:11:51 -04:00
2012-04-18 13:15:51 -07:00
2012-05-11 18:16:57 -04:00
2012-05-12 12:57:01 -07:00
2012-05-17 12:14:34 +03:00
2012-04-26 14:38:07 +02:00
2012-05-07 12:26:28 -04:00