Received: by 10.192.165.148 with SMTP id m20csp574876imm; Wed, 25 Apr 2018 04:31:54 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+dKTu/kKglX04Jlj2hv9p1fhkytH1pjsp2UPwkMM6uHMpVhGBR4V58nhY4fe+6G8xn4Wfl X-Received: by 10.167.133.12 with SMTP id v12mr16742806pfn.90.1524655914862; Wed, 25 Apr 2018 04:31:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524655914; cv=none; d=google.com; s=arc-20160816; b=jJil+4UM/XMGYPBq3ssA64v2G32/kfXURDdiPoJxyUujCtStPFJA34GxNoJqtoWtTk yW6XdeWtzmV0/SLU13k2iDmSUZwHH3q88XwaFGJ7GN+yDPyf5dBfGbtHo5JVSmbVOcpC bLXT9aJqb2cCR3TtfCq42NtPM8u7IK5ExOtcX3ZaVLgWcocjCIAxdp6gPyBqcR6d9Q3+ QrNYBqPJ3qoqIJDZs9U8U+oTRwdYBgEqtPO7pbHK4VyEvKsd1dPiYhmnQ+jHhoiSGW3t 3nsEpD41eUb+cGoFPTVID8es2+k8hLolkOETyxCCAqpBJtbo2WF6TIWW8VNSd8i84TtQ dz2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=eASKLKo7UG5ovf3jFwnIlvSHVqu3J1MJTxnvS4Jn3IM=; b=b8DlIUKThCRE6tVJka7ovqAtFyjHZ2PKvxoI5xYkSbpUpJ9KfxyHRn2msEAoL5917v vCRvDyXQT+y6INmvYlV3Q67A8Wx30Qazw/mC4tkEcKUpcnUFiOUpXdUnqfkKXVj4b4Kn AVo1ldLI0cJ3/g+RQoStKc443lQQDdmzCsuiEEiZDyGKFP2c/sS+KpThl9IggtFf0YaX syNhdwHT4xoVyDVY+jYK4vBlK09U+wZlGWGUul88m6D3mCKYc2T2DyRMLWAxbM70DeFi NSGuOmGfhy/R2cJPnDcbOQsqy41rwscrSTSEsxAmhNw6j9z0YSb4nDY8+6rHoK7c+//e ctjA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r2-v6si1680871pli.370.2018.04.25.04.31.40; Wed, 25 Apr 2018 04:31:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753579AbeDYLal (ORCPT + 99 others); Wed, 25 Apr 2018 07:30:41 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:51272 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752845AbeDYKiF (ORCPT ); Wed, 25 Apr 2018 06:38:05 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 3ADCF41C; Wed, 25 Apr 2018 10:38:04 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Gaurav K Singh , Abhay Kumar , Jani Nikula , Joonas Lahtinen Subject: [PATCH 4.14 008/183] drm/i915/audio: Fix audio detection issue on GLK Date: Wed, 25 Apr 2018 12:33:48 +0200 Message-Id: <20180425103242.939821018@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180425103242.532713678@linuxfoundation.org> References: <20180425103242.532713678@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Gaurav K Singh commit b4615730530be85fc45ab4631c2ad6d8e2d0b97d upstream. On Geminilake, sometimes audio card is not getting detected after reboot. This is a spurious issue happening on Geminilake. HW codec and HD audio controller link was going out of sync for which there was a fix in i915 driver but was not getting invoked for GLK. Extending this fix to GLK as well. Tested by Du,Wenkai on GLK board. Bspec: 21829 v2: Instead of checking GEN9_BC, BXT and GLK macros, use IS_GEN9 macro (Jani N) Cc: # b651bd2a3ae3 ("drm/i915/audio: Fix audio enumeration issue on BXT") Cc: Signed-off-by: Gaurav K Singh Reviewed-by: Abhay Kumar Signed-off-by: Jani Nikula Link: https://patchwork.freedesktop.org/patch/msgid/1523989338-29677-1-git-send-email-gaurav.k.singh@intel.com (cherry picked from commit 8221229046e862977ae93ec9d34aa583fbd10397) Signed-off-by: Joonas Lahtinen Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/i915/intel_audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/i915/intel_audio.c +++ b/drivers/gpu/drm/i915/intel_audio.c @@ -704,7 +704,7 @@ static void i915_audio_component_codec_w struct drm_i915_private *dev_priv = kdev_to_i915(kdev); u32 tmp; - if (!IS_GEN9_BC(dev_priv)) + if (!IS_GEN9(dev_priv)) return; i915_audio_component_get_power(kdev);