diff options
author | Reza Arbab <arbab@linux.vnet.ibm.com> | 2017-08-09 13:29:37 -0500 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-09-12 22:52:08 -0500 |
commit | 6bfa7b56b738de273ddb17434f5d57d555592da9 (patch) | |
tree | 369b719f07263267f76eeab94227a0c2e7ef1f30 /include | |
parent | f5c55f30f6a1120cb73b6089b60a64e595ee197c (diff) | |
download | skiboot-6bfa7b56b738de273ddb17434f5d57d555592da9.zip skiboot-6bfa7b56b738de273ddb17434f5d57d555592da9.tar.gz skiboot-6bfa7b56b738de273ddb17434f5d57d555592da9.tar.bz2 |
npu2: Implement FLR
Add basic handling of FLR (function level reset) by porting the changes
from commit b74841db759d ("npu: Implement FLR") to npu2.
The only difference for npu2 is that we track the reset state explicitly
with a link flag instead of inferring it from
dev->procedure_{status,number,step,data}.
Signed-off-by: Reza Arbab <arbab@linux.vnet.ibm.com>
Cc: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/npu2.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/npu2.h b/include/npu2.h index ef05f46..f11a13a 100644 --- a/include/npu2.h +++ b/include/npu2.h @@ -155,6 +155,7 @@ void npu2_write_mask(struct npu2 *p, uint64_t reg, uint64_t val, uint64_t mask); int64_t npu2_dev_procedure(void *dev, struct pci_cfg_reg_filter *pcrf, uint32_t offset, uint32_t len, uint32_t *data, bool write); +void npu2_dev_procedure_reset(struct npu2_dev *dev); void npu2_set_link_flag(struct npu2_dev *ndev, uint8_t flag); void npu2_clear_link_flag(struct npu2_dev *ndev, uint8_t flag); extern int nv_zcal_nominal; |