OSDN Git Service

habanalabs: enable stop-on-error debugfs setting per ASIC
authorTomer Tayar <ttayar@habana.ai>
Wed, 12 Jan 2022 18:08:01 +0000 (20:08 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 28 Feb 2022 12:22:05 +0000 (14:22 +0200)
commitd01e6cc97b44d8501b5c24a36d60c9cab94640cd
treee8fcfc89b26f3ff68dc355a7041947323eaa824b
parent4a0b01fa63c9dc4f0dd3ad44168c9323e4da5172
habanalabs: enable stop-on-error debugfs setting per ASIC

On Goya and Gaudi, the stop-on-error configuration can be set via
debugfs. However, in future devices, this configuration will always be
enabled.
Modify the debugfs node to be allowed only for ASICs that support this
dynamic configuration.

Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Documentation/ABI/testing/debugfs-driver-habanalabs
drivers/misc/habanalabs/common/debugfs.c
drivers/misc/habanalabs/common/habanalabs.h
drivers/misc/habanalabs/gaudi/gaudi.c
drivers/misc/habanalabs/goya/goya.c