EDAC new Opteron-Athlon64 Memory Controller Driver
PATCH 1/1 EDAC new Opteron-Athlon64 Memory Controller Driver
From: Doug Thompson <[email protected]>
This patch applies to kernel 2.6.17-mm4 and depends on previous EDAC patches that have been placed into the 2.6.17-mm4 tree.
This is a new EDAC driver for the Opteron/Athlon64 embedded memory controller.
Signed-off-by Doug Thompson <[email protected]>
---
MAINTAINERS | 6 drivers/edac/Kconfig | 7 drivers/edac/Makefile | 1 drivers/edac/edac_mc.c | 28 drivers/edac/edac_mc.h | 1 drivers/edac/k8_edac.c | 1939 +++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 1982 insertions(+)
MAINTAINERS +6 -0
@@ -947,6 +947,12 @@ W: bluesmoke.sourceforge.net S: Supported +EDAC-K8 +P: Doug Thompson +M: [email protected] +L: [email protected] +W: bluesmoke.sourceforge.net + EDAC-E752X P: Mark Gross M: [email protected]
drivers/edac/Kconfig +7 -0
@@ -90,6 +90,13 @@ Support for error detection and correction on the Intel 82860 chipset. +config EDAC_K8 + tristate "AMD K8 (Opteron, Athlon64)" + depends on EDAC_MM_EDAC && X86 && PCI + help + Support for error detection and correction on the AMD + K8 Memory Controller + config EDAC_R82600 tristate "Radisys 82600 embedded chipset" depends on EDAC_MM_EDAC && PCI && X86_32
drivers/edac/Makefile +1 -0
@@ -14,5 +14,6 @@ obj-$(CONFIG_EDAC_E752X) += e752x_edac.o obj-$(CONFIG_EDAC_I82875P) += i82875p_edac.o obj-$(CONFIG_EDAC_I82860) += i82860_edac.o +obj-$(CONFIG_EDAC_K8) += k8_edac.o obj-$(CONFIG_EDAC_R82600) += r82600_edac.o
drivers/edac/edac_mc.c +28 -0
@@ -1393,6 +1393,34 @@ }/** +* edac_mc_find: Search for a mem_ctl_info structure whose index is 'idx'. +* +* If found, return a pointer to the structure. +* Else return NULL. +* +* Caller must hold mem_ctls_mutex. +*/ +struct mem_ctl_info *edac_mc_find (int idx) +{ +struct list_head *item; +struct mem_ctl_info *mci; + +list_for_each (item, &mc_devices) { + mci = list_entry(item, struct mem_ctl_info, link); + +if (mci->mc_idx >= idx) { +if (mci->mc_idx == idx) +return mci; + +break ; + } + } + +return NULL ; +} +EXPORT_SYMBOL (edac_mc_find); + +/** * edac_mc_add_mc: Insert the 'mci' structure into the mci global list and * create sysfs entries associated with mci structure * @mci: pointer to the mci structure to be added to the list
drivers/edac/edac_mc.h +1 -0
@@ -413,6 +413,7 @@void edac_mc_dump_csrow (struct csrow_info *csrow);#endif /* CONFIG_EDAC_DEBUG */ +extern struct mem_ctl_info *edac_mc_find (int idx);extern int edac_mc_add_mc (struct mem_ctl_info *mci,int mc_idx);extern struct mem_ctl_info *edac_mc_del_mc (struct device *dev); extern int edac_mc_find_csrow_by_page(struct mem_ctl_info *mci,
drivers/edac/k8_edac.c new file +1939 -0
1,939 lines not on this page · raw message