Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
c5d34528
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
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看板
提交
c5d34528
编写于
7月 17, 2009
作者:
M
Mauro Carvalho Chehab
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
i7core: check if the memory error is fatal or non-fatal
Signed-off-by:
N
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
上级
310cbb72
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
13 addition
and
3 deletion
+13
-3
drivers/edac/i7core_edac.c
drivers/edac/i7core_edac.c
+13
-3
未找到文件。
drivers/edac/i7core_edac.c
浏览文件 @
c5d34528
...
@@ -1352,7 +1352,7 @@ static void check_mc_test_err(struct mem_ctl_info *mci, u8 socket)
...
@@ -1352,7 +1352,7 @@ static void check_mc_test_err(struct mem_ctl_info *mci, u8 socket)
static
void
i7core_mce_output_error
(
struct
mem_ctl_info
*
mci
,
static
void
i7core_mce_output_error
(
struct
mem_ctl_info
*
mci
,
struct
mce
*
m
)
struct
mce
*
m
)
{
{
char
*
type
=
"NON-FATAL"
;
char
*
type
;
char
*
err
,
*
msg
;
char
*
err
,
*
msg
;
unsigned
long
error
=
m
->
status
&
0x1ff0000l
;
unsigned
long
error
=
m
->
status
&
0x1ff0000l
;
u32
core_err_cnt
=
(
m
->
status
>>
38
)
&&
0x7fff
;
u32
core_err_cnt
=
(
m
->
status
>>
38
)
&&
0x7fff
;
...
@@ -1361,6 +1361,11 @@ static void i7core_mce_output_error(struct mem_ctl_info *mci,
...
@@ -1361,6 +1361,11 @@ static void i7core_mce_output_error(struct mem_ctl_info *mci,
u32
syndrome
=
m
->
misc
>>
32
;
u32
syndrome
=
m
->
misc
>>
32
;
u32
errnum
=
find_first_bit
(
&
error
,
32
);
u32
errnum
=
find_first_bit
(
&
error
,
32
);
if
(
m
->
mcgstatus
&
1
)
type
=
"FATAL"
;
else
type
=
"NON_FATAL"
;
switch
(
errnum
)
{
switch
(
errnum
)
{
case
16
:
case
16
:
err
=
"read ECC error"
;
err
=
"read ECC error"
;
...
@@ -1454,7 +1459,8 @@ static void i7core_check_error(struct mem_ctl_info *mci)
...
@@ -1454,7 +1459,8 @@ static void i7core_check_error(struct mem_ctl_info *mci)
*/
*/
static
int
i7core_mce_check_error
(
void
*
priv
,
struct
mce
*
mce
)
static
int
i7core_mce_check_error
(
void
*
priv
,
struct
mce
*
mce
)
{
{
struct
i7core_pvt
*
pvt
=
priv
;
struct
mem_ctl_info
*
mci
=
priv
;
struct
i7core_pvt
*
pvt
=
mci
->
pvt_info
;
unsigned
long
flags
;
unsigned
long
flags
;
debugf0
(
__FILE__
": %s()
\n
"
,
__func__
);
debugf0
(
__FILE__
": %s()
\n
"
,
__func__
);
...
@@ -1477,6 +1483,10 @@ static int i7core_mce_check_error(void *priv, struct mce *mce)
...
@@ -1477,6 +1483,10 @@ static int i7core_mce_check_error(void *priv, struct mce *mce)
}
}
spin_unlock_irqrestore
(
&
pvt
->
mce_lock
,
flags
);
spin_unlock_irqrestore
(
&
pvt
->
mce_lock
,
flags
);
/* Handle fatal errors immediately */
if
(
mce
->
mcgstatus
&
1
)
i7core_check_error
(
mci
);
/* Advice mcelog that the error were handled */
/* Advice mcelog that the error were handled */
return
1
;
return
1
;
}
}
...
@@ -1601,7 +1611,7 @@ static int __devinit i7core_probe(struct pci_dev *pdev,
...
@@ -1601,7 +1611,7 @@ static int __devinit i7core_probe(struct pci_dev *pdev,
pvt
->
inject
.
col
=
-
1
;
pvt
->
inject
.
col
=
-
1
;
/* Registers on edac_mce in order to receive memory errors */
/* Registers on edac_mce in order to receive memory errors */
pvt
->
edac_mce
.
priv
=
pvt
;
pvt
->
edac_mce
.
priv
=
mci
;
pvt
->
edac_mce
.
check_error
=
i7core_mce_check_error
;
pvt
->
edac_mce
.
check_error
=
i7core_mce_check_error
;
spin_lock_init
(
&
pvt
->
mce_lock
);
spin_lock_init
(
&
pvt
->
mce_lock
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录