]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: move call to scrub_device_mem after ctx_fini
authorDafna Hirschfeld <dhirschfeld@habana.ai>
Thu, 12 May 2022 12:20:55 +0000 (15:20 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Tue, 12 Jul 2022 06:09:25 +0000 (09:09 +0300)
commit4f92a84bedbcf26cffe205898659bc58981cdcd0
treebbff4af7840393e252799851a2619a96e6ef22bb
parent90435eca7dfe64de453f0de458292ad2d3f8d180
habanalabs: move call to scrub_device_mem after ctx_fini

In future ASICs, it would be possible to have a non-idle
device when context is released. We thus need to postpone the
scrubbing. Postpone it to hpriv release if reset is not executed
or to device late init if reset is executed.

Signed-off-by: Dafna Hirschfeld <dhirschfeld@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/context.c
drivers/misc/habanalabs/common/device.c