Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4132435ybi; Mon, 29 Jul 2019 19:58:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqxEEiEwxBF0Nk81eQfk3TjAu5wB/DWn3wOIGiK+RdS4/uDYfhK5bJmoMUSirrOSPGxCqfsa X-Received: by 2002:a63:d941:: with SMTP id e1mr73087133pgj.75.1564455537323; Mon, 29 Jul 2019 19:58:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564455537; cv=none; d=google.com; s=arc-20160816; b=iSUljYVgLvhBz6s0ZFxfKGc8FlAyO4wVq1BMgKgq3JudOXIGZTCpZDyiut+xFOFPZi j27HYG8xQKjz3bK+Om58I9Ltv89jBYg+KtTObUhhFqMWhZ1FEeAC67z96zM088R/wd8f mfOwXM8yz7Eov5fd75ZTNzDJfgBSuPrqheZ4k2TOH0x/71+Ws+VLhCCxMaOmi8OBIbJ6 I1udMo/WQ4247o9GS0/Ob6vGMKaGl4JpHRtlmAZpmmS6ZxczDlZ2lKXeUNuXOp7PM1Rv vqRZVdUYVjDgJqNSoVkNWxP/kMiAkMbiutA90Z4nPFx1ohmIsBihd3Jg4MKRL0/iUUBk n7Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=SR+tUr2EE2vb0uEltYJ/WdQzpMkZqgEn3maCagakx7M=; b=RMX/LQU4J1lvGhboy72yn0kGZwopwLYaZrlaEtVAQTEaKGgGrbFo48okroaETHdzhq t4DDqmsBF26nj37rPx8Nh71FEyP/PIUgdvjQ1wml1zrqRV9jWeM0V36VxU9vgx9ww3Vg ZeQ+KZGcBK2B1jU23cBg30cepVHD5Ae8oJewkUQG05RjL3igJeYiMmy73m+CEel+Qy/2 TU5tDsAVHe5XZVpnOlNeUzm8WP5AKViKvL1bRCEB38Sf1Qx9EcivAuIpGp0DuAMpDAb4 t/AqjOVKwBMInY2F3f3FHqHN+jJSdzAbSVtJ1v5yVMT8b4zfcbMSa1y+4ofUWmYt0Ti7 wRog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=faDaPQ6d; 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 a94si24452435pje.19.2019.07.29.19.58.42; Mon, 29 Jul 2019 19:58:57 -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; dkim=pass header.i=@kernel.org header.s=default header.b=faDaPQ6d; 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 S2404157AbfG2TzB (ORCPT + 99 others); Mon, 29 Jul 2019 15:55:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:47686 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404141AbfG2Ty7 (ORCPT ); Mon, 29 Jul 2019 15:54:59 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6C036204EC; Mon, 29 Jul 2019 19:54:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564430098; bh=DdfrbT/h5+IQ5TDhREUJeTkJ1Qo6pc6XqjlIG7Ji4qI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=faDaPQ6d+kC7FjioofxGSn3kZobwKJzuhZnMsAw6g56IwZa3gabWW2QhrwheCUiJv kaSYCsUEwd7cVbYrvsaa0COkQ6iyN865WRcKPBI6s67s67pKpghPKHLmJup33oMkzG RtIP5qAvWaW/NfIhbXz8vpGHUx2uJbmuuVoUnTTI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Takashi Iwai , Todd Brandt Subject: [PATCH 5.2 194/215] ALSA: hda - Fix intermittent CORB/RIRB stall on Intel chips Date: Mon, 29 Jul 2019 21:23:10 +0200 Message-Id: <20190729190813.533620151@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729190739.971253303@linuxfoundation.org> References: <20190729190739.971253303@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Takashi Iwai commit 2756d9143aa517b97961e85412882b8ce31371a6 upstream. It turned out that the recent Intel HD-audio controller chips show a significant stall during the system PM resume intermittently. It doesn't happen so often and usually it may read back successfully after one or more seconds, but in some rare worst cases the driver went into fallback mode. After trial-and-error, we found out that the communication stall seems covered by issuing the sync after each verb write, as already done for AMD and other chipsets. So this patch enables the write-sync flag for the recent Intel chips, Skylake and onward, as a workaround. Also, since Broxton and co have the very same driver flags as Skylake, refer to the Skylake driver flags instead of defining the same contents again for simplification. BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=201901 Reported-and-tested-by: Todd Brandt Cc: Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/hda_intel.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c @@ -313,11 +313,10 @@ enum { #define AZX_DCAPS_INTEL_SKYLAKE \ (AZX_DCAPS_INTEL_PCH_BASE | AZX_DCAPS_PM_RUNTIME |\ + AZX_DCAPS_SYNC_WRITE |\ AZX_DCAPS_SEPARATE_STREAM_TAG | AZX_DCAPS_I915_COMPONENT) -#define AZX_DCAPS_INTEL_BROXTON \ - (AZX_DCAPS_INTEL_PCH_BASE | AZX_DCAPS_PM_RUNTIME |\ - AZX_DCAPS_SEPARATE_STREAM_TAG | AZX_DCAPS_I915_COMPONENT) +#define AZX_DCAPS_INTEL_BROXTON AZX_DCAPS_INTEL_SKYLAKE /* quirks for ATI SB / AMD Hudson */ #define AZX_DCAPS_PRESET_ATI_SB \