Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
52a2e4fc
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看板
提交
52a2e4fc
编写于
10月 14, 2009
作者:
M
Mauro Carvalho Chehab
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
i7core_edac: Add initial support for Lynnfield
Signed-off-by:
N
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
上级
4f7b9e7c
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
52 addition
and
2 deletion
+52
-2
drivers/edac/i7core_edac.c
drivers/edac/i7core_edac.c
+37
-2
include/linux/pci_ids.h
include/linux/pci_ids.h
+15
-0
未找到文件。
drivers/edac/i7core_edac.c
浏览文件 @
52a2e4fc
...
...
@@ -299,11 +299,30 @@ struct pci_id_descr pci_dev_descr_i7core[] = {
};
struct
pci_id_descr
pci_dev_descr_lynnfield
[]
=
{
{
PCI_DESCR
(
3
,
0
,
PCI_DEVICE_ID_INTEL_LYNNFIELD_MCR
)
},
{
PCI_DESCR
(
3
,
1
,
PCI_DEVICE_ID_INTEL_LYNNFIELD_MC_TAD
)
},
{
PCI_DESCR
(
3
,
4
,
PCI_DEVICE_ID_INTEL_LYNNFIELD_MC_TEST
)
},
{
PCI_DESCR
(
4
,
0
,
PCI_DEVICE_ID_INTEL_LYNNFIELD_MC_CH0_CTRL
)
},
{
PCI_DESCR
(
4
,
1
,
PCI_DEVICE_ID_INTEL_LYNNFIELD_MC_CH0_ADDR
)
},
{
PCI_DESCR
(
4
,
2
,
PCI_DEVICE_ID_INTEL_LYNNFIELD_MC_CH0_RANK
)
},
{
PCI_DESCR
(
4
,
3
,
PCI_DEVICE_ID_INTEL_LYNNFIELD_MC_CH0_TC
)
},
{
PCI_DESCR
(
4
,
0
,
PCI_DEVICE_ID_INTEL_LYNNFIELD_MC_CH1_CTRL
)
},
{
PCI_DESCR
(
4
,
1
,
PCI_DEVICE_ID_INTEL_LYNNFIELD_MC_CH1_ADDR
)
},
{
PCI_DESCR
(
4
,
2
,
PCI_DEVICE_ID_INTEL_LYNNFIELD_MC_CH1_RANK
)
},
{
PCI_DESCR
(
4
,
3
,
PCI_DEVICE_ID_INTEL_LYNNFIELD_MC_CH1_TC
)
},
{
PCI_DESCR
(
0
,
0
,
PCI_DEVICE_ID_INTEL_LYNNFIELD_NONCORE
)
},
};
/*
* pci_device_id table for which devices we are looking for
*/
static
const
struct
pci_device_id
i7core_pci_tbl
[]
__devinitdata
=
{
{
PCI_DEVICE
(
PCI_VENDOR_ID_INTEL
,
PCI_DEVICE_ID_INTEL_X58_HUB_MGMT
)},
{
PCI_DEVICE
(
PCI_VENDOR_ID_INTEL
,
PCI_DEVICE_ID_INTEL_LYNNFIELD_NONCORE
)},
{
0
,}
/* 0 terminated list. */
};
...
...
@@ -522,6 +541,9 @@ static int get_dimm_config(struct mem_ctl_info *mci, int *csrow)
for
(
i
=
0
;
i
<
NUM_CHANS
;
i
++
)
{
u32
data
,
dimm_dod
[
3
],
value
[
8
];
if
(
!
pvt
->
pci_ch
[
i
][
0
])
continue
;
if
(
!
CH_ACTIVE
(
pvt
,
i
))
{
debugf0
(
"Channel %i is not active
\n
"
,
i
);
continue
;
...
...
@@ -1001,6 +1023,9 @@ static ssize_t i7core_inject_enable_show(struct mem_ctl_info *mci,
struct
i7core_pvt
*
pvt
=
mci
->
pvt_info
;
u32
injectmask
;
if
(
!
pvt
->
pci_ch
[
pvt
->
inject
.
channel
][
0
])
return
0
;
pci_read_config_dword
(
pvt
->
pci_ch
[
pvt
->
inject
.
channel
][
0
],
MC_CHANNEL_ERROR_INJECT
,
&
injectmask
);
...
...
@@ -1841,8 +1866,18 @@ static int __devinit i7core_probe(struct pci_dev *pdev,
/* get the pci devices we want to reserve for our use */
mutex_lock
(
&
i7core_edac_lock
);
rc
=
i7core_get_devices
(
pci_dev_descr_i7core
,
ARRAY_SIZE
(
pci_dev_descr_i7core
));
if
(
pdev
->
device
==
PCI_DEVICE_ID_INTEL_LYNNFIELD_NONCORE
)
{
printk
(
KERN_INFO
"i7core_edac: detected a "
"Lynnfield processor
\n
"
);
rc
=
i7core_get_devices
(
pci_dev_descr_lynnfield
,
ARRAY_SIZE
(
pci_dev_descr_lynnfield
));
}
else
{
printk
(
KERN_INFO
"i7core_edac: detected a "
"Nehalem/Nehalem-EP processor
\n
"
);
rc
=
i7core_get_devices
(
pci_dev_descr_i7core
,
ARRAY_SIZE
(
pci_dev_descr_i7core
));
}
if
(
unlikely
(
rc
<
0
))
goto
fail0
;
...
...
include/linux/pci_ids.h
浏览文件 @
52a2e4fc
...
...
@@ -2550,6 +2550,21 @@
#define PCI_DEVICE_ID_INTEL_I7_MC_CH2_TC 0x2c33
#define PCI_DEVICE_ID_INTEL_I7_NONCORE 0x2c41
#define PCI_DEVICE_ID_INTEL_I7_NONCORE_ALT 0x2c40
#define PCI_DEVICE_ID_INTEL_LYNNFIELD_NONCORE 0x2c50
#define PCI_DEVICE_ID_INTEL_LYNNFIELD_SAD 0x2c81
#define PCI_DEVICE_ID_INTEL_LYNNFIELD_QPI_LINK0 0x2c90
#define PCI_DEVICE_ID_INTEL_LYNNFIELD_QPI_PHY0 0x2c91
#define PCI_DEVICE_ID_INTEL_LYNNFIELD_MCR 0x2c98
#define PCI_DEVICE_ID_INTEL_LYNNFIELD_MC_TAD 0x2c99
#define PCI_DEVICE_ID_INTEL_LYNNFIELD_MC_TEST 0x2c9C
#define PCI_DEVICE_ID_INTEL_LYNNFIELD_MC_CH0_CTRL 0x2ca0
#define PCI_DEVICE_ID_INTEL_LYNNFIELD_MC_CH0_ADDR 0x2ca1
#define PCI_DEVICE_ID_INTEL_LYNNFIELD_MC_CH0_RANK 0x2ca2
#define PCI_DEVICE_ID_INTEL_LYNNFIELD_MC_CH0_TC 0x2ca3
#define PCI_DEVICE_ID_INTEL_LYNNFIELD_MC_CH1_CTRL 0x2ca8
#define PCI_DEVICE_ID_INTEL_LYNNFIELD_MC_CH1_ADDR 0x2ca9
#define PCI_DEVICE_ID_INTEL_LYNNFIELD_MC_CH1_RANK 0x2caa
#define PCI_DEVICE_ID_INTEL_LYNNFIELD_MC_CH1_TC 0x2cab
#define PCI_DEVICE_ID_INTEL_82855PM_HB 0x3340
#define PCI_DEVICE_ID_INTEL_IOAT_TBG4 0x3429
#define PCI_DEVICE_ID_INTEL_IOAT_TBG5 0x342a
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录