[PATCH] drm/i915: Initialize audio only when display is present

Mika Kahola mika.kahola at intel.com
Mon Oct 16 11:11:55 UTC 2017

CI system spotted an error on CFL system when running IGT tests with
display disabled. In this case, the 'INTEL_INFO(dev_priv)->num_pipes'
is set to 0. This will cause that we prematurely return from
'get_saved_enc()'. In this case we shouldn't initialize the audio part
at all. Let's disable audio initialization when module parameter to
disable display is set.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103206
Signed-off-by: Mika Kahola <mika.kahola at intel.com>
 drivers/gpu/drm/i915/i915_drv.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index 3db5851..8d58e4e 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -1244,7 +1244,8 @@ static void i915_driver_register(struct drm_i915_private *dev_priv)
 	if (IS_GEN5(dev_priv))
-	intel_audio_init(dev_priv);
+	if (!i915_modparams.disable_display)
+		intel_audio_init(dev_priv);
 	 * Some ports require correctly set-up hpd registers for detection to

More information about the Intel-gfx-trybot mailing list