]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc/eeh: Allow to set maximal frozen times
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Thu, 11 Dec 2014 03:28:56 +0000 (14:28 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 23 Jan 2015 03:02:54 +0000 (14:02 +1100)
commit1b28f170d99170a1fdd22818a9610a73196b391d
tree27b9cdf7d39c70633f99f7d91a19ad364a41e820
parent432227e9077eec13b3caf3aec6087f94a2f4327f
powerpc/eeh: Allow to set maximal frozen times

When PE's frozen count hits maximal allowed frozen times, which is
5 currently, it will be forced to be offline permanently. Once the
PE is removed permanently, rebooting machine is required to bring
the PE back. It's not convienent when testing EEH functionality.

The patch exports the maximal allowed frozen times through debugfs
entry (/sys/kernel/debug/powerpc/eeh_max_freezes).

Requested-by: Ryan Grimm <grimm@linux.vnet.ibm.com>
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/eeh.h
arch/powerpc/kernel/eeh.c
arch/powerpc/kernel/eeh_driver.c