aboutsummaryrefslogtreecommitdiff
path: root/hw/npu2-hw-procedures.c
diff options
context:
space:
mode:
authorAlistair Popple <alistair@popple.id.au>2017-06-15 15:51:54 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-06-20 14:31:56 +1000
commit3704e7784d0f65d926901799af14247613006876 (patch)
tree8c5b717167164200faabf525fd45728d2dfb42ed /hw/npu2-hw-procedures.c
parentebfcfaa0c3e5b3813d3e35d456f7c16c6a53ff0d (diff)
downloadskiboot-3704e7784d0f65d926901799af14247613006876.zip
skiboot-3704e7784d0f65d926901799af14247613006876.tar.gz
skiboot-3704e7784d0f65d926901799af14247613006876.tar.bz2
NPU2: Add flag to nvlink config space indicating DL reset state
Device drivers need to be able to determine if the DL is out of reset or not so they can safely probe to see if links have already been trained. This patch adds a flag to the vendor specific config space indicating if the DL is out of reset. Signed-off-by: Alistair Popple <alistair@popple.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/npu2-hw-procedures.c')
-rw-r--r--hw/npu2-hw-procedures.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/npu2-hw-procedures.c b/hw/npu2-hw-procedures.c
index 0711867..71af3e7 100644
--- a/hw/npu2-hw-procedures.c
+++ b/hw/npu2-hw-procedures.c
@@ -241,6 +241,8 @@ static uint32_t reset_ntl_release(struct npu2_dev *ndev)
npu2_write(ndev->npu, NPU2_NTL_CRED_DATA_CREDIT_RX(ndev), 0x0001000000000000);
npu2_write(ndev->npu, NPU2_NTL_RSP_DATA_CREDIT_RX(ndev), 0x0001000000000000);
+ npu2_set_link_flag(ndev, NPU2_DEV_DL_RESET);
+
return PROCEDURE_COMPLETE;
}
DEFINE_PROCEDURE(reset_ntl, reset_ndl, reset_ntl_release);