diff options
author | Russell Currey <ruscur@russell.cc> | 2016-06-20 16:41:36 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-06-21 15:03:59 +1000 |
commit | 0f23e5bd7987e9cedeadbad19e812b125dbd2cf5 (patch) | |
tree | 937eb42654e879d0ae1c1c0aba734dc671b2761c /include/npu.h | |
parent | 6c901540aba739b6540f5b88f97e92025b00a989 (diff) | |
download | skiboot-0f23e5bd7987e9cedeadbad19e812b125dbd2cf5.zip skiboot-0f23e5bd7987e9cedeadbad19e812b125dbd2cf5.tar.gz skiboot-0f23e5bd7987e9cedeadbad19e812b125dbd2cf5.tar.bz2 |
nvlink: Print error message when NPU is fenced
NPU fences aren't recoverable, and as such, would require user
intervention to have a working system again. The fence will be picked up
by the kernel through EEH, but this doesn't happen until the NPU is used
for something. So, let's print a message so it's obvious when this
happens.
A helper function was added to reduce duplication. This also enables code
in skiboot to un-fence a NPU, which is useful to NPU developers but very
stupid otherwise.
Signed-off-by: Russell Currey <ruscur@russell.cc>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/npu.h')
-rw-r--r-- | include/npu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/npu.h b/include/npu.h index 7258e69..778c985 100644 --- a/include/npu.h +++ b/include/npu.h @@ -201,6 +201,8 @@ int64_t npu_dev_procedure_write(struct npu_dev_trap *trap, uint32_t size, uint32_t data); +void npu_set_fence_state(struct npu *p, bool fence); + #define NPUDBG(p, fmt, a...) prlog(PR_DEBUG, "NPU%d: " fmt, \ (p)->phb.opal_id, ##a) #define NPUINF(p, fmt, a...) prlog(PR_INFO, "NPU%d: " fmt, \ |