aboutsummaryrefslogtreecommitdiff
path: root/core/hmi.c
AgeCommit message (Collapse)AuthorFilesLines
2014-10-02hmi: decode_malfunction fixesRyan Grimm1-11/+7
Fix for nodes > 0. No need to map to node and local chip id. Just pass i as chip id. Remove unneccessary braces. In set_capp_recoverable, return not recovered if phb not found. Found by Milton Miller. Signed-off-by: Ryan Grimm <grimm@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2014-09-30hmi: Handle capp recoverable malfunctionsRyan Grimm1-8/+79
Based on email from JT Kellington, Dave Larson, and Joe McGill and feedback from Ben H. handle_malfunction reads the bits in the malf alert reg, checks for is_capp_recoverable, and returns 1 if recoverable. It also calls into phb3 to put phb3 in capp error recovery state. Returns 0 if not capp recoverable and it's a TODO to add the logic to check the other FIRs. Don't send message when malf alert empty. Use return code -1 to tell opal_handle_hmi to swallow the event. Also, with locking, only one thread per core will send the message instead of all threads. Signed-off-by: Ryan Grimm <grimm@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2014-09-30hmi: Add locking to hmi handlerRyan Grimm1-0/+5
Take a lock before handle_hmi_event per Ben's suggestion. So, when we clear events, only one thread per core will report it. Signed-off-by: Ryan Grimm <grimm@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2014-07-30core: Fix licence header in hmi.cBenjamin Herrenschmidt1-6/+15
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2014-07-25opal: Recover from TOD sync check error.Mahesh Salgaonkar1-1/+2
This patch implements basic framework for TOD error recovery. To start with, this patch implements TOD sync check error recovery as an example. Currently this patch recover from sync check error on non-master chip. We can use same framework and recover from more TOD errors. Signed-off-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2014-07-25opal: Add opal call to handle HMI.Mahesh Salgaonkar1-7/+85
With new proposed change, Linux will get the HMI interrupt directly. Linux will then invoke opal_handle_hmi to handle HMI recovery in opal. After handling HMI errors, opal will generate an OPAL HMI event and queue it up in opal message infrastructure so that Linux host can pull the event and act upon it accordingly. This patch also adds new message type for HMI event. Changes in v2: - Removed the token argument from opal_handle_hmi() Signed-off-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2014-07-25opal: Move HMI handler to new file core/hmi.cMahesh Salgaonkar1-0/+176
Move the original hmi handler to new file core/hmi.c. No functionality change, just a code movement and variable name change. Signed-off-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>