Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
17cb7b0c
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
158
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
17cb7b0c
编写于
7月 20, 2009
作者:
M
Mauro Carvalho Chehab
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
i7core_edac: Some cleanups at displayed info
Signed-off-by:
N
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
上级
086271a0
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
9 addition
and
12 deletion
+9
-12
drivers/edac/i7core_edac.c
drivers/edac/i7core_edac.c
+9
-12
未找到文件。
drivers/edac/i7core_edac.c
浏览文件 @
17cb7b0c
...
...
@@ -453,8 +453,8 @@ static int get_dimm_config(struct mem_ctl_info *mci, int *csrow, u8 socket)
pci_read_config_dword
(
pdev
,
MC_MAX_DOD
,
&
pvt
->
info
.
max_dod
);
pci_read_config_dword
(
pdev
,
MC_CHANNEL_MAPPER
,
&
pvt
->
info
.
ch_map
);
debugf0
(
"
MC
control=0x%08x status=0x%08x dod=0x%08x map=0x%08x
\n
"
,
pvt
->
info
.
mc_control
,
pvt
->
info
.
mc_status
,
debugf0
(
"
QPI %d
control=0x%08x status=0x%08x dod=0x%08x map=0x%08x
\n
"
,
socket
,
pvt
->
info
.
mc_control
,
pvt
->
info
.
mc_status
,
pvt
->
info
.
max_dod
,
pvt
->
info
.
ch_map
);
if
(
ECC_ENABLED
(
pvt
))
{
...
...
@@ -469,16 +469,14 @@ static int get_dimm_config(struct mem_ctl_info *mci, int *csrow, u8 socket)
}
/* FIXME: need to handle the error codes */
debugf0
(
"DOD Max limits: DIMMS: %d, %d-ranked, %d-banked
\n
"
,
debugf0
(
"DOD Max limits: DIMMS: %d, %d-ranked, %d-banked "
"x%x x 0x%x
\n
"
,
numdimms
(
pvt
->
info
.
max_dod
),
numrank
(
pvt
->
info
.
max_dod
>>
2
),
numbank
(
pvt
->
info
.
max_dod
>>
4
));
debugf0
(
"DOD Max rows x colums = 0x%x x 0x%x
\n
"
,
numrow
(
pvt
->
info
.
max_dod
>>
6
),
numcol
(
pvt
->
info
.
max_dod
>>
9
));
debugf0
(
"Memory channel configuration:
\n
"
);
for
(
i
=
0
;
i
<
NUM_CHANS
;
i
++
)
{
u32
data
,
dimm_dod
[
3
],
value
[
8
];
...
...
@@ -544,10 +542,9 @@ static int get_dimm_config(struct mem_ctl_info *mci, int *csrow, u8 socket)
pvt
->
channel
[
socket
][
i
].
dimms
++
;
debugf0
(
"
\t
dimm %d (0x%08x) %d Mb offset: %x, "
"numbank: %d,
\n\t\t
"
"numrank: %d, numrow: %#x, numcol: %#x
\n
"
,
j
,
dimm_dod
[
j
],
size
,
debugf0
(
"
\t
dimm %d %d Mb offset: %x, "
"bank: %d, rank: %d, row: %#x, col: %#x
\n
"
,
j
,
size
,
RANKOFFSET
(
dimm_dod
[
j
]),
banks
,
ranks
,
rows
,
cols
);
...
...
@@ -599,9 +596,9 @@ static int get_dimm_config(struct mem_ctl_info *mci, int *csrow, u8 socket)
pci_read_config_dword
(
pdev
,
MC_SAG_CH_5
,
&
value
[
5
]);
pci_read_config_dword
(
pdev
,
MC_SAG_CH_6
,
&
value
[
6
]);
pci_read_config_dword
(
pdev
,
MC_SAG_CH_7
,
&
value
[
7
]);
debugf
0
(
"
\t
[%i] DIVBY3
\t
REMOVED
\t
OFFSET
\n
"
,
i
);
debugf
1
(
"
\t
[%i] DIVBY3
\t
REMOVED
\t
OFFSET
\n
"
,
i
);
for
(
j
=
0
;
j
<
8
;
j
++
)
debugf
0
(
"
\t\t
%#x
\t
%#x
\t
%#x
\n
"
,
debugf
1
(
"
\t\t
%#x
\t
%#x
\t
%#x
\n
"
,
(
value
[
j
]
>>
27
)
&
0x1
,
(
value
[
j
]
>>
24
)
&
0x7
,
(
value
[
j
]
&&
((
1
<<
24
)
-
1
)));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录