Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
35be9544
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看板
提交
35be9544
编写于
9月 24, 2009
作者:
M
Mauro Carvalho Chehab
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Documentation/edac.txt: Reflect the sysfs changes at the document
Signed-off-by:
N
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
上级
f338d736
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
29 addition
and
27 deletion
+29
-27
Documentation/edac.txt
Documentation/edac.txt
+29
-27
未找到文件。
Documentation/edac.txt
浏览文件 @
35be9544
...
@@ -766,7 +766,7 @@ exports one
...
@@ -766,7 +766,7 @@ exports one
For injecting a memory error, there are some sysfs nodes, under
For injecting a memory error, there are some sysfs nodes, under
/sys/devices/system/edac/mc/mc?/:
/sys/devices/system/edac/mc/mc?/:
inject_addrmatch:
inject_addrmatch
/*
:
Controls the error injection mask register. It is possible to specify
Controls the error injection mask register. It is possible to specify
several characteristics of the address to match an error code:
several characteristics of the address to match an error code:
dimm = the affected dimm. Numbers are relative to a channel;
dimm = the affected dimm. Numbers are relative to a channel;
...
@@ -781,10 +781,12 @@ exports one
...
@@ -781,10 +781,12 @@ exports one
For example, to generate an error at rank 1 of dimm 2, for any channel,
For example, to generate an error at rank 1 of dimm 2, for any channel,
any bank, any page, any column:
any bank, any page, any column:
echo "dimm:2 rank:1" >/sys/devices/system/edac/mc/mc0/inject_addrmatch
echo 2 >/sys/devices/system/edac/mc/mc0/inject_addrmatch/dimm
echo 1 >/sys/devices/system/edac/mc/mc0/inject_addrmatch/rank
To return to the default behaviour of matching any, you can do:
To return to the default behaviour of matching any, you can do:
echo "dimm:any rank:any" >/sys/devices/system/edac/mc/mc0/inject_addrmatch
echo any >/sys/devices/system/edac/mc/mc0/inject_addrmatch/dimm
echo any >/sys/devices/system/edac/mc/mc0/inject_addrmatch/rank
inject_eccmask:
inject_eccmask:
specifies what bits will have troubles,
specifies what bits will have troubles,
...
@@ -813,7 +815,7 @@ exports one
...
@@ -813,7 +815,7 @@ exports one
For example, the following code will generate an error for any write access
For example, the following code will generate an error for any write access
at socket 0, on any DIMM/address on channel 2:
at socket 0, on any DIMM/address on channel 2:
echo
"channel:2" > /sys/devices/system/edac/mc/mc0/inject_addrmatch
echo
2 >/sys/devices/system/edac/mc/mc0/inject_addrmatch/channel
echo 2 >/sys/devices/system/edac/mc/mc0/inject_type
echo 2 >/sys/devices/system/edac/mc/mc0/inject_type
echo 64 >/sys/devices/system/edac/mc/mc0/inject_eccmask
echo 64 >/sys/devices/system/edac/mc/mc0/inject_eccmask
echo 3 >/sys/devices/system/edac/mc/mc0/inject_section
echo 3 >/sys/devices/system/edac/mc/mc0/inject_section
...
@@ -829,18 +831,23 @@ exports one
...
@@ -829,18 +831,23 @@ exports one
3) Nehalem specific Corrected Error memory counters
3) Nehalem specific Corrected Error memory counters
Nehalem have some registers to count memory errors, reporting it on a
Nehalem have some registers to count memory errors. The driver uses those
way that it is different from what EDAC API allows. Due to that, a
registers to report Corrected Errors on devices with Registered Dimms.
separate sysfs note were created to handle such counters.
They can be read by looking at the contents of "corrected_error_counts"
However, those counters don't work with Unregistered Dimms. As the chipset
counter. Due to hardware limits, the output is different on machines
offers some counters that also work with UDIMMS (but with a worse level of
with unregistered memories and machines with registered ones.
granularity than the default ones), the driver exposes those registers for
UDIMM memories.
With unregistered memories, it outputs:
They can be read by looking at the contents of all_channel_counts/
$ cat /sys/devices/system/edac/mc/mc0/corrected_error_counts
$ for i in /sys/devices/system/edac/mc/mc0/all_channel_counts/*; do echo $i; cat $i; done
all channels UDIMM0: 0 UDIMM1: 0 UDIMM2: 0
/sys/devices/system/edac/mc/mc0/all_channel_counts/udimm0
0
/sys/devices/system/edac/mc/mc0/all_channel_counts/udimm1
0
/sys/devices/system/edac/mc/mc0/all_channel_counts/udimm2
0
What happens here is that errors on different csrows, but at the same
What happens here is that errors on different csrows, but at the same
dimm number will increment the same counter.
dimm number will increment the same counter.
...
@@ -849,21 +856,16 @@ exports one
...
@@ -849,21 +856,16 @@ exports one
csrow1: channel 0, dimm1
csrow1: channel 0, dimm1
csrow2: channel 1, dimm0
csrow2: channel 1, dimm0
csrow3: channel 2, dimm0
csrow3: channel 2, dimm0
The hardware will increment UDIMM0 for an error at either csrow0, csrow2
The hardware will increment udimm0 for an error at the first dimm at either
or csrow3.
csrow0, csrow2 or csrow3;
The hardware will increment udimm1 for an error at the second dimm at either
With registered memories, it outputs:
csrow0, csrow2 or csrow3;
The hardware will increment udimm2 for an error at the third dimm at either
$cat /sys/devices/system/edac/mc/mc0/corrected_error_counts
csrow0, csrow2 or csrow3;
channel 0 RDIMM0: 0 RDIMM1: 0 RDIMM2: 0
channel 1 RDIMM0: 0 RDIMM1: 0 RDIMM2: 0
channel 2 RDIMM0: 0 RDIMM1: 0 RDIMM2: 0
So, with registered memories, there's a direct map between a csrow and a
counter.
4) Standard error counters
4) Standard error counters
The standard error counters are generated when an mcelog error is received
The standard error counters are generated when an mcelog error is received
by the driver. Since it is counted by software, it is possible that some
by the driver. Since, with udimm, this is counted by software, it is
errors could be lost.
possible that some errors could be lost. With rdimm's, they displays the
contents of the registers
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录