Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1824782pxb; Thu, 4 Nov 2021 09:04:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDBi0NQR12zEpEC8TUfirBp3bAVCZxUp5br8Gg4AFEqOFRdgkt205uaAMYLgRPagpOUCoX X-Received: by 2002:a17:906:c0cf:: with SMTP id bn15mr62641155ejb.54.1636041894423; Thu, 04 Nov 2021 09:04:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636041894; cv=none; d=google.com; s=arc-20160816; b=JiGwvLikjxCUSilY5LDUwIr5v5fWQZN21CI7o2aWDc6ogJAo2r+rDxD2JuIUM9Yo2o ie19jlO3cK5l5h7ynRAF+NMz14BBWQREcP+vshzzJQYU3h+Y6wGL1sMnLDO81VM+2oji 2sC2kilyWhPohbSEvDJnP3+OMrzoXT44tmPJLHS3SuetjVCApXHgEuEvV7URPkVAshiI SpBlHgNdZ3frDtWaLVdlH5VuNXvRJ9/0OO4rGRY2M9zPRoTSAYR/a5zPdnC7QIzBYc60 bU1zgDLePL5dATsR9nA/XQ/1ZENuNpW00qm0xzZQffbc1vjIemwj6I+Sg5mn7K6VYRXY +ULg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:content-transfer-encoding:message-id :mime-version:to:subject:from:date:dkim-signature; bh=A4QQTOs6LO/zdkt3DbWSFH3J2TrDPxsCMFwPMziDcFw=; b=Rb9iXPAtNG1pBLuuG85YpL/QKTtDOruy+eTWOYL7eJUJe3O0kktzyMijqCRwwsdMz1 MAiQrq8tn6lZogcEB7DECzpxTbY7Ud0dr8ctUehcIZa2JAC0Rj4/H3/wlAR4aXzLe/8k jbmcl1CTrMIo0uEQIzq4yl8tB23J4XFeNkpu6tdkABU35/OJsjCSb6NImaRml9D3uJj/ V/QkwDlqbs8gJF0dMXXIi4CqAgLk6yq+aQNrXfX0BqNJBul8lts1FMvIjgL9LYNvjJu5 m1pBgsUaxvUdTaRVUmXtA9riBWSAhBNGtEpNx87n3F4SmLarGQZiRzY17V3bQjlmXzmd 09mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yahoo.ca header.s=s2048 header.b=rOwADDtv; 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 e15si8043774edy.185.2021.11.04.09.04.27; Thu, 04 Nov 2021 09:04:54 -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=rOwADDtv; 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 S231517AbhKDQEl (ORCPT + 99 others); Thu, 4 Nov 2021 12:04:41 -0400 Received: from sonic315-54.consmr.mail.gq1.yahoo.com ([98.137.65.30]:42634 "EHLO sonic315-54.consmr.mail.gq1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231484AbhKDQEj (ORCPT ); Thu, 4 Nov 2021 12:04:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s2048; t=1636041715; bh=A4QQTOs6LO/zdkt3DbWSFH3J2TrDPxsCMFwPMziDcFw=; h=Date:From:Subject:To:References:From:Subject:Reply-To; b=rOwADDtv/s9tyogyH3tCbnEudgknU5FZM7e3cJn+KBmVXq1IRX3987UFuS4HAFtjGl1UjYcXJLb/lyan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S4UTJcWfOdexLJs5bBkxsFBzuPj2ygTb2SHOA7Z2SZuZwHFa8Fvu pMYLiLs2QsSCJXdxEtf91_5jbPgM7yq.uTgspv4iEUMAxxdBJA3HnwFs_Lr7kHcKWavKEs.b1E_q c..eBJwvyL7dAnodmmxG3UC2pTlursqP4ns270heM_MSk9smHOGaUOp2RNUkCLga04Aa_dsPBSmi FYISDAfl2TzGodhSvzA549FSOD7kA6uln0_jFqpTSnfJoZPSrLgiie5ddqn3yMWC3sl_GVzsiF6L FfRK21tgSOV4KgK1YB2fwdp2YJR_NPZijriJv42S5LMuohfMK9c.X_kWNRu93dQ9FCL.wmuubM8G qfy5Zx1WoQw60pdyjDeH2uU9aSZGzXw5hVJQI1vW3yLJQHTmY3PvQURtjLHGQztpC10dno_3Qc4I At4sQR9413RnPb__NkrfUQiohXco_vYoFrThcPY3WIXIaOJ9eR7jWpXjYOJMEXt74_7Z5O2p8bmm LP7mPsYUd1BbB4fLiWNMdAnk4BARRz3M3rKJ7YuLoEQBtLohnD8FFlysqL9wcNuF1WJbH2fj5Xq0 DeEvWckIvXgMe86nE7qmfzsMTWZiveFeFDibaC3BaVBon.BprgnKbqY6Iuha4ok1TgXwgTeeaZYk XEza31qphzAn53LM81l8.LNubm95h424l_M.fxiZdxiHVC9MZ0NU9SQswqeQTN01z6udXOJ38sYL u3dZ59bEVBZFOtP8lTfmJqc8C_KMmJapy0U_ZVrEOA2Ix737r3qTr0My9z1EKDJcmfDXY7NIw.6u ERx.y36XR9KiG5moOdbVWguw9NEtwWnimjlO5Ha4UftvVEh_NYqlRjCmSmqj_hPD_ntHHbYKapb_ wsQNSCCuFLP3w12a4._SfJeFitXRS_y_3JTWaE3fAfpH9_gzpoSMP9hkJHGRJuA-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.gq1.yahoo.com with HTTP; Thu, 4 Nov 2021 16:01:55 +0000 Received: by kubenode533.mail-prod1.omega.gq1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID b08266b863854ae84c65f4db47020d7f; Thu, 04 Nov 2021 16:01:55 +0000 (UTC) Date: Thu, 04 Nov 2021 12:01:51 -0400 From: "Alex Xu (Hello71)" Subject: No HDA sound output with AMD IOMMU on master To: Takashi Iwai , Linux Kernel Mailing List MIME-Version: 1.0 Message-Id: <1636040759.fnw68jgcw1.none@localhost> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable References: <1636040759.fnw68jgcw1.none.ref@localhost> X-Mailer: WebService/1.1.19266 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 3865 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, At some point between 86f925fded03 and 5f4e450cd96b, the built-in sound=20 card on my ASRock B450 Pro4 has stopped working for me. All controls are=20 unchanged (no new or removed controls, all outputs are unmuted), but=20 when I try to play sound, I hear a click from the output powering up but=20 no sound otherwise. While attempting to play sound, the following lines=20 are output to the kernel log: [ 15.081961] snd_hda_intel 0000:0b:00.3: AMD-Vi: Event logged [IO_PAGE_FA= ULT domain=3D0x0016 address=3D0x14ac00000 flags=3D0x0000] [ 15.081982] snd_hda_intel 0000:0b:00.3: AMD-Vi: Event logged [IO_PAGE_FA= ULT domain=3D0x0016 address=3D0x14ac00040 flags=3D0x0000] [ 15.082253] snd_hda_intel 0000:0b:00.3: AMD-Vi: Event logged [IO_PAGE_FA= ULT domain=3D0x0016 address=3D0x14ac00080 flags=3D0x0000] [ 15.082581] snd_hda_intel 0000:0b:00.3: AMD-Vi: Event logged [IO_PAGE_FA= ULT domain=3D0x0016 address=3D0x14ac000c0 flags=3D0x0000] [ 15.082914] snd_hda_intel 0000:0b:00.3: AMD-Vi: Event logged [IO_PAGE_FA= ULT domain=3D0x0016 address=3D0x14ac00100 flags=3D0x0000] [ 15.083247] snd_hda_intel 0000:0b:00.3: AMD-Vi: Event logged [IO_PAGE_FA= ULT domain=3D0x0016 address=3D0x14ac00140 flags=3D0x0000] [ 15.083580] snd_hda_intel 0000:0b:00.3: AMD-Vi: Event logged [IO_PAGE_FA= ULT domain=3D0x0016 address=3D0x14ac00180 flags=3D0x0000] [ 15.083914] snd_hda_intel 0000:0b:00.3: AMD-Vi: Event logged [IO_PAGE_FA= ULT domain=3D0x0016 address=3D0x14ac001c0 flags=3D0x0000] [ 15.084246] snd_hda_intel 0000:0b:00.3: AMD-Vi: Event logged [IO_PAGE_FA= ULT domain=3D0x0016 address=3D0x14ac00200 flags=3D0x0000] [ 15.084579] snd_hda_intel 0000:0b:00.3: AMD-Vi: Event logged [IO_PAGE_FA= ULT domain=3D0x0016 address=3D0x14ac00240 flags=3D0x0000] [ 749.373925] amd_iommu_report_page_fault: 5917 callbacks suppressed [ 749.373933] snd_hda_intel 0000:0b:00.3: AMD-Vi: Event logged [IO_PAGE_FA= ULT domain=3D0x0016 address=3D0x1f2000000 flags=3D0x0000] [ 749.373952] snd_hda_intel 0000:0b:00.3: AMD-Vi: Event logged [IO_PAGE_FA= ULT domain=3D0x0016 address=3D0x1f2000040 flags=3D0x0000] [ 749.374248] snd_hda_intel 0000:0b:00.3: AMD-Vi: Event logged [IO_PAGE_FA= ULT domain=3D0x0016 address=3D0x1f2000080 flags=3D0x0000] [ 749.374574] snd_hda_intel 0000:0b:00.3: AMD-Vi: Event logged [IO_PAGE_FA= ULT domain=3D0x0016 address=3D0x1f20000c0 flags=3D0x0000] [ 749.374907] snd_hda_intel 0000:0b:00.3: AMD-Vi: Event logged [IO_PAGE_FA= ULT domain=3D0x0016 address=3D0x1f2000100 flags=3D0x0000] [ 749.375240] snd_hda_intel 0000:0b:00.3: AMD-Vi: Event logged [IO_PAGE_FA= ULT domain=3D0x0016 address=3D0x1f2000140 flags=3D0x0000] [ 749.375572] snd_hda_intel 0000:0b:00.3: AMD-Vi: Event logged [IO_PAGE_FA= ULT domain=3D0x0016 address=3D0x1f2000180 flags=3D0x0000] [ 749.375904] snd_hda_intel 0000:0b:00.3: AMD-Vi: Event logged [IO_PAGE_FA= ULT domain=3D0x0016 address=3D0x1f20001c0 flags=3D0x0000] [ 749.376238] snd_hda_intel 0000:0b:00.3: AMD-Vi: Event logged [IO_PAGE_FA= ULT domain=3D0x0016 address=3D0x1f2000200 flags=3D0x0000] [ 749.376570] snd_hda_intel 0000:0b:00.3: AMD-Vi: Event logged [IO_PAGE_FA= ULT domain=3D0x0016 address=3D0x1f2000240 flags=3D0x0000] Note that I first attempted to play audio around 15 seconds in, then=20 tried again about 730 seconds later. Adding mem_encrypt=3Doff to the kernel command line does not fix the=20 issue, but adding mem_encrypt=3Doff amd_iommu=3Doff to the kernel command=20 line does fix it. I am not using any other IOMMU-related parameters such=20 as iommu=3Dpt. I have not yet tested it, but it seems reasonable that this issue is=20 probably related to the recently pulled "ALSA: memalloc" series of=20 changes. Let me know what further information or testing is required. I can do a=20 full bisection but it is somewhat time-consuming due to the manual=20 nature of the tests. Thanks, Alex.