]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
habanalabs/gaudi: invoke device reset from one code block
authorTal Cohen <talcohen@habana.ai>
Wed, 8 Jun 2022 13:02:09 +0000 (16:02 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Aug 2022 09:45:44 +0000 (11:45 +0200)
commit6a4aa11781f595800fc05b15d6ef152c0bab7ada
tree2589af470398fc701388a302af1ea0c79ef7c2a8
parentfb806b52acb047358a5b5a64ee39664de2448386
habanalabs/gaudi: invoke device reset from one code block

[ Upstream commit be572e67dafbf8004d46a2c9d97338c107efb60e ]

In order to prepare the driver code for device reset event
notification, change the event handler function flow to call
device reset from one code block.

In addition, the commit fixes an issue that reset was performed
w/o checking the 'hard_reset_on_fw_event' state and w/o setting
the HL_DRV_RESET_DELAY flag.

Signed-off-by: Tal Cohen <talcohen@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/misc/habanalabs/gaudi/gaudi.c