Commit 135ade0c authored by Oded Gabbay's avatar Oded Gabbay

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: default avatarOded Gabbay <ogabbay@kernel.org>
parent ae151bcf
...@@ -574,7 +574,11 @@ static struct pci_driver hl_pci_driver = { ...@@ -574,7 +574,11 @@ static struct pci_driver hl_pci_driver = {
.probe = hl_pci_probe, .probe = hl_pci_probe,
.remove = hl_pci_remove, .remove = hl_pci_remove,
.shutdown = 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, .err_handler = &hl_pci_err_handler,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment