drivers: misc: Add Support for TMR Manager
authorAppana Durga Kedareswara rao <appana.durga.kedareswara.rao@amd.com>
Fri, 25 Nov 2022 05:41:11 +0000 (11:11 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Jan 2023 12:09:30 +0000 (13:09 +0100)
commitf5ec7f54fdba7fef051c65e975612edf46d4934d
tree20968ae068d4291ffd05c61ee141c3dc0666cfd1
parentfc4d041e947b2b12fe0972781b4577a7d2647bfa
drivers: misc: Add Support for TMR Manager

Triple Modular Redundancy(TMR) subsystem contains three microblaze cores,
subsystem is fault-tolerant and continues to operate nominally after
encountering an error. Together with the capability to detect and recover
from errors, the implementation ensures the reliability of the entire
subsystem.  TMR Manager is responsible for performing recovery of the
subsystem detects the fault via a break signal it invokes microblaze
software break handler which calls the tmr manager driver api to
update the error count and status, added support for fault detection
feature via sysfs interface.

Usage:
To know the break handler count(Error count):
cat /sys/devices/platform/amba_pl/44a10000.tmr_manager/errcnt

Signed-off-by: Appana Durga Kedareswara rao <appana.durga.kedareswara.rao@amd.com>
Link: https://lore.kernel.org/r/20221125054113.122833-3-appana.durga.kedareswara.rao@amd.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/sysfs-driver-xilinx-tmr-manager [new file with mode: 0644]
MAINTAINERS
drivers/misc/Kconfig
drivers/misc/Makefile
drivers/misc/xilinx_tmr_manager.c [new file with mode: 0644]