diff options
author | Alexey Kardashevskiy <aik@ozlabs.ru> | 2019-05-20 14:22:01 +1000 |
---|---|---|
committer | Vasant Hegde <hegdevasant@linux.vnet.ibm.com> | 2019-06-08 14:51:15 +0530 |
commit | c4f9c112fc172d19acdc9143045d5c745eb1b4de (patch) | |
tree | 84ed89a5cb88aed015ef6beaa347107337a42477 | |
parent | 8409bb744d809211fa5ce184cedab3f2d057f1ba (diff) | |
download | skiboot-c4f9c112fc172d19acdc9143045d5c745eb1b4de.zip skiboot-c4f9c112fc172d19acdc9143045d5c745eb1b4de.tar.gz skiboot-c4f9c112fc172d19acdc9143045d5c745eb1b4de.tar.bz2 |
npu2: Fix clearing the FIR bits
[ Upstream commit 5ed3884f8d04db684e2288a7db011c7b59f1501e ]
FIR registers are SCOM-only so they cannot be accesses with the indirect
write, and yet we use SCOM-based addresses for these; fix this.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-By: Alistair Popple <alistair@popple.id.au>
Reviewed-by: Andrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
-rw-r--r-- | hw/npu2-hw-procedures.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/npu2-hw-procedures.c b/hw/npu2-hw-procedures.c index b671b8a..e1f5e8d 100644 --- a/hw/npu2-hw-procedures.c +++ b/hw/npu2-hw-procedures.c @@ -331,7 +331,7 @@ static uint32_t reset_ntl_release(struct npu2_dev *ndev) npu2_fir = 0; for (i = 0; i < NPU2_TOTAL_FIR_REGISTERS; i++) { - npu2_write(ndev->npu, npu2_fir_addr, npu2_fir); + xscom_write(ndev->npu->chip_id, npu2_fir_addr, npu2_fir); npu2_fir_addr += NPU2_FIR_OFFSET; } |