• Seth Jennings's avatar
    sb_edac: avoid INTERNAL ERROR message in EDAC with unspecified channel · ebe7e30a
    Seth Jennings authored
    commit 351fc4a99d49fde63fe5ab7412beb35c40d27269 upstream.
    
    Intel IA32 SDM Table 15-14 defines channel 0xf as 'not specified', but
    EDAC doesn't know about this and returns and INTERNAL ERROR when the
    channel is greater than NUM_CHANNELS:
    
    kernel: [ 1538.886456] CPU 0: Machine Check Exception: 0 Bank 1: 940000000000009f
    kernel: [ 1538.886669] TSC 2bc68b22e7e812 ADDR 46dae7000 MISC 0 PROCESSOR 0:306e4 TIME 1390414572 SOCKET 0 APIC 0
    kernel: [ 1538.971948] EDAC MC1: INTERNAL ERROR: channel value is out of range (15 >= 4)
    kernel: [ 1538.972203] EDAC MC1: 0 CE memory read error on unknown memory (slot:0 page:0x46dae7 offset:0x0 grain:0 syndrome:0x0 -  area:DRAM err_code:0000:009f socket:1 channel_mask:1 rank:0)
    
    This commit changes sb_edac to forward a channel of -1 to EDAC if the
    channel is not specified.  edac_mc_handle_error() sets the channel to -1
    internally after the error message anyway, so this commit should have no
    effect other than avoiding the INTERNAL ERROR message when the channel
    is not specified.
    Signed-off-by: 's avatarSeth Jennings <sjenning@redhat.com>
    Signed-off-by: 's avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
    Cc: Vinson Lee <vlee@twopensource.com>
    Signed-off-by: 's avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    ebe7e30a
Name
Last commit
Last update
..
Kconfig Loading commit data...
Makefile Loading commit data...
amd64_edac.c Loading commit data...
amd64_edac.h Loading commit data...
amd64_edac_dbg.c Loading commit data...
amd64_edac_inj.c Loading commit data...
amd76x_edac.c Loading commit data...
amd8111_edac.c Loading commit data...
amd8111_edac.h Loading commit data...
amd8131_edac.c Loading commit data...
amd8131_edac.h Loading commit data...
cell_edac.c Loading commit data...
cpc925_edac.c Loading commit data...
e752x_edac.c Loading commit data...
e7xxx_edac.c Loading commit data...
edac_core.h Loading commit data...
edac_device.c Loading commit data...
edac_device_sysfs.c Loading commit data...
edac_mc.c Loading commit data...
edac_mc_sysfs.c Loading commit data...
edac_module.c Loading commit data...
edac_module.h Loading commit data...
edac_pci.c Loading commit data...
edac_pci_sysfs.c Loading commit data...
edac_stub.c Loading commit data...
ghes_edac.c Loading commit data...
highbank_l2_edac.c Loading commit data...
highbank_mc_edac.c Loading commit data...
i3000_edac.c Loading commit data...
i3200_edac.c Loading commit data...
i5000_edac.c Loading commit data...
i5100_edac.c Loading commit data...
i5400_edac.c Loading commit data...
i7300_edac.c Loading commit data...
i7core_edac.c Loading commit data...
i82443bxgx_edac.c Loading commit data...
i82860_edac.c Loading commit data...
i82875p_edac.c Loading commit data...
i82975x_edac.c Loading commit data...
mce_amd.c Loading commit data...
mce_amd.h Loading commit data...
mce_amd_inj.c Loading commit data...
mpc85xx_edac.c Loading commit data...
mpc85xx_edac.h Loading commit data...
mv64x60_edac.c Loading commit data...
mv64x60_edac.h Loading commit data...
octeon_edac-l2c.c Loading commit data...
octeon_edac-lmc.c Loading commit data...
octeon_edac-pc.c Loading commit data...
octeon_edac-pci.c Loading commit data...
pasemi_edac.c Loading commit data...
ppc4xx_edac.c Loading commit data...
ppc4xx_edac.h Loading commit data...
r82600_edac.c Loading commit data...
sb_edac.c Loading commit data...
tile_edac.c Loading commit data...
x38_edac.c Loading commit data...