[PATCH 02/42] drm/i915: set i915 driver probe to asynchronous

Chris Wilson chris at chris-wilson.co.uk
Wed Sep 19 11:47:27 UTC 2018


From: Zhang Ning <ning.a.zhang at intel.com>

when i915 is built in module, and system has built-in display, eg. eDP,
i915 will detect and active it during driver probe. it will take long
time.

set i915 driver probe to asynchrous can save kernel initial time.

Signed-off-by: Zhang Ning <ning.a.zhang at intel.com>
---
 drivers/gpu/drm/i915/i915_pci.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/i915/i915_pci.c b/drivers/gpu/drm/i915/i915_pci.c
index d6f7b9fe1d26..7cc95549af2f 100644
--- a/drivers/gpu/drm/i915/i915_pci.c
+++ b/drivers/gpu/drm/i915/i915_pci.c
@@ -744,6 +744,7 @@ static struct pci_driver i915_pci_driver = {
 	.probe = i915_pci_probe,
 	.remove = i915_pci_remove,
 	.driver.pm = &i915_pm_ops,
+	.driver.probe_type = PROBE_PREFER_ASYNCHRONOUS,
 };
 
 static int __init i915_init(void)
-- 
2.19.0



More information about the Intel-gfx-trybot mailing list