From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CD298C55181 for ; Tue, 21 Apr 2020 19:09:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B061A2074B for ; Tue, 21 Apr 2020 19:09:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=yahoo.ca header.i=@yahoo.ca header.b="saIdr/zj" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726181AbgDUTJH (ORCPT ); Tue, 21 Apr 2020 15:09:07 -0400 Received: from sonic312-24.consmr.mail.gq1.yahoo.com ([98.137.69.205]:35574 "EHLO sonic312-24.consmr.mail.gq1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726124AbgDUTJG (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/6PE9LH1idcm6YJarxPFbvuly4hEyWAWcj30MRMSwMNkmDpwhaZkidg2c5ZPF6ExWZXjS4c+8ybnBFCebirbNZVf4b6TVVNPb3fN4Vr6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LVfVzys2YbSYZR5GSmNsdsNESx8j3zEpYbj5_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) 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.