Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3004429ybz; Mon, 27 Apr 2020 08:20:09 -0700 (PDT) X-Google-Smtp-Source: APiQypLgW7yEKl38fCPRuWowg9SMw6+Dl5ogT75R50lzZCbgCG9crkluH0CO2lxtfg5GGUr9pW47 X-Received: by 2002:a17:906:7fd7:: with SMTP id r23mr19742413ejs.32.1588000809586; Mon, 27 Apr 2020 08:20:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588000809; cv=none; d=google.com; s=arc-20160816; b=xI4gg7hZMoUsizsAoD6lzpcuzIgaizGpyqKJA43yxaouFZxNN0wOOPzMJxcb1BY0gs KDII4xyzgdkDcOFCV5Lqg9zb99aON2zLynkEg22qXLDNNdI6aFxxGQAqc5GJPBQizD6u GNux5vh0kzIjiMupw3RCoW3u2AUCaJpJmONijQAQWCTyjw+GzIclo7CWe1/HgXsHFZND kkuuwRVnsnRR6G7SF76Vq7luewf35oAhbxBwNOkwkkakQkMCJHYB68BPcNrv2K0S+HTd TzVLKuYlRgkM5k1DjWzmmhtbn/rZrHIDYQx/G35iSCohyV4M2sMnYVPwE32BkyKnEBSq o+dQ== 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=A+kKBawYUOYfSPiA/kW5KHJmCQ2hLiJeB44LCxF55Ng=; b=piCeChNPATtF48Ludhv2J/osi9uZnUvQCgwlm1Tgq4kf/oKuHXS7wbG3vhypMyrRmi Qn/KYS2CnJm0b2P0P54XOaZ+jnezYO81Ldjm8iFlt8sOq7sVSnY3QdMa5lKsugmmjdUB ne+078syLttITF28bBt8L9YCAMXJ34MQtQOMThijABewDKtkp5xfuH6q8AGPS5pYesS/ 98ncb9l9YpkQc7yqp6qlmnZNKROV+3V1LoGtY+t1wSFet8fBS7oVQ1Rs6Zgli6VwgeOA k56z9tMh9EqkHjdUm8BsuN+/BsXj1utTGRrVpK4iYhd3U1h6ujOol0fpi50Pz508E0FI 3LtA== 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 v1si8560427edr.198.2020.04.27.08.19.45; Mon, 27 Apr 2020 08:20:09 -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 S1728277AbgD0PP5 (ORCPT + 99 others); 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