Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp447339ybz; Tue, 21 Apr 2020 12:10:33 -0700 (PDT) X-Google-Smtp-Source: APiQypIiPUY0DrlkTy597sm/BatWHbxkApBi90RR1B4dTZyqMqn4EPA3pabPVXd7rR3iADyrJYO5 X-Received: by 2002:a05:6402:356:: with SMTP id r22mr20973061edw.3.1587496232931; Tue, 21 Apr 2020 12:10:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587496232; cv=none; d=google.com; s=arc-20160816; b=OzgPyKApaTbE+0Jbq4Opdw4jPxrViXG51JKlvhNBgdtKWAFrUxRitk8DbH+Xrz2t/b +2A0sNUHSAfVWim9xoYps79k+aDJ74ChU0BcRow6eg4ZLDNTQZkiSSXfwwlMkRNghede 9WloRLL4bJIBKOxIkbam1ZhzweUzhctxA5maM5RFQau6LUqz2aUl2MytVzLdCfTr6DU+ l4rwoUbpMQaisMm/k48jZaoRWGTasidgNK3i7rzLteSedvvA45a2Cx6z93HJsDjbMq/T 9m1cZijUlbNTk1yteNkMZH3IKE74cNpi0Ob4LzYBgLaCC7YzSI8ChyaHrg51sTfE+MmE GCgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:content-transfer-encoding :message-id:mime-version:cc:to:subject:from:date:dkim-signature; bh=7IsaXBRwEnsILs+9tSjAQ2TQvhkivr7QMUQHKvns9Dw=; b=1CYPb4yG2Pb1zcP/8vP224q3ggUEaIzTWSz5PRlHUVA5Rhf7vr2YJRNEyaeYBY8Bxe E6nKEDFp1ZLka7AU8fnZHIIxjs7GXRw3UW2j+4ot8mjl66bbpdloJ4/GpSAR/ZimxmvS Q60QmHPNyEl3ltpZbgasQy6/5Li3loxODubvYU0eU//Ss4HRL/CWHqfqr71zb4zsyXxh A1KVcVITJseVn99OuGYMRcdp9C75aB8QkWQPlC96tXf7qeTwZEJ5zjKl9Sfy8csGOsR+ p/eVJ3phKKq5UP5TEdYtoqGbGB3sPCi9LKDxqa+AMREWoqZ1D3tKiWIB+asqIVTY6U2o lHjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yahoo.ca header.s=s2048 header.b="saIdr/zj"; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=yahoo.ca Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n16si2082149edv.252.2020.04.21.12.10.09; Tue, 21 Apr 2020 12:10:32 -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; dkim=pass header.i=@yahoo.ca header.s=s2048 header.b="saIdr/zj"; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=yahoo.ca Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726201AbgDUTJI (ORCPT + 99 others); Tue, 21 Apr 2020 15:09:08 -0400 Received: from sonic312-24.consmr.mail.gq1.yahoo.com ([98.137.69.205]:43939 "EHLO sonic312-24.consmr.mail.gq1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726056AbgDUTJG (ORCPT ); Tue, 21 Apr 2020 15:09:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s2048; t=1587496145; bh=7IsaXBRwEnsILs+9tSjAQ2TQvhkivr7QMUQHKvns9Dw=; h=Date:From:Subject:To:Cc:References:From:Subject; b=saIdr/zjgqK+2XHpUu9rHGUZXzBRktJ/Qu7/6PE9LH1idcm6YJarxPFbvuly4hEyWAWcj30MRMSwMNkmDpw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ip48CdjU3HPQq4tkSn8Pc_i TsgXG.RPyELqtnhvnBRBwlT.r.gCvA1KMLVfVzys2YbSYZR5GSmNsdsNESx8j3zEpYbj5_mMniRS YGtGY.pgvcym_61SngzbTSsWQ0jo2MxgGAq.aRssNJt1k17Y0TfOeAqlhYZWxjX66tLk8KnDY2BM wBaXTSdxKcWcExzRSBIEAeU6DnkWY.esQMmUVLVCnZ0c_BJj79aQJLbElS0x9r9eUn96LGuRG8BF dssM_Pda_HJFi0ajCE751pGrtDqP1J5.BwgVqeugOI4kKkVn2jA.SjmAr0JYt9IhfpGVAFFFP_LT zAOnQG8orpK3s3bcRufoZXwJxSVaCYm2a3sUyEt8WoFdwSQAOklHCN1yLFUWWmTqQ0bimFlp4icn RttMQiZBYbvXMCirfFWYj1.BQ.PnMCvl3cgWkbRpV7i.H9HdDxKOXeE1oio50Qh1lVOJh97PBiIe oKqb7M1grUNdwIuJht67AzAknuW4WMsnNpKejLixh0amz1cYys13g1aYLHOQw6mpJ9vXqR8x1tj4 ardvPcUrdQgFHU3o.WT9Eo6KmdNUfI3KO4_Y2F9B0LuBmUex4IeaRC79F83c7iOrxv3ImGqIgnFe BT5a7 Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.gq1.yahoo.com with HTTP; Tue, 21 Apr 2020 19:09:05 +0000 Received: by smtp404.mail.gq1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 05f4ac1bcfb5b2e9473b08cea4a3e14a; Tue, 21 Apr 2020 19:09:00 +0000 (UTC) Date: Tue, 21 Apr 2020 15:08:44 -0400 From: "Alex Xu (Hello71)" Subject: Unrecoverable AER error when resuming from RAM (hda regression in 5.7-rc2) To: alsa-devel@alsa-project.org, Takashi Iwai Cc: Roy Spliet , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org MIME-Version: 1.0 Message-Id: <1587494585.7pihgq0z3i.none@localhost> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable References: <1587494585.7pihgq0z3i.none.ref@localhost> X-Mailer: WebService/1.1.15739 hermes Apache-HttpAsyncClient/4.1.4 (Java/11.0.6) Content-Length: 2946 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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=3DUncor= rected (Non-Fatal), type=3DTransaction Layer, (Requester ID) [ 55.679410] pcieport 0000:00:03.1: AER: device [1022:1453] error statu= s/mask=3D00100000/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 c= allback) [ 55.679425] snd_hda_intel 0000:0a:00.1: AER: can't recover (no error_det= ected callback) [ 55.679455] pcieport 0000:00:03.1: AER: device recovery failed Then the display freezes and the system basically falls apart (can't=20 even sudo reboot -f, need to use magic sysrq). I bisected this to "ALSA: hda: Skip controller resume if not needed".=20 Setting snd_hda_intel.power_save=3D0 resolves the issue. I am using an ASRock B450 Pro4 with Realtek HDA codec: [ 1.009400] snd_hda_intel 0000:0a:00.1: enabling device (0000 -> 0002) [ 1.009425] snd_hda_intel 0000:0a:00.1: Force to non-snoop mode [ 1.009653] snd_hda_intel 0000:0c:00.3: enabling device (0000 -> 0002) [ 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: l= ine_outs=3D0 (0x0/0x0/0x0/0x0/0x0) type:line [ 1.021482] snd_hda_codec_generic hdaudioC0D0: speaker_outs=3D0 (0x0/= 0x0/0x0/0x0/0x0) [ 1.021483] snd_hda_codec_generic hdaudioC0D0: hp_outs=3D0 (0x0/0x0/0= x0/0x0/0x0) [ 1.021484] snd_hda_codec_generic hdaudioC0D0: mono: mono_out=3D0x0 [ 1.021484] snd_hda_codec_generic hdaudioC0D0: dig-out=3D0x3/0x5 [ 1.021485] snd_hda_codec_generic hdaudioC0D0: inputs: [ 1.046053] snd_hda_codec_realtek hdaudioC1D0: autoconfig for ALC892: li= ne_outs=3D1 (0x14/0x0/0x0/0x0/0x0) type:line [ 1.046054] snd_hda_codec_realtek hdaudioC1D0: speaker_outs=3D0 (0x0/= 0x0/0x0/0x0/0x0) [ 1.046055] snd_hda_codec_realtek hdaudioC1D0: hp_outs=3D1 (0x1b/0x0/= 0x0/0x0/0x0) [ 1.046055] snd_hda_codec_realtek hdaudioC1D0: mono: mono_out=3D0x0 [ 1.046056] snd_hda_codec_realtek hdaudioC1D0: inputs: [ 1.046057] snd_hda_codec_realtek hdaudioC1D0: Front Mic=3D0x19 [ 1.046058] snd_hda_codec_realtek hdaudioC1D0: Rear Mic=3D0x18 [ 1.046058] snd_hda_codec_realtek hdaudioC1D0: Line=3D0x1a I also have an ASUS RX 480 graphics card with HDMI audio output.