diff options
author | Tomer Tayar <ttayar@habana.ai> | 2023-07-20 16:50:39 +0300 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2023-12-19 12:09:43 +0300 |
commit | 4b0b1fbc7757169b6d304545a321c7a88f13f8f0 (patch) | |
tree | 2934604b72c5b53eb4bde35214418974a89f54be /drivers/accel/habanalabs/include/gaudi2/asic_reg/gaudi2_regs.h | |
parent | 571cdb6e3b9a9c077b39047091f0ccc721b92b83 (diff) | |
download | linux-4b0b1fbc7757169b6d304545a321c7a88f13f8f0.tar.xz |
accel/habanalabs: set hard reset flag if graceful reset is skipped
hl_device_cond_reset() might be called with the hard reset flag unset,
because a compute reset upon device release as part of a graceful reset
is valid.
If the conditions for graceful reset are not met, hl_device_reset() will
be called for an immediate reset. In this case a compute reset is not
valid, so it will be replaced with a hard reset together with a debug
message about it.
This message might be confusing, as it implies that a compute reset was
requested when it shouldn't. To prevent this confusion, set the hard
reset flag in hl_device_cond_reset() if going to an immediate reset.
Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'drivers/accel/habanalabs/include/gaudi2/asic_reg/gaudi2_regs.h')
0 files changed, 0 insertions, 0 deletions