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.8 required=3.0 tests=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 DB7EDC54FCB for ; Mon, 27 Apr 2020 15:15:58 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B9A132054F for ; Mon, 27 Apr 2020 15:15:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B9A132054F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=amd-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 85A6E6E314; Mon, 27 Apr 2020 15:15:58 +0000 (UTC) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by gabe.freedesktop.org (Postfix) with ESMTPS id 845296E314 for ; Mon, 27 Apr 2020 15:15:57 +0000 (UTC) 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 38B2AABCF; Mon, 27 Apr 2020 15:15:55 +0000 (UTC) Date: Mon, 27 Apr 2020 17:15:55 +0200 Message-ID: From: Takashi Iwai To: "Deucher, Alexander" Subject: Re: [PATCH 0/1] Fiji GPU audio register timeout when in BACO state In-Reply-To: References: 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") X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Zhou, David\(ChunMing\)" , "alsa-devel@alsa-project.org" , Nicholas Johnson , "linux-kernel@vger.kernel.org" , "amd-gfx@lists.freedesktop.org" , Takashi Iwai , Lukas Wunner , "Koenig, Christian" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: amd-gfx-bounces@lists.freedesktop.org Sender: "amd-gfx" On Mon, 27 Apr 2020 16:22:21 +0200, Deucher, Alexander wrote: > > [AMD Public Use] > > > -----Original Message----- > > From: Nicholas Johnson > > Sent: Sunday, April 26, 2020 12:02 PM > > To: linux-kernel@vger.kernel.org > > Cc: Deucher, Alexander ; Koenig, Christian > > ; Zhou, David(ChunMing) > > ; Nicholas Johnson > opensource@outlook.com.au> > > Subject: [PATCH 0/1] Fiji GPU audio register timeout when in BACO state > > > > Hi all, > > > > Since Linux v5.7-rc1 / commit 4fdda2e66de0 ("drm/amdgpu/runpm: enable > > runpm on baco capable VI+ asics"), my AMD R9 Nano has been using runpm / > > BACO. You can tell visually when it sleeps, because the fan on the graphics > > card is switched off to save power. It did not spin down the fan in v5.6.x. > > > > This is great (I love it), except that when it is sleeping, the PCIe audio function > > of the GPU has issues if anything tries to access it. You get dmesg errors such > > as these: > > > > snd_hda_intel 0000:08:00.1: spurious response 0x0:0x0, last cmd=0x170500 > > snd_hda_intel 0000:08:00.1: azx_get_response timeout, switching to polling > > mode: last cmd=0x001f0500 snd_hda_intel 0000:08:00.1: No response from > > codec, disabling MSI: last cmd=0x001f0500 snd_hda_intel 0000:08:00.1: No > > response from codec, resetting bus: last cmd=0x001f0500 > > snd_hda_codec_hdmi hdaudioC1D0: Unable to sync register 0x2f0d00. -11 > > > > The above is with the Fiji XT GPU at 0000:08:00.0 in a Thunderbolt enclosure > > (not that Thunderbolt should affect it, but I feel I should mention it just in > > case). I dropped a lot of duplicate dmesg lines, as some of them repeated a > > lot of times before the driver gave up. > > > > I offer this patch to disable runpm for Fiji while a fix is found, if you decide > > that is the best approach. Regardless, I will gladly test any patches you come > > up with instead and confirm that the above issue has been fixed. > > > > I cannot tell if any other GPUs are affected. The only other cards to which I > > have access are a couple of AMD R9 280X (Tahiti XT), which use radeon driver > > instead of amdgpu driver. > > Adding a few more people. Do you know what is accessing the audio? The audio should have a dependency on the GPU device. The GPU won't enter runtime pm until the audio has entered runtime pm and vice versa on resume. Please attach a copy of your dmesg output and lspci output. Also, please retest with the fresh 5.7-rc3. There was a known regression regarding HD-audio PM in 5.7-rc1/rc2, and it's been fixed there (commit 8d6762af302d). thanks, Takashi _______________________________________________ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx 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.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, 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 34D3DC54FCB for ; Mon, 27 Apr 2020 15:16:53 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AEB272054F for ; Mon, 27 Apr 2020 15:16:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="orx+irnJ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AEB272054F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 08A351679; Mon, 27 Apr 2020 17:16:01 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 08A351679 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1588000611; bh=m28NR59+gc40w0ScPHphnFfjvN0TNP1byVDfCeNG1QU=; h=Date:From:To:Subject:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=orx+irnJyqT2BeYLXjg9X+9xMS1G2EvYlD4NRx66WZPOpuSceiAuJQQ3E6lxTiL7s J4JfT+3th0TzKObr4hB8SSw/HK+WdDOVV3gbiloItT8jkUtfldlU/tXUUGyBnkW6Qp ubQz879islfWVseePM8bDd0AvBMni0Gwi7Ky2A8k= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 92090F80217; Mon, 27 Apr 2020 17:16:00 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 77472F8022B; Mon, 27 Apr 2020 17:15:59 +0200 (CEST) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 23D45F8010A for ; Mon, 27 Apr 2020 17:15:56 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 23D45F8010A 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 38B2AABCF; Mon, 27 Apr 2020 15:15:55 +0000 (UTC) Date: Mon, 27 Apr 2020 17:15:55 +0200 Message-ID: From: Takashi Iwai To: "Deucher, Alexander" Subject: Re: [PATCH 0/1] Fiji GPU audio register timeout when in BACO state In-Reply-To: References: 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 Cc: "Zhou, David\(ChunMing\)" , "alsa-devel@alsa-project.org" , Nicholas Johnson , "linux-kernel@vger.kernel.org" , "amd-gfx@lists.freedesktop.org" , Takashi Iwai , Lukas Wunner , "Koenig, Christian" X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On Mon, 27 Apr 2020 16:22:21 +0200, Deucher, Alexander wrote: > > [AMD Public Use] > > > -----Original Message----- > > From: Nicholas Johnson > > Sent: Sunday, April 26, 2020 12:02 PM > > To: linux-kernel@vger.kernel.org > > Cc: Deucher, Alexander ; Koenig, Christian > > ; Zhou, David(ChunMing) > > ; Nicholas Johnson > opensource@outlook.com.au> > > Subject: [PATCH 0/1] Fiji GPU audio register timeout when in BACO state > > > > Hi all, > > > > Since Linux v5.7-rc1 / commit 4fdda2e66de0 ("drm/amdgpu/runpm: enable > > runpm on baco capable VI+ asics"), my AMD R9 Nano has been using runpm / > > BACO. You can tell visually when it sleeps, because the fan on the graphics > > card is switched off to save power. It did not spin down the fan in v5.6.x. > > > > This is great (I love it), except that when it is sleeping, the PCIe audio function > > of the GPU has issues if anything tries to access it. You get dmesg errors such > > as these: > > > > snd_hda_intel 0000:08:00.1: spurious response 0x0:0x0, last cmd=0x170500 > > snd_hda_intel 0000:08:00.1: azx_get_response timeout, switching to polling > > mode: last cmd=0x001f0500 snd_hda_intel 0000:08:00.1: No response from > > codec, disabling MSI: last cmd=0x001f0500 snd_hda_intel 0000:08:00.1: No > > response from codec, resetting bus: last cmd=0x001f0500 > > snd_hda_codec_hdmi hdaudioC1D0: Unable to sync register 0x2f0d00. -11 > > > > The above is with the Fiji XT GPU at 0000:08:00.0 in a Thunderbolt enclosure > > (not that Thunderbolt should affect it, but I feel I should mention it just in > > case). I dropped a lot of duplicate dmesg lines, as some of them repeated a > > lot of times before the driver gave up. > > > > I offer this patch to disable runpm for Fiji while a fix is found, if you decide > > that is the best approach. Regardless, I will gladly test any patches you come > > up with instead and confirm that the above issue has been fixed. > > > > I cannot tell if any other GPUs are affected. The only other cards to which I > > have access are a couple of AMD R9 280X (Tahiti XT), which use radeon driver > > instead of amdgpu driver. > > Adding a few more people. Do you know what is accessing the audio? The audio should have a dependency on the GPU device. The GPU won't enter runtime pm until the audio has entered runtime pm and vice versa on resume. Please attach a copy of your dmesg output and lspci output. Also, please retest with the fresh 5.7-rc3. There was a known regression regarding HD-audio PM in 5.7-rc1/rc2, and it's been fixed there (commit 8d6762af302d). thanks, Takashi 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.8 required=3.0 tests=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 A0619C54FD0 for ; Mon, 27 Apr 2020 15:15:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 816CE2054F for ; Mon, 27 Apr 2020 15:15:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728282AbgD0PP5 (ORCPT ); Mon, 27 Apr 2020 11:15:57 -0400 Received: from mx2.suse.de ([195.135.220.15]:46072 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728148AbgD0PP5 (ORCPT ); Mon, 27 Apr 2020 11:15:57 -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 38B2AABCF; Mon, 27 Apr 2020 15:15:55 +0000 (UTC) Date: Mon, 27 Apr 2020 17:15:55 +0200 Message-ID: From: Takashi Iwai To: "Deucher, Alexander" Cc: Nicholas Johnson , "linux-kernel@vger.kernel.org" , "amd-gfx@lists.freedesktop.org" , Takashi Iwai , "alsa-devel@alsa-project.org" , Lukas Wunner , "Koenig, Christian" , "Zhou, David(ChunMing)" Subject: Re: [PATCH 0/1] Fiji GPU audio register timeout when in BACO state In-Reply-To: References: 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 Mon, 27 Apr 2020 16:22:21 +0200, Deucher, Alexander wrote: > > [AMD Public Use] > > > -----Original Message----- > > From: Nicholas Johnson > > Sent: Sunday, April 26, 2020 12:02 PM > > To: linux-kernel@vger.kernel.org > > Cc: Deucher, Alexander ; Koenig, Christian > > ; Zhou, David(ChunMing) > > ; Nicholas Johnson > opensource@outlook.com.au> > > Subject: [PATCH 0/1] Fiji GPU audio register timeout when in BACO state > > > > Hi all, > > > > Since Linux v5.7-rc1 / commit 4fdda2e66de0 ("drm/amdgpu/runpm: enable > > runpm on baco capable VI+ asics"), my AMD R9 Nano has been using runpm / > > BACO. You can tell visually when it sleeps, because the fan on the graphics > > card is switched off to save power. It did not spin down the fan in v5.6.x. > > > > This is great (I love it), except that when it is sleeping, the PCIe audio function > > of the GPU has issues if anything tries to access it. You get dmesg errors such > > as these: > > > > snd_hda_intel 0000:08:00.1: spurious response 0x0:0x0, last cmd=0x170500 > > snd_hda_intel 0000:08:00.1: azx_get_response timeout, switching to polling > > mode: last cmd=0x001f0500 snd_hda_intel 0000:08:00.1: No response from > > codec, disabling MSI: last cmd=0x001f0500 snd_hda_intel 0000:08:00.1: No > > response from codec, resetting bus: last cmd=0x001f0500 > > snd_hda_codec_hdmi hdaudioC1D0: Unable to sync register 0x2f0d00. -11 > > > > The above is with the Fiji XT GPU at 0000:08:00.0 in a Thunderbolt enclosure > > (not that Thunderbolt should affect it, but I feel I should mention it just in > > case). I dropped a lot of duplicate dmesg lines, as some of them repeated a > > lot of times before the driver gave up. > > > > I offer this patch to disable runpm for Fiji while a fix is found, if you decide > > that is the best approach. Regardless, I will gladly test any patches you come > > up with instead and confirm that the above issue has been fixed. > > > > I cannot tell if any other GPUs are affected. The only other cards to which I > > have access are a couple of AMD R9 280X (Tahiti XT), which use radeon driver > > instead of amdgpu driver. > > Adding a few more people. Do you know what is accessing the audio? The audio should have a dependency on the GPU device. The GPU won't enter runtime pm until the audio has entered runtime pm and vice versa on resume. Please attach a copy of your dmesg output and lspci output. Also, please retest with the fresh 5.7-rc3. There was a known regression regarding HD-audio PM in 5.7-rc1/rc2, and it's been fixed there (commit 8d6762af302d). thanks, Takashi