remarkable-linux/drivers/edac
Aravind Gopalakrishnan 0451d14d05 EDAC, mce_amd_inj: Modify flags attribute to use string arguments
Use strings such as "hw" or "sw" to indicate the type of error injection
to be performed.

Current flags attribute derives the meanings of values that can be
programmed into it from asm/mce.h. Moving to defined strings for the
attribute allows this module to be self-sufficient and removes the
dependency. Also, we can introduce new flags as and when needed without
having to worry about conflicting with the flags already defined in
asm/mce.h.

Also, modify do_inject() to use the newly defined injection_type enum to
figure out the injection mechanism we need to use

Suggested-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Cc: mchehab@osg.samsung.com
Cc: x86-ml <x86@kernel.org>
Link: http://lkml.kernel.org/r/1433277362-10911-4-git-send-email-Aravind.Gopalakrishnan@amd.com
[ Use strstrip() return value. ]
Signed-off-by: Borislav Petkov <bp@suse.de>
2015-06-03 16:47:51 +02:00
..
altera_edac.c edac: altera: Add Altera SDRAM EDAC support 2014-09-04 13:41:46 -05:00
amd64_edac.c EDAC, amd64_edac: Get rid of per-node driver instances 2015-02-23 13:16:01 +01:00
amd64_edac.h EDAC: amd64: Use static attribute groups 2015-02-23 13:08:09 +01:00
amd64_edac_dbg.c EDAC: amd64: Use static attribute groups 2015-02-23 13:08:09 +01:00
amd64_edac_inj.c EDAC: amd64: Use static attribute groups 2015-02-23 13:08:09 +01:00
amd76x_edac.c
amd8111_edac.c
amd8111_edac.h
amd8131_edac.c
amd8131_edac.h
cell_edac.c edac: drop owner assignment from platform_drivers 2014-10-20 16:20:30 +02:00
cpc925_edac.c cpc925_edac: Report UE events properly 2014-10-22 22:58:45 +02:00
e7xxx_edac.c e7xxx_edac: Report CE events properly 2014-10-22 22:59:00 +02:00
e752x_edac.c
edac_core.h EDAC: Allow to pass driver-specific attribute groups 2015-02-23 13:07:41 +01:00
edac_device.c
edac_device_sysfs.c
edac_mc.c EDAC: Cleanup atomic_scrub mess 2015-05-28 15:31:53 +02:00
edac_mc_sysfs.c EDAC: Properly unwind on failure path in edac_init() 2015-02-23 13:13:07 +01:00
edac_module.c EDAC: Properly unwind on failure path in edac_init() 2015-02-23 13:13:07 +01:00
edac_module.h EDAC: Allow to pass driver-specific attribute groups 2015-02-23 13:07:41 +01:00
edac_pci.c
edac_pci_sysfs.c EDAC, pci_sysfs: remove unneccessary ifdef around entire file 2014-11-11 18:17:57 +01:00
edac_stub.c EDAC, edac_stub: Drop arch-specific include 2015-05-29 22:01:00 +02:00
ghes_edac.c ghes_edac: Use snprintf() to silence a static checker warning 2014-11-11 18:08:56 +01:00
highbank_l2_edac.c
highbank_mc_edac.c EDAC: Constify of_device_id array 2015-03-20 17:50:07 +01:00
i7core_edac.c EDAC: i7core: Use static attribute groups for sysfs entries 2015-02-23 13:09:39 +01:00
i3000_edac.c EDAC: Delete unnecessary check before calling pci_dev_put() 2014-11-19 16:33:48 +01:00
i3200_edac.c EDAC updates all over the place: 2014-12-08 20:17:49 -08:00
i5000_edac.c
i5100_edac.c edac: i5100_edac: Remove unused i5100_recmema_dm_buf_id 2015-01-12 16:00:56 +01:00
i5400_edac.c
i7300_edac.c
i82443bxgx_edac.c EDAC, i82443bxgx: Don't export static symbol 2015-03-11 20:39:15 +01:00
i82860_edac.c EDAC: Delete unnecessary checks before pci_dev_put() 2015-02-23 13:06:23 +01:00
i82875p_edac.c EDAC: Delete unnecessary checks before pci_dev_put() 2015-02-23 13:06:23 +01:00
i82975x_edac.c EDAC: Delete unnecessary checks before pci_dev_put() 2015-02-23 13:06:23 +01:00
ie31200_edac.c
Kconfig EDAC, mpc8xxx: Adapt for FSL SoC 2015-05-31 12:50:31 +02:00
Makefile EDAC: Add APM X-Gene SoC EDAC driver 2015-05-29 11:39:24 +02:00
mce_amd.c EDAC, MCE, AMD: Correct formatting of decoded text 2014-11-25 13:09:49 +01:00
mce_amd.h x86, mce, severity: Extend the the mce_severity mechanism to handle UCNA/DEFERRED error 2014-11-19 10:55:43 -08:00
mce_amd_inj.c EDAC, mce_amd_inj: Modify flags attribute to use string arguments 2015-06-03 16:47:51 +02:00
mpc85xx_edac.c EDAC, mpc85xx: Extend error address to 64 bit 2015-05-31 12:51:08 +02:00
mpc85xx_edac.h EDAC, mpc85xx: Extend error address to 64 bit 2015-05-31 12:51:08 +02:00
mv64x60_edac.c EDAC, mv64x60_edac: Fix an error code in probe() 2015-01-30 17:00:43 +01:00
mv64x60_edac.h
octeon_edac-l2c.c
octeon_edac-lmc.c EDAC: octeon: Use static attribute groups for sysfs entries 2015-02-23 13:12:05 +01:00
octeon_edac-pc.c
octeon_edac-pci.c
pasemi_edac.c
ppc4xx_edac.c EDAC: Constify of_device_id array 2015-03-20 17:50:07 +01:00
ppc4xx_edac.h
r82600_edac.c
sb_edac.c sb_edac: Fix detection on SNB machines 2015-02-09 16:55:26 +01:00
synopsys_edac.c EDAC: Constify of_device_id array 2015-03-20 17:50:07 +01:00
tile_edac.c edac: drop owner assignment from platform_drivers 2014-10-20 16:20:30 +02:00
x38_edac.c EDAC: Delete unnecessary check before calling pci_dev_put() 2014-11-19 16:33:48 +01:00
xgene_edac.c EDAC, xgene: Fix cpuid abuse 2015-06-02 19:07:50 +02:00