summaryrefslogtreecommitdiffstats
path: root/drivers/misc/habanalabs/goya/goya.c
diff options
context:
space:
mode:
authorOfir Bitton <obitton@habana.ai>2022-08-22 09:59:34 +0200
committerOded Gabbay <ogabbay@kernel.org>2022-09-18 12:29:53 +0200
commitc38f72370b615d48c7eb44389b229105f07a70e2 (patch)
tree62073f917d74cfec3695aa90a1fee06e07b6585e /drivers/misc/habanalabs/goya/goya.c
parenthabanalabs: set command buffer host VA dynamically (diff)
downloadlinux-c38f72370b615d48c7eb44389b229105f07a70e2.tar.xz
linux-c38f72370b615d48c7eb44389b229105f07a70e2.zip
habanalabs: perform context switch flow only if needed
Except Goya, none of our ASICs require context switch flow, hence we enable this flow only where it is needed. Signed-off-by: Ofir Bitton <obitton@habana.ai> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'drivers/misc/habanalabs/goya/goya.c')
-rw-r--r--drivers/misc/habanalabs/goya/goya.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/misc/habanalabs/goya/goya.c b/drivers/misc/habanalabs/goya/goya.c
index 87465a28af0d..d8fb91d257b9 100644
--- a/drivers/misc/habanalabs/goya/goya.c
+++ b/drivers/misc/habanalabs/goya/goya.c
@@ -1025,6 +1025,7 @@ static int goya_sw_init(struct hl_device *hdev)
hdev->asic_prop.supports_compute_reset = true;
hdev->asic_prop.allow_inference_soft_reset = true;
hdev->supports_wait_for_multi_cs = false;
+ hdev->supports_ctx_switch = true;
hdev->asic_funcs->set_pci_memory_regions(hdev);