Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp474275ybz; Tue, 21 Apr 2020 12:42:59 -0700 (PDT) X-Google-Smtp-Source: APiQypKuv/zN4GJaID8E0/6o7lPLzEd1KdoKuvXBUsD9U2efiuKDCpeFwtCtpR4GsvooiqX0p3jl X-Received: by 2002:a50:d615:: with SMTP id x21mr17609259edi.62.1587498179692; Tue, 21 Apr 2020 12:42:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587498179; cv=none; d=google.com; s=arc-20160816; b=Sm2AU4Wb29VFQHp3saHn1ZyjBmq2vUcaP3uwQB3OI1XyyF2yJT9GsKX2XgXYLlPjF2 jSdrs7YGGopzL8k2CijFktEYETdbBI5KRYWcDUb3Kc2VkTNb7Nnt99rV/8Nm6t3otiEM EFoCUVn7HwqzHAInKuxt6OTJXMHametVWiFAOgAalfN1nDrAXYfLXiDjzpJDRB4KDV+D d4EFj9WJxh4DmqEDfV3IyS8P4F6We261cPpt9YTho9bGGy1VjDzZX5XuH15OvbPtqPuj Mdy4CpsysD2B71GDNbFzTj36PlW2tExfoanqCTNG6N1PeJTn1HYugFiQbTXfXERgysBM /Etg== 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:subject:cc:to:from:message-id:date; bh=bm7CtsqjUp33Yue15QALveXC1DZ1ZUvG6L3HP46QurM=; b=UpEl0sqzOY6MbOmPxULb4yqsjnAR/sP23TjmY1sVNlGqV+iyGy7oV8HyZnh30SL8UC KsqzC5oQzBdKEraDiYWka3RmmASQIpSevIzN+eyiI08eBBmqCjS6ImeOZot6GNQgypkC 6YAKRctdjadwNONjluEyAL6RqWzvdC4PfpVfi+frpKXSsEAinDlaDjT2x37ytXdSHT00 hULsxM539CHIAeu/WlzOzeTFahT4h3fTuOKAXnsIGSVf/YrOVHYUJPdVxwiAMUpFGU1e GHElUvmShPx2GUlmewpJg/a6Tt6DI+5wmFkf9TrvHO/KREu3Bdbg0s+Ft3JzGCPu66Rr uJjw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp4si2656840ejc.399.2020.04.21.12.42.36; Tue, 21 Apr 2020 12:42:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726424AbgDUTke (ORCPT + 99 others); Tue, 21 Apr 2020 15:40:34 -0400 Received: from mx2.suse.de ([195.135.220.15]:49798 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726056AbgDUTkd (ORCPT ); Tue, 21 Apr 2020 15:40:33 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 0C86EAE28; Tue, 21 Apr 2020 19:40:31 +0000 (UTC) Date: Tue, 21 Apr 2020 21:40:30 +0200 Message-ID: From: Takashi Iwai To: "Alex Xu (Hello71)" Cc: alsa-devel@alsa-project.org, Roy Spliet , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: Unrecoverable AER error when resuming from RAM (hda regression in 5.7-rc2) In-Reply-To: <1587494585.7pihgq0z3i.none@localhost> References: <1587494585.7pihgq0z3i.none.ref@localhost> <1587494585.7pihgq0z3i.none@localhost> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 21 Apr 2020 21:08:44 +0200, Alex Xu (Hello71) wrote: > > With 5.7-rc2, after resuming from suspend to RAM, I get: > > [ 55.679382] pcieport 0000:00:03.1: AER: Multiple Uncorrected (Non-Fatal) error received: 0000:00:00.0 > [ 55.679405] pcieport 0000:00:03.1: AER: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Requester ID) > [ 55.679410] pcieport 0000:00:03.1: AER: device [1022:1453] error status/mask=00100000/04400000 > [ 55.679414] pcieport 0000:00:03.1: AER: [20] UnsupReq (First) > [ 55.679417] pcieport 0000:00:03.1: AER: TLP Header: 40000004 0a0000ff fffc0e80 00000000 > [ 55.679423] amdgpu 0000:0a:00.0: AER: can't recover (no error_detected callback) > [ 55.679425] snd_hda_intel 0000:0a:00.1: AER: can't recover (no error_detected callback) > [ 55.679455] pcieport 0000:00:03.1: AER: device recovery failed > > Then the display freezes and the system basically falls apart (can't > even sudo reboot -f, need to use magic sysrq). > > I bisected this to "ALSA: hda: Skip controller resume if not needed". > Setting snd_hda_intel.power_save=0 resolves the issue. Hrm, it means the condition to skip the controller resume doesn't fit well. Does the patch below help? But looking at the dmesg output: > [ 1.021452] snd_hda_codec_generic hdaudioC0D0: ignore pin 0x7, too many assigned pins > [ 1.021461] snd_hda_codec_generic hdaudioC0D0: ignore pin 0x9, too many assigned pins > [ 1.021471] snd_hda_codec_generic hdaudioC0D0: ignore pin 0xb, too many assigned pins > [ 1.021480] snd_hda_codec_generic hdaudioC0D0: ignore pin 0xd, too many assigned pins > [ 1.021482] snd_hda_codec_generic hdaudioC0D0: autoconfig for Generic: line_outs=0 (0x0/0x0/0x0/0x0/0x0) type:line > [ 1.021482] snd_hda_codec_generic hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0) > [ 1.021483] snd_hda_codec_generic hdaudioC0D0: hp_outs=0 (0x0/0x0/0x0/0x0/0x0) > [ 1.021484] snd_hda_codec_generic hdaudioC0D0: mono: mono_out=0x0 > [ 1.021484] snd_hda_codec_generic hdaudioC0D0: dig-out=0x3/0x5 > [ 1.021485] snd_hda_codec_generic hdaudioC0D0: inputs: ... it looks like snd-hda-codec-generic is used for HDMI/DP codec. This can't work well. Did you enable CONFIG_SND_HDA_HDMI? In anyway, please give alsa-info.sh output. Run the script with --no-upload option and attach the output. thanks, Takashi --- --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c @@ -1060,7 +1060,7 @@ static int azx_resume(struct device *dev) /* check for the forced resume */ list_for_each_codec(codec, &chip->bus) { - if (hda_codec_need_resume(codec)) { + if (!codec->relaxed_resume) { forced_resume = true; break; }