]> git.baikalelectronics.ru Git - kernel.git/commit
edac: sb_edac.c should not require prescence of IMC_DDRIO device
authorLuck, Tony <tony.luck@intel.com>
Thu, 28 Mar 2013 16:59:15 +0000 (09:59 -0700)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 29 Apr 2013 13:32:40 +0000 (10:32 -0300)
commite305b1760af48c8d0ded560762a70b3c49ff36f2
tree074895ee1887707634c372397959ec03e3be2eec
parentade7dbb02fe8c44c7f0343ce9ec7a3a42530eef3
edac: sb_edac.c should not require prescence of IMC_DDRIO device

The Sandy Bridge EDAC driver uses a register in the IMC_DDRIO CSR
space to determine the type of DIMMs (registered or unregistered).
But this device does not exist on some single socket Sandy Bridge
servers.  While the type of DIMMs is nice to know, it is not essential
for this driver's other functions. So it seems harsh to have it
refuse to load at all when it cannot find this device.

Make the check for this device be optional. If it isn't present
just report the memory type as "MEM_UNKNOWN".

Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/edac/sb_edac.c