From 5b4a8c1d91380f58257f6dcd5665704b787f479d Mon Sep 17 00:00:00 2001 From: Alistair Popple Date: Thu, 8 Jun 2017 16:10:24 +1000 Subject: hw/npu2-hw-procedures.c: Add nvram option to override zcal calculations In some rare cases the zcal state machine may fail and flag an error. According to hardware designers it is sometimes ok to ignore this failure and use nominal values for the calculations. In this case we add a nvram variable (nv_zcal_override) which will cause skiboot to ignore the failure and use the nominal value specified in nvram. Signed-off-by: Alistair Popple Signed-off-by: Stewart Smith --- include/npu2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/npu2.h') diff --git a/include/npu2.h b/include/npu2.h index 6476c72..c7daeb6 100644 --- a/include/npu2.h +++ b/include/npu2.h @@ -147,5 +147,5 @@ 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); - +extern int nv_zcal_nominal; #endif /* __NPU2_H */ -- cgit v1.1