summaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorOded Gabbay <ogabbay@kernel.org>2021-05-26 10:14:21 +0200
committerOded Gabbay <ogabbay@kernel.org>2021-06-18 14:23:41 +0200
commit135ade0c6afccbe874bdda811201733e5b57c9bc (patch)
treefca6754d9de8e9ab61a6912d7961778e977d00ef /drivers/misc
parenthabanalabs/gaudi: add ARB to QM stop on error masks (diff)
downloadlinux-135ade0c6afccbe874bdda811201733e5b57c9bc.tar.xz
linux-135ade0c6afccbe874bdda811201733e5b57c9bc.zip
habanalabs: prefer ASYNC device probing
There is no dependency when probing multiple devices so indicate to the kernel that it can probe our devices in ASYNC fashion. This shortens insmod of the driver from ~2 minutes to 20 seconds on a system with 8 devices. Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/habanalabs/common/habanalabs_drv.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/misc/habanalabs/common/habanalabs_drv.c b/drivers/misc/habanalabs/common/habanalabs_drv.c
index bd67d4ceab56..137e7dc63d3b 100644
--- a/drivers/misc/habanalabs/common/habanalabs_drv.c
+++ b/drivers/misc/habanalabs/common/habanalabs_drv.c
@@ -574,7 +574,11 @@ static struct pci_driver hl_pci_driver = {
.probe = hl_pci_probe,
.remove = hl_pci_remove,
.shutdown = hl_pci_remove,
- .driver.pm = &hl_pm_ops,
+ .driver = {
+ .name = HL_NAME,
+ .pm = &hl_pm_ops,
+ .probe_type = PROBE_PREFER_ASYNCHRONOUS,
+ },
.err_handler = &hl_pci_err_handler,
};