Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
f05da2f7
Commit
f05da2f7
authored
Oct 14, 2009
by
Mauro Carvalho Chehab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i7core: add support for Lynnfield alternate address
Signed-off-by:
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
parent
52a2e4fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
drivers/edac/i7core_edac.c
drivers/edac/i7core_edac.c
+11
-2
include/linux/pci_ids.h
include/linux/pci_ids.h
+1
-0
No files found.
drivers/edac/i7core_edac.c
View file @
f05da2f7
...
...
@@ -314,6 +314,10 @@ struct pci_id_descr pci_dev_descr_lynnfield[] = {
{
PCI_DESCR
(
4
,
2
,
PCI_DEVICE_ID_INTEL_LYNNFIELD_MC_CH1_RANK
)
},
{
PCI_DESCR
(
4
,
3
,
PCI_DEVICE_ID_INTEL_LYNNFIELD_MC_CH1_TC
)
},
/*
* This is the PCI device has an alternate address on some
* processors like Core i7 860
*/
{
PCI_DESCR
(
0
,
0
,
PCI_DEVICE_ID_INTEL_LYNNFIELD_NONCORE
)
},
};
...
...
@@ -322,7 +326,7 @@ struct pci_id_descr pci_dev_descr_lynnfield[] = {
*/
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
)},
{
PCI_DEVICE
(
PCI_VENDOR_ID_INTEL
,
PCI_DEVICE_ID_INTEL_LYNNFIELD_
QPI_LINK0
)},
{
0
,}
/* 0 terminated list. */
};
...
...
@@ -1209,6 +1213,11 @@ int i7core_get_onedevice(struct pci_dev **prev, int devno,
pdev
=
pci_get_device
(
PCI_VENDOR_ID_INTEL
,
PCI_DEVICE_ID_INTEL_I7_NONCORE_ALT
,
*
prev
);
if
(
dev_descr
->
dev_id
==
PCI_DEVICE_ID_INTEL_LYNNFIELD_NONCORE
&&
!
pdev
)
pdev
=
pci_get_device
(
PCI_VENDOR_ID_INTEL
,
PCI_DEVICE_ID_INTEL_LYNNFIELD_NONCORE_ALT
,
*
prev
);
if
(
!
pdev
)
{
if
(
*
prev
)
{
*
prev
=
pdev
;
...
...
@@ -1866,7 +1875,7 @@ 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
);
if
(
pdev
->
device
==
PCI_DEVICE_ID_INTEL_LYNNFIELD_
NONCORE
)
{
if
(
pdev
->
device
==
PCI_DEVICE_ID_INTEL_LYNNFIELD_
QPI_LINK0
)
{
printk
(
KERN_INFO
"i7core_edac: detected a "
"Lynnfield processor
\n
"
);
rc
=
i7core_get_devices
(
pci_dev_descr_lynnfield
,
...
...
include/linux/pci_ids.h
View file @
f05da2f7
...
...
@@ -2551,6 +2551,7 @@
#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_NONCORE_ALT 0x2c51
#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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment