diff options
author | farah kassabri <fkassabri@habana.ai> | 2023-10-09 14:07:38 +0200 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2023-12-19 10:09:42 +0100 |
commit | f64fa332602c311a76495fd0139bd4abb9aa7bbf (patch) | |
tree | f9be16a7828f81046270e85db5246caab09df41c /fs | |
parent | Merge tag 'amd-drm-next-6.8-2023-12-08' of https://gitlab.freedesktop.org/agd... (diff) | |
download | linux-f64fa332602c311a76495fd0139bd4abb9aa7bbf.tar.xz linux-f64fa332602c311a76495fd0139bd4abb9aa7bbf.zip |
accel/habanalabs: add pcie reset prepare/done hooks
When working on a bare-metal system, if FLR will happen the firmware
will handle it and driver will have no knowledge of it, and this will
cause two issues:
1.The driver will be in operational state while it should be in reset.
This will cause the heartbeat mechanism to keep sending messages to FW
while pci device is in reset. Eventually heartbeat will fail and
the device will end up in non-operational state.
2. After FW handles the FLR, and due to the reset it'll go back to
preboot stage, and driver need to perform hard reset in order to
load the boot fit binary.
This patch will add reset_prepare hook that will set the device to
be in disabled state, so it'll be not operational, and also
reset_done hook which will be called after the actual FLR handling,
then it will perform hard reset.
Signed-off-by: farah kassabri <fkassabri@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions