]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/edac: add edac_device class
authorDouglas Thompson <dougthompson@xmission.com>
Thu, 19 Jul 2007 08:49:36 +0000 (01:49 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 19 Jul 2007 17:04:53 +0000 (10:04 -0700)
commit0bc8b5f3f0f3ca1517a2295f9ea5a37e38f44c6c
tree9c0ac81a0948d8e52a72865ff9fbae4a12031a32
parent94f1b5b9a5355cf9a05352235e555837cdbad1cd
drivers/edac: add edac_device class

This patch adds the new 'class' of object to be managed, named: 'edac_device'.

As a peer of the 'edac_mc' class of object, it provides a non-memory centric
view of an ERROR DETECTING device in hardware. It provides a sysfs interface
and an abstraction for varioius EDAC type devices.

Multiple 'instances' within the class are possible, with each 'instance'
able to have multiple 'blocks', and each 'block' having 'attributes'.

At the 'block' level there are the 'ce_count' and 'ue_count' fields
which the device driver can update and/or call edac_device_handle_XX()
functions. At each higher level are additional 'total' count fields,
which are a summation of counts below that level.

This 'edac_device' has been used to capture and present ECC errors
which are found in a a L1 and L2 system on a per CORE/CPU basis.

Signed-off-by: Douglas Thompson <dougthompson@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/edac/Makefile
drivers/edac/edac_core.h
drivers/edac/edac_device.c [new file with mode: 0644]
drivers/edac/edac_device_sysfs.c [new file with mode: 0644]
drivers/edac/edac_mc.c
drivers/edac/edac_mc_sysfs.c
drivers/edac/edac_module.c
drivers/edac/edac_module.h