Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp787491ybe; Fri, 13 Sep 2019 06:23:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqw/3A2ZA8HeRP0HYwLqNgvI5kfhAr0zgSS053SZY/NoWpNbE5Vz/w5HsldHFwVCGxJiN3pa X-Received: by 2002:a50:be87:: with SMTP id b7mr2915251edk.37.1568381020665; Fri, 13 Sep 2019 06:23:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568381020; cv=none; d=google.com; s=arc-20160816; b=hfmQeXtESIC4zYudTfvIejc34/ZkvHry6zu8cDSO7Z42rwDtN0+BWcXqUEZtJRiZM6 +fHkH9GiaR2NHnZm9PBQpkB9RfOAwngC3ptmGu0KUiTHHDXRN2TkR1ttzA1ICL47nAzb kpLhXFdWIWETcBin+YIWEqh3VdJYya6Vxy8o+IGVjdCh1H1g5k6f3iDoicXJRrk8wUd4 yCGIwZHgXb96CXKBnnuEnmCHBA0n8QQ+CW1x+4oopdFX0QU6dRHaM8HrT0MQUXsg+Q2l vTBXWjgaZv9kimbI2MP32I7LbJRujd/IJCynv3sIoeHRq6dib0QrbA7NsVMBlzM8/sQz T+LQ== 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=z6fzaZ7ckY/xqkVz3cmaEGbLRqMepTydcx+uxc6rKWc=; b=ECkTE2z3UVE30RcD1FMrgq69xliBLKDs5lWHNb/ZxFvqj6YFveJoQ5p1WtAaQjdoDa LciWUF7kNPkQp9WJGKaErXR3BNWSdinSvXfDxTh0PVVDsqk6zYt86sSyekADM9xm6i/c /8NxSQ0fjs1tlBFUCau/8XQh3f7PHjnyXH/Uq20RFBMMfqUiZWjhzOJegcWc87pumy3b H9DPgOp6vfSjJ8CYXJmQQ7MtYKivUFUCNY1slmPqC6Va8Cz5a/iY+WWDR69sHAYBrsId sZxB2ximbTcMQa5zFUNyk2YOogr8XMzsKojSKfKYKptxd5v0FX6k+qfcVbRC042ert9f GXPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=OGZ89glM; 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 f57si17503517ede.78.2019.09.13.06.23.16; Fri, 13 Sep 2019 06:23:40 -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=OGZ89glM; 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 S2390580AbfIMNU2 (ORCPT + 99 others); Fri, 13 Sep 2019 09:20:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:49342 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390026AbfIMNUZ (ORCPT ); Fri, 13 Sep 2019 09:20:25 -0400 Received: from localhost (unknown [104.132.45.99]) (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 E905420717; Fri, 13 Sep 2019 13:20:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568380824; bh=8TkD0+W9zck4fhl47AiNSE+1H/b1ME/YVFvULp6mZWM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OGZ89glM2j6CEsqhtzc6pmAV4PgzZSFDQGr4X8fjqq4eG9EhQOFsui6Hc2DmUEoBx omXUN9lF3tcNEROUo8kZRJEYLXLmI6QzFgF+28VAgQH0AKj2joz+8hjADascv4T0N2 5+04Mr2PzKnp+023IjzcVA+wlhaBVjonWBV3zPI4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Takashi Iwai , Sasha Levin , Todd Brandt Subject: [PATCH 4.19 168/190] ALSA: hda - Fix intermittent CORB/RIRB stall on Intel chips Date: Fri, 13 Sep 2019 14:07:03 +0100 Message-Id: <20190913130613.265417784@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190913130559.669563815@linuxfoundation.org> References: <20190913130559.669563815@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 [ Upstream commit 2756d9143aa517b97961e85412882b8ce31371a6 ] 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: Sasha Levin --- sound/pci/hda/hda_intel.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index 7a3e34b120b33..c3e3d80ff7203 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c @@ -329,13 +329,11 @@ 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 |\ AZX_DCAPS_I915_POWERWELL) -#define AZX_DCAPS_INTEL_BROXTON \ - (AZX_DCAPS_INTEL_PCH_BASE | AZX_DCAPS_PM_RUNTIME |\ - AZX_DCAPS_SEPARATE_STREAM_TAG | AZX_DCAPS_I915_COMPONENT |\ - AZX_DCAPS_I915_POWERWELL) +#define AZX_DCAPS_INTEL_BROXTON AZX_DCAPS_INTEL_SKYLAKE /* quirks for ATI SB / AMD Hudson */ #define AZX_DCAPS_PRESET_ATI_SB \ -- 2.20.1