[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180919073712.25463-1-ning.a.zhang@intel.com>
Date: Wed, 19 Sep 2018 15:37:12 +0800
From: ning.a.zhang@...el.com
To: jani.nikula@...ux.intel.com, joonas.lahtinen@...ux.intel.com,
rodrigo.vivi@...el.com, airlied@...ux.ie
Cc: intel-gfx@...ts.freedesktop.org, dri-devel@...ts.freedesktop.org,
linux-kernel@...r.kernel.org, Zhang Ning <ning.a.zhang@...el.com>
Subject: [PATCH] drm/i915: set i915 driver probe to asynchronous
From: Zhang Ning <ning.a.zhang@...el.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@...el.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 6a4d1388ad2d..0f57d71d0abb 100644
--- a/drivers/gpu/drm/i915/i915_pci.c
+++ b/drivers/gpu/drm/i915/i915_pci.c
@@ -738,6 +738,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.18.0
Powered by blists - more mailing lists